add-team-source
Skill6 starsChanged 3 months agoMITView on GitHub
Register a git URL as a team-profile source so nyann can periodically sync and expose its profiles under a namespace. TRIGGER when the user says "add a team profile source", "register a team profile source", "set up team profiles from <url>", "wire up our team's shared profiles at <repo>", "add profile source named X at <url>", "install team profiles from <git repo>", "/nyann:add-team-source". Do NOT trigger on "sync team profiles now" (that's `sync-team-profiles` — the pull operation). Do NOT trigger on "save my setup as a profile" (that's `learn-profile` — writes to user root, not a team source). Do NOT trigger on generic "add a repo" or "add a remote" — those are git operations unrelated to profile distribution.
In this repository41 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- bootstrap-projectSkill
- check-prereqsSkill
- cleanup-branchesSkill
- commitSkill
- diagnoseSkill
- diff-profileSkill
- doctorSkill
- explain-diffSkill
- explain-stateSkill
- fleet-retrofitSkill
- fleetSkill
- gen-ciSkill
- gen-claudemdSkill
- gen-dependency-updaterSkill
- gen-devcontainerSkill
- gen-templatesSkill
- gh-protectSkill
- hotfixSkill
- iac-applySkill
- iac-planSkill
- inspect-profileSkill
- learn-profileSkill
- migrate-profileSkill
- new-branchSkill
- optimize-claudemdSkill
- prSkill
- record-decisionSkill
- releaseSkill
- retrofitSkill
- route-docsSkill
- settingsSkill
- setupSkill
- shipSkill
- suggestSkill
- syncSkill
- sync-team-profilesSkill
- undo-bootstrapSkill
- undoSkill
- wait-for-pr-checksSkill
- watchSkill
The file
Files
add-team-source
Wraps bin/add-team-source.sh. Updates
~/.claude/nyann/config.json to declare a new team-profile source.
Idempotent — passing the same --name updates the entry in place.
1. Collect inputs
--name <id>— required. Short slug,^[a-z0-9][a-z0-9-]*$. Will also become the namespace prefix for team profiles (e.g.platform-team/basewhen name isplatform-team). When the user gives a name with spaces or caps, propose a slug and confirm.--url <git-url>— required. Any URL git can clone (https://, git@, file:// for testing).--ref <branch-or-tag>— defaultmain. Override when the team pins a specific branch or tag.--interval <hours>— default24. How oftensync-team-profileswill re-pull from this source without--force. Decrease only when the user says "we update these often" or similar.
2. Pre-flight
- Config path defaults to
~/.claude/nyann/config.json. Override only when the user explicitly names a different user root. - The backend upserts on
--namecollision. Warn the user if they're replacing an existing source with a different URL — that's usually unintentional. Read current config first if unsure.
3. Invoke
bin/add-team-source.sh \
--name <id> \
--url <git-url> \
[--ref <branch>] \
[--interval <hours>] \
[--user-root <dir>]Exit 0 on success; config path is logged to stderr.
4. Report back
- Name, URL, ref, interval.
- Tell the user "Run
/nyann:sync-team-profiles(or ask 'sync my team profiles') to actually pull them".add-team-sourceonly registers — the pull is a separate operation on purpose (no surprise network calls here).
When to hand off
- "Now pull them" →
sync-team-profilesskill. - "Apply a team profile to this repo" →
bootstrap-projectwith the namespaced profile name (e.g.platform-team/base). - "Show what the team profile does" →
inspect-profilewith the namespaced name.
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.

