product-repos
Skill2 starsChanged 9 days agoMITView on GitHub
Keep the product repos registry and the roadmap board of a ceo-of-agents hq. Registers a repo or a GitHub Project board in org.yaml, handles repos that do not exist yet, asks for local clone paths on this computer, and holds the gh rules and the roadmap rules. Use when the CEO names a new repo or board, when a planned repo may now exist, when a clone path is missing, or before the first gh call of a session.
- Commits and pushes
In this repository11 other files it gives its agents.
- close-orgSkill
- departmentsSkill
- draft-as-ceoSkill
- hq-versionSkill
- init-fleetSkill
- initiativesSkill
- intakeSkill
- portfolio-briefSkill
- record-decisionSkill
- session-startSkill
- weekly-briefSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Only the chief of staff (CoS) runs this skill.
- Very specific: line 42
Ask once per computer for each registered repo other than the hq that is not planned, is not an owner pattern and has no entry under …
- Distinctive: line 46
Never ask about folders while the hq is the only repo.
- Very specific: line 48
Write the answers to repo_paths: in that file, creating it if missing (each slug maps to a path, or to null when not cloned here.
≈ “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.
Files
product-repos: the repos registry and the roadmap board
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, say that the org is closed and read-only, and stop: this skill writes nothing. Only the Reopen procedure of the close-org skill writes in a closed org.
Only the chief of staff (CoS) runs this skill. Departments read the registry in org.yaml and follow the rules in CLAUDE.md; they never edit it.
The registry: repos: in org.yaml (GitHub slug, role, visibility, issues home, whether it is protected, and planned: true for a repo that does not exist yet) and tracker: (a GitHub Project, or none). Field rules: ${CLAUDE_PLUGIN_ROOT}/schemas/org.yaml. Local clone paths are per computer, under repo_paths in accounts.local.yaml, which git does not track. A holding and a personal hq keep repos: [] and tracker: none.
Register a repo or a board
The registry is a list of facts, not a decision: no decision card and no new record.
- Ask only what is missing, in plain words: the address as
owner/name, what it is in a word or two (code, site, docs, ...), public or private, and whether it already exists on GitHub. Validate the address: one/; the owner uses only letters, digits and-; the name only letters, digits,-,_and.. - Protected or not: for a repo other than the hq, ask one plain question, with nothing preselected: "Do other people work on this project and see what your agents write there (issues, comments, pull requests)? If yes, or if you are not sure, your agents will always ask you before writing there." Yes or "not sure" gives
protected: true; no givesprotected: false. The hq (rolehq) is alwaysprotected: falseand is never asked about. - A repo that does not exist yet gets
planned: true(see "Planned repos"). - The first repo of the list also needs an issues home: the repo that holds issues touching several repos (one of the listed repos, or the hq itself when it has a GitHub remote, then added with role
hq, private). Exactly one item hasissues_home: true. - A board: its address (
https://github.com/orgs/<owner>/projects/<number>orhttps://github.com/users/<owner>/projects/<number>) and the name of its status field (often "Status"). Writekind: github-project,owner,number(an integer) andstatus_field. - Confirm the entry to the CEO in one line, edit
org.yaml, write the permission rules in.claude/settings.jsonagain (${CLAUDE_PLUGIN_ROOT}/gates/permissions.md, section "Write the rules"), and commit both with notice (chore: register <slug>). Push withgit push origin HEADifgit remoteis not empty. - For a repo that exists and is not the hq, ask for its clone path on this computer (see "Clone paths").
Protected repos
A repo with protected: true gets no write from any agent without the CEO's explicit OK (see "Approval gates" in CLAUDE.md). The flag changes only on the CEO's word: "free <repo>" sets it to false, "protect <repo>" sets it to true; confirm in one line, write the permission rules again (${CLAUDE_PLUGIN_ROOT}/gates/permissions.md, section "Write the rules": .claude/settings.json, and the clone-push rules in .claude/settings.local.json) and commit the tracked files with notice. The hq is never protected.
Owner patterns, only when the CEO asks for one (never propose it): an item with slug <owner>/* covers every repo of that owner that has no item of its own, with one protected value for all of them; an exact item for a repo of that owner is the exception and wins over the pattern. A pattern item has issues_home: false, no planned key and no clone path; for visibility take the CEO's answer for that owner's repos, and public when they are mixed or the CEO is not sure.
Planned repos
A repo marked planned: true does not exist yet. Before the first write to it, check once with gh repo view <slug>. While it does not exist, skip each issue or tracker write for it with one line (this is not a failure) and make sure an A item of kind {do} asks the CEO to create it with the exact command, for example gh repo create <slug> --private (add one unless it is already open). Once it exists, remove planned: true from org.yaml, write the permission rules in .claude/settings.json again (${CLAUDE_PLUGIN_ROOT}/gates/permissions.md, section "Write the rules") and commit both with notice, clear the A item, and ask for its clone path.
Clone paths
Ask once per computer for each registered repo other than the hq that is not planned, is not an owner pattern and has no entry under repo_paths in accounts.local.yaml: its local clone path on this machine, or "not cloned here".
- Propose a path next to the hq by default: the folder that holds the hq folder, plus the repo name (for an hq in
/home/me/acme/acme-hq, the repoacme/appgoes to/home/me/acme/app). The CEO may give any other path. - If the path the CEO gives is inside the hq folder, warn in one line before writing it: a repo inside the hq mixes the hq's records with code and confuses git. Propose the path next to the hq instead, and record the path the CEO then confirms.
- Never ask about folders while the hq is the only repo.
Write the answers to repo_paths: in that file, creating it if missing (each slug maps to a path, or to null when not cloned here; then agents reach it with gh -R <slug> only). Never commit accounts.local.yaml.
Then write the push rules for the clones into .claude/settings.local.json (${CLAUDE_PLUGIN_ROOT}/gates/permissions.md, section "Clone pushes"): one git -C <path> push rule pair per clone path, to allow for a repo that is not protected and to ask for a protected or unregistered one. Do this whenever repo_paths or the protected flag changes, and never commit that file. Say in one line that pushes from a worktree outside repo_paths ask; a CEO who wants one free adds the exact rule to that file, and a department never does.
A department pushes from a clone with one bare command, git -C <absolute clone path> push -u origin HEAD, run while the branch is checked out in that clone: no cd, no pipe, no &&, no explicit branch name. Put this in every brief that has a department push a branch.
Roadmap rules
The rules of "Product repos and roadmap" in the hq's CLAUDE.md that are held here. While repos is [] and tracker is none, they do not apply.
- The roadmap stays current. Every change checks and updates the tracker and its issues: when work is asked, starts, ships or is dropped, when a decision is recorded, when a PR opens or merges. Each piece of work has an issue in the repo it touches (cross-cutting work: in the issues home), the issue is on the tracker, its
status_fieldmatches reality, and stale issues are closed with a one-line note. Withtracker: none, keep the issues current and skip the Project steps. - Tracking writes are free on a repo that is not protected (see Approval gates). Creating, editing and closing issues, adding Project items and setting their fields, labels, milestones and comments are free (
issues-and-labels,comments): do them and mention them in one line (with a non-technical CEO, not at all: see How to talk to the CEO). Changing a Project's or a repo's settings, including its built-in workflows, isorg-or-repo-settings.
Tools
Use gh with one -R <slug> right after the subcommand for a repo, and for a write its text inline in single quotes, never --body-file or -F (gh issue comment -R <slug> 12 --body '...'). Claude Code asks before every write on GitHub, also a free one: no permission rule can hold such a command to one repo or to its text, so the prompt shows both; the ask rules for protected repos match this form. Use gh project <subcommand> --owner <owner> for the tracker. If gh is missing, not signed in, or lacks the project scope (gh auth status shows it), say so once, add an A item of kind {do} with the exact command for the CEO (for example gh auth refresh -s project) unless one is already open, and carry on without tracker writes. Never guess what the tracker holds.
Issue and tracker writes themselves follow the intake skill (issue route) and the record-decision skill.
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
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.

