agentleFS
iamgiolagaiamgiolaga/ceo-of-agents/skills/hq-version/SKILL.md

hq-version

Skill2 starsChanged 8 days agoMITView on GitHub

Compare this hq's framework version with the installed ceo-of-agents plugin version, flag a plugin installed in more than one scope, and, after the CEO's OK, apply the pending migrations in order. Use at session start in a ceo-of-agents hq, and when the CEO approves an hq update.

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Only the chief of staff (CoS) runs this skill.

    line 14
  2. Very specific:

    Every file this skill writes in the hq is written by a worker (one tier down, explicit model) from your instructions, and you read the diff.

    line 18
  3. Distinctive:

    Run at session start. It is read-only, except for one A item.

    line 22
  4. Distinctive:

    Never edit any other hq file during the check.

    line 45
  5. Distinctive:

    Only after the CEO approves the A item.

    line 49
  6. Very specific:

    Run git status --short. If it shows this session's own hq edits (for example the A item), commit them first with notice.

    line 53
  7. Distinctive:

    Read the migration file in full, then the hq files it edits.

    line 54
  8. Distinctive:

    Run its "Check after applying" section.

    line 56
  9. Very specific:

    Commit with notice (one line to the CEO first): chore: migrate hq to <to> with the attribution lines required by the session.

    line 58
  10. Very specific:

    After the last migration: remove the A item, set last_updated in company/state.md, measure company/state.md with the check at write time …

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

hq-version: check the hq against the plugin, then migrate

Reply to the CEO in the chat language set in org.yaml (language.chat); write every file in the file language (language.files).

Closed org: when org.status in org.yaml is closed, the check reports in one line and adds no A item, and Apply stops: say that the org is closed and read-only. Only the Reopen procedure of the close-org skill writes in a closed org.

Only the chief of staff (CoS) runs this skill. A department agent never does.

Why a skill: the installed plugin version and the migration notes live in the plugin folder. Only plugin skills reach that folder, through ${CLAUDE_PLUGIN_ROOT}; a project CLAUDE.md cannot, and the install path differs per machine and per version.

Every file this skill writes in the hq is written by a worker (one tier down, explicit model) from your instructions, and you read the diff; commits, pushes and gh writes stay with you.

Check

Run at session start. It is read-only, except for one A item.

  1. Installed version: version in ${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json. If the file is unreadable, the version is unknown.
  2. hq version: framework_version in org.yaml and in the company/state.md frontmatter. If they differ, report both and use the lower one. If it is missing, the version is unknown.
  3. Compare major.minor.patch as numbers, not as text.

Then:

  • Equal: report nothing.
  • Behind: build the chain of migrations. Start at the hq version and look for ${CLAUDE_PLUGIN_ROOT}/migrations/<from>-to-<to>.md (use ls on the folder). Follow each file's <to> as the next <from>, until the installed version. For a one-line description of each step, use "Current status" in ${CLAUDE_PLUGIN_ROOT}/migrations/README.md. If a step is missing, say from which version no migration exists and that this part must be done by hand with the CEO. Never guess edits. Put one line in the status, for example: hq on 0.5.0, plugin 0.7.0: 2 updates to apply (0.5.0-to-0.6.0: product repos and roadmap; 0.6.0-to-0.7.0: agents named after personas, version check). Then add one A item to "Waiting on the CEO", unless an open A item for the hq update already exists, in the exact line format of ${CLAUDE_PLUGIN_ROOT}/schemas/state.md: - <ORG_ID>-A<n> [normal] {ok}: approve updating hq from <hq> to <installed> (migrations <list>, in the plugin's migrations/ folder) (since YYYY-MM-DD). Increment next_action. If an open item has an older target, update its text instead of adding another.
  • Ahead: say hq on X is newer than the installed plugin Y: update the plugin (/plugin, Installed tab, Update now). If it is already up to date, a second, older install at another scope may be the one loaded: check /plugin, Installed tab, and remove the extra copy (for example claude plugin uninstall ceo-of-agents@ceo-of-agents --scope user). and continue.
  • Unknown: say Version check skipped: <reason> and continue.

Installs in more than one scope

Run claude plugin list --json from the hq root. Keep the entries whose id is ceo-of-agents@<marketplace> and that apply to this folder: scope user or managed, or scope project or local with projectPath equal to the hq root. The list also shows project installs of other folders: ignore them.

  • One entry or none left, or the command fails or is not available: say nothing.
  • Two or more left: add one line to the status with each scope and its version, the version loaded here (step 1), and the command for each extra copy. Keep the project install; for each other scope give the remove command claude plugin uninstall ceo-of-agents@ceo-of-agents --scope <scope> and the update alternative claude plugin update ceo-of-agents@ceo-of-agents --scope <scope>. If no project install is among them, keep the one whose version is loaded and name the others. For example: Plugin installed in 2 scopes: user 0.20.0, project 0.23.0; loaded here: 0.23.0. Remove the user copy with claude plugin uninstall ceo-of-agents@ceo-of-agents --scope user (install at project scope in your other hqs first), or update it with claude plugin update ceo-of-agents@ceo-of-agents --scope user.

This is a report only: add no A item. It runs in a closed org too, because it is read-only.

Never edit any other hq file during the check.

Apply

Only after the CEO approves the A item. Applying a migration is an hq commit, but it always needs the CEO's OK: never apply one silently.

For each migration in order, one at a time:

  1. Run git status --short. If it shows this session's own hq edits (for example the A item), commit them first with notice; if it shows anything else, stop and ask. The hq framework_version must equal the migration's <from>.
  2. Read the migration file in full, then the hq files it edits.
  3. Apply the edits exactly as written. Where the migration says to ask the CEO (for example an agent-name clash), ask one plain question and wait. Writes into .claude/ may raise a permission prompt. If it is denied, do not work around it: stop and list the missing edits.
  4. Run its "Check after applying" section. Fix what fails, or stop and report.
  5. Show a short summary: one line per changed file (from git status --short) and one or two plain lines on what it means for the CEO.
  6. Commit with notice (one line to the CEO first): chore: migrate hq to <to> with the attribution lines required by the session. Then push with git push origin HEAD if git remote is not empty.

After the last migration: remove the A item, set last_updated in company/state.md, measure company/state.md with the check at write time (${CLAUDE_PLUGIN_ROOT}/schemas/boot-set.md, "Check at write time"; Grep and wc -c), commit with notice, and say the hq is up to date.

On any failure: stop, name the migration and the failed check, and leave the working tree as it is (never reset). Add nothing silently.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.