skills/setup-skills/SKILL.md
Scaffold per-repo agent context — issue tracker, triage labels, domain doc layout — under docs/agents/ and an AGENTS.md or README section. Run once per repo before relying on to-issues, grill-me CONTEXT persistence, or cross-session portability.
npx skillsauth add roborew/opencode setup-skillsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Scaffold the configuration that grill-me, to-issues, debug-fix, and zoom-out assume:
CONTEXT.md + docs/adr/ vs multi-context CONTEXT-MAP.mdThis is a prompt-driven skill: explore the repo, present findings, confirm with the user, then persist via scribe (Task scribe with target_path + full content). Do not invent remote URLs; read git remote -v when relevant.
git remote -v — GitHub? GitLab? none?README.md, AGENTS.md, CLAUDE.md — is there already an ## Agent skills block?CONTEXT.md, CONTEXT-MAP.md, docs/adr/, docs/agents/A — Issue tracker. Default: GitHub if origin is github.com. Alternatives: GitLab, local markdown under .scratch/issues/ (describe convention in issue-tracker.md), or freeform (Jira/Linear) as prose in issue-tracker.md.
B — Triage labels. Canonical five (map to repo labels if different):
| Role | Default string |
|------|------------------|
| Maintainer must evaluate | needs-triage |
| Waiting on reporter | needs-info |
| AFK agent can pick up | ready-for-agent |
| Needs human implementation | ready-for-human |
| Won't fix | wontfix |
C — Domain layout. Single-context — one CONTEXT.md at repo root + docs/adr/. Multi-context — CONTEXT-MAP.md at root pointing to per-context CONTEXT.md and optional per-context docs/adr/.
Show drafts of:
docs/agents/issue-tracker.mddocs/agents/triage-labels.mddocs/agents/domain.md## Agent skills markdown block (for AGENTS.md or README.md)Invoke scribe three times (or one batched sequence per parent rules) with:
target_path: docs/agents/issue-tracker.mdtarget_path: docs/agents/triage-labels.mdtarget_path: docs/agents/domain.mdThen either:
target_path: AGENTS.md — create or append ## Agent skills (if creating, include a one-line title at top: # Agent notes), orREADME.md if the user prefers no new file.Never create both AGENTS.md and duplicate the block in README.md.
Tell the user setup is complete. They can edit docs/agents/*.md anytime. Re-run this skill when switching issue tracker or domain layout.
docs/agents/issue-tracker.md (GitHub)# Issue tracker
Issues for this repository are tracked on **GitHub**.
- **CLI:** `gh issue create`, `gh issue view`, `gh issue list`
- **Remote:** (fill from `git remote get-url origin`)
Non-GitHub workflows belong in this file as plain-English steps for agents.
docs/agents/triage-labels.md# Triage labels
| Role | Label on this repo |
|------|---------------------|
| Needs triage | needs-triage |
| Needs info | needs-info |
| Ready for agent | ready-for-agent |
| Ready for human | ready-for-human |
| Won't fix | wontfix |
When creating issues, use the **Label on this repo** column. If a label does not exist yet, create it or omit and note in the issue body.
docs/agents/domain.md# Domain docs for agents
## Layout
- **Mode:** single-context | multi-context
- **Glossary:** `CONTEXT.md` at repo root (or see `CONTEXT-MAP.md` for paths)
- **ADRs:** `docs/adr/` (system-wide); bounded contexts may use `<context>/docs/adr/`
## Consumer rules
1. Before naming entities in plans or issues, read the active `CONTEXT.md`.
2. Before changing architecture, scan `docs/adr/` for decisions in that area.
3. `CONTEXT.md` is glossary-only — not implementation specs.
## Agent skills block## Agent skills
### Issue tracker
Configured for this repo. See `docs/agents/issue-tracker.md`.
### Triage labels
See `docs/agents/triage-labels.md`.
### Domain docs
See `docs/agents/domain.md`.
tools
AI-powered code review using CodeRabbit CLI. Use only on explicit user request or when parent passes execution_mode orchestrate_coderabbit_gate. Do not run during orchestrated stage/issue work.
tools
Cross-repo companion to to-prd: after PRD frontmatter is filled, run bin/fanout <slug> from this spec repo to create child GitHub issues (one per ticket or legacy slice).
tools
Issue state machine — transition GitHub issue labels per docs/agents/triage-labels.md. Batch helpers via lib/triage.sh.
documentation
Synthesise a PRD from grill-me / research context, write docs/prd/<slug>.md, publish a GitHub issue with prd + state:ready-for-agent + feature:<slug>. Halt after publish — do not invoke fanout.