Setup research skills
Skill fdhidalgo/research_skills/skills/setup-research-skills
One-time per-repo setup for the research-skills suite. Writes an `## Agent skills` block to `CLAUDE.md`, seeds `docs/agents/*.md`, `CONTEXT.md`, and `docs/adr/0000-template.md`, and creates the GitHub labels (four triage-state labels + the `epic` and `autonomous-ok` kind labels). Run before first use of `grill-with-docs-research`, `to-analysis-plan`, or `to-issues-research` — or if those skills appear to be missing context about this repo's issue tracker, triage labels, or research docs.From its SKILL.md
npx -y skills add fdhidalgo/research_skills --skill setup-research-skillsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
8.8 KB, as published. Nobody here has run it
Setup Research Skills
Scaffold the per-repo configuration that the research skills assume:
- Issue tracker — GitHub Issues, accessed via the
ghCLI, with aDepends on: #Nfield in issue bodies for the task DAG. - Triage labels — two flavours: state labels (
needs-info,ready,awaiting-review,done) that move regular issues through the lightweight pipeline, and kind labels (epic,autonomous-ok) that mark categorically-different issues or carry a permanent attribute the state pipeline doesn't capture.epicis applied to plan containers created byto-analysis-plan;autonomous-okis applied byto-issues-researchto work that falls within the agent's autonomous scope. - Research docs — where this repo's
CONTEXT.md(glossary / variables / population) anddocs/adr/(methodology decisions) live, and how the other skills should read them.
This is a prompt-driven skill, not a deterministic script. Explore, present what you found, confirm with the user, then write.
Process
1. Explore
Look at the current repo to understand its starting state. Read whatever exists; don't assume:
git remote -vand.git/config— is this a GitHub repo? Which one? No remote at all?CLAUDE.mdat the repo root — does it exist? Is there already an## Agent skillssection?CONTEXT.mdat the repo root — already present? (Don't open it; we won't overwrite it.)docs/adr/— already populated? Is there already a0000-template.md?docs/agents/— does this skill's prior output already exist?
2. Present findings and ask
Summarise what's present and what's missing in two or three short lines. Then walk through the decisions one at a time — present, get the user's answer, move on. Don't dump them all at once.
Assume the user does not know what these terms mean. Each decision starts with a short explainer (what it is, why these skills need it). Then show the default and ask if they want to change it.
Decision A — Triage label vocabulary.
Explainer: The research skills use two flavours of labels. State labels move regular work issues through four states:
needs-info(grilling required),ready(methodology locked, spec written, deps closed),awaiting-review(work finished — you need to inspect), anddone. Kind labels mark categorically-different issues or carry a permanent attribute:epicis the container created byto-analysis-planto anchor a numbered analysis plan to the issue tracker (and doesn't get a state label);autonomous-okis applied byto-issues-researchto regular work issues that fall within the agent's autonomous scope (and coexists with a state label). To apply any of these the skills need GitHub labels matching strings you've actually configured. Pick the strings now; they get written todocs/agents/triage-labels.mdand (optionally) created on GitHub in step 5.
State labels (defaults):
needs-info— grilling required (methodology or spec gap)ready— methodology locked, spec written, dependencies closedawaiting-review— agent or human has finished; user needs to inspectdone— closed
Kind labels (defaults):
epic— top-level container for an analysis plan; not a work item, not in the state pipelineautonomous-ok— work falls within the agent's autonomous scope (plumbing, specified estimation, pre-specified robustness tests); orthogonal to state
Default: each role's string equals its name. Ask the user if they want to override any. If their repo already uses different label names, map them here so the skills apply the right ones instead of creating duplicates.
Skip any further "decisions": tracker is fixed (GitHub Issues), repo layout is fixed (single-context — one project per repo, one CONTEXT.md, one docs/adr/).
3. Draft and confirm
Show the user drafts of what you're about to write before writing:
- The
## Agent skillsblock to add toCLAUDE.md. - The contents of
docs/agents/issue-tracker.md,docs/agents/triage-labels.md,docs/agents/research-docs.md. - The seed content for
CONTEXT.mdanddocs/adr/0000-template.md(only if those files don't already exist).
Let them edit before writing. Keep this confirmation light — one paste of all the drafts, one yes/no.
4. Write the files
Pick the file to edit:
- If
CLAUDE.mdexists, edit it. - If it doesn't exist, create it. (Unlike Matt's
setup-matt-pocock-skills, there's noAGENTS.mdfallback — research skills standardise onCLAUDE.md.)
If an ## Agent skills block already exists in CLAUDE.md, update its contents in place rather than appending a duplicate. Don't overwrite user edits to the surrounding sections.
The block to upsert:
## Agent skills
### Issue tracker
GitHub Issues, accessed via the `gh` CLI. Issue bodies use a `Depends on: #N` field for cross-issue dependencies. See `docs/agents/issue-tracker.md`.
### Triage labels
State labels (four-state pipeline): `needs-info` / `ready` / `awaiting-review` / `done`. Kind labels: `epic` (plan containers, not in the state pipeline) and `autonomous-ok` (regular work issues within the agent's autonomous scope; coexists with a state label). See `docs/agents/triage-labels.md`.
### Research docs
Single-context: `CONTEXT.md` (glossary / variables / population) and `docs/adr/` (numbered methodology decisions; append-only once `Accepted`, `Proposed` editable) at the repo root. See `docs/agents/research-docs.md`.
If the user overrode any triage label names in step 2, reflect those strings in the Triage labels line.
Then write the three docs files using the seed templates in this skill folder as a starting point:
- issue-tracker-github.md →
docs/agents/issue-tracker.md - triage-labels.md →
docs/agents/triage-labels.md(apply user overrides to the right-hand column) - research-docs.md →
docs/agents/research-docs.md
And seed two repo-root files only if they don't already exist (never overwrite):
- context-template.md →
CONTEXT.md - adr-template.md →
docs/adr/0000-template.md
If either already exists, leave it alone and tell the user.
5. Create GitHub labels
If the repo has a GitHub remote (check git remote -v):
-
Run
gh label list --json name --jq '[.[].name]'and diff against the six confirmed label strings (four state + two kind). -
Show the user the missing labels in a short list.
-
Ask once: "Create these labels on the remote now?"
-
If yes, run
gh label create <name> --color <hex> --description "<one-liner>"for each missing label. Suggested colors and descriptions:State labels:
needs-info— colorfbca04(yellow), description "Grilling required: methodology or spec gap"ready— color0e8a16(green), description "Methodology locked, spec written, dependencies closed"awaiting-review— color1d76db(blue), description "Work finished; user needs to inspect"done— color5319e7(purple), description "Closed"
Kind labels:
epic— colorc5def5(light blue), description "Top-level container for an analysis plan; not a triage state"autonomous-ok— colorc2e0c6(light green), description "Work falls within the agent's autonomous scope (plumbing / specified estimation / pre-specified robustness tests)"
-
If any label exists already with the same name, skip it silently — don't error out and don't change its color/description without asking.
If the user overrode label names in step 2, use the overridden strings here too.
If there's no GitHub remote, skip this step and tell the user they can re-run setup once a remote is added, or create the labels manually later.
6. Done
Tell the user setup is complete. Mention briefly:
- Which skills will read which files (
grill-with-docs-researchproducesCONTEXT.mdand ADRs;to-issues-researchreads them and applies the labels documented indocs/agents/triage-labels.md). - That they can edit
docs/agents/*.mddirectly later — re-running this skill is only necessary to change the triage label vocabulary or restart from scratch. - That
CONTEXT.mdand ADRs are intentionally seeded as templates — they get filled in lazily during grilling, not up front.