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…
Bootstrap a fresh or existing repo with nyann. TRIGGER when the user says "set up this project", "initialize git workflow", "bootstrap this repo", "scaffold this project", "ngyamm this repo", "use my <name> profile" / "apply the nextjs-prototype profile" (profile mode). ALSO
$ npx -y skills add thettwe/nyann --skill bootstrap-project --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/bootstrap-projectContext preview
The summary Claude sees to decide when to auto-load this skill.
Bootstrap a fresh or existing repo with nyann. TRIGGER when the user says "set up this project", "initialize git workflow", "bootstrap this repo", "scaffold this project", "ngyamm this repo", "use my <name> profile" / "apply the nextjs-prototype profile" (profile mode). ALSO
name: bootstrap-project description: > Bootstrap a fresh or existing repo with nyann. TRIGGER when the user says "set up this project", "initialize git workflow", "bootstrap this repo", "scaffold this project", "ngyamm this repo", "use my <name> profile" / "apply the nextjs-prototype profile" (profile mode). ALSO trigger on "standard setup" / "usual stack" / "the usual setup" / "install all the standard hooks" / "give this repo the usual setup" / "make this repo standard" / "install nyann" — these read as opinionated bulk setup, not narrow edits, even though they sound small. Also trigger on any phrasing that mentions wiring up git hooks + branching + conventions + docs as a single opinionated setup. DO NOT trigger on narrow requests like "add a lint hook" or "update CLAUDE.md" — those are edits, not bootstraps. DO NOT trigger on "audit this project" / "fix what's drifted" / "bring into compliance" — those are retrofit. DO NOT trigger on "check this project's health" / "is this healthy" — those are doctor. When in doubt, run the detection step and ask.
You are executing nyann's main bootstrap flow. The goal is to take an empty directory, a fresh repo, or an existing messy repo and bring it up to the conventions in a nyann profile — without silently mutating anything.
**Work in phases.** Each phase is one or more bash scripts in `bin/`. Never run a destructive action outside a preview-confirmed plan. If a phase emits a structured skip record (`{"skipped": "...", "reason": "..."}`), log it in your final summary and continue with the remaining phases.
Run `bin/check-team-staleness.sh` before starting. If it produces output, show the notification to the user (e.g. "Your team profiles have upstream changes. Run `/nyann:sync-team-profiles` to update before bootstrapping, or continue with the current versions."). Do not block — let the user decide whether to sync first.
1. Run `bin/detect-stack.sh --path <target>` and capture the JSON to a temp file (e.g. `bin/detect-stack.sh --path <target> > "${TMPDIR:-/tmp}/nyann-stack.json"`) so step 2 can pass it via `--stack`. Never proceed without it. 2. If `confidence < 0.6`, tell the user what you found and ask them to confirm the stack before continuing. Show the top two or three reasoning entries so they can see *why* you chose what you chose. 3. If `is_monorepo` is true, note it — bootstrap will auto-resolve per-workspace configs (hooks, lint-staged entries, commit scopes) using `bin/resolve-workspace-configs.sh`.
See `references/python.md` and `references/javascript.md` for stack-specific notes Claude should fold into its follow-ups. Only load them when the detected stack matches.
Three branches:
(profile not found), list the available profiles it reported and ask the user to pick one.
to get a ranked list of matching profiles with confidence scores. Pass the StackDescriptor JSON captured in step 1 via `--stack` so the script reuses it instead of re-running detect-stack.sh (which would duplicate the directory walk).
Show the user the top suggestion (or top 2-3 if scores are close): > "Detected: TypeScript + Next.js. Suggested profile: `nextjs-prototype` (confidence: 90). > Use this profile?"
Rules:
because `default` means "skip all stack-specific hooks".
**Multi-stack repos (monorepo with workspace_suggestions):** If the `workspace_suggestions[]` array is non-empty, each workspace has its own best-matching profile. Present per-workspace profile assignments to the user:
> "This monorepo has multiple stacks. Here are the suggested profiles: > > | Workspace | Stack | Suggested profile | Confidence | > |-----------|-------|-------------------|------------| > | apps/web | TypeScript + Next.js | `nextjs-prototype` | 90 | > | apps/api | TypeScript + Express | `node-api` | 85 | > | apps/mobile | Dart + Flutter | `flutter-app` | 92 | > > Accept these assignments?"
Rules for workspace profiles:
instead").
`workspaces` field with `"profile": "<name>"` entries. This persists the choice for future bootstraps.
**Legacy secondary_suggestions:** If `workspace_suggestions` is empty but `secondary_suggestions` is non-empty, fall back to the legacy behaviour: mention the secondary stacks as informational.
skill instead — it handles audit + remediation for existing repos.
1. Pipe the StackDescriptor into `bin/recommend-branch.sh`. 2. If `needs_user_confirm` is true, show the three top reasoning strings and ask the user to confirm before writing the strategy into the plan. 3. Otherwise, feed the recommendation straight into the action plan.
The StackDesc
ငြမ်း 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
Repo: thettwe/nyann
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…
Survey the machine and report which nyann features are usable right now. TRIGGER when the user says "is my machine ready for nyann", "what do I need to…
Prune local branches whose work is already merged into the base. TRIGGER when the user says "clean up branches", "delete merged branches", "prune local…
Generate a Conventional Commits message from the staged diff and create the commit after user confirmation. TRIGGER when the user says "commit these changes",…
Bundle a redacted, support-grade snapshot of the current nyann state for inclusion in a bug report or support request. Combines explain-state + doctor + git…
Compare two nyann profiles side-by-side and show what would change. TRIGGER ON: 'diff profiles', 'compare profiles', 'what's different between profiles',…