setup-matt-pocock-skills
vinvcn/mattpocock-skills-zh-cn
Configure issue tracker, triage labels, and domain docs for engineering agent skills.
What is setup-matt-pocock-skills?
Sets up repository configuration that engineering skills depend on: where issues are tracked (GitHub, GitLab, local markdown, or other), triage label vocabulary, and domain documentation layout. Run once before using skills like `to-issues`, `triage`, `diagnose`, `tdd`, or `improve-codebase-architecture`, or if those skills lack context about your issue tracker or labels.
- Explores current repo state (git remote, existing AGENTS.md/CLAUDE.md, domain docs, issue tracker type)
- Guides you through three configuration decisions: issue tracker location, triage label mappings, and domain doc layout
- Generates an `## Agent skills` block in CLAUDE.md or AGENTS.md with summaries and references
- Creates three reference documents in `docs/agents/`: issue-tracker.md, triage-labels.md, and domain.md
- Allows review and editing of generated content before writing to disk
How to install setup-matt-pocock-skills
npx skills add https://github.com/vinvcn/mattpocock-skills-zh-cn --skill setup-matt-pocock-skills- Git repository with remote configured (or local-only setup)
- Node.js and npx to run the skill installer
- Write access to repo root and docs/ directory
How to use setup-matt-pocock-skills
- 1.Run `npx skills add https://github.com/vinvcn/mattpocock-skills-zh-cn --skill setup-matt-pocock-skills`
- 2.Answer prompts about your issue tracker location (GitHub, GitLab, local markdown, or other)
- 3.Map any custom triage label names to the five canonical roles (needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix)
- 4.Confirm your domain doc layout (single-context with root CONTEXT.md, or multi-context with CONTEXT-MAP.md)
- 5.Review the generated `## Agent skills` block and three docs/agents/*.md files before confirming
- 6.Skill writes configuration to CLAUDE.md or AGENTS.md and creates reference documents
Use cases
- Initialize a new repo for use with Matt Pocock's engineering agent skills
- Map existing triage label names to canonical roles if your repo uses different naming
- Document whether your monorepo uses single or multi-context domain documentation
- Switch from GitHub to local-markdown issue tracking for personal projects
- Record custom issue tracker workflows (Jira, Linear, etc.) for agent reference
- Engineering teams setting up agent-assisted workflows
- Maintainers of repos using Matt Pocock's skill suite
- Teams managing monorepos with multiple domain contexts
- Individual developers using local-markdown issue tracking
setup-matt-pocock-skills FAQ
The skill detects your git remote and suggests GitLab if applicable, or defaults to local-markdown issue tracking. You can also describe a custom workflow (Jira, Linear, etc.) and the skill records it as free text.
Yes. You can directly edit the three files in `docs/agents/` anytime. Re-run this skill only if you want to switch issue trackers or reconfigure from scratch.
Triage labels map incoming issues through a state machine (needs evaluation, waiting on reporter, ready for agent, ready for human, won't fix). The `triage` skill applies these labels to track issue status; you map them here to match your actual label names.
Single-context repos have one CONTEXT.md and docs/adr/ at the root. Multi-context (monorepo) repos have a CONTEXT-MAP.md pointing to separate CONTEXT.md files in each context (e.g., frontend/, backend/). This tells agents where to read domain knowledge.
No. Run it once to set up configuration. Other skills will read the generated docs/agents/ files. Only re-run if you change issue trackers or want to reconfigure.
Full instructions (SKILL.md)
Source of truth, from vinvcn/mattpocock-skills-zh-cn.
name: setup-matt-pocock-skills
description: Sets up an ## Agent skills block in AGENTS.md/CLAUDE.md and docs/agents/ so the engineering skills know this repo's issue tracker (GitHub or local markdown), triage label vocabulary, and domain doc layout. Run before first use of to-issues, to-prd, triage, diagnose, tdd, improve-codebase-architecture, or zoom-out — or if those skills appear to be missing context about the issue tracker, triage labels, or domain docs.
disable-model-invocation: true
Setup Matt Pocock's Skills
搭建 engineering skills 依赖的每仓库配置:
- Issue tracker — issues 存放在哪里(默认 GitHub;也原生支持 local markdown)
- Triage labels — 五个 canonical triage roles 使用的字符串
- Domain docs —
CONTEXT.md和 ADRs 的位置,以及读取它们的消费规则
这是 prompt-driven skill,不是确定性脚本。先探索,展示发现,和用户确认,然后再写入。
Process
1. Explore
查看当前 repo,理解起始状态。读取已有内容,不要假设:
git remote -v和.git/config— 这是 GitHub repo 吗?是哪一个?- repo 根目录的
AGENTS.md和CLAUDE.md— 是否存在?其中是否已经有## Agent skillssection? - repo 根目录的
CONTEXT.md和CONTEXT-MAP.md docs/adr/以及任何src/*/docs/adr/目录docs/agents/— 这个 skill 之前是否已经输出过内容?.scratch/— 表明已经在使用 local-markdown issue tracker 约定
2. Present findings and ask
总结现有什么、缺什么。然后带用户逐一完成三个决策:每次只展示一个 section,拿到用户回答后再进入下一个。不要一次性倾倒全部三个。
假设用户不知道这些术语是什么意思。每个 section 先用简短说明开头(它是什么、为什么这些 skills 需要它、选择不同选项会改变什么),然后展示选项和默认值。
Section A — Issue tracker.
Explainer: “issue tracker” 是这个 repo 存放 issues 的地方。
to-issues、triage、to-prd和qa等 skills 会从中读取并写入;它们需要知道是调用gh issue create、在.scratch/下写 markdown 文件,还是遵循你描述的其他工作流。请选择你实际用来跟踪这个 repo 工作的位置。
默认姿态:这些 skills 是为 GitHub 设计的。如果 git remote 指向 GitHub,就推荐 GitHub。如果 git remote 指向 GitLab(gitlab.com 或 self-hosted host),就推荐 GitLab。否则(或用户偏好),提供:
- GitHub — issues 存放在 repo 的 GitHub Issues 中(使用
ghCLI) - GitLab — issues 存放在 repo 的 GitLab Issues 中(使用
glabCLI) - Local markdown — issues 作为文件存放在本 repo 的
.scratch/<feature>/下(适合个人项目或没有 remote 的 repos) - Other(Jira、Linear 等)— 让用户用一段话描述工作流;skill 会把它记录为自由文本
Section B — Triage label vocabulary.
Explainer:
triageskill 处理 incoming issue 时,会把它移过一个 state machine:需要评估、等待 reporter、已准备好给 AFK agent 接手、需要人工实现,或 won't fix。为此,它需要应用与你实际配置相匹配的 labels(或 issue tracker 中的等价物)。如果你的 repo 已经使用不同 label 名(例如bug:triage而不是needs-triage),在这里映射它们,避免 skill 创建重复 labels。
五个 canonical roles:
needs-triage— maintainer needs to evaluateneeds-info— waiting on reporterready-for-agent— fully specified, AFK-ready (an agent can pick it up with no human context)ready-for-human— needs human implementationwontfix— will not be actioned
默认:每个 role 的字符串等于它的名称。询问用户是否想覆盖任何项。如果他们的 issue tracker 还没有现有 labels,默认值即可。
Section C — Domain docs.
Explainer: 一些 skills(
improve-codebase-architecture、diagnose、tdd)会读取CONTEXT.md来学习项目的 domain language,并读取docs/adr/来了解过去的架构决策。它们需要知道 repo 是一个 global context,还是多个 contexts(例如 frontend/backend 分离的 monorepo),这样才能看对位置。
确认布局:
- Single-context — repo 根目录一个
CONTEXT.md+docs/adr/。大多数 repos 是这样。 - Multi-context — 根目录
CONTEXT-MAP.md指向每个 context 的CONTEXT.md文件(通常是 monorepo)。
3. Confirm and edit
向用户展示草稿:
- 要添加到
CLAUDE.md/AGENTS.md中的## Agent skillsblock(选择规则见 step 4) docs/agents/issue-tracker.md、docs/agents/triage-labels.md、docs/agents/domain.md的内容
允许用户在写入前修改。
4. Write
选择要编辑的文件:
- 如果
CLAUDE.md存在,编辑它。 - 否则如果
AGENTS.md存在,编辑它。 - 如果两者都不存在,询问用户要创建哪一个;不要替用户选择。
当 CLAUDE.md 已经存在时,绝不创建 AGENTS.md(反之亦然);始终编辑已经存在的那个。
如果所选文件已经有 ## Agent skills block,就原地更新其内容,而不是追加重复 block。不要覆盖周围 section 的用户编辑。
Block:
## Agent skills
### Issue tracker
[one-line summary of where issues are tracked]. 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`.
然后使用这个 skill 文件夹中的 seed templates 作为起点,写入三个 docs files:
- 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
对于 “other” issue trackers,根据用户描述从头写 docs/agents/issue-tracker.md。
5. Done
告诉用户 setup 已完成,以及哪些 engineering skills 现在会读取这些文件。说明他们之后可以直接编辑 docs/agents/*.md;只有当他们想切换 issue trackers 或从头开始时,才需要重新运行此 skill。
Related skills
More from vinvcn/mattpocock-skills-zh-cn and the wider catalog.

setup-pre-commit
Set up Husky pre-commit hooks with lint-staged, Prettier, type checking, and tests.

tdd
Build features test-first using red-green-refactor cycles with behavior-focused tests.

teach
在这个 workspace 中教用户一个新 skill 或概念。

to-issues
Break plans into vertical-slice issues for your issue tracker using tracer-bullet methodology.

to-prd
Convert conversation context into a structured PRD and publish to your project issue tracker.

triage
Triage issues through state machines with category and state roles for bug and enhancement management.