Skip to content
Development
Skill

/add-team-source

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

From plugin
nyann
741 skills41 commands3 hooks

Claude Code

$ npx -y skills add thettwe/nyann --skill add-team-source --agent claude-code

SKILL.md

add-team-source.SKILL.md
name: add-team-source
description: >
  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.

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/base` when name is `platform-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>`** — default `main`. Override when the

team pins a specific branch or tag.

  • **`--interval <hours>`** — default `24`. How often

`sync-team-profiles` will 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 `--name` collision. 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-source` only registers — the pull is a separate operation on purpose (no surprise network calls here).

When to hand off

  • "Now pull them" → `sync-team-profiles` skill.
  • "Apply a team profile to this repo" → `bootstrap-project` with

the namespaced profile name (e.g. `platform-team/base`).

  • "Show what the team profile does" → `inspect-profile` with the

namespaced name.

Read more
@thettwe
Ships withnyann

ငြမ်း is Burmese for scaffolding. Nyann is the Claude Code plugin that picks expert git defaults for your stack — branching, working hooks (Husky / pre-commit.com / lefthook), commits, releases, CI, docs — then keeps the repo on those rails through every PR

Stars on GitHub

Momentum

stars in total
7
Star history of thettwe/nyann on GitHub, a chart by star-history.com

Other skills on nyann.

bootstrap-project

bootstrap-project

Bootstrap a fresh or existing repo with nyann. TRIGGER when the user says "set up this project", "initialize git workflow",…

@thettwe@thettweInstall Skill
check-prereqs

check-prereqs

Survey the machine and report which nyann features are usable right now. TRIGGER when the user says "is my machine ready for…

@thettwe@thettweInstall Skill
cleanup-branches

cleanup-branches

Prune local branches whose work is already merged into the base. TRIGGER when the user says "clean up branches", "delete merged…

@thettwe@thettweInstall Skill
commit

commit

Generate a Conventional Commits message from the staged diff and create the commit after user confirmation. TRIGGER when the user…

@thettwe@thettweInstall Skill
diagnose

diagnose

Bundle a redacted, support-grade snapshot of the current nyann state for inclusion in a bug report or support request. Combines…

@thettwe@thettweInstall Skill
diff-profile

diff-profile

Compare two nyann profiles side-by-side and show what would change. TRIGGER ON: 'diff profiles', 'compare profiles', 'what's…

@thettwe@thettweInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about add-team-source.

Which coding agents can use add-team-source?
add-team-source installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.