setup
Set up or refresh a repo's adapter files for the dk skills (tracker, labels, glossary rule, standards, workflow parameters).
- License 许可
- MIT
- 最近更新
- 2026-11-05
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- setup
- description
- Set up or refresh a repo's adapter files for the dk skills (tracker, labels, glossary rule, standards, workflow parameters).
- disable-model-invocation
- true
02 资源文件 5
- 参考文档coding-standards.md794 B
- 参考文档domain.md944 B
- 参考文档issue-tracker.md2.4 KB
- 参考文档triage-labels.md707 B
- 参考文档workflow-parameters.md1.4 KB
03 SKILL.md 正文
<!-- Replaces mattpocock/skills setup-matt-pocock-skills (MIT); templates adapted from its seeds. -->
Set up a repo for dk
The dk skills keep the shared process; each repo keeps only its own facts in small adapter files. This skill writes or refreshes them. It is idempotent: on a repo that already has them, it shows the drift and fixes only that.
| File | Holds | Read by |
|---|---|---|
docs/agents/issue-tracker.md |
gh recipes, sub-issues, blocking, scope amendments |
every skill that touches issues |
docs/agents/triage-labels.md |
label strings | triage, to-spec, to-tickets, issue-flow |
docs/agents/domain.md |
glossary and ADR locations, the glossary change rule | domain-modeling, grill-with-docs, triage |
docs/agents/workflow.md |
repo parameters only | issue-flow |
docs/agents/verify.md |
stack start, stubs, seeding, login, endpoints | verify |
GLOSSARY.md |
the domain glossary (Matt's skills look for this name) | all |
CODING_STANDARDS.md |
judgement calls for review | code-review |
.claude/settings.json |
env.GH_REPO |
the harness |
1. Explore
Read what exists before proposing anything: git remote -v, AGENTS.md / CLAUDE.md, docs/agents/*, GLOSSARY.md or CONTEXT.md, docs/adr/, CODING_STANDARDS.md, .claude/settings.json, .gitignore (are docs/agents/ and docs/research/ tracked? git check-ignore -v docs/agents/x.md docs/research/x.md), and the labels (gh label list --json name).
2. Draft, then confirm in one round
Draft every change, then show the user the list with one recommended answer per decision, worded so "yes" accepts it:
- Tracker and labels: fill issue-tracker.md and triage-labels.md from the repo's existing label table and workflow; list labels to create.
- Glossary: rename
CONTEXT.mdtoGLOSSARY.mdwithgit mv, and update every reference (git grep -n 'CONTEXT\.md', excluding vendored and generated code). Fill domain.md with the repo's existing glossary change rule, quoted from its docs. - Coding standards: move the judgement calls from
AGENTS.md(a "Code defaults" section or similar) intoCODING_STANDARDS.mdper coding-standards.md. Lines that only navigate (where a module lives, which file to read first) stay inAGENTS.md. - Workflow: cut
docs/agents/workflow.mddown to the parameters in workflow-parameters.md; the shared sequence lives in thedk:issue-flowskill. Keep every repo-specific fact, and drop only linesdk:issue-flowstates equally. - Verify: cut the repo's verify recipe down to
docs/agents/verify.mdwith the facts thedk:verifyskill lists under "The repo's verify doc"; the protocol lives in the skill. - AGENTS.md: the pointer block below, replacing whatever section pointed at the workflow before.
- Ignore rules: a
.gitignoreexception fordocs/research/when it is ignored.
Completion criterion for the draft: every file in the table above is either unchanged with a reason, or has a concrete diff.
3. Write through a PR
Call the Skill tool with dk:issue-flow and work in a worktree off origin/pre-main on chore/dk-setup (no issue number needed). Create missing labels with gh label create. Commit, open the PR with the dk:pr body, and report it. The maintainer merges.
AGENTS.md block
## Workflow
Issues live in GitHub Issues and move issue → worktree → PR into `pre-main` → batch merge to `main`, which deploys. The dk skills carry the shared sequence (`dk:issue-flow`); this repo's parameters are in `docs/agents/workflow.md`, tracker commands in `docs/agents/issue-tracker.md`, labels in `docs/agents/triage-labels.md`, the glossary rule in `docs/agents/domain.md`, review standards in `CODING_STANDARDS.md`.
04 同仓库更多 Skills
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
verify
Prove a change works by driving it in a stack you started, against a control run of the pre-fix state. Use before calling any change verified, or when asked to verify or prove a fix.
verify-doc-check
Monthly check that this repo's docs/agents/verify.md still starts the stack: read every claim against the source, run the recipe in a fresh worktree, fix or file each drifted step.
triage
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
to-tickets
Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).
to-spec
Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.