setup-skills
Configure this repo for the engineering skills — set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-06
- Stars
- ★ 7
- Forks
- 0
01 前言 Front Matter
- name
- setup-skills
- description
- Configure this repo for the engineering skills — set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档domain.md2.0 KB
- 参考文档issue-tracker-github.md1.9 KB
- 参考文档issue-tracker-gitlab.md2.2 KB
- 参考文档issue-tracker-local.md836 B
- 参考文档triage-labels.md1.1 KB
03 SKILL.md 正文
Set up skills
Lay down the per-repo configuration the engineering skills rely on:
- Issue tracker — where issues live (GitHub by default; local markdown also works out of the box)
- Triage labels — the strings that stand in for the five canonical triage roles
- Domain docs — where
CONTEXT.mdand ADRs live, and how consumers should read them
This is prompt-driven, not a deterministic script. Explore, show what you found, confirm with the user, then write.
Process
1. Explore
Inspect the repo to learn its starting state. Read what's actually there rather than assuming:
git remote -vand.git/config— is this a GitHub repo? Which one?AGENTS.mdandCLAUDE.mdat the repo root — does either exist? Does either already carry an## Agent skillssection?CONTEXT.mdandCONTEXT-MAP.mdat the repo rootdocs/adr/and anysrc/*/docs/adr/directoriesdocs/agents/— has this skill already produced output here?.scratch/— a sign a local-markdown issue tracker convention is already in play
2. Present findings and ask
Summarise what exists and what's missing. Then walk the user through the three decisions one at a time — show a section, take the user's answer, then move on. Don't dump all three at once.
Assume the user hasn't met these terms before. Open each section with a short explainer (what it is, why these skills need it, what shifts if they choose otherwise). Then lay out the choices and the default.
Section A — Issue tracker.
Explainer: The "issue tracker" is where this repo's issues live. Skills like
to-issues,triage, andto-prdread from and write to it — they need to know whether to reach forgh issue create, drop a markdown file under.scratch/, or follow some other workflow you describe. Pick the place you genuinely track work for this repo.
Default posture: these skills were built for GitHub. If a git remote points at GitHub, propose that. If a git remote points at GitLab (gitlab.com or a self-hosted host), propose GitLab. Otherwise (or if the user prefers), offer:
- GitHub — issues live in the repo's GitHub Issues (uses the
ghCLI) - GitLab — issues live in the repo's GitLab Issues (uses the
glabCLI) - Local markdown — issues live as files under
.scratch/<feature>/in this repo (good for solo projects or repos without a remote) - Other (Jira, Linear, etc.) — ask the user to describe the workflow in one paragraph; the skill records it as freeform prose
If — and only if — the user picked GitHub or GitLab, ask one follow-up:
Explainer: Open-source repos often get feature requests as pull requests, not just issues — a PR is an issue with code attached. Turn this on and
/triagefolds external PRs into the same queue, running them through the same labels and states as issues (collaborators' in-flight PRs are left alone). Leave it off if PRs aren't a request surface for you.
- PRs as a request surface — yes / no (default: no). Record the answer in
docs/agents/issue-tracker.md. For local-markdown and other trackers, skip this question — there are no PRs.
Section B — Triage label vocabulary.
Explainer: When the
triageskill handles an incoming issue, it walks it through a state machine — needs evaluation, waiting on reporter, ready for an AFK agent to grab, ready for a human, or won't fix. To do that it applies labels (or your tracker's equivalent) that match strings you've actually set up. If your repo already uses different names (saybug:triageinstead ofneeds-triage), map them here so the skill reaches for the right ones instead of minting duplicates.
The five canonical roles:
needs-triage— maintainer needs to evaluateneeds-info— waiting on reporterready-for-agent— fully specified, AFK-ready (an agent can grab it with no human context)ready-for-human— needs human implementationwontfix— will not be actioned
Default: each role's string equals its name. Ask whether the user wants to override any. If their tracker has no existing labels, the defaults are fine.
Section C — Domain docs.
Explainer: Some skills (
improve-codebase-architecture,diagnosing-bugs,tdd) read aCONTEXT.mdfile to pick up the project's domain language, anddocs/adr/for past architectural decisions. They need to know whether the repo runs one global context or several (say a monorepo with separate frontend/backend contexts) so they look in the right place.
Confirm the layout:
- Single-context — one
CONTEXT.md+docs/adr/at the repo root. Most repos are this. - Multi-context —
CONTEXT-MAP.mdat the root pointing to per-contextCONTEXT.mdfiles (typically a monorepo).
3. Confirm and edit
Show the user a draft of:
- The
## Agent skillsblock to add to whichever ofCLAUDE.md/AGENTS.mdyou're editing (selection rules in step 4) - The contents of
docs/agents/issue-tracker.md,docs/agents/triage-labels.md,docs/agents/domain.md
Let them edit before you write.
4. Write
Pick the file to edit:
- If
CLAUDE.mdexists, edit it. - Else if
AGENTS.mdexists, edit it. - If neither exists, ask the user which to create — don't decide for them.
Never create AGENTS.md when CLAUDE.md already exists (or vice versa) — always edit the one already there.
If an ## Agent skills block already exists in the chosen file, update its contents in place rather than appending a duplicate. Leave the user's edits to the surrounding sections alone.
The block:
## Agent skills
### Issue tracker
[one-line summary of where issues are tracked, plus whether external PRs are a triage surface]. See `docs/agents/issue-tracker.md`.
### Triage labels
[one-line summary of the label vocabulary]. See `docs/agents/triage-labels.md`.
### Domain docs
[one-line summary of layout — "single-context" or "multi-context"]. See `docs/agents/domain.md`.
Then write the three docs files, seeding them from the templates in this skill folder:
- issue-tracker-github.md — GitHub issue tracker
- issue-tracker-gitlab.md — GitLab issue tracker
- issue-tracker-local.md — local-markdown issue tracker
- triage-labels.md — label mapping
- domain.md — domain doc consumer rules + layout
For "other" issue trackers, write docs/agents/issue-tracker.md from scratch out of the user's description.
5. Done
Tell the user setup is complete and which engineering skills will now read from these files. Note that they can edit docs/agents/*.md directly later — re-running this skill is only needed to switch issue trackers or start over.
04 同仓库更多 Skills
writing-great-skills
Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.
technical-writing
House style for technical writing — the voice, sentence craft, formatting, and user-facing-copy rules that make docs and product text clear, direct, and consistent. Use when writing or editing a README, docs, a spec, release notes, a changelog, help text, or any error/CLI/UI copy a person reads; when reviewing a diff that touches prose or messages; or when a project needs a writing standard. Reference-heavy mechanics live in REFERENCE.md.
teach
Teach the user a new skill or concept, within this workspace.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
grilling
Interrogate the user's plan or design one decision at a time until you both share the same understanding. Use when the user wants to pressure-test an idea before building it, or reaches for any 'grill' trigger phrase.
grill-me
A relentless, one-decision-at-a-time interview that sharpens a plan or design.