This is the full developer documentation for pg-skills # pg-skills > The agent skills I use to take work from an idea to merged pull requests, and how I run them. These are the skills I use with Claude Code every day: planning features into issues, fanning issues out to subagents, getting each pull request reviewed by my review bot Brooke, and checking that the result does what it claimed. They install in Claude Code, GitHub Copilot CLI, OpenAI Codex, Cursor and Gemini CLI. github-workflows Plan, groom and split issues, implement them with subagents, answer review feedback, and close out epics. [Read more](/pg-skills/reference/plugins/github-workflows/) forgejo-workflows The same issue-to-PR workflows on Forgejo. [Read more](/pg-skills/reference/plugins/forgejo-workflows/) study-guides Write study docs for a codebase, fact-check them, and reconcile the fixes. [Read more](/pg-skills/reference/plugins/study-guides/) or [try it on a small repository](/pg-skills/tutorials/first-study-guide/). usage-analysis Work out where your Claude Code token usage goes, from local session transcripts, with the token-usage-review skill. [Read more](/pg-skills/reference/plugins/usage-analysis/) skill-authoring How to add or change a skill in this repository. [Read more](/pg-skills/reference/plugins/skill-authoring/) The names in these skills are mine: my review bot, my servers, my projects. The [glossary](/pg-skills/reference/glossary/) says what each one is and what to change so the skills fit your setup. The [dependencies page](/pg-skills/reference/dependencies/) lists what the skills need that this repository doesn’t ship, and where to get it. ## For AI agents [Section titled “For AI agents”](#for-ai-agents) To have an agent read this whole site, point it at [llms-full.txt](/pg-skills/llms-full.txt) (every page in one file), or at [llms.txt](/pg-skills/llms.txt) for an index. Every page is also served as raw markdown by adding `.md` to its address: this page is `/pg-skills/index.md`, and the page at `/pg-skills/reference/glossary/` is `/pg-skills/reference/glossary.md`. # How I work > How I take work from an idea to merged pull requests, how I choose between one issue, an epic and a burndown, and where I stay in the loop. This page describes the whole lifecycle once, in the order I do it. The other pages in this section go deeper on single decisions. The how-to guides have the steps. ## Where work starts [Section titled “Where work starts”](#where-work-starts) Usually with an idea that I brainstorm with the agent. The brainstorm produces a spec, and the spec produces a plan. Sometimes I write an `IDEA.md` first and paste it in at the start of the conversation. It holds the problem, the goal, and prior art with links. It doesn’t hold constraints or a rough design. The design comes out of the brainstorm, and the file only frames the problem and points at related work. ## How I choose a workflow [Section titled “How I choose a workflow”](#how-i-choose-a-workflow) Once there’s a spec, I pick by size and shape: * **A single change** goes from one issue to one PR, with `github-issue-to-pr`. * **Planned work in several tasks** becomes an epic, run by subagents. I use `github-milestone-plan-to-issues` to write the plan and file the issues, and `github-epic-to-merged-prs` to run them. * **Independent items in the backlog** get burned down one at a time with `github-issue-burndown`. I explain burndown [in its own section](#how-i-burn-down-a-backlog) below. This page only touches on the claims audit that [`github-issue-to-pr`](/pg-skills/reference/skills/github-issue-to-pr/) runs before it opens a PR ([why I audit](/pg-skills/explanation/why-audit-claims/), [how to run it](/pg-skills/how-to/validate-a-change/); it needs [claims-audit](/pg-skills/reference/dependencies/#claims-audit) and, for ledger mode only, [claims-mcp](/pg-skills/reference/dependencies/#claims-mcp)), the [study guides](/pg-skills/reference/plugins/study-guides/) ([why I fact-check them](/pg-skills/explanation/why-fact-check-generated-docs/), [how to](/pg-skills/how-to/fact-check-a-study-guide/), [tutorial](/pg-skills/tutorials/first-study-guide/)) and the supporting setup (the [knowledge catalog](/pg-skills/reference/dependencies/#telekin), model policy and machine rules). Those have their own pages: [the knowledge catalog](/pg-skills/explanation/knowledge-catalog/), [the model policy](/pg-skills/explanation/model-policy/) and [working on a shared machine](/pg-skills/explanation/shared-machine/). To change any of them for your own setup, see [Adapt the skills to your setup](/pg-skills/how-to/adapt-the-skills/). ## What I read and what I approve [Section titled “What I read and what I approve”](#what-i-read-and-what-i-approve) I approve the spec and not the plan. Once the spec is right I don’t read the plan. Two things catch plan problems for me: Brooke’s review of the plan PR, and the gates that every sub-issue has to pass. Accepting the sub-issue breakdown in plan mode is a step I don’t use as much anymore. When I did, I usually just trusted it. `github-milestone-plan-to-issues` files one sub-issue per plan task, so the breakdown it shows in plan mode follows the plan one to one, and there is little left to review. `github-issue-to-subissues` still runs inside it. On its own it’s for an epic that has no checked-in plan. ## My checkpoints [Section titled “My checkpoints”](#my-checkpoints) When I let the coordinator run an epic, I stay in four places: 1. accepting the spec; 2. accepting the sub-issue breakdown, if it asks; 3. real design questions that the design leaves open; 4. the final merge into `main`. Under a standing merge authorization the rest runs on its own: implementing, answering Brooke, and merging sub-issue PRs into the milestone branch. The [execute-an-epic guide](/pg-skills/how-to/execute-an-epic/) says what that authorization covers. ## When I curate instead [Section titled “When I curate instead”](#when-i-curate-instead) It depends on the project. Sometimes I use those checkpoints as listed. Other times I curate the process issue by issue with `github-issue-to-pr`: I run it on one issue, look at the PR, and only then start the next one. I curate when the project is new or risky, or when the design is still moving. The skills don’t describe this as a mode. It’s a choice I make, and you can make it too. The [tutorial](/pg-skills/tutorials/first-issue-to-merged-pr/) is one pass of it. ## How I burn down a backlog [Section titled “How I burn down a backlog”](#how-i-burn-down-a-backlog) A burndown is for independent items in the backlog. [`github-issue-burndown`](/pg-skills/reference/skills/github-issue-burndown/) takes the open issues labelled `accepted`, highest priority first, and carries each one to a merged PR. I run it during unattended stretches, and when the backlog piles up. The [how-to guide](/pg-skills/how-to/burn-down-the-backlog/) has the steps. **Why `accepted` is my gate.** In my words: “Sometimes I make an issue, sometimes an agent makes an issue, either way I read, groom if needed, then apply the label.” The issue might come from me, from an implementer or from a review bot’s follow-up. Nothing enters the queue until I have read it. If the burndown could label its own follow-ups, it would feed itself, so the skill files them without `accepted` and I decide which ones to take. I [groom](/pg-skills/how-to/groom-an-issue/) an issue only when it is too vague for an agent to implement unattended. **How it works serially.** The skill’s rule is one issue at a time, start to merge, and it carries a note that it is mine. Each PR targets the default branch, with no milestone branch, and the next worktree is cut from the default branch after the last merge. The coordinator also asks for the next issue again after every merge, so an issue I label `P0` while it runs goes next. **What I do with blocked issues.** The skill stops at a `burndown-blocked` label and a comment. After that I do this: “I usually ask claude in a separate session to work interactively with me on the issue so we can get it either fixed for resume, or pushed manually.” The how-to guide has that step under [taking a blocked issue to an interactive session](/pg-skills/how-to/burn-down-the-backlog/#take-a-blocked-issue-to-an-interactive-session). For the planning side that feeds a backlog, see [plan a feature](/pg-skills/how-to/plan-a-feature/), [split an issue](/pg-skills/how-to/split-an-issue/) and [plan a milestone](/pg-skills/how-to/plan-a-milestone/). ## How the work gets reviewed and finished [Section titled “How the work gets reviewed and finished”](#how-the-work-gets-reviewed-and-finished) Each PR gets a review. For me that’s Brooke, my review bot. I explain what she checks, and what to use if you don’t have one, in [Why a review bot](/pg-skills/explanation/review-bot/). An epic’s PRs merge into a milestone branch, one agent per issue, for reasons I give in [Why one subagent per issue](/pg-skills/explanation/one-subagent-per-issue/). When every sub-issue has merged, I run `github-epic-close-out` before the milestone goes to `main`, and again after. It checks the epic against its plan and design, because “all sub-issues are closed” isn’t evidence that the work was delivered. ## A worked example [Section titled “A worked example”](#a-worked-example) This repository’s own first milestone, [epic #3](https://github.com/PeterGrace/pg-skills/issues/3), took the epic path on this page. It had ten sub-issues, one PR each, merged into `milestone/3-workflow-site`, then the milestone PR [#25](https://github.com/PeterGrace/pg-skills/pull/25) into `main`. The [pre-merge audit](https://github.com/PeterGrace/pg-skills/issues/3#issuecomment-7063515563) and the [final audit](https://github.com/PeterGrace/pg-skills/issues/3#issuecomment-7063711827) are comments on the epic. ## Where I run it [Section titled “Where I run it”](#where-i-run-it) On one shared workstation, in Claude Code in a terminal, often on several projects at once. That is why the skills have rules about worktrees, build caches, gate locks and killing processes by PID only. # The knowledge catalog as long-term memory > Why I keep a shared, reviewed knowledge catalog beside CLAUDE.md and built-in memory, what the skills read from it and write to it, and what you can do without one. Beside the skills in this repository, I keep a knowledge catalog: notes about my systems, projects, people and processes, in Open Knowledge Format, served to agents over MCP by [Telekin](/pg-skills/reference/dependencies/#telekin). I use it as my agents’ long-term memory. This page says why, and what the skills do with it. You can’t read my catalog, and the skills work around that. ## Why I don’t stop at CLAUDE.md and built-in memory [Section titled “Why I don’t stop at CLAUDE.md and built-in memory”](#why-i-dont-stop-at-claudemd-and-built-in-memory) The catalog gives me four things those two don’t. In my words: “It enriches essentially every interaction I have with an LLM these days.” * **Shared across projects.** Every session and project reads the same place. * **Reviewed and versioned.** Writes go through changesets, and there is history and revert. I can audit what an agent wrote and undo it. * **Lessons compound.** A failure in one project becomes a rule that later sessions see, in every project. * **Works beyond Claude Code.** Any MCP harness can read and write it, even one without a filesystem. ## What the skills do with it [Section titled “What the skills do with it”](#what-the-skills-do-with-it) Four skills in `github-workflows` point at the catalog. Each one lists it as optional in `catalog.yaml`. * [`github-milestone-plan-to-issues`](/pg-skills/reference/skills/github-milestone-plan-to-issues/) and [`github-epic-to-merged-prs`](/pg-skills/reference/skills/github-epic-to-merged-prs/) tell the session to read the catalog’s write-up of the subagent PR workflow, and the project’s own concept, before starting. The epic skill takes the reviewer, gates and quirks of a project from the project’s concept, and it records the merge authorization you gave there. * [`github-issue-burndown`](/pg-skills/reference/skills/github-issue-burndown/) has the same background reading. It notes the run in the project’s concept, and keeps a security weakness found in a public repository out of the public issue tracker and in the catalog. * [`github-epic-close-out`](/pg-skills/reference/skills/github-epic-close-out/) records the outcome as one dated line in the project’s concept, with a log entry. At the end of an epic the coordinator records what it learned: flakes, root causes, decisions and the reviewer’s quirks, and it puts anything left unfixed in the catalog’s list of things to fix. The coordinator skills batch catalog updates into one changeset per checkpoint, not one per PR. ## What this looks like on a real epic [Section titled “What this looks like on a real epic”](#what-this-looks-like-on-a-real-epic) Brooke, my review bot, has habits that cost time until someone writes them down. She skips a branch that is behind its base. She doesn’t re-review a head that hasn’t changed. I had learned both on earlier projects, and both were already in the catalog when epic [#3](https://github.com/PeterGrace/pg-skills/issues/3) ran. The skills now carry the same two rules in their own text: the epic skill says to read the bot’s issue comments when no review arrives, and the burndown skill treats an explain-only round on an unchanged head as a disagreement, because she can’t re-review it. ## Telekin and okf_mcp [Section titled “Telekin and okf_mcp”](#telekin-and-okf_mcp) Telekin serves catalogs like mine over MCP. It is built on [hypotheosis/okf_mcp](https://github.com/hypotheosis/okf_mcp), an open-source server you can host yourself. The [dependencies page entry](/pg-skills/reference/dependencies/#telekin) says what each is. The catalog the skills point to is mine and private. The skills name some of its concepts, such as a workflow write-up, so you will see paths in their text that you can’t open. ## If you don’t have one [Section titled “If you don’t have one”](#if-you-dont-have-one) Skip those pointers, or point them at your own notes. The [glossary entry](/pg-skills/reference/glossary/#the-knowledge-catalog-telekin-okf) says the same. [Adapt the skills to your setup](/pg-skills/how-to/adapt-the-skills/#decide-what-to-do-about-the-knowledge-catalog) has the steps. ## What the skills here need [Section titled “What the skills here need”](#what-the-skills-here-need) What each skill needs is on the [dependencies page](/pg-skills/reference/dependencies/). # The model policy: Sonnet first, and when work escalates to Opus > Why implementers start on Sonnet, the three recorded triggers that move a PR to Opus, and why the auditor runs on Sonnet too. Every pull request starts with a Sonnet implementer. Opus takes over a pull request only when a recorded trigger fires. This page gives the rule, my reasons, and the numbers the skills record. For how to change the policy in your own setup, see [Adapt the skills to your setup](/pg-skills/how-to/adapt-the-skills/#choose-your-models). ## The rule [Section titled “The rule”](#the-rule) The [`issue-implementer`](/pg-skills/reference/agents/issue-implementer/) agent has `model: sonnet` in its definition. The coordinator skills, [`github-epic-to-merged-prs`](/pg-skills/reference/skills/github-epic-to-merged-prs/) and [`github-issue-burndown`](/pg-skills/reference/skills/github-issue-burndown/), tell the session to start implementers that way. The epic skill says “Always start on Sonnet: leave `model` off the call.” Opus is for taking over a PR, never a first attempt, “however subtle the sub-issue looks.” Opus takes over a PR from its Sonnet implementer only on one of three triggers: * **Security.** The reviewer marks a security problem as blocking and sinks the score. For Brooke, the `brooke-security.sh` script prints `ESCALATE` when the score is under 80 and her Security section has a `**Blocking:**` item. * **Review rounds.** Two Sonnet address rounds are done, and the review of the new head still has blocking or inline comments. * **CI.** The agent has failed twice to get CI or the gates green on its own changes, not on a known flake. An agent that reports a sub-issue as ambiguous, or as conflicting with the plan, is not a trigger. A different model won’t settle that, so it goes to me. To escalate, the coordinator stops the Sonnet agent’s loops and starts a new `issue-implementer` with `model: "opus"` on the same worktree, branch and PR. It builds on the existing work and answers every later round. The coordinator records `model: opus (: )` in its state file and its report. The skill says “A model change without a recorded trigger is a mistake.” If Opus has done two address rounds and the review still blocks, the coordinator stops on that PR and reports it to me. In the burndown skill that state is called Stuck. Planning, design and coordination stay on the model of the session I’m in. The agent’s own description says it is “Not for planning, design or research, which stay on the parent’s model.” ## Why I set it up this way [Section titled “Why I set it up this way”](#why-i-set-it-up-this-way) I have two reasons. **The usage limit.** Opus implementers were most of my weekly spend. I set the policy to keep within my usage limits. **Judgment at the top.** Planning, design and coordination are where the stronger model pays off. The coordinator skill adds a point about implementers: “The plan and the gates carry most of the judgment.” I’m not claiming more than that. I don’t say Sonnet is always enough, and I don’t say escalation is rare. Those aren’t my reasons. ## The numbers the skills record [Section titled “The numbers the skills record”](#the-numbers-the-skills-record) Both coordinator skills record the same measurement. In the week to 2026-11-21, 58 of 117 implementers ran on Opus, at about 4× the cost of a Sonnet implementer, and most had no stated reason. The burndown skill states the three triggers right after this figure, and requires a written reason for a model change. The coordinator’s own context is a second cost. In the same week, coordinator sessions ran at a median of 430k context tokens, peaked near 900k and took 400-900 turns per epic, and the coordinator alone was 20-50% of a run’s tokens. A burndown session that ran 2.5 days had a median of 290k and a peak of 610k. The coordinator skills have a section on keeping context small for this reason. ## The auditor runs on Sonnet too [Section titled “The auditor runs on Sonnet too”](#the-auditor-runs-on-sonnet-too) `github-issue-to-pr` asks for the claims auditor to be a fresh subagent on a different model from the implementer. The agent definition overrides that. It tells the implementer to dispatch the auditor on Sonnet, “the same model as you, even though the skill asks for a different model: an Opus auditor costs too many tokens (pgrace, 2026-11-15).” The auditor is “still a fresh subagent that gets none of your reasoning,” and the agent is told never to run it on Opus. On the auditor’s model, the agent definition overrides the skill. It overrides it on other points too, such as the gates; see the [agent reference](/pg-skills/reference/agents/issue-implementer/). The [glossary](/pg-skills/reference/glossary/#sonnet-first-opus-to-escalate) has the policy’s one-paragraph version. For why the audit exists at all, see [Why I audit claims](/pg-skills/explanation/why-audit-claims/). ## An observation, not a reason [Section titled “An observation, not a reason”](#an-observation-not-a-reason) Epic [#3](https://github.com/PeterGrace/pg-skills/issues/3), this site’s first milestone, escalated zero times. Every commit on its ten PRs ([#13](https://github.com/PeterGrace/pg-skills/pull/13), [#14](https://github.com/PeterGrace/pg-skills/pull/14), [#15](https://github.com/PeterGrace/pg-skills/pull/15), [#16](https://github.com/PeterGrace/pg-skills/pull/16), [#18](https://github.com/PeterGrace/pg-skills/pull/18), [#21](https://github.com/PeterGrace/pg-skills/pull/21), [#22](https://github.com/PeterGrace/pg-skills/pull/22), [#23](https://github.com/PeterGrace/pg-skills/pull/23), [#24](https://github.com/PeterGrace/pg-skills/pull/24) and [#27](https://github.com/PeterGrace/pg-skills/pull/27)) carries a `Co-Authored-By: Claude Sonnet` trailer, except two merges that caught a branch up, and none carries an Opus one. I record that as what happened on one epic. It isn’t why I chose the policy, and one epic is too few to say how often a trigger fires. ## Checking the policy [Section titled “Checking the policy”](#checking-the-policy) The [`token-usage-review`](/pg-skills/reference/skills/token-usage-review/) skill, in the [`usage-analysis`](/pg-skills/reference/plugins/usage-analysis/) plugin, reads the local Claude Code transcripts and reports where the tokens went: by model, token type, session and subagent type, plus Opus overrides with no stated reason. The “58 of 117” figure above is the kind of finding it produces. It suggests re-running the review about a week after a change and comparing the Opus share of subagents, the coordinator’s median context and the unexplained Opus overrides. It needs [Python 3](/pg-skills/reference/dependencies/#python) and reads only the sessions on the machine it runs on. ## What the skills need [Section titled “What the skills need”](#what-the-skills-need) What each skill needs is on the [dependencies page](/pg-skills/reference/dependencies/). # Why one subagent per issue > Why I give each sub-issue its own agent and worktree, and merge the pull requests into a milestone branch instead of main. When I run an epic, each sub-issue gets its own background agent, its own git worktree and its own PR. The PRs merge into a milestone integration branch (`milestone/-`), and `main` gets the whole milestone in one final merge. The coordinator, which is my main session, doesn’t write the feature code. It picks what runs next, writes each agent’s brief, watches for reviews and CI, and merges. This page is about why. The steps are in [Execute an epic with subagents](/pg-skills/how-to/execute-an-epic/). ## A worktree and an agent per issue [Section titled “A worktree and an agent per issue”](#a-worktree-and-an-agent-per-issue) A worktree per agent is table stakes, and it is first among equals. The rest of the shared-machine rules are equally important, and each one came from an incident: * **Logs stay in the agent’s own worktree.** When agents shared a log directory, they reported each other’s test counts. * **Processes are killed by PID only.** An agent’s `pkill -f ` once killed other agents’ test servers. A wait loop built on `pgrep -f` matched every session’s runs, so it could wait forever. * **Build caches go when the worktree goes.** On one of my Rust epics, each agent worktree left 30 to 47 GiB of build output behind, and the disk filled twice in a day. The coordinator runs `cargo clean` before it removes a worktree. Two issues that edit the same files don’t run in parallel. The plan’s file lists tell the coordinator which ones those are, and it serializes them. ## One agent keeps its context for the review [Section titled “One agent keeps its context for the review”](#one-agent-keeps-its-context-for-the-review) The agent that wrote a PR answers its review. It already holds the context: what the issue asked, what it decided, what it ran. A fresh agent would have to rebuild that. The one exception is an escalation to Opus, and then the new agent takes over every later round. The coordinator, by contrast, keeps its own context small on purpose. Every turn re-reads the whole context, so a long run gets expensive. The skill keeps the run’s state in a file outside the tree so that a compacted or fresh session can carry on. ## Why a milestone branch and not main [Section titled “Why a milestone branch and not main”](#why-a-milestone-branch-and-not-main) I have three reasons: * **`main` stays shippable.** Half a milestone never reaches `main` or a release, and I can still ship a hotfix while the milestone is open. * **One final review.** Brooke and the close-out audit see the whole milestone at once, which catches problems that span PRs. On [PR #25](https://github.com/PeterGrace/pg-skills/pull/25) she found one that every sub-issue review had missed: the release skip could treat a large mixed change as docs-only. It was fixed before the merge in [#27](https://github.com/PeterGrace/pg-skills/pull/27), the PR for an extra sub-issue, #26. * **It’s easy to abandon.** If the milestone goes wrong, `main` is untouched. The cost is bookkeeping. A closing keyword in a PR into a non-default branch doesn’t fire, so the coordinator closes each sub-issue itself after the merge. When `main` moves, the coordinator brings it into the milestone branch through a sync PR so the final merge stays small. ## Sonnet implements [Section titled “Sonnet implements”](#sonnet-implements) The implementers run on Sonnet, and Opus only takes over on a recorded trigger. I do this because of the usage limit, and to keep judgment at the top: planning, design and coordination are where the stronger model pays off. Opus implementers had become most of my weekly spend. In epic #3, no PR needed to escalate. That is an observation about one small epic, not my reason. ## What it costs [Section titled “What it costs”](#what-it-costs) Machine load is the other thing that goes wrong. Too many agents, gates or build caches at once will overload a workstation. The coordinator starts issues in parallel only when they touch different files, and heavy gates run through a lock where the project has one. # Why a review bot, and what Brooke checks > What I rely on a review bot for, with examples from this repository, and what to use if you don't have one. Every PR in my workflow gets a review from Brooke (`brooke-reviews[bot]`), my review bot. I approve the spec and not the plan, and the agents write the code, so the review is where a second reader looks at what was built. This page says what I rely on her for and what a copier can use instead. ## What you can use instead [Section titled “What you can use instead”](#what-you-can-use-instead) Brooke isn’t a public product, so you can’t install her. Use any review bot, or a human reviewer ([which skills need one](/pg-skills/reference/dependencies/#review-bot)). What matters is the list of things below that a reviewer checks. The skills name Brooke’s login and her re-trigger command in places; the [glossary](/pg-skills/reference/glossary/) says which names are mine. ## What I rely on her for [Section titled “What I rely on her for”](#what-i-rely-on-her-for) I rely on all four of these. **Real bugs.** Correctness and edge cases the agent missed. On [PR #18](https://github.com/PeterGrace/pg-skills/pull/18), the `reference` command, her first review scored it 78 and found that an agent’s frontmatter name such as `../../README` could reach the file writer and overwrite a file outside the output directory. The implementer fixed it with a name check and a path containment check. Her second review found a different problem: a failed write left the output without its ownership marker, so every retry refused to replace it. The fix writes the marker before any page. **Plan fidelity.** Does the PR do what the plan and the design said? Her reviews of code PRs have a plan-fidelity section that reads the intent from the plan or design, and rates coverage, fidelity, scope discipline and plan integrity. **Honest PR descriptions.** She checks the description’s claims against the diff. On [PR #16](https://github.com/PeterGrace/pg-skills/pull/16) the description said the change touched two files and needed no plan changes. The diff touched three, and corrected the plan. She asked for the description to be fixed, and it was. On [PR #29](https://github.com/PeterGrace/pg-skills/pull/29) the description said only `site/` and `README.md` changed, but the PR also changed `justfile`. Neither was a code defect. **Security.** A blocking security finding with a low score is a trigger for escalating a PR from Sonnet to Opus. ## Read three real reviews [Section titled “Read three real reviews”](#read-three-real-reviews) All three are on PRs in this repository, so you can see what a review looks like: * [Review on PR #18, score 78](https://github.com/PeterGrace/pg-skills/pull/18#pullrequestreview-6005424404). A review with a real bug. It has a quality score, an “Alignment with description” paragraph, then Plan fidelity, Tests, Security and Claims sections. The Security section is where the path-traversal finding sits, with an inline comment on `tools/skills.py` at the line. A second inline comment, on `tests/test_skills_tool.py`, says the new handler’s exception branch is never reached, because the test returns from the earlier validation gate. Its Tests section asks for a regression case. * [Re-review of PR #25, score 94](https://github.com/PeterGrace/pg-skills/pull/25#pullrequestreview-6005651304). The review after the fix, on the milestone PR. Compare it with her [first review of the same PR, score 86](https://github.com/PeterGrace/pg-skills/pull/25#pullrequestreview-6005610057), which has the SIGPIPE finding as an inline comment on `ci.yml`. * [Review on PR #24, score 100](https://github.com/PeterGrace/pg-skills/pull/24#pullrequestreview-6005575083). A clean one. The change only ticked checkboxes in the plan. The review has no inline comments, says “Looks fine”, and has a Claims table in which what she couldn’t check, such as test runs, is marked unverifiable. The Claims table in each review quotes a statement from the PR description and gives a verdict with evidence. That table is what catches an overclaiming description. The PR body has its own Claims table too, from [the audit before the PR opens](/pg-skills/explanation/why-audit-claims/). ## The milestone PR gets its own review [Section titled “The milestone PR gets its own review”](#the-milestone-pr-gets-its-own-review) The sub-issue reviews each see a slice. When an epic is done, the milestone PR into `main` shows the whole thing. On [PR #25](https://github.com/PeterGrace/pg-skills/pull/25) Brooke found the bug that every earlier review had missed. The release step used `grep -q` in a pipeline under `pipefail`, so a large mixed change could be misread as docs-only and skip the release. She scored it 86. It was fixed in [#27](https://github.com/PeterGrace/pg-skills/pull/27), and her re-review scored 94. ## The close-out audit is a second check [Section titled “The close-out audit is a second check”](#the-close-out-audit-is-a-second-check) Brooke reviews PRs. `github-epic-close-out` reviews the epic. It checks that each sub-issue was closed by a merged PR, that every review comment got a reply, that each plan task’s files and tests exist, and that the design’s in-scope items map to code. It finds gaps. It has caught real misses after every PR had passed review, such as divergences nobody had documented and acceptance criteria with no test. For the audit of epic #3, see the [pre-merge](https://github.com/PeterGrace/pg-skills/issues/3#issuecomment-7063515563) and [final](https://github.com/PeterGrace/pg-skills/issues/3#issuecomment-7063711827) comments. ## Quirks worth knowing [Section titled “Quirks worth knowing”](#quirks-worth-knowing) Bots skip things. A reviewer may skip a stale branch, or miss a request, and the PR sits. The skills handle this by reading the bot’s own comments first. Brooke declines to review a head she has already reviewed: on PR #29 she said that re-reviewing identical code would only burn tokens. So Brooke only reviews again after a new commit. # Working on a shared machine: worktrees, caches, gate locks > Why the skills give each agent its own worktree, bound and serialize heavy gates, watch the disk, and leave other sessions' processes and caches alone. I run Claude Code in a terminal on one shared workstation, often for several projects at once. Agents, my own sessions and other projects’ builds all share one CPU, one disk and one process table. The skills have a set of rules for that, and I trace each rule after the worktree one to an incident. This page explains the rules. They sit in the [`issue-implementer`](/pg-skills/reference/agents/issue-implementer/) agent’s standing rules and in the coordinator skills. ## The worktree per agent comes first [Section titled “The worktree per agent comes first”](#the-worktree-per-agent-comes-first) If you copy one rule first, make it the worktree per agent. In my words: “Worktree per agent is table stakes but the rest of these are also incredibly important, they’re equally important but the worktree per agent is first among equals for sure.” So read the rest of this page as equally important. Each sub-issue gets its own agent, its own git worktree and its own PR. The coordinator skills create the worktree with `git worktree add` from the base branch, and the epic skill says: “Never reuse another agent’s worktree.” The implementer agent works only in the worktree its brief names, on the branch it names, and never `cd`s into the main checkout or another worktree. Its logs go inside that worktree, for example under `target/i-logs/`, because agents that shared a log directory reported each other’s test counts. Even the git stash is shared, so the agent never uses a bare `git stash`: the stash stack is shared with other sessions. ## Bound and serialize the gates [Section titled “Bound and serialize the gates”](#bound-and-serialize-the-gates) A project’s gates are its format, lint and test commands, and they must be green before an agent pushes. On a shared machine they compete for the same CPU and disk. The agent definition handles this three ways: * If the project has a shared gates lock, every heavy gate, long test run, image build and kind cluster runs through it. For autobots, one of my repositories, that is `flock -o nice -n 19 ionice -c3 `: the lock serializes the run, and `nice` and `ionice` lower its CPU and I/O priority. * A fresh worktree’s first build is cold, so any cargo build the agent runs itself gets `--jobs 4`. * The agent doesn’t run the kind smoke test locally, because it takes about 40 minutes. The one exception is an issue about the Helm chart, the images or cluster behaviour, and then only when the brief asks for it. CI runs it nightly (pgrace, 2026-11-15). The coordinators add their own limits. In the epic skill, parallel issues start only when they touch different files, and the plan’s Files lists say which. The burndown skill goes further and works one issue at a time. The epic skill’s brief also says “Don’t add CPU load.” One mistake in the epic skill’s table comes from waiting badly. Waiting with `until ! pgrep -f "just lint"` “matches every session’s runs, so it can wait forever”. The fix is to wait for your own job’s exit or its output file. ## Mind the disk [Section titled “Mind the disk”](#mind-the-disk) Build caches are per worktree. My cargo config sets `build-dir` so each checkout builds in its own directory outside it, and `git worktree remove` doesn’t delete that directory. The skills record the size: 30-47 GiB per agent worktree on one of my repositories’ epics, where “the disk filled twice in a day”, and 30-60 GiB in the burndown skill and the glossary. So before a worktree is removed, its build output is deleted. If the repository has its own script for that, the skills use it. Otherwise, in a Rust repository, they run `cargo clean` in the worktree first, bounded with `timeout 10m`, and then `git worktree remove`. The implementer doesn’t do this itself, since its definition says “Don’t run `cargo clean` and don’t remove the worktree; the parent does that after merge.” The coordinator doesn’t clean while the agent or anything else is still running in that worktree. The [glossary entry](/pg-skills/reference/glossary/#cargo-build-dir-and-cargo-clean-before-removing-a-worktree) says this is harmless if you build into `target/`. The same care covers containers. The agent leaves no container or kind cluster running, and removes images it built that aren’t needed. ## Don’t touch other sessions’ processes or caches [Section titled “Don’t touch other sessions’ processes or caches”](#dont-touch-other-sessions-processes-or-caches) These rules protect other sessions’ work: * **Kill by PID only.** “Kill only PIDs you started; never kill by pattern.” The skills’ mistakes table records why: an agent’s `pkill -f ` killed other agents’ test servers. * **No machine-wide prunes.** The agent removes only the image and container IDs it created, and never runs `docker builder prune`, `docker system prune`, `docker image prune` or `docker volume prune`. The build cache and images are shared with every other session, and the agent definition records that “a builder prune once wiped 182 GB of shared cache.” * **Don’t print process command lines.** The burndown skill’s brief says never to print full command lines (`ps -f`, `pgrep -a`, `/proc/*/cmdline`), because on my machine a container tool’s exec arguments carry secrets, and printing them puts them in the transcript. It says to use `ps -o pid,etime,comm` instead. ## Where this is written down [Section titled “Where this is written down”](#where-this-is-written-down) * The standing rules for implementers: [`issue-implementer`](/pg-skills/reference/agents/issue-implementer/). * Cleanup and the brief’s shared-machine section: [`github-epic-to-merged-prs`](/pg-skills/reference/skills/github-epic-to-merged-prs/) and [`github-issue-burndown`](/pg-skills/reference/skills/github-issue-burndown/). * The worktree cleanup note for a single issue: [`github-issue-to-pr`](/pg-skills/reference/skills/github-issue-to-pr/). What each skill needs is on the [dependencies page](/pg-skills/reference/dependencies/). The glossary’s entries on [okf_mcp and autobots](/pg-skills/reference/glossary/#okf_mcp-and-autobots) say what to do with my repositories’ quirks that appear in the text. For how to adapt these rules to your machine, see [Adapt the skills to your setup](/pg-skills/how-to/adapt-the-skills/). # Why audit claims: what gates miss > Why I have a fresh subagent audit every change's claims before the pull request opens, what that finds that passing gates don't, and when I keep a committed ledger. My gates are `just fmt`, a linter and the tests. When they pass, I know the code builds and its tests pass. I don’t know that it does what the issue asked, or that the PR description is true. This page is about the check I run for those two questions, and why I run it the way I do. ## What gates miss [Section titled “What gates miss”](#what-gates-miss) I rely on the claims audit for three things that a green gate run doesn’t tell me. **The change didn’t do what was asked.** The code passes, but part of the issue or the plan was quietly dropped. Nothing in a build or a test run notices a requirement that nobody wrote a test for. **The PR body overclaims.** The description says things the diff doesn’t support, such as a file list that is wrong. Brooke has caught that kind of thing in reviews too. **Self-grading bias.** The implementer can’t fairly grade its own work. So the audit is done by a fresh subagent that gets none of the implementer’s reasoning. The skill asks for a different model. My `issue-implementer` agent overrides that and runs the auditor on Sonnet, usually its own model, to save tokens, so in my runs the independence usually comes from a fresh context, not a different model. Only an Opus takeover gets an auditor on another model. The skill adds a fourth thing: when the project has a ledger, the audit also checks that the change didn’t break anything the ledger records as working. That isn’t my main reason for running it, but it’s part of what Step 7a asks for. ## How it works, in short [Section titled “How it works, in short”](#how-it-works-in-short) [`github-issue-to-pr`](/pg-skills/reference/skills/github-issue-to-pr/) runs the audit in its Step 7a, after the gates and the commit and before the push. It needs the [claims-audit](/pg-skills/reference/dependencies/#claims-audit) skill. The [how-to guide](/pg-skills/how-to/validate-a-change/) has the steps. The implementer drafts the PR body first, because the body’s statements of fact are claims the audit checks. Then it dispatches the auditor. The auditor gets the issue, the draft body, the repository and the commit range. It doesn’t get the implementer’s plan, reasoning or summary. The `claims-audit` skill’s core rule is: “a verdict is only as good as the evidence you gathered *yourself*”, and an account from the author who wants the PR to open is the wrong evidence. For each claim the auditor records a verdict: * **supported**, **refuted** or **not_enough_info**. A claim that is refuted and ours is one from the issue or the PR body, or an existing ledger claim this diff broke, and the implementer has to fix it before the PR opens. Then the auditor looks again. A claim that is refuted in code the PR didn’t touch is listed as pre-existing, and it doesn’t block. `not_enough_info` never blocks, and the PR body says what would decide it. ## What burned me [Section titled “What burned me”](#what-burned-me) I tell this once, here, and the other pages that need it link to this one. My words: “I had a software project that confidently claimed a feature was implemented and it was not implemented, and was only found when I used claims-mcp/claims-audit to find it.” This is the origin story for two of my checking loops: auditing claims, which this page is about, and [fact-checking generated docs](/pg-skills/explanation/why-fact-check-generated-docs/). ## Ledger mode or table-only mode [Section titled “Ledger mode or table-only mode”](#ledger-mode-or-table-only-mode) The audit runs in one of two modes. The mode depends on whether the project has a `claims.json` tracked in git. * **Ledger mode.** `claims.json` is committed. The auditor records claims, evidence and verdicts in it through [claims-mcp](/pg-skills/reference/dependencies/#claims-mcp), and the implementer commits it on the branch. The ledger’s anchors pin the branch’s commits, so the PR should be merged with a merge commit, not squashed or rebased. * **Table-only mode.** There is no ledger. The auditor makes no claims-mcp calls at all. The results go into the PR body as a table, without claim ids. The PR body says that the findings were not recorded. For pull requests, claims-mcp is optional, and you need it only for ledger mode. I keep a committed ledger for what I described as “Generally long-lived, spec-driven, or correctness-matters projects”. Everything else stays in table-only mode. My advice, in my words: “Sometimes I delay the committed ledger until a later date, which spawns a raft of issues. It’s better to start the ledger very early if you think you’re going to need it.” Adding a ledger later means writing claims for everything that’s already built, and checking each one turns up a batch of issues at once. If you think the project may need one, start it at the beginning. For a real committed ledger, look at [`claims.json` in claims-mcp’s own repository](https://github.com/hypotheosis/claims-mcp/blob/main/claims.json). It keeps retired claims and the verdict history as well as the current verdicts. Since v0.2.1, each release also attaches the audit report as PDFs, `audit.pdf` and `audit-full.pdf`, to its [GitHub release](https://github.com/hypotheosis/claims-mcp/releases/tag/v0.2.5). claims-mcp’s own docs have a [browser viewer](https://hypotheosis.github.io/claims-mcp/viewer/) for any public repository’s ledger. ## What I do with the results [Section titled “What I do with the results”](#what-i-do-with-the-results) I leave it to Brooke, my review bot. The audit’s table goes in the PR body, and Brooke checks the body’s claims against the diff. I rarely read the table myself. So before I look at a description it has had two independent checks: the auditor’s, and hers. See [Why a review bot](/pg-skills/explanation/review-bot/#what-i-rely-on-her-for) for what she checks. If you don’t have a bot, a human reviewer reading the table against the diff does the same job. ## What it looks like [Section titled “What it looks like”](#what-it-looks-like) Both of these are PRs in this repository, in table-only mode. * [PR #34](https://github.com/PeterGrace/pg-skills/pull/34) ended at 28 supported claims, none refuted and one not_enough_info, which was then confirmed. The refuted ones along the way included a link to a dependencies anchor that didn’t exist and a count of new tests that was off: the description said 23 and the diff added 26. * [PR #36](https://github.com/PeterGrace/pg-skills/pull/36) is the one I’d show someone to explain what the audit catches. The audit refuted 7 claims on its first pass, all statements on the new pages about what a skill does. One said that `next-issue.sh --list` skips only the open-PR check, when it also skips the branch check. Another said that removing the `burndown-blocked` label always resumes an issue, when a left-over branch or open PR still makes the script skip it. All 7 were fixed before the PR opened. The audit also had 6 not_enough_info findings, and about 110 supported claims. Gates passed on both PRs. They check the code, and these were statements about it. ## Where else I use it [Section titled “Where else I use it”](#where-else-i-use-it) Outside pull requests, I use `claims-audit` on two things: * **Generated docs.** Study guides, and the pages of this site. Study guides also have a write, fact-check and reconcile loop of their own, which [Why I fact-check generated docs](/pg-skills/explanation/why-fact-check-generated-docs/) describes. * **Agent outputs.** Checking that a long agent task did everything its brief asked. The [how-to for auditing outside a PR](/pg-skills/how-to/audit-an-artifact/) has the steps. I don’t use it for milestone audits. [`github-epic-close-out`](/pg-skills/reference/skills/github-epic-close-out/) covers those. ## What it doesn’t do [Section titled “What it doesn’t do”](#what-it-doesnt-do) The audit is a model reading evidence, so it can be wrong. claims-mcp doesn’t run your tests or code (it records evidence and runs read-only git queries to pin anchors), so the auditor has to run the checks. The skill calls `not_enough_info` an honest outcome, to use instead of guessing. The audit is also one check among several: gates, the audit, the reviewer and, for an epic, the [close-out audit](/pg-skills/how-to/close-out-an-epic/). # Why I fact-check generated docs > Why I don't trust the first draft of a generated study guide, how the write, check and reconcile loop works, why the check runs on a different model, and how I finish a guide that still has open findings. When an agent writes documentation for a codebase, the result reads well whether or not it is right. This page is about why I treat the first draft of a generated study guide as untrusted, and what I do about it. The steps are in [Fact-check and reconcile a study guide](/pg-skills/how-to/fact-check-a-study-guide/), and the [tutorial](/pg-skills/tutorials/first-study-guide/) runs the whole loop on a small repository. ## What I use study guides for [Section titled “What I use study guides for”](#what-i-use-study-guides-for) Three things: learning a codebase, being able to talk about it knowledgeably, and onboarding other people. The [`codebase-study-guide`](/pg-skills/reference/skills/codebase-study-guide/) skill is written for a mixed audience, detailed enough for engineers and readable by support and ops staff who need to reason about the system without living in the code. The skill also produces flashcards for Anki. They are something the skill writes, not what I use the guides for. ## The loop: write, check, reconcile [Section titled “The loop: write, check, reconcile”](#the-loop-write-check-reconcile) There are three skills, and each one hands its output to the next. 1. **Write.** `codebase-study-guide` reads the repository and writes the guide into `docs/study-guide/`: an architecture overview, a deep dive per module, a glossary and the flashcards, with an index that gathers every open question in one checklist. 2. **Check.** [`study-guide-fact-check`](/pg-skills/reference/skills/study-guide-fact-check/) reads the guide as untrusted, tries to disprove each claim about what the code does, and writes its findings under `docs/study-guide/fact-check/`. It proposes corrections and doesn’t apply them. The skill says why: silently editing the docs “would erase the audit trail”. 3. **Reconcile.** [`study-guide-reconcile`](/pg-skills/reference/skills/study-guide-reconcile/) takes those findings and decides what to do with each one. It applies the corrections the code supports, reframes the overstated claims, defers what the code can’t settle and rejects findings that turn out to be wrong. It writes `docs/study-guide/fact-check/RECONCILIATION.md` so every change is on record. The code is the arbiter in the last step, not the fact-check report. The reconcile skill points out that the report “is still a model and still fallible”, so it re-checks each finding it plans to act on against the source before it edits anything. Sometimes the original guide was right and the finding was wrong, and the skill treats that as a valid outcome. ## Why not trust the first draft [Section titled “Why not trust the first draft”](#why-not-trust-the-first-draft) I have four reasons, and I hold all of them. **Hallucinations.** Generated docs confidently describe code that doesn’t exist or works differently from what they say. The writing skill is built around this: its core principle is to stay grounded, and it says a plausible-but-wrong doc is worse than no doc, because people trust it. That rule makes the first draft better. It doesn’t make the draft checked. **Circular reasoning.** A guide can cite itself, or another doc, instead of the code. It looks right and has citations, but nothing in it is grounded. The fact-check skill treats a citation as “a starting point to investigate, not evidence the claim is true”, and opens the cited file to see. **Overconfidence.** Guesses get stated as facts, especially about why the code was built a certain way. The code can’t usually tell you that. The fact-check flags such a claim as inference-as-fact, and reconcile reframes it: it rewrites the claim as a hedged inference or moves it under the open questions, without deleting it. **I’ve been burned.** Unchecked output has cost me before. I tell that story once, in [Why audit claims](/pg-skills/explanation/why-audit-claims/#what-burned-me), and it is the origin of this loop as well as of the claims audit. ## Why the check runs on a different model [Section titled “Why the check runs on a different model”](#why-the-check-runs-on-a-different-model) The fact-check skill is direct about it. Its value, it says, “comes almost entirely” from running on a different model than the one that wrote the docs, because “a model checking its own output shares its own blind spots and tends to rationalize rather than catch its mistakes”. A fresh adversary re-derives each fact from the code. The skill doesn’t name a model for the writer or the checker. What it asks for is that they differ. The reconcile skill assumes the same thing: it describes the fact-check as run “(ideally) on a different model”. In practice I write with Opus and check with Sonnet. I run the check in a new Claude Code window and switch it to Sonnet with `/model`. The new window matters too: a check run in the writer’s own session would still have the writing conversation in context. This is a different reason from the one in my PR audits. There, my `issue-implementer` agent runs the auditor on Sonnet, usually the same model as the implementer, to save tokens, and the independence usually comes from a fresh context ([Why audit claims](/pg-skills/explanation/why-audit-claims/#what-gates-miss) has the detail). For study guides, the skill’s argument is about shared blind spots. ## How I finish a guide that has open findings [Section titled “How I finish a guide that has open findings”](#how-i-finish-a-guide-that-has-open-findings) It depends on the situation. I either use the guide as it is, with the deferred items still flagged, or I resolve them, now or later. Using it as it is works because reconcile keeps or sharpens the open-question flag on a deferred finding, and records in `RECONCILIATION.md` why it was deferred and how it was left in the guide. The guide is usable before every finding is settled, and a reader can see which parts aren’t. To resolve them, I need an answer the code can’t give: a domain fact, or something about an external system. The reconcile skill honors a human’s decision written into the review files, as accepted, rejected or an answer to the question. It ranks that above its own re-check. A later reconcile run then applies the answer and cites the person rather than the code. Which of these I do depends on the situation. Once the edits are substantial, the skill recommends fact-checking the revised guide again, because a correction can introduce a new error. It doesn’t start that run itself. ## What this doesn’t do [Section titled “What this doesn’t do”](#what-this-doesnt-do) A fact-check is a model reading code, so it can be wrong in both directions. That is why reconcile re-checks, and why the skill says to return **Contradicted** only when it can point to code that conflicts with the claim. Some claims can’t be settled from code at all. Business rules and external systems go to a person, as the deferred items above. Design rationale is hedged or moved under the open questions instead. # Adapt the skills to your setup > Change the reviewer, gates, models, forge and knowledge catalog the skills assume, so they run without my bot, my machine or my catalog. The skills are written for my setup, so they name my review bot, my gates and my catalog. This guide takes you through making them yours. It is ordered by what you will hit first. You can stop after any section, and the sections don’t depend on each other except where they say so. You need the plugin you plan to use installed ([install commands](/pg-skills/reference/plugins/github-workflows/)), and a fork or copy of it if you want to edit the skill and agent files. The [dependencies page](/pg-skills/reference/dependencies/) lists what each skill needs. The ones this guide touches are [a review bot or a human reviewer](/pg-skills/reference/dependencies/#review-bot), [just](/pg-skills/reference/dependencies/#just), [jq](/pg-skills/reference/dependencies/#jq), [claims-audit](/pg-skills/reference/dependencies/#claims-audit), [claims-mcp](/pg-skills/reference/dependencies/#claims-mcp), [forgejo-mcp](/pg-skills/reference/dependencies/#forgejo-mcp) and [Telekin](/pg-skills/reference/dependencies/#telekin). ## Choose your reviewer [Section titled “Choose your reviewer”](#choose-your-reviewer) Brooke is my review bot, and she isn’t a public product, so you can’t install her. Use any review bot, or review the PRs yourself. The [review bot page](/pg-skills/explanation/review-bot/) lists what a reviewer should check. Which skills need a reviewer: * `github-address-pr-review` needs one, because it answers the review’s comments. * `github-epic-to-merged-prs` and `github-issue-burndown` need one. Both wait for a review on each PR before they merge. * `github-epic-close-out` treats one as optional. Its review gate checks that every PR was reviewed. Three things in the skills are specific to Brooke. 1. **Her login.** The epic skill finds the reviewer from the project’s notes, or from `gh api .../pulls//reviews --jq '.[].user.login'` on a recently merged PR. If no reviewer shows up, it asks whether to merge without a review. A bot’s login ends in `[bot]` in the REST API, so match it with `startswith(...)`. Check the login on one real review first. 2. **The re-trigger command.** Brooke’s is `/prrb`. The epic skill says to use the bot’s re-trigger command if it has one when no review arrives. The burndown script `wait-brooke.sh` posts `/prrb` itself. Put your bot’s command there. 3. **The burndown scripts.** In `github-issue-burndown/scripts/`, four of the five scripts are written for Brooke: `wait-brooke.sh`, `brooke-ok.sh`, `brooke-security.sh` and `merge-if-ready.sh`. `next-issue.sh` isn’t. Edit them like this: * In `wait-brooke.sh`, `brooke-ok.sh` and `brooke-security.sh`, set the `bot=` line to your reviewer’s login. * In `merge-if-ready.sh`, replace the `brooke-reviews` login in the GraphQL result filter, which finds review threads that have no reply. This script has no `bot=` line. It calls `brooke-ok.sh`, so it follows that script’s changes. * Change what counts as “OK”. `brooke-ok.sh` passes a review with no inline comments on the head whose body doesn’t ask for changes (it matches phrases such as “requests changes”). It prints the `Quality score:` but doesn’t use it, and it doesn’t read the review’s state. A reviewer with a different format needs a different check. * Change the security trigger, or do it by hand. `brooke-security.sh` looks for a score under 80 and a `**Blocking:**` item in a `### Security` section. If your reviewer has no such section, decide the security trigger yourself. It is one of the three in [the model policy](/pg-skills/explanation/model-policy/). * Change the wording in the skill text as well. `forgejo-address-pr-review` names `brooke-reviews[bot]` in a rule that her comments must not be filtered out of the walk. `github-epic-to-merged-prs` names her login, `/prrb` and `brooke-security.sh` as examples. The burndown skill is written around her throughout. The skills assume a reviewer that posts PR reviews. A human reviewer works if the watchers match that person’s login. Beyond the list above, I don’t prescribe more. ## Replace the gates [Section titled “Replace the gates”](#replace-the-gates) My repositories are mostly Rust with a `justfile`. The gates the skills name are `just fmt`, `cargo clippy --all-targets -- -D warnings` and `just test`. Some of my repositories add `just lint` or `just test-cached`. Swap in yours. How each skill treats a gate it can’t run: * **`github-issue-to-pr` and `forgejo-issue-to-pr`** skip `cargo clippy` when there is no `Cargo.toml`. If there is no `justfile`, or it has no `fmt` or `test` recipe, they stop and tell you. They don’t substitute other commands. The simplest fix is a `justfile` with `fmt` and `test` recipes that call your project’s commands. * **`github-address-pr-review`** degrades. It skips the tools that are missing and says so in its final report. It doesn’t substitute different commands either. * **The coordinators** take the gates from your project. They find its lint and test commands in its justfile, Makefile or CLAUDE.md, and put them in each agent’s brief. The agent must have them green before it pushes. * **The `issue-implementer` agent** has its gates in its standing rules: usually `just fmt`, `just lint`, `just test-cached` or `just test`, plus any the brief adds. The brief can override a standing rule. Two things in the agent file are specific to my repository named autobots: the shared gates lock command, and the rule not to run the kind smoke test locally. Edit or delete them. If you have a lock of your own, give the lock command instead. The rules are in [Working on a shared machine](/pg-skills/explanation/shared-machine/). ## Choose your models [Section titled “Choose your models”](#choose-your-models) Implementers run on the model in the agent’s frontmatter. It is `model: sonnet` in `plugins/github-workflows/agents/issue-implementer.md`. Change that line to change the default. The coordinators leave `model` off the call, so they get the agent’s value. They pass `model: "opus"` only to escalate a PR. The auditor has an override. `github-issue-to-pr` asks for the claims auditor to run on a different model from yours. The agent file overrides that: the auditor runs on Sonnet, and never on Opus. For a Sonnet implementer that is its own model. I did that to save tokens. If you change the agent’s model, change that bullet too, since its reason (“the same model as you”) would no longer hold. The auditor is a fresh subagent either way. The escalation triggers are text in `github-epic-to-merged-prs` and `github-issue-burndown`, so edit them there if your limits differ. [The model policy](/pg-skills/explanation/model-policy/) gives my reasons. `token-usage-review` shows what a policy costs you. The glossary entry is [Sonnet-first, Opus to escalate](/pg-skills/reference/glossary/#sonnet-first-opus-to-escalate). ## Move to Forgejo [Section titled “Move to Forgejo”](#move-to-forgejo) The `forgejo-workflows` plugin has five skills: `forgejo-plan-to-issue`, `forgejo-groom-issue`, `forgejo-issue-to-subissues`, `forgejo-issue-to-pr` and `forgejo-address-pr-review`. They talk to Forgejo through [forgejo-mcp](/pg-skills/reference/dependencies/#forgejo-mcp), so install and configure it for your Forgejo host and token first. The plugin also needs [git](/pg-skills/reference/dependencies/#git). Differences from the GitHub skills: * **There are no coordinators.** The plugin has no epic, burndown, milestone or close-out skill. The epic and burndown skills use `gh`, so they are GitHub only. * **The implementer comes from `github-workflows`.** `forgejo-issue-to-pr` fans out to the `github-workflows:issue-implementer` agent, so install that plugin too to get the agent. * **`forgejo-address-pr-review` is interactive.** `github-address-pr-review` decides each comment itself. The Forgejo skill shows each comment with a suggested resolution and asks you to pick `a` (accept), `e` (explain), `s` (skip), `x` (expand) or `q` (quit). Your choice is the approval, and it carries the choice out. It also reads both the timeline comments and the inline review comments, and on a fork PR it offers only explain and skip. * **It needs `forgejo-mcp`, not `gh`.** The skills read and file issues and PRs through the `forgejo` MCP tools, and parse the host, owner and repo from your git remote. * **`forgejo-address-pr-review` names Brooke.** It has a rule never to filter `brooke-reviews[bot]` out of the walk. Change the name to your bot. `forgejo-issue-to-pr` also needs [just](/pg-skills/reference/dependencies/#just) and [claims-audit](/pg-skills/reference/dependencies/#claims-audit), and can use [claims-mcp](/pg-skills/reference/dependencies/#claims-mcp). `forgejo-address-pr-review` needs a [review bot](/pg-skills/reference/dependencies/#review-bot) and can use just. ## Decide what to do about the knowledge catalog [Section titled “Decide what to do about the knowledge catalog”](#decide-what-to-do-about-the-knowledge-catalog) You don’t need one. Four skills in `github-workflows` point at my catalog, and each lists [Telekin](/pg-skills/reference/dependencies/#telekin) as optional: `github-milestone-plan-to-issues`, `github-epic-to-merged-prs`, `github-issue-burndown` and `github-epic-close-out`. 1. Skip the background reading. The skills tell the session to read concepts in my catalog, and you can’t read it. 2. Decide where lessons go. The skills record merge authorization, a dated line per run, flakes and root causes in the catalog. Put them in your project’s notes, a `CLAUDE.md`, or your own catalog. 3. If you want your own, Telekin is built on [okf_mcp](https://github.com/hypotheosis/okf_mcp), which you can host yourself. Point the skills’ catalog references at it. [The knowledge catalog](/pg-skills/explanation/knowledge-catalog/) explains why I keep one. ## Go through the glossary’s Adapt lines [Section titled “Go through the glossary’s Adapt lines”](#go-through-the-glossarys-adapt-lines) The [glossary](/pg-skills/reference/glossary/) ends each entry with **Adapt:**. Here is each one, and where this guide covers it. | Entry | Adapt | Covered in | | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | [Brooke](/pg-skills/reference/glossary/#brooke-brooke-reviewsbot) | Put your reviewer’s login in the scripts’ `bot=` line and your bot’s re-trigger command in place of `/prrb`. With no bot, review the PRs yourself. | [Choose your reviewer](#choose-your-reviewer) | | [`issue-implementer`](/pg-skills/reference/glossary/#issue-implementer) | Read its standing rules (gates, shared-machine etiquette, what it may never do) and change those that don’t match how you work. | [Replace the gates](#replace-the-gates) and [Choose your models](#choose-your-models) | | [Sonnet-first, Opus to escalate](/pg-skills/reference/glossary/#sonnet-first-opus-to-escalate) | Change the `model` the skills pass if your limits or budget differ. | [Choose your models](#choose-your-models) | | [The knowledge catalog](/pg-skills/reference/glossary/#the-knowledge-catalog-telekin-okf) | Skip those pointers, or point them at your own docs. | [Decide what to do about the knowledge catalog](#decide-what-to-do-about-the-knowledge-catalog) | | [claims-mcp and `claims-audit`](/pg-skills/reference/glossary/#claims-mcp-and-claims-audit) | Install `claims-audit` (and claims-mcp if you want a ledger), or drop that step and review the PR against the issue yourself. | [Audit](#audit) below | | [forgejo-mcp](/pg-skills/reference/glossary/#forgejo-mcp) | Configure it for your Forgejo host and token. | [Move to Forgejo](#move-to-forgejo) | | [Gates](/pg-skills/reference/glossary/#gates-just-fmt-cargo-clippy-just-test) | Swap in your project’s format, lint and test commands. | [Replace the gates](#replace-the-gates) | | [Cargo `build-dir`](/pg-skills/reference/glossary/#cargo-build-dir-and-cargo-clean-before-removing-a-worktree) | Harmless if you build into `target/`; keep it if you also use `build-dir`. | [Working on a shared machine](/pg-skills/explanation/shared-machine/) | | [okf_mcp and autobots](/pg-skills/reference/glossary/#okf_mcp-and-autobots) | Ignore them, or add the equivalent quirks of your repos. | [Replace the gates](#replace-the-gates) | | [The `accepted` label](/pg-skills/reference/glossary/#the-accepted-label) | Pass your own label. | [Burn down the backlog](/pg-skills/how-to/burn-down-the-backlog/) | ### Audit [Section titled “Audit”](#audit) `github-issue-to-pr` runs the claims audit in Step 7a. Install [claims-audit](/pg-skills/reference/dependencies/#claims-audit) and the step works in table-only mode: no `claims.json` is tracked, the auditor makes no claims-mcp calls, and its results go into the PR body. Install [claims-mcp](/pg-skills/reference/dependencies/#claims-mcp) as well if you want a committed ledger. If you drop the step, review the PR against the issue yourself. [Validate a change](/pg-skills/how-to/validate-a-change/) has the steps. ## Check your work [Section titled “Check your work”](#check-your-work) Run one issue through `github-issue-to-pr` on a small repository, with your reviewer and gates in place, before you let a coordinator fan out many. If something still names Brooke or one of my repositories, the glossary tells you what it is. # Answer review comments > Walk the comments on an open pull request one at a time with github-address-pr-review, and ask for another review when the feedback needs another look. This guide answers a reviewer’s feedback on an open PR with [github-address-pr-review](/pg-skills/reference/skills/github-address-pr-review/). The skill is autonomous: it doesn’t ask you anything while it runs. For each comment it decides whether to apply a change, explain why not, or ignore the comment, and then does it. If you’ve never seen an automated review, look at one first, such as [Brooke’s review of PR #18](https://github.com/PeterGrace/pg-skills/pull/18#pullrequestreview-6005424404). [Why a review bot](/pg-skills/explanation/review-bot/) says what each section is for. ## Steps [Section titled “Steps”](#steps) 1. Wait for the review. On a coordinator-run epic, the coordinator messages the implementer that wrote the PR, and the same agent answers. 2. Ask for it: “Walk through the review comments on PR 18.” The skill needs a clean working tree. If yours isn’t, it stashes your changes, and it leaves the stash in place at the end. 3. Watch the narration. For each comment you’ll see the reviewer, a short excerpt, the file and line, the decision and a one-sentence reason. It reads three sources: top-level conversation comments, inline review comments and non-empty review bodies. It skips threads already marked resolved, and it drops automated status chatter but keeps a bot’s substantive inline review. 4. Let it apply. For an `apply` decision it makes the smallest edit, commits it with a message quoting the comment, and queues a reply naming the commit. 5. Let it explain. For an `explain` decision it posts a short reply saying why the code stays as it is, and invites the reviewer to disagree. No code changes. 6. Let it validate and push. After any commit it runs the project’s gates: `just fmt`, `cargo clippy --all-targets -- -D warnings` if there is a `Cargo.toml`, and `just test`. It pushes only if they pass. It tries at most two fixes for a failure it caused, and otherwise stops without pushing. 7. Let it post the queued replies. It does this only after the push, and after GitHub can resolve each commit SHA, so the SHAs in the replies link. 8. Read the final report: counts per disposition, a table of each comment, the commit SHAs, the validation results and the push status. The skill doesn’t resolve threads. ## Fork PRs and diverged branches [Section titled “Fork PRs and diverged branches”](#fork-prs-and-diverged-branches) If the PR is from a fork you can’t push to, or the local branch has diverged, the skill runs in reply-only mode. Where it would have applied a change, it describes the change in a reply for the author to apply. ## Asking for a second review [Section titled “Asking for a second review”](#asking-for-a-second-review) Ask for another review when your replies or commits mean the feedback needs another look. A human reviewer can read your explanation and approve the same head, so with a person there is no need to push anything first. Bots can differ. My reviewer, Brooke, won’t re-review a head she has already reviewed. On [PR #29](https://github.com/PeterGrace/pg-skills/pull/29) she answered a re-request on an unchanged head with: “re-reviewing identical code would only burn tokens”. The round before had changed code and was reviewed; the round that followed corrected only the PR description, so there was no new commit for her to review. With a bot like Brooke, ask again after you push commits, and don’t when you only replied. Check how your own reviewer behaves. An epic’s coordinator counts address rounds. After two Sonnet rounds with blocking comments still open, Opus takes over the PR. ## Related [Section titled “Related”](#related) * [Validate a change](/pg-skills/how-to/validate-a-change/) says how to read the Claims table in the PR body, which the reviewer checks against the diff. * [Execute an epic](/pg-skills/how-to/execute-an-epic/) says who runs this for you in an epic. * A worked review round: [PR #18](https://github.com/PeterGrace/pg-skills/pull/18), where the review found a path traversal and a marker ordering problem, and each inline comment has a reply naming the commit that fixed it. # Audit an artifact outside a PR > Ask the claims-audit skill to check generated docs or an agent's output against the instructions it was given, and keep the findings in a claims-mcp ledger. This guide audits something that isn’t a pull request: generated docs, or the output of a long agent task. It is a separate guide from [Validate a change](/pg-skills/how-to/validate-a-change/) because the setup and the result differ. In a PR audit, `github-issue-to-pr` runs the skill for you and the result is a table in the PR body. Here you ask for the audit yourself, and the findings live in a ledger. Why to do it: [Why audit claims](/pg-skills/explanation/why-audit-claims/#where-else-i-use-it). ## Before you start [Section titled “Before you start”](#before-you-start) * Install the [claims-audit](/pg-skills/reference/dependencies/#claims-audit) skill and [claims-mcp](/pg-skills/reference/dependencies/#claims-mcp), and register the server from the project’s root. The skill requires the `claims` MCP server, because the verdicts are stored through its tools. The [install steps](/pg-skills/how-to/validate-a-change/#install) are on the other guide. * Commit what you want audited. The server pins each piece of evidence to `HEAD`, and evidence recorded on uncommitted changes is marked `dirty`. * Find the source: the brief, ticket or spec the artifact was produced from. The audit checks the artifact against it. ## Steps [Section titled “Steps”](#steps) 1. Ask. The skill’s description covers requests to audit, verify, validate or fact-check work against its instructions or spec, and to confirm that an agent produced what it was told to produce. For example: “Audit the guide in `docs/guide/` against the code it describes”, or “Audit this change against the task I gave you”. You can also run `/claims-audit`. 2. Name the source. It becomes the `source` on every claim, and when the source is a file in the repository, each claim also gets a `source_anchor` on the lines that make it. 3. Let it check for existing claims first, so a repeat audit continues instead of duplicating them. 4. Let it break the source into claims that are atomic, falsifiable and observable. It registers them as a hierarchy from the whole task down to single artifacts. 5. Let it gather evidence itself: read the code, run the tests, run the program. Each finding is recorded with a locator you can repeat. It records refuting findings too. 6. Read its report, which comes from `audit_report`: totals by verdict, the gap lists with a remediation for each, and the traceability matrix if you need one. 7. Fix what is refuted, then ask for a re-audit. The skill runs `recheck` first and re-audits the claims whose evidence has changed. Earlier verdicts stay in the history. claims-mcp’s [first-audit guide](https://hypotheosis.github.io/claims-mcp/guides/first-audit.html) explains the six steps and what to expect at each, including what to check for compound claims. ## Use a different model [Section titled “Use a different model”](#use-a-different-model) The skill’s core rule is that the verdict rests on evidence the auditor gathered, not on the producer’s own account. For work an agent produced, have a fresh agent do the audit, on a different model from the one that did the work. Don’t hand the auditor the producer’s summary. ## Commit the ledger [Section titled “Commit the ledger”](#commit-the-ledger) `claims.json` is meant to be committed with the code. Don’t edit it by hand: each record carries a seal, and the server refuses writes after a hand edit. If a write fails with “was changed outside claims-mcp”, stop, restore the file from git and redo the change through the tools. Run `claims-mcp --catalog claims.json verify` before committing. For a fixed record a reviewer can read, claims-mcp can also [render a PDF report](https://hypotheosis.github.io/claims-mcp/guides/reports.html). # Burn down the accepted backlog > Work the open issues labelled accepted to merged pull requests one at a time with github-issue-burndown, and take blocked issues to an interactive session. This guide works through a repository’s open issues labelled `accepted`, one at a time, highest priority first, to merged PRs. It uses the [github-issue-burndown](/pg-skills/reference/skills/github-issue-burndown/) skill. You coordinate; an [issue-implementer](/pg-skills/reference/agents/issue-implementer/) subagent implements each issue in its own worktree, and the review bot reviews each PR. For why it is built this way, read [How I work](/pg-skills/explanation/how-i-work/#how-i-burn-down-a-backlog). ## When a burndown fits [Section titled “When a burndown fits”](#when-a-burndown-fits) Use it for independent items in a backlog, and in two situations: you will be away for a stretch and want the queue to keep moving, or the backlog has piled up. For planned work in several tasks, [execute an epic](/pg-skills/how-to/execute-an-epic/) instead. ## What you need [Section titled “What you need”](#what-you-need) * The `github-workflows` plugin ([install commands](/pg-skills/reference/plugins/github-workflows/)). * [gh](/pg-skills/reference/dependencies/#gh), [just](/pg-skills/reference/dependencies/#just) and [jq](/pg-skills/reference/dependencies/#jq). The skill’s scripts parse GitHub API JSON with `jq`. * A [review bot](/pg-skills/reference/dependencies/#review-bot) that reviews the repository’s PRs. The scripts are written for my bot, Brooke, so with another reviewer you will need to adapt them. * The [`claims-audit`](/pg-skills/reference/dependencies/#claims-audit) skill, which the implementers’ `github-issue-to-pr` runs for its audit step. * The `accepted` label, and issues that carry it. ## Prepare the queue [Section titled “Prepare the queue”](#prepare-the-queue) The burndown works what you have labelled `accepted`, and nothing else. The label is your decision, whoever filed the issue: you, an implementer’s follow-up or a review bot’s suggestion. 1. Read each issue before you label it. 2. If an issue is too vague for an agent to implement unattended, [groom it](/pg-skills/how-to/groom-an-issue/) first. 3. Add `accepted`. 4. Optionally set a priority. The skill ranks by GitHub’s `Priority` issue field (Urgent, High, Medium, Low) and by priority labels such as `P0`, `P1` and `priority: high`. The higher of the two wins. An issue with no priority ranks as Medium, and ties go to the oldest. An issue titled “Decide: …” is workable only after you have commented a decision. Without one, the skill marks it stuck: it labels the issue `burndown-blocked`, comments with the question and takes the next issue. ## Steps [Section titled “Steps”](#steps) 1. Ask for it by name: “Burn down the accepted issues.” The skill takes a repository (default: the current checkout’s), a label (default `accepted`) and an optional `--max N` to cap the issues in this run. 2. Understand what invoking it authorizes. It may merge its own PRs into the default branch once its merge script passes. It doesn’t authorize merging anything else, or bypassing the script. 3. Let it check the repository. It stops and asks if the review bot hasn’t reviewed a recent PR, because merging unreviewed isn’t the deal. It finds the lint and test commands, checks whether PRs get CI, and reads the branch rules. If the rules require review threads to be resolved, a PR stays blocked until they are. It creates the `burndown-blocked` label if it doesn’t exist. 4. Check the queue, if you like, before you start. The skill’s `next-issue.sh --list` shows every candidate in pick order with its rank. It skips the open-PR and branch checks, so it can list an issue that a real run would skip. An issue is eligible if it carries the label, doesn’t carry `burndown-blocked`, isn’t an epic, isn’t assigned to someone else and has no open PR closing it. It also skips an issue that already has a branch or worktree, because another session is on it. 5. The skill picks the first issue, self-assigns it and creates a worktree from the default branch. It starts one implementer on Sonnet, which runs [github-issue-to-pr](/pg-skills/reference/skills/github-issue-to-pr/) on the issue. 6. It checks the PR itself: the base is the default branch, and the body names the issue it closes with a closing keyword. Then it waits for the bot’s review of the current head. 7. It reads the review. A review is clean only when the latest review on the current head has no inline comments and doesn’t ask for changes. There is no exception for nits. If it isn’t clean, the same agent runs [github-address-pr-review](/pg-skills/how-to/answer-review-comments/), replies in every thread and pushes, and the skill asks for a re-review of the new head. 8. It merges through its merge script and not through a bare `gh pr merge`. The script refuses unless the head matches the branch tip, the review is clean, every review thread the bot opened has a reply, CI is green and the PR is clean to merge. It merges with a merge commit by default and pins the merge to that head. 9. It confirms the issue closed, files any follow-ups, removes the worktree, and picks the next issue. It asks `next-issue.sh` again each time and doesn’t work from the first listing, so an issue you label `P0` mid-run goes next. 10. When nothing is left, or `--max` is reached, it checks the queue once more and reports a table: issue, PR, review rounds, final score, model, merged or stuck. ## One issue at a time [Section titled “One issue at a time”](#one-issue-at-a-time) The skill starts the next implementer only after the current PR has merged or got stuck. It doesn’t prepare the next issue while a PR is open. Each PR targets the default branch, with no epic and no milestone branch. ## When Opus takes over [Section titled “When Opus takes over”](#when-opus-takes-over) Implementers start on Sonnet. Opus takes over a PR only on a recorded trigger: * the review’s security section has a blocking item and the score is under 80; * two address rounds are done and the review is still not clean; * two CI fixes have failed. An implementer that reports the issue as ambiguous or too big isn’t a trigger. That issue is stuck. ## When it stops on an issue [Section titled “When it stops on an issue”](#when-it-stops-on-an-issue) The skill doesn’t stop the whole run for one issue. It marks the issue stuck, cleans up and takes the next one. It does this when: * the implementer says the issue is ambiguous or too big; * the review bot doesn’t review after the skill asks three times; * an address round changes no code, so you and the bot disagree on the same head; * the review is still not clean at the round cap, which is reached at round 5 for a PR that has been on Opus; * CI keeps failing after the fix attempts. For a stuck issue the skill: 1. leaves the PR, if there is one, open with its branch in place; 2. adds `burndown-blocked` to the issue and removes its own assignment, so later runs skip it until a person removes the label; 3. comments on the issue with why it stopped, the PR link, the review’s unresolved points and what a person needs to decide; 4. files any verified follow-ups. ## Take a blocked issue to an interactive session [Section titled “Take a blocked issue to an interactive session”](#take-a-blocked-issue-to-an-interactive-session) The skill stops at the label. The next step is yours. Start a separate Claude Code session and work through the issue with it interactively. I do this, and the session ends one of two ways: * **Fixed for resume.** You answer the decision, or make the small fix the comment asks for, and remove `burndown-blocked`. The next burndown picks the issue up again, provided no branch or open PR for it is left: the skill skips an issue that has one. When the stop left a PR open, close it and delete its branch first, or finish by hand. * **Finished and pushed by hand.** You and the agent complete the work and push it yourselves, without the burndown. Start from the issue’s blocking comment: it says what the burndown found and what it needs from you. ## Follow-ups don’t enter the queue [Section titled “Follow-ups don’t enter the queue”](#follow-ups-dont-enter-the-queue) The skill files a follow-up only when: * the implementer or the review says something real is wrong or missing and out of scope for this PR; * the skill checked it against the code and it is a concrete defect or gap, not a style preference; * a search shows no existing issue for it; * it isn’t a security weakness in a public repository, which goes to private tracking and not to a public issue. It doesn’t add `accepted` to a follow-up. Accepting work is your call, and leaving the label off keeps the burndown from feeding itself. Read the follow-ups in the report, and label the ones you want. ## Keep the context small [Section titled “Keep the context small”](#keep-the-context-small) A long burndown grows the coordinator’s context, and every turn re-reads it. The skill keeps its run state in a file under the repository’s git directory, and after each issue it ends its message with a `/compact` line for you to paste. It can’t run `/compact` itself. The compact loses nothing, because `next-issue.sh` rebuilds the queue from GitHub. ## A worked example [Section titled “A worked example”](#a-worked-example) [hypotheosis/okf_mcp](https://github.com/hypotheosis/okf_mcp) is a public repository with 43 closed issues labelled `accepted`, and I can point to two of them and to one blocked issue. * [#266](https://github.com/hypotheosis/okf_mcp/issues/266) is labelled `accepted`. [PR #641](https://github.com/hypotheosis/okf_mcp/pull/641) fixed it and carried a closing reference to #266. The bot [reviewed it once](https://github.com/hypotheosis/okf_mcp/pull/641#pullrequestreview-5959114610) on the head, with a score of 96 and no inline comments. The PR merged with a merge commit less than a minute later. * [#658](https://github.com/hypotheosis/okf_mcp/issues/658) went the same way through [PR #660](https://github.com/hypotheosis/okf_mcp/pull/660): one [review](https://github.com/hypotheosis/okf_mcp/pull/660#pullrequestreview-5966350107), a score of 94, no inline comments, then a merge commit. * [#759](https://github.com/hypotheosis/okf_mcp/issues/759) is the blocked one, and it was blocked twice. The first [stop comment](https://github.com/hypotheosis/okf_mcp/issues/759#issuecomment-7031795111) says the burndown stopped before coding because the issue needed decisions it couldn’t make. A [decision comment](https://github.com/hypotheosis/okf_mcp/issues/759#issuecomment-7043295277) came next, then `burndown-blocked` was removed, and [PR #806](https://github.com/hypotheosis/okf_mcp/pull/806) followed. The second [stop comment](https://github.com/hypotheosis/okf_mcp/issues/759#issuecomment-7045610519) says it stopped after three address rounds, with the PR left open and one review point unresolved. (The comment reports a cap of three address rounds; the current skill allows two Sonnet and two Opus rounds.) At the time of writing the issue still carries `burndown-blocked` and PR #806 is open. The second stop shows what a good blocking comment holds: what the PR delivers, the remaining point with its file, a suggested fix and what a human has to decide. # Close out an epic > Audit an epic against its plan and design before and after the milestone merge with github-epic-close-out, and avoid closing keywords in the milestone PR. This guide audits a finished epic and closes it, using [github-epic-close-out](/pg-skills/reference/skills/github-epic-close-out/). “All sub-issues are closed” isn’t evidence: an issue can close without a merged PR, a PR can merge without one of its tasks, and a task can deliver less than the design required. The audit changes no code. It reports gaps and doesn’t fix them. It posts its comment on the epic and, in the final mode, closes the epic. If you keep a [knowledge catalog](/pg-skills/reference/dependencies/#telekin), it also records the outcome there: a dated line in the project’s concept and a `log.md` entry, plus any follow-up left unfiled in `/projects/things-to-fix.md` if you decided not to fix it now. The catalog is optional. ## The two modes [Section titled “The two modes”](#the-two-modes) Run it twice for a milestone branch. * **Pre-merge:** `github-epic-close-out --branch `. It audits against `origin/` and decides whether the milestone is ready for `main`. It never closes the epic. * **Final:** `github-epic-close-out `, after the milestone PR has merged. It audits against `origin/main`. It also checks that the milestone PR was merged by a merge commit and that the milestone branch’s head is an ancestor of `main`, and it re-checks the gates on `main` (CI green, test count). It doesn’t redo the per-PR rows. If the epic has no milestone branch, run only the final mode. ## Steps [Section titled “Steps”](#steps) 1. Run the pre-merge mode: “Close out epic 3 on branch `milestone/3-workflow-site`.” 2. Let it collect the record: the epic, its sub-issues, the PR that closed each, the plan and design from `origin/main`, the changelog, and the carried-over issues. PRs into a milestone branch don’t auto-close their issue, so it finds the PR from its body or the coordinator’s close comment. 3. Read the checkpoint table. A row passes only on evidence: a command’s output, a `file:line` or a PR number. A row it couldn’t verify is unverified, not passed. The rows are: * sub-issue closed by a merged PR; * review gate; * plan task delivered; * design checkpoint; * divergences reconciled; * carried-over issues closed; * gates on main; * smoke test recorded; * follow-ups listed. 4. Decide. If every row passes, or each exception is justified in the plan or the epic, the milestone validates. Otherwise it doesn’t, and the comment lists each gap and what would close it: a new sub-issue, a plan correction or a missing test. 5. It posts a comment headed `Milestone pre-merge audit` on the epic and reports “ready for main” or the gaps. See the real one on [epic #3](https://github.com/PeterGrace/pg-skills/issues/3#issuecomment-7063515563). 6. Fix any gaps with new issues and PRs, then open the milestone PR (see the next section) and merge it with a merge commit. 7. Run the final mode. If it validates and closing is authorized, it posts the comment and runs `gh issue close --reason completed`. See the [final audit on epic #3](https://github.com/PeterGrace/pg-skills/issues/3#issuecomment-7063711827) for the comment’s shape. On that epic the merge had already closed the issue, because of the trap below. If it doesn’t validate, it posts the gaps and leaves the epic open. Follow-ups it finds are listed with proposed titles. It files them only if you say so, or said so earlier in the session. ## The closing-keyword trap [Section titled “The closing-keyword trap”](#the-closing-keyword-trap) Never write “close #N”, “closes #N” or “fixes #N” for the epic or its sub-issues in the milestone PR body. A closing keyword fires when the PR merges into the default branch. It would close the epic at the merge, before the final audit has run, and the final audit is what closes it. List the sub-issues and their PRs in a table instead, link the pre-merge audit comment, and say the PR doesn’t close the epic. [PR #25](https://github.com/PeterGrace/pg-skills/pull/25) shows how easy the trap is to fall into. Its body said the PR doesn’t close epic #3 itself, but wrote the number straight after the word “close”, and GitHub read that as a closing keyword. The epic closed a second after the merge, before the final audit ran. Write “The epic stays open until the post-merge audit”, and don’t put the issue number after any form of close, fix or resolve. The sub-issue PRs go the other way. Their `Closes #N` does nothing on a non-default base, so the coordinator closes each sub-issue after the merge. For what the audit has caught, see [Why a review bot](/pg-skills/explanation/review-bot/#the-close-out-audit-is-a-second-check). # Execute an epic with subagents > Run github-epic-to-merged-prs to carry an epic's sub-issues to merged pull requests on a milestone branch, and avoid the failures that happen most often. This guide runs an epic’s sub-issues to merged PRs with the [github-epic-to-merged-prs](/pg-skills/reference/skills/github-epic-to-merged-prs/) skill. You are the coordinator’s user: the skill coordinates, and an [issue-implementer](/pg-skills/reference/agents/issue-implementer/) subagent implements each issue. You need an epic whose sub-issues exist and are linked by blocked-by edges, and a [review bot or a human reviewer](/pg-skills/reference/dependencies/#review-bot) for the PRs. Each implementer runs `github-issue-to-pr`, which needs the [`claims-audit`](/pg-skills/reference/dependencies/#claims-audit) skill for its audit step, and [`just`](/pg-skills/reference/dependencies/#just) for its gates. If you don’t have an epic, [plan a milestone](/pg-skills/how-to/plan-a-milestone/) first. For the reasoning, read [Why one subagent per issue](/pg-skills/explanation/one-subagent-per-issue/). To run this without my review bot or my machine’s setup, see [Adapt the skills to your setup](/pg-skills/how-to/adapt-the-skills/). ## Steps [Section titled “Steps”](#steps) 1. Ask for it in Claude Code: “Execute epic 3.” The skill first checks that the sub-issues exist, who reviews, what the gates are, and whether you’ve authorized merging. 2. Name your reviewer if the skill can’t find one. It looks at recently merged PRs for the reviewer’s login. A bot’s login ends in `[bot]`. With no reviewer it asks whether to merge without a review. 3. Decide on merge authorization. A standing authorization covers merging sub-issue PRs into the milestone branch. The final merge into `main` needs your go-ahead at that time, unless you’ve said the standing authorization covers it. Without any authorization the skill runs each PR up to “review addressed, CI green” and reports it ready for you to merge. 4. Let it cut the milestone branch, `milestone/-`, from `origin/main` after the plan PR has merged. It posts the name on the epic and puts it in every brief. 5. Check CI and the reviewer. CI must run on PRs into a branch other than the default, and the reviewer must review them. If a workflow’s `pull_request.branches` lists only `main`, the skill stops and asks you, because changing CI config is a repo change. 6. Let the loop run. For each ready issue, whose blockers have all merged, the skill: * creates a worktree from the milestone branch; * starts an `issue-implementer` in the background, on Sonnet; * waits for the review; * tells the same agent to run `github-address-pr-review`; * checks the base, CI on the new head, the review and the replies, and merges with a merge commit; * closes the sub-issue itself, and cleans up the worktree. 7. Keep your context small. The skill keeps a state file under the repository’s git directory, `coordinator/epic-.md`. At each checkpoint it ends its message with a line like this for you to paste: `/compact Continue github-epic-to-merged-prs from . Keep agent ids, open PRs and their next actions.` The checkpoints are the end of planning, every third merge, and before the close-out. It can’t run `/compact` itself. 8. When the last sub-issue merges, the skill removes leftover worktrees and runs [`github-epic-close-out` in pre-merge mode](/pg-skills/how-to/close-out-an-epic/). It opens the milestone PR from the milestone branch into `main` only if the audit validates. 9. Give the go-ahead for the final merge, and the skill merges with a merge commit, never a squash or a rebase. It then re-runs the close-out against `main`, which closes the epic, and deletes the milestone branch. ## Start on Sonnet [Section titled “Start on Sonnet”](#start-on-sonnet) For why, see [the model policy](/pg-skills/explanation/model-policy/). Leave the model off. Implementers start on Sonnet. Opus only takes over a PR on a recorded trigger: * the reviewer marks a security problem blocking and the score drops under 80; * two Sonnet address rounds are done and the review on the new head is still blocking; * the agent has failed twice to get CI or the gates green on its own changes. An agent that reports a sub-issue as ambiguous isn’t a trigger. That comes to you. ## What goes wrong most often [Section titled “What goes wrong most often”](#what-goes-wrong-most-often) I named four. Each one has a recorded incident, and most have a rule in the skill. * **Cost and context.** Opus implementers and large coordinator contexts use up the weekly limit. Start on Sonnet, use the state file, and compact at the checkpoints. * **Stalled reviews.** The reviewer skips a stale branch or misses a request, and the PR sits. Read the bot’s issue comments on the PR first, because a skip is usually explained there. For a stale branch, have the PR’s agent run `git merge origin/` (never rebase) and push. If the bot has a re-trigger command, use it when no review shows up. Don’t use it on an unchanged head: Brooke won’t re-review one (see [Answer review comments](/pg-skills/how-to/answer-review-comments/)). * **Machine overload.** Too many agents, gates or build caches at once (see [working on a shared machine](/pg-skills/explanation/shared-machine/)). Start parallel issues only when they touch different files. Run heavy gates through a lock if the project has one, and run `cargo clean` in a worktree before you remove it. * **Scope creep.** Follow-ups and audit findings grow the epic past the plan. Decide which follow-ups belong in the epic, and ask once, in a batch. The close-out lists follow-ups and files them only when you say so, or said so earlier in the session. ## A worked example [Section titled “A worked example”](#a-worked-example) Epic [#3](https://github.com/PeterGrace/pg-skills/issues/3) ran this way: ten sub-issues, each merged into `milestone/3-workflow-site` by its own PR, then the milestone PR [#25](https://github.com/PeterGrace/pg-skills/pull/25) into `main` with a merge commit. # Fact-check and reconcile a study guide > Run study-guide-fact-check on an existing study guide, then study-guide-reconcile to apply, reframe or defer each finding, and decide what to do with the deferred ones. This guide takes a study guide that already exists and runs the second and third steps of the loop on it: [`study-guide-fact-check`](/pg-skills/reference/skills/study-guide-fact-check/), then [`study-guide-reconcile`](/pg-skills/reference/skills/study-guide-reconcile/). For why the loop exists, read [Why I fact-check generated docs](/pg-skills/explanation/why-fact-check-generated-docs/). If you have no guide yet, the [tutorial](/pg-skills/tutorials/first-study-guide/) writes one and runs the whole loop. ## Before you start [Section titled “Before you start”](#before-you-start) * The [study-guides plugin](/pg-skills/reference/plugins/study-guides/) is installed. The [catalog](/pg-skills/reference/dependencies/) lists no outside requirements for it or for these skills. * The guide is under `docs/study-guide/` in the repository, as [`codebase-study-guide`](/pg-skills/reference/skills/codebase-study-guide/) writes it. That is the folder both skills read by default. * You can run the fact-check on a model other than the one that wrote the guide. The skill says the value “comes almost entirely” from that. It doesn’t name a model. Peter writes with Opus and checks with Sonnet. ## Fact-check the guide [Section titled “Fact-check the guide”](#fact-check-the-guide) 1. Open a new Claude Code window in the repository, so the check starts with a fresh context. Run `/model` there to pick a different model from the one that wrote the guide. Don’t switch models in the writer’s session, because its conversation would still be in context. 2. Ask for the check, for example: “Fact-check the study guide in `docs/study-guide/`.” 3. Let it orient itself. It reads the index, then compares the commit named in each doc’s header with the current checkout. If they differ, it says so at the top of the summary, because findings may then describe code that changed after the guide was written, not mistakes in the guide. 4. Let it extract and test the claims. For each claim that says what the code does, it opens the cited file and symbol, then looks in the surrounding code for something that contradicts the claim. For a claim about why the code is built a certain way, it checks only that the claim is hedged. 5. Let it write the report. It proposes corrections and doesn’t edit the guide. Its output goes here, and a re-run overwrites it: ```text docs/study-guide/fact-check/ ├── SUMMARY.md ├── 00-architecture-overview.review.md ├── modules/.review.md ├── glossary.review.md └── flashcards.review.md ``` 6. Read `SUMMARY.md`. It has the provenance check, totals by severity and by verdict, the Critical findings to fix first, the items for a subject-matter expert, and the limits of the pass. Then read each `*.review.md` side by side with the doc it reviews. ### What a finding says [Section titled “What a finding says”](#what-a-finding-says) Each finding has an id (`F1`, `F2` and so on), a verdict and a severity. The verdicts are Verified, Contradicted, Unsupported, Stale citation, Inference-as-fact, Imprecise, Omission and Uncheckable (SME). The severities are Critical, Moderate, Minor and Info. Each finding also has a location, the claim, the evidence, and a suggested correction. The skill says a Contradicted finding must point to specific code that conflicts with the claim, and that “Unsupported” is the verdict when it can’t find support but can’t disprove the claim either. ### Add your own decisions (optional) [Section titled “Add your own decisions (optional)”](#add-your-own-decisions-optional) The reconcile skill honors annotations a person has made in the review files: a finding marked accepted or rejected, or an answer you supply for a domain question. A human decision ranks above the skill’s own re-check. The skill doesn’t prescribe the annotation’s format, so write it where a reader of the finding will see it. ## Reconcile the findings [Section titled “Reconcile the findings”](#reconcile-the-findings) 1. Ask for it, for example: “Reconcile the fact-check findings into the study guide.” The skill doesn’t require a particular model. It re-checks each finding it plans to act on against the code before it edits anything, so it doesn’t take the report on trust. If you’d like to approve changes first, ask for a review gate: it then writes the reconciliation report as a proposal and leaves the guide untouched. 2. Let it gather and triage. It reads `SUMMARY.md` and every `*.review.md`, then sorts each finding into one of four actions, Critical findings first: | Action | Meaning | What happens to the guide | | ------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------ | | Apply | The code confirms the correction. | The doc is edited and its citation fixed or added. | | Reframe | The claim is overstated, typically an inference stated as fact. | It becomes a hedged inference or moves under Open questions. It isn’t deleted. | | Defer | The code can’t settle it. | The doc text stays as it is, with its open-question flag kept or sharpened. | | Reject | The code shows the original doc was right. | The doc stays, and the reason is recorded. | 3. Let it apply. It edits the guide in place under `docs/study-guide/`, adds a line `Revised by study-guide-reconcile on from commit ` to each changed doc’s header, updates the Open questions sections, and updates any flashcard that teaches a corrected claim. 4. Read the report it writes at `docs/study-guide/fact-check/RECONCILIATION.md`. It has a count per outcome, then a section each for Applied, Reframed, Deferred and Rejected, plus the flashcards it changed and a recommended next step. Every finding from the fact-check is meant to appear under exactly one outcome, so compare it against `SUMMARY.md` to confirm that none was dropped. 5. Take the recommendation. If the edits were substantial, the skill recommends running the fact-check again on the revised guide, since a correction can add a new error. It doesn’t do that itself. Repeat the fact-check steps above, in a new window on the checking model. ## What to do with deferred findings [Section titled “What to do with deferred findings”](#what-to-do-with-deferred-findings) Deferred findings are the ones the code couldn’t settle: domain or business claims, external systems, the report’s items for a subject-matter expert, and disagreements between the guide and the report that the code doesn’t resolve. Reconcile keeps or sharpens the open-question flag where the guide has one, and `RECONCILIATION.md` records why each was deferred and how it was left. You have two choices, and which one is right depends on the situation. * **Use the guide as it is.** The deferred items stay flagged, so a reader knows which parts to treat with care. * **Resolve them, now or later.** Get the answer from someone who knows (a person who can say whether the domain claim is right), record it as an annotation on the finding in the review files, and run the reconcile skill again. It applies a supplied answer and cites the person instead of the code. [Why I fact-check generated docs](/pg-skills/explanation/why-fact-check-generated-docs/#how-i-finish-a-guide-that-has-open-findings) says how the author chooses between them. ## Related [Section titled “Related”](#related) * [Why I fact-check generated docs](/pg-skills/explanation/why-fact-check-generated-docs/) * [Your first study guide](/pg-skills/tutorials/first-study-guide/) * [Audit an artifact outside a PR](/pg-skills/how-to/audit-an-artifact/), for checking generated docs with a claims ledger instead. # Groom a vague issue > Turn a thin or under-specified GitHub issue into a ready-to-implement work item with github-groom-issue, and decide when grooming is worth the effort. This guide upgrades a rough issue into a work item that an agent can implement without asking you anything, using the [github-groom-issue](/pg-skills/reference/skills/github-groom-issue/) skill. The skill investigates the issue against the real code, archives the original text as a comment, and overwrites the issue body with a structured one. It differs from [planning a feature](/pg-skills/how-to/plan-a-feature/) in where it starts: that skill files a new issue from a plan, and this one improves an issue that already exists. You need the `github-workflows` plugin ([install commands](/pg-skills/reference/plugins/github-workflows/)), [gh](/pg-skills/reference/dependencies/#gh), and a local checkout of the repository. The skill reads code to investigate, so the checkout has to be there. ## When it is worth doing [Section titled “When it is worth doing”](#when-it-is-worth-doing) I groom an issue only when it is too vague for an agent to implement unattended. Whoever filed the issue, I read it first and groom if needed. Then I decide whether it is ready to be worked. Grooming costs an investigation pass and an overwrite of the issue body. The skill keeps the original, so the overwrite can be undone, but you still have to read the result. ## Steps [Section titled “Steps”](#steps) 1. Ask for it by name: “Groom issue 42.” Give a full issue URL if the issue is in another repository. 2. Let it read the issue and every comment. A diagnosis or partial spec in a comment is folded into the new body, with credit given to its author. 3. Expect it to stop and ask in a few cases: the issue is closed; the issue was already groomed (the body ends with the skill’s footer, or an archive comment exists); the investigation shows the issue is a duplicate, already fixed or rests on a false premise; the ask is ambiguous on fundamentals. A body and a comment that disagree also stop it. 4. Let it investigate. It names the real files and functions the change touches, confirms what the code does today, and notes the project’s real validation commands. For a performance report it can usually confirm the mechanism from the code and leaves the magnitude qualitative. 5. It classifies the issue as a bug, a feature or a chore, labels first and body content second. Performance reports count as bugs. 6. It posts the archive comment before it changes anything. The comment holds the original title and body, or says there was no description. This is the undo path. 7. It composes the body from the template for that type, with concrete paths and commands. Each template ends with a footer saying the body is authoritative for `github-issue-to-pr`. 8. It judges whether the item is one PR. If it isn’t, it shapes the body with explicit phases, so the split has clean seams. 9. It overwrites the body with `gh issue edit`, on this path too. It may sharpen a vague title, and adds a type label if the repository already has one. It doesn’t assign anyone or set a milestone unless you asked. If the item was too big, it then hands off to [`github-issue-to-subissues`](/pg-skills/how-to/split-an-issue/), which shows you the breakdown in plan mode before it files anything. 10. Read the result. The report links the archive comment. If the groomed body is wrong, the original is there to restore. ## After grooming [Section titled “After grooming”](#after-grooming) The skill’s normal path has no acceptance gate. It rewrites the body directly and leaves the review to you, so your read of the result is the gate. When you are satisfied, run [github-issue-to-pr](/pg-skills/reference/skills/github-issue-to-pr/) on it. Or, for a repository that runs a [burndown](/pg-skills/how-to/burn-down-the-backlog/), apply the `accepted` label yourself: the label is your decision, and grooming doesn’t add it. ## If you can’t edit the issue [Section titled “If you can’t edit the issue”](#if-you-cant-edit-the-issue) `gh issue edit` fails with a 403 when you have only read or triage access. The archive comment may already be posted by then. The skill tells you the original is preserved and hands you the groomed body to paste. # Plan a feature into an issue > Turn a feature idea into one well-shaped GitHub issue with github-plan-to-issue, so github-issue-to-pr can implement it without re-deriving the design. This guide takes a feature idea from conversation to one GitHub issue, using the [github-plan-to-issue](/pg-skills/reference/skills/github-plan-to-issue/) skill. The issue body is written so that [github-issue-to-pr](/pg-skills/reference/skills/github-issue-to-pr/) can read it later and go straight to implementation. It fits a single feature that one PR can carry. For several tasks that run as an epic, [plan a milestone](/pg-skills/how-to/plan-a-milestone/) instead. If the plan turns out to be too big for one issue, the skill says so and suggests a split. You need the `github-workflows` plugin ([install commands](/pg-skills/reference/plugins/github-workflows/)), and [git](/pg-skills/reference/dependencies/#git) and [gh](/pg-skills/reference/dependencies/#gh), authenticated. ## Steps [Section titled “Steps”](#steps) 1. In Claude Code, in the repository, ask for it with a short seed: “Plan a feature: add caching to the config loader.” The skill confirms which repository `gh` resolves to. If you name another repository, that one wins. 2. Let it read before it plans. It reads the files the idea touches, any pattern in the repository the idea refers to, and `README.md`, `CLAUDE.md` and the `justfile` or build file, to learn the project’s validation commands. If the idea is ambiguous on fundamentals, it asks one or two questions first. 3. Work the plan with it in plan mode. The plan covers the problem, the proposed behavior, an implementation sketch that names the files and any new flags or config keys, the validation strategy, and what is out of scope. It adds open questions only if some decision is really unresolved. 4. Accept or reject the plan. A rejected plan goes back for another round, and nothing is filed from it. An accepted plan is the issue body: the skill doesn’t ask a second time before it files. 5. Let it pick labels. It looks at the labels the repository has and prefers `enhancement`, then `feature`, then `feat`, so that `github-issue-to-pr` picks a `feat-` branch prefix. If none exist, it files with no label and says so. It doesn’t create labels on its own. 6. Let it file the issue. The title is imperative and short, under about 72 characters. The skill doesn’t assign anyone and doesn’t set a milestone unless you named one. 7. Take the issue URL from its report. The skill never touches the working tree: it only reads code and writes to the issue tracker. ## What the issue body contains [Section titled “What the issue body contains”](#what-the-issue-body-contains) The sections are Problem, Proposed behavior, Implementation sketch, Validation, Out of scope and, only when needed, Open questions. The footer names the skill and says the issue is ready for `github-issue-to-pr`, which tells the next agent that the implementation sketch is authoritative and not a suggestion. ## When it behaves differently [Section titled “When it behaves differently”](#when-it-behaves-differently) * If you say “just file it”, the skill offers a lightweight issue with only the problem and proposed behavior. It names the cost: a thinner issue is harder to action later. * If the repository has an issue template whose structure materially conflicts with the skill’s body, the project’s template wins and the skill adapts to it. If the template is a YAML form, the skill still files free-form markdown and mirrors the form’s field names as headings. * If the plan shows the feature already exists, the skill stops and tells you instead of filing it. ## Next [Section titled “Next”](#next) * If the issue is rough or you think it is under-specified, [groom it](/pg-skills/how-to/groom-an-issue/). * If it is too big for one PR, [split it into sub-issues](/pg-skills/how-to/split-an-issue/). * Otherwise, run `github-issue-to-pr` on the issue number, or label the issue `accepted` and let a [burndown](/pg-skills/how-to/burn-down-the-backlog/) take it. # Plan a milestone into an epic and sub-issues > Turn the next milestone of a design document into a reviewed plan, an epic and one sub-issue per task with github-milestone-plan-to-issues. This guide takes a milestone from your design document to a merged plan PR, an epic issue and one sub-issue per plan task. It uses the [github-milestone-plan-to-issues](/pg-skills/reference/skills/github-milestone-plan-to-issues/) skill. It assumes you have a design document that lays out milestones or phases, and the `github-workflows` plugin installed ([install commands](/pg-skills/reference/plugins/github-workflows/)). The plan is the single source of truth. The epic and the sub-issues give scope and acceptance only, never code. ## Before you start [Section titled “Before you start”](#before-you-start) * Check the design is right. This is the part I read closely: I approve the spec and not the plan. * The skill writes the plan with the `writing-plans` skill from the [superpowers](/pg-skills/reference/dependencies/#superpowers) plugin, so install that too. * Have a recent plan and changelog from an earlier milestone, if there is one. The skill copies its conventions. ## Steps [Section titled “Steps”](#steps) 1. In Claude Code, in the repository, ask for it by name: “Plan milestone 2 from `docs/DESIGN.md`.” The skill works in a fresh worktree off `origin/main`. 2. Let it gather the inputs: the milestone’s section and every design section it references, the previous plan and changelog, open follow-up issues from earlier milestones, and the code as it is on `origin/main`. 3. Expect it to check the facts the plan depends on. Each external API the plan uses is confirmed against its real source, and recorded with a file and line in a “Verified facts the code relies on” section. 4. Answer its design questions. It asks only about choices the design leaves open, at most four per call, each with a recommended option. Your answers go in the plan’s “Decisions taken while planning” section. 5. Review the plan PR. The skill saves the plan under `docs/superpowers/plans/`, opens the PR on a `docs-milestone--plan` branch and waits for your reviewer. It addresses the review with `github-address-pr-review`. 6. Merge the plan PR, or say the skill may merge plan PRs. It doesn’t merge unless you’ve authorized that. Don’t file issues before the plan is on `main`, because the issues link to it there. 7. Let it file the epic, with the labels `epic` and `milestone-`. The body is prose with no code: goal, in scope, decisions, what’s deferred, and how to work the sub-issues in parallel. 8. Accept the sub-issues in plan mode. The skill runs `github-issue-to-subissues` with one sub-issue per plan task, titled `M.: `. It nests them under the epic, sets blocked-by edges from the plan’s dependency graph, and posts an index comment. 9. Read the edges back. The skill does this, and it’s worth a glance: `gh api repos/{owner}/{repo}/issues//dependencies/blocked_by`. The skill ends by reporting the plan path and PR, the epic URL, the sub-issue numbers with the dependency graph, and which tasks can start now. ## What the plan must have [Section titled “What the plan must have”](#what-the-plan-must-have) The skill won’t skip these, but check them in the plan PR: * a file map saying which task touches which file, because the executor uses it to tell which tasks can run in parallel; * a real dependency graph rather than a linear chain; * one task per carried-over follow-up, named with its issue number; * the rule that the plan’s code hasn’t been compiled and that a divergence is fixed in the plan, in the same PR, with a dated note. ## Next [Section titled “Next”](#next) [Execute the epic](/pg-skills/how-to/execute-an-epic/). To see a finished example, look at [epic #3](https://github.com/PeterGrace/pg-skills/issues/3) and its [index comment](https://github.com/PeterGrace/pg-skills/issues/3#issuecomment-7062971780). # Split an issue into sub-issues > Break a large epic issue that holds a multi-phase plan into nested, ordered sub-issues with github-issue-to-subissues, when there is no checked-in plan. This guide fans one large issue out into sub-issues, using the [github-issue-to-subissues](/pg-skills/reference/skills/github-issue-to-subissues/) skill. Use it on its own for an epic whose plan lives in the issue body, with no checked-in plan document. If you have a design document with milestones, don’t use it directly. Follow [plan a milestone](/pg-skills/how-to/plan-a-milestone/): the [github-milestone-plan-to-issues](/pg-skills/reference/skills/github-milestone-plan-to-issues/) skill writes the plan, files the epic and runs `github-issue-to-subissues` for you, with one sub-issue per plan task. You need the `github-workflows` plugin ([install commands](/pg-skills/reference/plugins/github-workflows/)), [git](/pg-skills/reference/dependencies/#git) and [gh](/pg-skills/reference/dependencies/#gh) with a token that can write issues. ## Before you start [Section titled “Before you start”](#before-you-start) The parent issue should contain a plan with phases. Explicit `## Phase 1` headings are the easy case. A numbered or bulleted implementation sketch works, and with an unstructured prose plan the skill proposes a decomposition and says it is inferring. If the parent is rough rather than phased, [groom it](/pg-skills/how-to/groom-an-issue/) first. Grooming shapes a too-big body with explicit phases and hands off to this skill. ## Steps [Section titled “Steps”](#steps) 1. Ask for it by name: “Break issue 12 into sub-issues.” Give a full URL if the issue is in another repository. 2. The skill reads the parent, its comments and any sub-issues it already has. If children exist, it assumes it has run before and asks whether to add more or stop. If some phases are filed and some aren’t, it proposes only the missing ones. 3. Review the breakdown in plan mode. It shows a recap of the parent, an ordered list of sub-issues with exact titles, scope, labels and whether each depends on the previous one, the dependency graph if it isn’t a straight line, and anything it chose not to split out. It aims for 2 to 6 sub-issues, and stops if the plan is too small to split. 4. Accept, reject or edit the breakdown. If you edit it, for example by merging two phases, it shows the result again. Nothing is filed until you accept. 5. Let it file the sub-issues in phase order. Titles follow `: `. Each body links to the parent with a `Part of #N` line, carries scope, validation and out-of-scope sections, and points at the plan rather than copying from it. Labels and the milestone are inherited from the parent where that makes sense. Nobody is assigned. 6. It nests each sub-issue under the parent with GitHub’s sub-issues API, so the parent shows a progress bar. 7. It orders the phases with “blocked by” dependencies, applying the plan’s real graph and not forcing a chain when phases can run in parallel. 8. It posts an index comment on the parent: a checklist of the sub-issues in order. It doesn’t edit the parent’s body. 9. Read the edges back to check them: `gh api repos/{owner}/{repo}/issues//dependencies/blocked_by`. The direction is easy to flip: the issue in the path is the blocked one. ## What to know about the ordering [Section titled “What to know about the ordering”](#what-to-know-about-the-ordering) GitHub dependencies are advisory. The tracker shows the relationship and lets you search for blocked issues, but it doesn’t stop anyone from working on or merging a blocked one. The skill says so in the index comment. If the sub-issues or dependencies API isn’t available, for example on an older GitHub Enterprise Server, the skill doesn’t stop. It makes the “Blocked by” line in each sub-issue and the checklist on the parent carry the order, and says in its report that the edges weren’t set. ## Next [Section titled “Next”](#next) The skill reports the sub-issue numbers and the nesting and dependency status. Run `github-issue-to-pr` on the first sub-issue, or hand the epic to [execute an epic with subagents](/pg-skills/how-to/execute-an-epic/). # Validate a change with claims-mcp and claims-audit > Install claims-audit, let github-issue-to-pr audit a change's claims before its PR opens, choose ledger or table-only mode, read the verdicts, and fix what the audit refutes. This guide gets a claims audit onto the changes your agent makes. The audit is Step 7a of [github-issue-to-pr](/pg-skills/reference/skills/github-issue-to-pr/), and the `forgejo-issue-to-pr` skill has the matching step. For why it exists, read [Why audit claims](/pg-skills/explanation/why-audit-claims/). ## Install [Section titled “Install”](#install) 1. Install the [claims-audit](/pg-skills/reference/dependencies/#claims-audit) skill. `github-issue-to-pr` needs it. Copy the skill’s folder, `skills/claims-audit` in a checkout of [claims-mcp](https://github.com/hypotheosis/claims-mcp), into your Claude Code skills directory. claims-mcp’s [install guide](https://hypotheosis.github.io/claims-mcp/guides/install.html#3-install-the-skill) has the exact commands for your platform, and for installing it into a project instead of for yourself. Restart Claude Code afterwards. 2. Optional: install [claims-mcp](/pg-skills/reference/dependencies/#claims-mcp). You need it only for ledger mode, and for audits outside a PR (see [Audit an artifact outside a PR](/pg-skills/how-to/audit-an-artifact/)). Take the install steps from claims-mcp’s [install guide](https://hypotheosis.github.io/claims-mcp/guides/install.html). In short: put a release binary on your `PATH` (or `cargo install --locked --git https://github.com/hypotheosis/claims-mcp`), then register it from your project’s root: ```bash claude mcp add --scope project claims -- claims-mcp --catalog claims.json ``` ## What Step 7a does for you [Section titled “What Step 7a does for you”](#what-step-7a-does-for-you) When you run `github-issue-to-pr`, after the gates and the commit, the skill: 1. Picks a mode (below). 2. Drafts the PR body into a scratch file. Its statements of fact are claims the audit checks. 3. Dispatches a fresh subagent. The skill asks for a different model from the one that wrote the change; the `issue-implementer` agent overrides this and uses Sonnet, usually its own model. The auditor gets the issue, the draft body, the repository path and the commit range. It doesn’t get the implementer’s plan or summary. 4. Acts on the verdicts, as described in [Read the verdicts](#read-the-verdicts). 5. In ledger mode, commits `claims.json` in a commit of its own. 6. Puts a `## Claims` table in the PR body. You don’t run any of this yourself. If you’re the top-level session, the skill hands the work to an `issue-implementer` subagent, and that agent dispatches the auditor. ## Choose a mode [Section titled “Choose a mode”](#choose-a-mode) The skill picks the mode by checking whether `claims.json` is tracked: ```bash git ls-files --error-unmatch claims.json ``` * **It succeeds: ledger mode.** The auditor records claims, evidence and verdicts in the ledger through the claims-mcp tools, and the implementer commits it. Merge the PR with a merge commit: the ledger’s anchors pin the branch’s commits, and a squash or rebase leaves them `commit_missing`. The skill checks `gh repo view --json mergeCommitAllowed` and says so in the PR body if merge commits are off. * **It fails: table-only mode.** The auditor makes no claims-mcp calls at all, because even a read creates a `.claims.json.lock` file. The results go in the PR body without claim ids, with a line saying the repository has no ledger. You need only the `claims-audit` skill. Pick ledger mode for a long-lived, spec-driven or correctness-critical project, and start the ledger early. See [Why audit claims](/pg-skills/explanation/why-audit-claims/#ledger-mode-or-table-only-mode) for why. To start one, install and register claims-mcp, run an [audit](/pg-skills/how-to/audit-an-artifact/), and commit the `claims.json` it writes. Add `.claims.json.lock` and `.claims.json.tmp` to `.gitignore`. ### Ledger mode in a worktree [Section titled “Ledger mode in a worktree”](#ledger-mode-in-a-worktree) The claims server opens `claims.json` relative to the directory the session started in. If you work in a git worktree, the auditor has to pass the worktree’s absolute ledger path as `catalog` on every claims call, and the skill first probes that your server honours the argument. A server older than 0.2.5 doesn’t. If the probe doesn’t return an error naming the probe path, the skill stops and asks you to upgrade claims-mcp and restart the session or run `/mcp`. If `main`’s ledger changed since your branch started, the skill takes main’s file and records the findings again, because two branches can hand out the same ids. It doesn’t merge `claims.json` by hand, and you shouldn’t either. claims-mcp’s [guide to branches that both write the ledger](https://hypotheosis.github.io/claims-mcp/guides/parallel-branches.html) has the details. ## Read the verdicts [Section titled “Read the verdicts”](#read-the-verdicts) Each claim gets one of three verdicts. | Verdict | What it means | What happens | | --------------- | ------------------------------------------------------------------ | -------------------------------------------------- | | supported | The auditor gathered evidence itself and it shows the claim holds. | Listed in the table. | | refuted | The evidence shows the claim doesn’t hold. | See below. | | not_enough_info | The evidence can’t decide it. | Never blocks. The table says what would decide it. | For a refuted claim, the question is whose it is: * **Ours:** a claim from the issue or the PR body, or an existing claim this diff broke. The implementer fixes it before the PR opens. If the code was wrong, it fixes the code and goes back through the gates. If the PR body was wrong, it corrects the draft. Then the auditor checks the new commit range, so a fix is confirmed by a second look. This repeats until no claim of ours is refuted. If it can’t get there, it doesn’t push and reports to you. * **Elsewhere:** a problem in code the PR didn’t touch. It stays recorded as refuted, with its `Fix:` step, and is listed in the PR body as pre-existing. It doesn’t block. The table lists refuted claims first, then not_enough_info, then supported. With more than about eight supported claims, the supported ones are collapsed into one line with a short citation each. Here is the skill’s example of rows, without the claim ids, as in table-only mode: | Claim | Verdict | Evidence | | ---------------------------------------------- | --------- | ---------------------------------------------- | | “README lists every subcommand” (pre-existing) | refuted | `seal` missing from README.md:120; Fix: add it | | “parse_config rejects files over 1 MiB” | supported | `cargo test config::too_large` (1 passed) | Real tables are on [PR #34](https://github.com/PeterGrace/pg-skills/pull/34) and [PR #36](https://github.com/PeterGrace/pg-skills/pull/36), both in table-only mode. ## What to check before you approve the PR [Section titled “What to check before you approve the PR”](#what-to-check-before-you-approve-the-pr) 1. The table covers the issue’s requirements, not just the body’s sentences. A requirement with no row wasn’t audited. 2. Each supported row cites something you could run or open, such as a command with its counts or a `file:line`. Verdicts rest on evidence the auditor gathered itself, and a row that only repeats the body doesn’t. 3. Every not_enough_info row says what would decide it. 4. In ledger mode, the report’s counts match `audit_report`; the skill checks the auditor’s numbers against it before copying them. 5. Anything marked pre-existing is a problem in code the PR didn’t touch. Decide whether to file an issue for it. A reviewer, human or bot, can then check the body against the diff, as [a review bot can do](/pg-skills/explanation/review-bot/#what-i-rely-on-her-for). ## Related [Section titled “Related”](#related) * [Audit an artifact outside a PR](/pg-skills/how-to/audit-an-artifact/). * [Answer review comments](/pg-skills/how-to/answer-review-comments/) is the step after the PR opens. # issue-implementer > Implements one GitHub or Forgejo issue end to end in a git worktree it is given, through the github-issue-to-pr (or forgejo-issue-to-pr) skill, then later answers the reviewer bot with github-address-pr-review. Use for the per-issue implementation agents of the subagent issue-to-merge workflow (one agent per sub-issue). Not for planning, design or research, which stay on the parent's model. > Implements one GitHub or Forgejo issue end to end in a git worktree it is given, through the github-issue-to-pr (or forgejo-issue-to-pr) skill, then later answers the reviewer bot with github-address-pr-review. Use for the per-issue implementation agents of the subagent issue-to-merge workflow (one agent per sub-issue). Not for planning, design or research, which stay on the parent’s model. | Field | Value | | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Subagent type | `github-workflows:issue-implementer` | | Plugin | [github-workflows](/pg-skills/reference/plugins/github-workflows/) | | Model | `sonnet` | | Source | [`plugins/github-workflows/agents/issue-implementer.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/github-workflows/agents/issue-implementer.md) | ## Standing rules [Section titled “Standing rules”](#standing-rules) You implement one issue and take it to an open, reviewed-ready pull request. The brief you are given names the repository, the issue, the worktree and branch, and anything specific to the task. These standing rules apply to every brief unless it explicitly overrides one. ### The workflow [Section titled “The workflow”](#the-workflow) * Run the `github-issue-to-pr` skill (or `forgejo-issue-to-pr` for a Forgejo remote) with the issue number, and follow it end to end, including its claims-audit step. * In that audit, dispatch the auditor subagent on Sonnet (`model: "sonnet"`) whatever model you run on: an Opus auditor costs too many tokens (pgrace, 2026-11-15). This rule wins over the generic “different model” request in Step 7a of `github-issue-to-pr` and `forgejo-issue-to-pr`. When you run on Sonnet the auditor is the same model as you; when you were started on Opus to take over a PR, it is a different one. It is still a fresh subagent that gets none of your reasoning. Never run it on Opus. Only an instruction that names this auditor rule and overrides it explicitly, such as a brief that says “run the auditor on Opus”, can change that. With no tracked `claims.json`, use table-only mode and make no claims-mcp calls. * If the issue names a plan document, it is the source of truth. When the code has to differ from it, correct the plan in the same PR with a dated `> **Corrected (issue #N).**` note, grep later tasks for the changed symbols, and comment on the issues they affect. * Keep your context after you report. You will be messaged later to run `github-address-pr-review ` once the reviewer bot has reviewed; do that the same way, then report the new head SHA. ### Where you work [Section titled “Where you work”](#where-you-work) * Work only in the worktree the brief names, on the branch it names, with absolute paths. Never `cd` into the main checkout or another worktree. * Your PR’s base is the branch the brief names (usually a milestone integration branch, `milestone/-`), else `main`. Use it for `--base` and wherever a skill says “the default branch” or `origin/main`. * Never rebase and never force-push. When the base branch has moved, `git merge origin/` and keep both sides of any conflict unless the brief says otherwise. * After a merge whose only purpose is to catch a stale branch up, just push: don’t re-run the gates for that alone. Do mention it when the merged changes touch your PR’s area. * Never use a bare `git stash`; the stash stack is shared with other sessions. ### Gates [Section titled “Gates”](#gates) * The project’s gates (usually `just fmt`, `just lint`, `just test-cached` or `just test`, plus any the brief adds) must be green before every push. Push only when all are green. * If the project has a shared gates lock, run every heavy gate, long test run, image build or kind cluster through it. For autobots: `flock -o ~/.cache/autobots-gates.lock nice -n 19 ionice -c3 `. * A fresh worktree’s first build is cold: pass `--jobs 4` to any cargo build you run yourself. * Never run the kind smoke test locally (`just kind-smoke`, `ci/kind-smoke.sh`): it takes about 40 minutes. The only exception is an issue about the Helm chart, the images or cluster behaviour, and then only when the brief asks for it. CI runs it nightly (pgrace, 2026-11-15). * Report gate results honestly: what ran, what passed, and anything skipped, with the reason. ### The shared machine [Section titled “The shared machine”](#the-shared-machine) * Write logs only inside your worktree (for example `target/i-logs/`) and give scratch files unique names (`pr--*.md`). * Kill only PIDs you started; never kill by pattern. Beware unquoted heredocs. * Wait for a gate, test run or build by running it in the background and waiting for its exit notification. If the repo ships agent scripts (okf_mcp’s `tools/agentic/`), use them (`gate.sh` and the others) rather than your own loops. Only when the repo has none, and you have no other way to wait, poll with a loop that has a deadline (`timeout 10m bash -c '...'`, or a `date +%s` limit). Never write `until [ -f ]; do sleep ...; done`: if the file never appears, the loop runs forever. While it runs, you count as busy, and your next report doesn’t reach the coordinator. * Before you hand back, check that nothing you started is still running in your worktree. * Call plugin scripts by the path the skill you loaded gives them. Don’t copy a path containing a plugin version (`.../plugins/cache////`) from your brief or notes: it may be an older version than the one installed. * Leave no container or kind cluster running, and remove images you built that are not needed. * Remove only the image and container IDs you created. Never run a machine-wide prune (`docker builder prune`, `docker system prune`, `docker image prune`, `docker volume prune`): the build cache and images are shared with every other session (a builder prune once wiped 182 GB of shared cache). * Don’t run `cargo clean` and don’t remove the worktree; the parent does that after merge. ### What you never do [Section titled “What you never do”](#what-you-never-do) * Merge the PR, or post the reviewer bot’s trigger (`/prrb`). The parent does both. * Put real hostnames, domains, registries, cluster or repo names, IP addresses, or personal names or emails into files, commits or PR text. Use `example.com` and `example.internal`. * Commit, log or print a secret or token. Never use emoji. * Expand scope. If the issue turns out to need a large change, or you find an unrelated bug, stop and report it rather than fixing it here. ### Attribution [Section titled “Attribution”](#attribution) * End every commit message with the model you run on, normally `Co-Authored-By: Claude Sonnet 5.5 `, or `Co-Authored-By: Claude Opus 5.5 ` when you were started on Opus to take over a PR. * End every PR description with: `🤖 Generated with [Claude Code](https://claude.com/claude-code)` * Put `Closes #` in the PR body. ### Your report [Section titled “Your report”](#your-report) Report the PR URL, the gate results, the tests you added, the claims-audit counts by verdict, any plan divergences and the issues you commented on, and anything surprising. Keep it short: the parent reads only your report. # Dependencies > What the skills need that this repository doesn't ship, where to get it, and which plugins and skills need it. These are the things the skills here rely on but this repository doesn’t ship: other skill packs, MCP servers, command-line tools and services. Each entry says where to get it and which plugins and skills need it, as required or optional. ## Skill packs [Section titled “Skill packs”](#skill-packs) []() ### superpowers [Section titled “superpowers”](#superpowers) A skill pack for coding agents. Skills here that name a `superpowers:` skill need it. * **Link:** * **Install:** In Claude Code, `/plugin install superpowers@claude-plugins-official`. * **Needed by:** * Skill [github-milestone-plan-to-issues](/pg-skills/reference/skills/github-milestone-plan-to-issues/), required: writing the milestone plan with `superpowers:writing-plans` ## Skills [Section titled “Skills”](#skills) []() ### claims-audit [Section titled “claims-audit”](#claims-audit) The skill that audits a change’s claims with recorded evidence and supported, refuted or not-enough-info verdicts. The auditor subagent follows it. * **Link:** * **Install:** Copy its folder into your Claude Code skills directory, then restart Claude Code. See claims-mcp’s install guide: * **Needed by:** * Skill [github-issue-to-pr](/pg-skills/reference/skills/github-issue-to-pr/), required: the claims audit in step 7a * Skill [github-epic-to-merged-prs](/pg-skills/reference/skills/github-epic-to-merged-prs/), required: the claims audit in github-issue-to-pr’s step 7a, which each issue-implementer agent it starts runs * Skill [github-issue-burndown](/pg-skills/reference/skills/github-issue-burndown/), required: the claims audit in github-issue-to-pr’s step 7a, which each issue-implementer agent it starts runs * Skill [forgejo-issue-to-pr](/pg-skills/reference/skills/forgejo-issue-to-pr/), required: the claims audit in step 7a ## MCP servers [Section titled “MCP servers”](#mcp-servers) []() ### claims-mcp [Section titled “claims-mcp”](#claims-mcp) An MCP server that keeps a ledger of claims, evidence and verdicts (`claims.json`). The claims-audit skill uses it. * **Link:** * **Install:** Install a release binary, or `cargo install --locked --git https://github.com/hypotheosis/claims-mcp`, then register it with `claude mcp add --scope project claims -- claims-mcp --catalog claims.json`. * **Needed by:** * Skill [github-issue-to-pr](/pg-skills/reference/skills/github-issue-to-pr/), optional: recording the audit in a `claims.json` ledger; table-only mode makes no calls * Skill [forgejo-issue-to-pr](/pg-skills/reference/skills/forgejo-issue-to-pr/), optional: recording the audit in a `claims.json` ledger; table-only mode makes no calls []() ### forgejo-mcp [Section titled “forgejo-mcp”](#forgejo-mcp) An MCP server for Forgejo. The forgejo-workflows skills read and file issues and pull requests through it. * **Link:** * **Install:** Use its Docker image, `go install github.com/raohwork/forgejo-mcp@latest`, or a release binary, then configure it for your Forgejo host. * **Needed by:** * Plugin [forgejo-workflows](/pg-skills/reference/plugins/forgejo-workflows/), required: reading and filing issues and pull requests []() ### Telekin (knowledge catalog) [Section titled “Telekin (knowledge catalog)”](#telekin-knowledge-catalog) A long-term memory that AI assistants share, kept as catalogs of notes and served over MCP. The coordinator and close-out skills read and write one if you have it. The open-source server it is built on, [hypotheosis/okf_mcp](https://github.com/hypotheosis/okf_mcp), can be self-hosted. * **Link:** * **Note:** The catalog these skills point to is the author’s own and private, so you can’t read it. Skip those pointers or use your own notes. * **Needed by:** * Skill [github-milestone-plan-to-issues](/pg-skills/reference/skills/github-milestone-plan-to-issues/), optional: background reading in the author’s catalog * Skill [github-epic-to-merged-prs](/pg-skills/reference/skills/github-epic-to-merged-prs/), optional: background reading in the author’s catalog * Skill [github-issue-burndown](/pg-skills/reference/skills/github-issue-burndown/), optional: background reading in the author’s catalog * Skill [github-epic-close-out](/pg-skills/reference/skills/github-epic-close-out/), optional: background reading in the author’s catalog ## Command-line tools [Section titled “Command-line tools”](#command-line-tools) []() ### Git [Section titled “Git”](#git) The version control system. The skills create branches and worktrees, commit and push. * **Link:** * **Needed by:** * Plugin [github-workflows](/pg-skills/reference/plugins/github-workflows/), required: branches, worktrees, commits and pushes * Plugin [forgejo-workflows](/pg-skills/reference/plugins/forgejo-workflows/), required: branches, worktrees, commits and pushes []() ### GitHub CLI (gh) [Section titled “GitHub CLI (gh)”](#github-cli-gh) GitHub’s command-line client. The GitHub skills read and file issues and pull requests with it. * **Link:** * **Needed by:** * Plugin [github-workflows](/pg-skills/reference/plugins/github-workflows/), required: reading and filing issues and pull requests []() ### just [Section titled “just”](#just) A command runner. The skills run the target project’s `just fmt` and `just test` gates, and this repository’s own checks run through it. * **Link:** * **Needed by:** * Skill [authoring-skills](/pg-skills/reference/skills/authoring-skills/), required: running `just generate` and `just check` * Skill [github-issue-to-pr](/pg-skills/reference/skills/github-issue-to-pr/), required: the `just fmt` and `just test` gates, which it stops without * Skill [github-address-pr-review](/pg-skills/reference/skills/github-address-pr-review/), optional: the `just fmt` and `just test` gates; it skips missing ones * Skill [github-epic-to-merged-prs](/pg-skills/reference/skills/github-epic-to-merged-prs/), required: the `just fmt` and `just test` gates, which the issue-implementer agents it starts run through github-issue-to-pr * Skill [github-issue-burndown](/pg-skills/reference/skills/github-issue-burndown/), required: the `just fmt` and `just test` gates, which the issue-implementer agents it starts run through github-issue-to-pr * Skill [forgejo-issue-to-pr](/pg-skills/reference/skills/forgejo-issue-to-pr/), required: the `just fmt` and `just test` gates, which it stops without * Skill [forgejo-address-pr-review](/pg-skills/reference/skills/forgejo-address-pr-review/), optional: the `just fmt` and `just test` gates; it skips missing ones []() ### uv [Section titled “uv”](#uv) A Python package and script runner. This repository’s validator and tests run through it. * **Link:** * **Needed by:** * Skill [authoring-skills](/pg-skills/reference/skills/authoring-skills/), required: running the validator and tests through `just` []() ### jq [Section titled “jq”](#jq) A command-line JSON processor. The scripts of github-issue-burndown parse GitHub API output with it. * **Link:** * **Needed by:** * Plugin [github-workflows](/pg-skills/reference/plugins/github-workflows/), optional: the PreCompact hook reads the session’s directory from its input with it; without jq it uses the current directory * Skill [github-issue-burndown](/pg-skills/reference/skills/github-issue-burndown/), required: its scripts (`next-issue.sh`, `brooke-ok.sh` and the others) parse GitHub API JSON with it []() ### Python 3 [Section titled “Python 3”](#python-3) The Python interpreter. The token-usage-review script runs on it and uses only the standard library. * **Link:** * **Needed by:** * Skill [token-usage-review](/pg-skills/reference/skills/token-usage-review/), required: running `scripts/usage_report.py` ## Services [Section titled “Services”](#services) []() ### A pull-request review bot or a human reviewer [Section titled “A pull-request review bot or a human reviewer”](#a-pull-request-review-bot-or-a-human-reviewer) Something that reviews each pull request and posts comments the skills then answer. * **Note:** The author uses Brooke, a self-hosted review bot that isn’t public. Use any review bot, or review the PRs yourself. See the glossary for what to change in the scripts. * **Needed by:** * Skill [github-address-pr-review](/pg-skills/reference/skills/github-address-pr-review/), required: the review whose comments it answers * Skill [github-epic-to-merged-prs](/pg-skills/reference/skills/github-epic-to-merged-prs/), required: reviewing every sub-issue PR, driven by the author’s Brooke bot * Skill [github-issue-burndown](/pg-skills/reference/skills/github-issue-burndown/), required: reviewing every PR; its scripts read the author’s Brooke bot * Skill [github-epic-close-out](/pg-skills/reference/skills/github-epic-close-out/), optional: the review gate, which checks that every PR was reviewed * Skill [forgejo-address-pr-review](/pg-skills/reference/skills/forgejo-address-pr-review/), required: the review whose comments it answers # Glossary > The personal names and conventions these skills use, and how to adapt them. These skills are written for my own setup, so they name my bots, servers, projects and habits. This page says what each of those is, so you can map it onto your own setup before you install a plugin. Each entry ends with **Adapt:**, saying what to change. ## People and bots [Section titled “People and bots”](#people-and-bots) ### Brooke (`brooke-reviews[bot]`) [Section titled “Brooke (brooke-reviews\[bot\])”](#brooke-brooke-reviewsbot) My pull-request review bot: the GitHub App of *prrb*, my self-hosted LLM PR reviewer, named after my cat. She reviews every PR, posts a scored verdict, inline comments and a security section, and acknowledges a request with an 👀 reaction. Posting `/prrb` on a PR asks her to review it again. The `github-issue-burndown` scripts read her reviews (`brooke-ok.sh`, `wait-brooke.sh`, `brooke-security.sh`, `merge-if-ready.sh`). **Adapt:** put your reviewer’s login in the `bot=` line of each of those scripts and your bot’s re-trigger command in place of `/prrb`. If no bot reviews your PRs, review them yourself where the skills wait for Brooke. Which skills need a reviewer is on the [dependencies page](https://petergrace.github.io/pg-skills/reference/dependencies/#review-bot). ### pgrace [Section titled “pgrace”](#pgrace) Me. Dated notes such as “(pgrace, 2026-11-15)” record a decision I made and when. ## Agents and models [Section titled “Agents and models”](#agents-and-models) ### `issue-implementer` [Section titled “issue-implementer”](#issue-implementer) A Claude Code subagent, shipped in the `github-workflows` plugin, that implements one issue end to end in a git worktree (via `github-issue-to-pr` or `forgejo-issue-to-pr`), then answers the review. The coordinator skills (`github-epic-to-merged-prs`, `github-issue-burndown`, the `*-issue-to-pr` skills when they fan out) always start their implementers as this agent. **Adapt:** read its standing rules (gates, shared-machine etiquette, what it may never do) and change those that don’t match how you work. ### Sonnet-first, Opus to escalate [Section titled “Sonnet-first, Opus to escalate”](#sonnet-first-opus-to-escalate) My model policy for subagents. Implementers and auditors run on Sonnet. A PR moves to Opus only when a skill’s escalation triggers fire, such as a security finding or repeated failed review rounds. I set this to keep within my usage limits. **Adapt:** change the `model` the skills pass if your limits or budget differ. ## Servers and tools [Section titled “Servers and tools”](#servers-and-tools) ### The knowledge catalog (Telekin, OKF) [Section titled “The knowledge catalog (Telekin, OKF)”](#the-knowledge-catalog-telekin-okf) My private catalog of notes about my systems, projects and processes, in Open Knowledge Format and served over MCP by Telekin. Skills point to concepts in it, such as `/processes/subagent-pr-workflow.md`, as background reading. You can’t read it. Telekin, and the open-source server you can self-host, are on the [dependencies page](https://petergrace.github.io/pg-skills/reference/dependencies/#telekin), with the skills that use it. **Adapt:** skip those pointers, or point them at your own docs. ### claims-mcp and `claims-audit` [Section titled “claims-mcp and claims-audit”](#claims-mcp-and-claims-audit) My MCP server and skill for auditing a change’s claims: a ledger (`claims.json`) of claims, evidence and supported/refuted verdicts. The `*-issue-to-pr` skills run `claims-audit` on a fresh subagent before opening a PR. Where to get them, and which skills need them, is on the dependencies page for [claims-mcp](https://petergrace.github.io/pg-skills/reference/dependencies/#claims-mcp) and [claims-audit](https://petergrace.github.io/pg-skills/reference/dependencies/#claims-audit). Only `claims-audit` is required; claims-mcp is needed only for ledger mode. **Adapt:** install `claims-audit` (and claims-mcp if you want a ledger), or drop that step and review the PR against the issue yourself. ### superpowers [Section titled “superpowers”](#superpowers) The [superpowers](https://github.com/obra/superpowers) Claude Code plugin. Skills that name `superpowers:` (for example `superpowers:writing-plans`) need it installed. See its [dependencies entry](https://petergrace.github.io/pg-skills/reference/dependencies/#superpowers). ### forgejo-mcp [Section titled “forgejo-mcp”](#forgejo-mcp) [raohwork/forgejo-mcp](https://github.com/raohwork/forgejo-mcp), the MCP server the `forgejo-*` skills use to talk to a Forgejo instance ([dependencies entry](https://petergrace.github.io/pg-skills/reference/dependencies/#forgejo-mcp)). **Adapt:** configure it for your Forgejo host and token. ## Conventions [Section titled “Conventions”](#conventions) ### Gates: `just fmt`, `cargo clippy`, `just test` [Section titled “Gates: just fmt, cargo clippy, just test”](#gates-just-fmt-cargo-clippy-just-test) Most of my repos are Rust with a `justfile`, and these are the checks that must be green before a push (some repos add `just lint` or `just test-cached`). **Adapt:** swap in your project’s format, lint and test commands. ### Cargo `build-dir` and `cargo clean` before removing a worktree [Section titled “Cargo build-dir and cargo clean before removing a worktree”](#cargo-build-dir-and-cargo-clean-before-removing-a-worktree) My `~/.cargo/config.toml` sets `build-dir` so each checkout builds under `~/.cache/cargo-build/`. `git worktree remove` doesn’t delete that directory, and an agent worktree’s build can reach 30-60 GiB, so the skills run `cargo clean` in a worktree before removing it. **Adapt:** harmless if you build into `target/`; keep it if you also use `build-dir`. ### okf_mcp and autobots [Section titled “okf_mcp and autobots”](#okf_mcp-and-autobots) Two of my repositories that the skills use as examples: okf_mcp (the catalog server, with its `tools/agentic/remove-worktree.sh` script) and autobots (which has a shared gates lock and a long kind smoke test that agents must not run locally). **Adapt:** ignore them, or add the equivalent quirks of your repos. ### The `accepted` label [Section titled “The accepted label”](#the-accepted-label) Marks an issue I’ve triaged and want implemented. `github-issue-burndown` works through the open `accepted` issues, highest priority first. **Adapt:** pass your own label. ### Milestone integration branches (`milestone/-`) [Section titled “Milestone integration branches (milestone/\-\)”](#milestone-integration-branches-milestoneepic-slug) `github-epic-to-merged-prs` merges each sub-issue’s PR into one integration branch for the epic, then merges that branch into `main` once at the end. # forgejo-workflows > Issue-to-PR workflows on Forgejo through the forgejo-mcp server: planning features into issues, grooming and splitting issues, implementing an issue as a pull request, and walking through review comments. Its subagent fan-out uses the issue-implementer agent from github-workflows. Issue-to-PR workflows on Forgejo through the forgejo-mcp server: planning features into issues, grooming and splitting issues, implementing an issue as a pull request, and walking through review comments. Its subagent fan-out uses the issue-implementer agent from github-workflows. **Version** 0.1.2 · **Category** Developer Tools · **Keywords** forgejo, issues, pull-requests, mcp ## Install [Section titled “Install”](#install) | Client | How | | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Claude Code | `/plugin marketplace add PeterGrace/pg-skills`, then `/plugin install forgejo-workflows@pg-skills` | | GitHub Copilot CLI | `copilot plugin marketplace add PeterGrace/pg-skills`, then `copilot plugin install forgejo-workflows@pg-skills` | | OpenAI Codex | `codex plugin marketplace add PeterGrace/pg-skills`, then install `forgejo-workflows` from `/plugins` | | Cursor | No command-line install. On a Teams plan (one team marketplace) or an Enterprise plan (unlimited), import `PeterGrace/pg-skills` with *Import from Repo* under *Dashboard*, *Plugins & MCPs*, *Team Marketplaces*; Cursor reads the repository’s `.cursor-plugin/marketplace.json`, and members then find `forgejo-workflows` in *Customize* ([Cursor’s plugin docs](https://cursor.com/docs/plugins)) | | Gemini CLI | `git clone https://github.com/PeterGrace/pg-skills.git`, then `gemini extensions install ./pg-skills/plugins/forgejo-workflows` | ## Requires [Section titled “Requires”](#requires) * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes * [forgejo-mcp](/pg-skills/reference/dependencies/#forgejo-mcp), required: reading and filing issues and pull requests ## Skills [Section titled “Skills”](#skills) * [forgejo-plan-to-issue](/pg-skills/reference/skills/forgejo-plan-to-issue/) * [forgejo-groom-issue](/pg-skills/reference/skills/forgejo-groom-issue/) * [forgejo-issue-to-subissues](/pg-skills/reference/skills/forgejo-issue-to-subissues/) * [forgejo-issue-to-pr](/pg-skills/reference/skills/forgejo-issue-to-pr/) * [forgejo-address-pr-review](/pg-skills/reference/skills/forgejo-address-pr-review/) # github-workflows > Issue-to-merged-PR workflows on GitHub with the gh CLI: planning features and milestones into issues, grooming and splitting issues, implementing them in worktrees with subagents, answering review-bot feedback, burning down a backlog and closing out epics. Ships the issue-implementer subagent. Issue-to-merged-PR workflows on GitHub with the gh CLI: planning features and milestones into issues, grooming and splitting issues, implementing them in worktrees with subagents, answering review-bot feedback, burning down a backlog and closing out epics. Ships the issue-implementer subagent. **Version** 0.2.0 · **Category** Developer Tools · **Keywords** github, gh, issues, pull-requests, subagents, code-review ## Install [Section titled “Install”](#install) | Client | How | | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Claude Code | `/plugin marketplace add PeterGrace/pg-skills`, then `/plugin install github-workflows@pg-skills` | | GitHub Copilot CLI | `copilot plugin marketplace add PeterGrace/pg-skills`, then `copilot plugin install github-workflows@pg-skills` | | OpenAI Codex | `codex plugin marketplace add PeterGrace/pg-skills`, then install `github-workflows` from `/plugins` | | Cursor | No command-line install. On a Teams plan (one team marketplace) or an Enterprise plan (unlimited), import `PeterGrace/pg-skills` with *Import from Repo* under *Dashboard*, *Plugins & MCPs*, *Team Marketplaces*; Cursor reads the repository’s `.cursor-plugin/marketplace.json`, and members then find `github-workflows` in *Customize* ([Cursor’s plugin docs](https://cursor.com/docs/plugins)) | | Gemini CLI | `git clone https://github.com/PeterGrace/pg-skills.git`, then `gemini extensions install ./pg-skills/plugins/github-workflows` | ## Requires [Section titled “Requires”](#requires) * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes * [GitHub CLI (gh)](/pg-skills/reference/dependencies/#gh), required: reading and filing issues and pull requests * [jq](/pg-skills/reference/dependencies/#jq), optional: the PreCompact hook reads the session’s directory from its input with it; without jq it uses the current directory ## Skills [Section titled “Skills”](#skills) * [github-plan-to-issue](/pg-skills/reference/skills/github-plan-to-issue/) * [github-milestone-plan-to-issues](/pg-skills/reference/skills/github-milestone-plan-to-issues/) * [github-groom-issue](/pg-skills/reference/skills/github-groom-issue/) * [github-issue-to-subissues](/pg-skills/reference/skills/github-issue-to-subissues/) * [github-issue-to-pr](/pg-skills/reference/skills/github-issue-to-pr/) * [github-address-pr-review](/pg-skills/reference/skills/github-address-pr-review/) * [github-epic-to-merged-prs](/pg-skills/reference/skills/github-epic-to-merged-prs/) * [github-issue-burndown](/pg-skills/reference/skills/github-issue-burndown/) * [github-epic-close-out](/pg-skills/reference/skills/github-epic-close-out/) ## Agents [Section titled “Agents”](#agents) * [github-workflows:issue-implementer](/pg-skills/reference/agents/issue-implementer/) # skill-authoring > Skills for writing and maintaining the agent skills in this repository. Skills for writing and maintaining the agent skills in this repository. **Version** 0.1.3 · **Category** Developer Tools · **Keywords** skills, authoring ## Install [Section titled “Install”](#install) | Client | How | | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Claude Code | `/plugin marketplace add PeterGrace/pg-skills`, then `/plugin install skill-authoring@pg-skills` | | GitHub Copilot CLI | `copilot plugin marketplace add PeterGrace/pg-skills`, then `copilot plugin install skill-authoring@pg-skills` | | OpenAI Codex | `codex plugin marketplace add PeterGrace/pg-skills`, then install `skill-authoring` from `/plugins` | | Cursor | No command-line install. On a Teams plan (one team marketplace) or an Enterprise plan (unlimited), import `PeterGrace/pg-skills` with *Import from Repo* under *Dashboard*, *Plugins & MCPs*, *Team Marketplaces*; Cursor reads the repository’s `.cursor-plugin/marketplace.json`, and members then find `skill-authoring` in *Customize* ([Cursor’s plugin docs](https://cursor.com/docs/plugins)) | | Gemini CLI | `git clone https://github.com/PeterGrace/pg-skills.git`, then `gemini extensions install ./pg-skills/plugins/skill-authoring` | ## Skills [Section titled “Skills”](#skills) * [authoring-skills](/pg-skills/reference/skills/authoring-skills/) # study-guides > Skills for writing grounded study documentation for a codebase (architecture overview, module deep dives, glossary, flashcards), fact-checking it against the code, and reconciling the fact-check back into the docs. Skills for writing grounded study documentation for a codebase (architecture overview, module deep dives, glossary, flashcards), fact-checking it against the code, and reconciling the fact-check back into the docs. **Version** 0.1.1 · **Category** Productivity · **Keywords** documentation, onboarding, study-guide, flashcards ## Install [Section titled “Install”](#install) | Client | How | | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Claude Code | `/plugin marketplace add PeterGrace/pg-skills`, then `/plugin install study-guides@pg-skills` | | GitHub Copilot CLI | `copilot plugin marketplace add PeterGrace/pg-skills`, then `copilot plugin install study-guides@pg-skills` | | OpenAI Codex | `codex plugin marketplace add PeterGrace/pg-skills`, then install `study-guides` from `/plugins` | | Cursor | No command-line install. On a Teams plan (one team marketplace) or an Enterprise plan (unlimited), import `PeterGrace/pg-skills` with *Import from Repo* under *Dashboard*, *Plugins & MCPs*, *Team Marketplaces*; Cursor reads the repository’s `.cursor-plugin/marketplace.json`, and members then find `study-guides` in *Customize* ([Cursor’s plugin docs](https://cursor.com/docs/plugins)) | | Gemini CLI | `git clone https://github.com/PeterGrace/pg-skills.git`, then `gemini extensions install ./pg-skills/plugins/study-guides` | ## Skills [Section titled “Skills”](#skills) * [codebase-study-guide](/pg-skills/reference/skills/codebase-study-guide/) * [study-guide-fact-check](/pg-skills/reference/skills/study-guide-fact-check/) * [study-guide-reconcile](/pg-skills/reference/skills/study-guide-reconcile/) # usage-analysis > Skills for working out where Claude Code token usage goes, from local session transcripts: by model, token type, session and subagent type, with the fixes that cut it. Skills for working out where Claude Code token usage goes, from local session transcripts: by model, token type, session and subagent type, with the fixes that cut it. **Version** 0.1.0 · **Category** Developer Tools · **Keywords** usage, tokens, cost, subagents, limits ## Install [Section titled “Install”](#install) | Client | How | | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Claude Code | `/plugin marketplace add PeterGrace/pg-skills`, then `/plugin install usage-analysis@pg-skills` | | GitHub Copilot CLI | `copilot plugin marketplace add PeterGrace/pg-skills`, then `copilot plugin install usage-analysis@pg-skills` | | OpenAI Codex | `codex plugin marketplace add PeterGrace/pg-skills`, then install `usage-analysis` from `/plugins` | | Cursor | No command-line install. On a Teams plan (one team marketplace) or an Enterprise plan (unlimited), import `PeterGrace/pg-skills` with *Import from Repo* under *Dashboard*, *Plugins & MCPs*, *Team Marketplaces*; Cursor reads the repository’s `.cursor-plugin/marketplace.json`, and members then find `usage-analysis` in *Customize* ([Cursor’s plugin docs](https://cursor.com/docs/plugins)) | | Gemini CLI | `git clone https://github.com/PeterGrace/pg-skills.git`, then `gemini extensions install ./pg-skills/plugins/usage-analysis` | ## Skills [Section titled “Skills”](#skills) * [token-usage-review](/pg-skills/reference/skills/token-usage-review/) # authoring-skills > Adds or changes an agent skill in the PeterGrace/pg-skills repository, from SKILL.md and catalog.yaml through regenerating manifests, checks, and pushing a release. Use when asked to write, add, edit, rename or remove a skill or plugin in pg-skills, or when a change there fails `just check`. > Adds or changes an agent skill in the PeterGrace/pg-skills repository, from SKILL.md and catalog.yaml through regenerating manifests, checks, and pushing a release. Use when asked to write, add, edit, rename or remove a skill or plugin in pg-skills, or when a change there fails `just check`. | Field | Value | | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Plugin | [skill-authoring](/pg-skills/reference/plugins/skill-authoring/) | | Invoke as | `skill-authoring:authoring-skills` | | Source | [`plugins/skill-authoring/skills/authoring-skills/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/skill-authoring/skills/authoring-skills/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [just](/pg-skills/reference/dependencies/#just), required: running `just generate` and `just check` * [uv](/pg-skills/reference/dependencies/#uv), required: running the validator and tests through `just` # codebase-study-guide > Generate grounded study documentation for an existing codebase — an architecture overview, per-module deep dives, a glossary, and Anki-ready flashcards — written as markdown into the repository's docs/ folder. Use this skill whenever the user wants to study, learn, onboard onto, document, or "make sense of" a codebase; asks for a study guide, onboarding guide, architecture doc, code walkthrough, glossary, or flashcards for a repo; or wants to help a team talk more knowledgeably about how a system works. Trigger this even when the user only says they want to "document the codebase" or "understand" an unfamiliar repo, and even if they don't use the words "study guide," "flashcards," or "skill." > Generate grounded study documentation for an existing codebase — an architecture overview, per-module deep dives, a glossary, and Anki-ready flashcards — written as markdown into the repository’s docs/ folder. Use this skill whenever the user wants to study, learn, onboard onto, document, or “make sense of” a codebase; asks for a study guide, onboarding guide, architecture doc, code walkthrough, glossary, or flashcards for a repo; or wants to help a team talk more knowledgeably about how a system works. Trigger this even when the user only says they want to “document the codebase” or “understand” an unfamiliar repo, and even if they don’t use the words “study guide,” “flashcards,” or “skill.” | Field | Value | | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Plugin | [study-guides](/pg-skills/reference/plugins/study-guides/) | | Invoke as | `study-guides:codebase-study-guide` | | Source | [`plugins/study-guides/skills/codebase-study-guide/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/study-guides/skills/codebase-study-guide/SKILL.md) | # forgejo-address-pr-review > Walks a user through the review comments on an open Forgejo pull request one comment at a time using the `raohwork/forgejo-mcp` server. For each comment, presents a suggested resolution and prompts the user with five options (accept / explain / skip / expand / quit). The per-comment choice is the only approval gate: once the user picks a disposition, Claude carries it out fully — editing files, committing, pushing, and posting replies — without asking for further confirmation. Use this skill whenever the user asks Claude to "walk me through the review comments on PR N", "let's go through the feedback on one by one", "address the review on PR N interactively", "suggest fixes for each comment on PR N", or any similar phrasing that implies wanting per-comment suggestions and human-in-the-loop control rather than autonomous batch fixes. > Walks a user through the review comments on an open Forgejo pull request one comment at a time using the `raohwork/forgejo-mcp` server. For each comment, presents a suggested resolution and prompts the user with five options (accept / explain / skip / expand / quit). The per-comment choice is the only approval gate: once the user picks a disposition, Claude carries it out fully — editing files, committing, pushing, and posting replies — without asking for further confirmation. Use this skill whenever the user asks Claude to “walk me through the review comments on PR N”, “let’s go through the feedback on \ one by one”, “address the review on PR N interactively”, “suggest fixes for each comment on PR N”, or any similar phrasing that implies wanting per-comment suggestions and human-in-the-loop control rather than autonomous batch fixes. | Field | Value | | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Plugin | [forgejo-workflows](/pg-skills/reference/plugins/forgejo-workflows/) | | Invoke as | `forgejo-workflows:forgejo-address-pr-review` | | Source | [`plugins/forgejo-workflows/skills/forgejo-address-pr-review/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/forgejo-workflows/skills/forgejo-address-pr-review/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [A pull-request review bot or a human reviewer](/pg-skills/reference/dependencies/#review-bot), required: the review whose comments it answers * [just](/pg-skills/reference/dependencies/#just), optional: the `just fmt` and `just test` gates; it skips missing ones * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [forgejo-mcp](/pg-skills/reference/dependencies/#forgejo-mcp), required: reading and filing issues and pull requests (from the plugin) # forgejo-groom-issue > Push-through workflow that turns a thin, vague, or under-specified Forgejo issue into a well-formed, ready-to-implement work-item using the `forgejo` MCP server (raohwork/forgejo-mcp). Reads the issue, investigates it against the actual codebase, archives the original title and description as a comment, then overwrites the body with a structured work-item (templated by issue type — bug / feature / chore) that `forgejo-issue-to-pr` can action without re-deriving the design. Hands off to `forgejo-issue-to-subissues` when the work is too big for one PR. Use this skill whenever the user asks Claude to "groom issue N", "clean up issue N", "flesh out issue N", "make issue N ready to work on", "turn issue N into a proper work-item", "investigate issue N and write it up", "tidy up ", or any similar phrasing that implies taking a rough issue and shaping it into something implementable. This is a push-through workflow — the normal path investigates and rewrites the body without an acceptance gate. > Push-through workflow that turns a thin, vague, or under-specified Forgejo issue into a well-formed, ready-to-implement work-item using the `forgejo` MCP server (raohwork/forgejo-mcp). Reads the issue, investigates it against the actual codebase, archives the original title and description as a comment, then overwrites the body with a structured work-item (templated by issue type — bug / feature / chore) that `forgejo-issue-to-pr` can action without re-deriving the design. Hands off to `forgejo-issue-to-subissues` when the work is too big for one PR. Use this skill whenever the user asks Claude to “groom issue N”, “clean up issue N”, “flesh out issue N”, “make issue N ready to work on”, “turn issue N into a proper work-item”, “investigate issue N and write it up”, “tidy up \”, or any similar phrasing that implies taking a rough issue and shaping it into something implementable. This is a push-through workflow — the normal path investigates and rewrites the body without an acceptance gate. | Field | Value | | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Plugin | [forgejo-workflows](/pg-skills/reference/plugins/forgejo-workflows/) | | Invoke as | `forgejo-workflows:forgejo-groom-issue` | | Source | [`plugins/forgejo-workflows/skills/forgejo-groom-issue/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/forgejo-workflows/skills/forgejo-groom-issue/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [forgejo-mcp](/pg-skills/reference/dependencies/#forgejo-mcp), required: reading and filing issues and pull requests (from the plugin) # forgejo-issue-to-pr > End-to-end workflow that turns a Forgejo issue into a pull request using the `forgejo` MCP server (raohwork/forgejo-mcp). Reads the target issue, creates a feature branch, implements a fix, runs `just fmt`, `cargo clippy`, and `just test` to validate, has a fresh subagent on a different model audit the change's claims with claims-mcp (updating the repo's `claims.json` ledger when it has one), commits and pushes, opens a PR, and links the PR back to the issue as a comment. Use this skill whenever the user asks Claude to "fix issue N", "work on issue N", "look at issue N and open a PR", "take a look at ", "implement the fix for that issue", or any similar phrasing that implies turning a Forgejo issue into a ready-for-review PR. This is a push-through workflow — do not stop for confirmation between steps unless validation fails or the issue is genuinely ambiguous. > End-to-end workflow that turns a Forgejo issue into a pull request using the `forgejo` MCP server (raohwork/forgejo-mcp). Reads the target issue, creates a feature branch, implements a fix, runs `just fmt`, `cargo clippy`, and `just test` to validate, has a fresh subagent on a different model audit the change’s claims with claims-mcp (updating the repo’s `claims.json` ledger when it has one), commits and pushes, opens a PR, and links the PR back to the issue as a comment. Use this skill whenever the user asks Claude to “fix issue N”, “work on issue N”, “look at issue N and open a PR”, “take a look at \”, “implement the fix for that issue”, or any similar phrasing that implies turning a Forgejo issue into a ready-for-review PR. This is a push-through workflow — do not stop for confirmation between steps unless validation fails or the issue is genuinely ambiguous. | Field | Value | | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Plugin | [forgejo-workflows](/pg-skills/reference/plugins/forgejo-workflows/) | | Invoke as | `forgejo-workflows:forgejo-issue-to-pr` | | Source | [`plugins/forgejo-workflows/skills/forgejo-issue-to-pr/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/forgejo-workflows/skills/forgejo-issue-to-pr/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [just](/pg-skills/reference/dependencies/#just), required: the `just fmt` and `just test` gates, which it stops without * [claims-audit](/pg-skills/reference/dependencies/#claims-audit), required: the claims audit in step 7a * [claims-mcp](/pg-skills/reference/dependencies/#claims-mcp), optional: recording the audit in a `claims.json` ledger; table-only mode makes no calls * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [forgejo-mcp](/pg-skills/reference/dependencies/#forgejo-mcp), required: reading and filing issues and pull requests (from the plugin) # forgejo-issue-to-subissues > Breaks a large Forgejo "epic" issue that contains a multi-phase implementation plan into a set of scoped sub-issues using the `forgejo` MCP server (raohwork/forgejo-mcp). Reads the parent issue, identifies the phases in its implementation plan, proposes a breakdown in plan mode, and — after the user accepts — files one sub-issue per phase, wires up forgejo issue dependencies so phases are ordered, and comments on the parent with an index of the sub-issues. Use this skill whenever the user asks Claude to "break this issue into sub-issues", "split issue N into phases", "turn the plan in issue N into separate tickets", "create sub-issues for each phase of issue N", "decompose issue N", or any similar phrasing that implies fanning one parent issue out into smaller children. This is a plan-then-commit workflow — do not create any sub-issues until the proposed breakdown has been explicitly accepted. > Breaks a large Forgejo “epic” issue that contains a multi-phase implementation plan into a set of scoped sub-issues using the `forgejo` MCP server (raohwork/forgejo-mcp). Reads the parent issue, identifies the phases in its implementation plan, proposes a breakdown in plan mode, and — after the user accepts — files one sub-issue per phase, wires up forgejo issue dependencies so phases are ordered, and comments on the parent with an index of the sub-issues. Use this skill whenever the user asks Claude to “break this issue into sub-issues”, “split issue N into phases”, “turn the plan in issue N into separate tickets”, “create sub-issues for each phase of issue N”, “decompose issue N”, or any similar phrasing that implies fanning one parent issue out into smaller children. This is a plan-then-commit workflow — do not create any sub-issues until the proposed breakdown has been explicitly accepted. | Field | Value | | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Plugin | [forgejo-workflows](/pg-skills/reference/plugins/forgejo-workflows/) | | Invoke as | `forgejo-workflows:forgejo-issue-to-subissues` | | Source | [`plugins/forgejo-workflows/skills/forgejo-issue-to-subissues/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/forgejo-workflows/skills/forgejo-issue-to-subissues/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [forgejo-mcp](/pg-skills/reference/dependencies/#forgejo-mcp), required: reading and filing issues and pull requests (from the plugin) # forgejo-plan-to-issue > Plan-first workflow that turns a feature idea into a well-structured Forgejo issue using the `forgejo` MCP server (raohwork/forgejo-mcp). Enters plan mode to shape the feature with the user, then commits the finalized plan to the repository's issue tracker so it can be actioned later (e.g. by the `forgejo-issue-to-pr` skill). Use this skill whenever the user asks Claude to "plan a feature", "file a feature issue", "create a feature plan in forgejo", "turn this idea into an issue", "draft an issue for X", "let's plan X and track it", or any similar phrasing that implies producing a Forgejo issue from a design discussion. This is a plan-then-commit workflow — do not create the issue until the plan has been explicitly accepted. > Plan-first workflow that turns a feature idea into a well-structured Forgejo issue using the `forgejo` MCP server (raohwork/forgejo-mcp). Enters plan mode to shape the feature with the user, then commits the finalized plan to the repository’s issue tracker so it can be actioned later (e.g. by the `forgejo-issue-to-pr` skill). Use this skill whenever the user asks Claude to “plan a feature”, “file a feature issue”, “create a feature plan in forgejo”, “turn this idea into an issue”, “draft an issue for X”, “let’s plan X and track it”, or any similar phrasing that implies producing a Forgejo issue from a design discussion. This is a plan-then-commit workflow — do not create the issue until the plan has been explicitly accepted. | Field | Value | | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Plugin | [forgejo-workflows](/pg-skills/reference/plugins/forgejo-workflows/) | | Invoke as | `forgejo-workflows:forgejo-plan-to-issue` | | Source | [`plugins/forgejo-workflows/skills/forgejo-plan-to-issue/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/forgejo-workflows/skills/forgejo-plan-to-issue/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [forgejo-mcp](/pg-skills/reference/dependencies/#forgejo-mcp), required: reading and filing issues and pull requests (from the plugin) # github-address-pr-review > Autonomous per-comment sibling to `github-pr-address-comments`. Walks the review comments on an open GitHub pull request one comment at a time using the `gh` CLI. For each comment, Claude reads the feedback against the code and decides on its own between three dispositions — apply (edit, commit, reply), explain (reply with a justification, no code change), or ignore (no change, no reply) — and carries that decision out fully without asking the user anything. Use this skill whenever the user asks Claude to "walk through the review comments on PR N", "go through the feedback on one by one", "address the review on PR N comment by comment", "work through each comment on PR N", or any similar phrasing that implies handling review feedback per comment. This is a fully autonomous workflow — never stop to ask the user how to dispose of a comment or to confirm any follow-on step (edit, commit, push, reply). > Autonomous per-comment sibling to `github-pr-address-comments`. Walks the review comments on an open GitHub pull request one comment at a time using the `gh` CLI. For each comment, Claude reads the feedback against the code and decides on its own between three dispositions — apply (edit, commit, reply), explain (reply with a justification, no code change), or ignore (no change, no reply) — and carries that decision out fully without asking the user anything. Use this skill whenever the user asks Claude to “walk through the review comments on PR N”, “go through the feedback on \ one by one”, “address the review on PR N comment by comment”, “work through each comment on PR N”, or any similar phrasing that implies handling review feedback per comment. This is a fully autonomous workflow — never stop to ask the user how to dispose of a comment or to confirm any follow-on step (edit, commit, push, reply). | Field | Value | | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Plugin | [github-workflows](/pg-skills/reference/plugins/github-workflows/) | | Invoke as | `github-workflows:github-address-pr-review` | | Source | [`plugins/github-workflows/skills/github-address-pr-review/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/github-workflows/skills/github-address-pr-review/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [A pull-request review bot or a human reviewer](/pg-skills/reference/dependencies/#review-bot), required: the review whose comments it answers * [just](/pg-skills/reference/dependencies/#just), optional: the `just fmt` and `just test` gates; it skips missing ones * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [GitHub CLI (gh)](/pg-skills/reference/dependencies/#gh), required: reading and filing issues and pull requests (from the plugin) * [jq](/pg-skills/reference/dependencies/#jq), optional: the PreCompact hook reads the session’s directory from its input with it; without jq it uses the current directory (from the plugin) # github-epic-close-out > Use when every sub-issue of a GitHub epic or milestone appears done and the epic should be audited against its plan and design before it is closed, or when the user asks to "audit and close epic N", "close out the milestone", "verify the milestone is complete", or "check the epic delivered everything". Also the final step of github-epic-to-merged-prs. > Use when every sub-issue of a GitHub epic or milestone appears done and the epic should be audited against its plan and design before it is closed, or when the user asks to “audit and close epic N”, “close out the milestone”, “verify the milestone is complete”, or “check the epic delivered everything”. Also the final step of github-epic-to-merged-prs. | Field | Value | | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Plugin | [github-workflows](/pg-skills/reference/plugins/github-workflows/) | | Invoke as | `github-workflows:github-epic-close-out` | | Source | [`plugins/github-workflows/skills/github-epic-close-out/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/github-workflows/skills/github-epic-close-out/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [A pull-request review bot or a human reviewer](/pg-skills/reference/dependencies/#review-bot), optional: the review gate, which checks that every PR was reviewed * [Telekin (knowledge catalog)](/pg-skills/reference/dependencies/#telekin), optional: background reading in the author’s catalog * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [GitHub CLI (gh)](/pg-skills/reference/dependencies/#gh), required: reading and filing issues and pull requests (from the plugin) * [jq](/pg-skills/reference/dependencies/#jq), optional: the PreCompact hook reads the session’s directory from its input with it; without jq it uses the current directory (from the plugin) # github-epic-to-merged-prs > Use when a GitHub epic, milestone or plan is broken into several sub-issues and the user wants them carried through to merged PRs by background subagents, one issue each in its own worktree, with each PR reviewed by a person or review bot, the review answered, and the PR merged into a milestone integration branch that lands on main in one final merge. Triggers on "run the sub-issues with subagents", "execute epic N", "work through milestone N's issues", "fan out the issues", "take each sub-issue to a PR", or "keep going the way we did before" after this flow has been used. > Use when a GitHub epic, milestone or plan is broken into several sub-issues and the user wants them carried through to merged PRs by background subagents, one issue each in its own worktree, with each PR reviewed by a person or review bot, the review answered, and the PR merged into a milestone integration branch that lands on main in one final merge. Triggers on “run the sub-issues with subagents”, “execute epic N”, “work through milestone N’s issues”, “fan out the issues”, “take each sub-issue to a PR”, or “keep going the way we did before” after this flow has been used. | Field | Value | | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Plugin | [github-workflows](/pg-skills/reference/plugins/github-workflows/) | | Invoke as | `github-workflows:github-epic-to-merged-prs` | | Source | [`plugins/github-workflows/skills/github-epic-to-merged-prs/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/github-workflows/skills/github-epic-to-merged-prs/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [just](/pg-skills/reference/dependencies/#just), required: the `just fmt` and `just test` gates, which the issue-implementer agents it starts run through github-issue-to-pr * [claims-audit](/pg-skills/reference/dependencies/#claims-audit), required: the claims audit in github-issue-to-pr’s step 7a, which each issue-implementer agent it starts runs * [A pull-request review bot or a human reviewer](/pg-skills/reference/dependencies/#review-bot), required: reviewing every sub-issue PR, driven by the author’s Brooke bot * [Telekin (knowledge catalog)](/pg-skills/reference/dependencies/#telekin), optional: background reading in the author’s catalog * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [GitHub CLI (gh)](/pg-skills/reference/dependencies/#gh), required: reading and filing issues and pull requests (from the plugin) * [jq](/pg-skills/reference/dependencies/#jq), optional: the PreCompact hook reads the session’s directory from its input with it; without jq it uses the current directory (from the plugin) # github-groom-issue > Push-through workflow that turns a thin, vague, or under-specified GitHub issue into a well-formed, ready-to-implement work-item using the `gh` CLI. Reads the issue, investigates it against the actual codebase, archives the original title and description as a comment, then overwrites the body with a structured work-item (templated by issue type — bug / feature / chore) that `github-issue-to-pr` can action without re-deriving the design. Hands off to `github-issue-to-subissues` when the work is too big for one PR. Use this skill whenever the user asks Claude to "groom issue N", "clean up issue N", "flesh out issue N", "make issue N ready to work on", "turn issue N into a proper work-item", "investigate issue N and write it up", "tidy up ", or any similar phrasing that implies taking a rough issue and shaping it into something implementable. This is a push-through workflow — the normal path investigates and rewrites the body without an acceptance gate. > Push-through workflow that turns a thin, vague, or under-specified GitHub issue into a well-formed, ready-to-implement work-item using the `gh` CLI. Reads the issue, investigates it against the actual codebase, archives the original title and description as a comment, then overwrites the body with a structured work-item (templated by issue type — bug / feature / chore) that `github-issue-to-pr` can action without re-deriving the design. Hands off to `github-issue-to-subissues` when the work is too big for one PR. Use this skill whenever the user asks Claude to “groom issue N”, “clean up issue N”, “flesh out issue N”, “make issue N ready to work on”, “turn issue N into a proper work-item”, “investigate issue N and write it up”, “tidy up \”, or any similar phrasing that implies taking a rough issue and shaping it into something implementable. This is a push-through workflow — the normal path investigates and rewrites the body without an acceptance gate. | Field | Value | | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Plugin | [github-workflows](/pg-skills/reference/plugins/github-workflows/) | | Invoke as | `github-workflows:github-groom-issue` | | Source | [`plugins/github-workflows/skills/github-groom-issue/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/github-workflows/skills/github-groom-issue/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [GitHub CLI (gh)](/pg-skills/reference/dependencies/#gh), required: reading and filing issues and pull requests (from the plugin) * [jq](/pg-skills/reference/dependencies/#jq), optional: the PreCompact hook reads the session’s directory from its input with it; without jq it uses the current directory (from the plugin) # github-issue-burndown > Use when the user wants a GitHub repository's open issues labelled `accepted` (or another label) worked through one at a time, highest priority first, to merged PRs, each implemented by a subagent and reviewed by Brooke (brooke-reviews[bot]) until she has nothing left to flag. Triggers on "burn down the accepted issues", "work through the accepted backlog", "issue burndown", "take every accepted issue to a merged PR", or "keep burning down issues". > Use when the user wants a GitHub repository’s open issues labelled `accepted` (or another label) worked through one at a time, highest priority first, to merged PRs, each implemented by a subagent and reviewed by Brooke (brooke-reviews\[bot]) until she has nothing left to flag. Triggers on “burn down the accepted issues”, “work through the accepted backlog”, “issue burndown”, “take every accepted issue to a merged PR”, or “keep burning down issues”. | Field | Value | | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Plugin | [github-workflows](/pg-skills/reference/plugins/github-workflows/) | | Invoke as | `github-workflows:github-issue-burndown` | | Source | [`plugins/github-workflows/skills/github-issue-burndown/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/github-workflows/skills/github-issue-burndown/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [just](/pg-skills/reference/dependencies/#just), required: the `just fmt` and `just test` gates, which the issue-implementer agents it starts run through github-issue-to-pr * [claims-audit](/pg-skills/reference/dependencies/#claims-audit), required: the claims audit in github-issue-to-pr’s step 7a, which each issue-implementer agent it starts runs * [jq](/pg-skills/reference/dependencies/#jq), required: its scripts (`next-issue.sh`, `brooke-ok.sh` and the others) parse GitHub API JSON with it * [A pull-request review bot or a human reviewer](/pg-skills/reference/dependencies/#review-bot), required: reviewing every PR; its scripts read the author’s Brooke bot * [Telekin (knowledge catalog)](/pg-skills/reference/dependencies/#telekin), optional: background reading in the author’s catalog * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [GitHub CLI (gh)](/pg-skills/reference/dependencies/#gh), required: reading and filing issues and pull requests (from the plugin) # github-issue-to-pr > End-to-end workflow that turns a GitHub issue into a pull request using the `gh` CLI. Reads the target issue, creates a feature branch, implements a fix, runs `just fmt`, `cargo clippy`, and `just test` to validate, has a fresh subagent on a different model audit the change's claims with claims-mcp (updating the repo's `claims.json` ledger when it has one), commits and pushes, opens a PR, and links the PR back to the issue as a comment. Use this skill whenever the user asks Claude to "fix issue N", "work on issue N", "look at issue N and open a PR", "take a look at ", "implement the fix for that issue", or any similar phrasing that implies turning a GitHub issue into a ready-for-review PR. This is a push-through workflow — do not stop for confirmation between steps unless validation fails or the issue is genuinely ambiguous. > End-to-end workflow that turns a GitHub issue into a pull request using the `gh` CLI. Reads the target issue, creates a feature branch, implements a fix, runs `just fmt`, `cargo clippy`, and `just test` to validate, has a fresh subagent on a different model audit the change’s claims with claims-mcp (updating the repo’s `claims.json` ledger when it has one), commits and pushes, opens a PR, and links the PR back to the issue as a comment. Use this skill whenever the user asks Claude to “fix issue N”, “work on issue N”, “look at issue N and open a PR”, “take a look at \”, “implement the fix for that issue”, or any similar phrasing that implies turning a GitHub issue into a ready-for-review PR. This is a push-through workflow — do not stop for confirmation between steps unless validation fails or the issue is genuinely ambiguous. | Field | Value | | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Plugin | [github-workflows](/pg-skills/reference/plugins/github-workflows/) | | Invoke as | `github-workflows:github-issue-to-pr` | | Source | [`plugins/github-workflows/skills/github-issue-to-pr/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/github-workflows/skills/github-issue-to-pr/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [just](/pg-skills/reference/dependencies/#just), required: the `just fmt` and `just test` gates, which it stops without * [claims-audit](/pg-skills/reference/dependencies/#claims-audit), required: the claims audit in step 7a * [claims-mcp](/pg-skills/reference/dependencies/#claims-mcp), optional: recording the audit in a `claims.json` ledger; table-only mode makes no calls * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [GitHub CLI (gh)](/pg-skills/reference/dependencies/#gh), required: reading and filing issues and pull requests (from the plugin) * [jq](/pg-skills/reference/dependencies/#jq), optional: the PreCompact hook reads the session’s directory from its input with it; without jq it uses the current directory (from the plugin) # github-issue-to-subissues > Breaks a large GitHub "epic" issue that contains a multi-phase implementation plan into a set of scoped sub-issues using the `gh` CLI. Reads the parent issue, identifies the phases in its implementation plan, proposes a breakdown in plan mode, and — after the user accepts — files one sub-issue per phase, nests them under the parent with GitHub's sub-issues API and orders the phases with GitHub issue dependencies ("blocked by"), and comments on the parent with an index of the sub-issues. Use this skill whenever the user asks Claude to "break this issue into sub-issues", "split issue N into phases", "turn the plan in issue N into separate tickets", "create sub-issues for each phase of issue N", "decompose issue N", or any similar phrasing that implies fanning one parent issue out into smaller children. This is a plan-then-commit workflow — do not create any sub-issues until the proposed breakdown has been explicitly accepted. > Breaks a large GitHub “epic” issue that contains a multi-phase implementation plan into a set of scoped sub-issues using the `gh` CLI. Reads the parent issue, identifies the phases in its implementation plan, proposes a breakdown in plan mode, and — after the user accepts — files one sub-issue per phase, nests them under the parent with GitHub’s sub-issues API and orders the phases with GitHub issue dependencies (“blocked by”), and comments on the parent with an index of the sub-issues. Use this skill whenever the user asks Claude to “break this issue into sub-issues”, “split issue N into phases”, “turn the plan in issue N into separate tickets”, “create sub-issues for each phase of issue N”, “decompose issue N”, or any similar phrasing that implies fanning one parent issue out into smaller children. This is a plan-then-commit workflow — do not create any sub-issues until the proposed breakdown has been explicitly accepted. | Field | Value | | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Plugin | [github-workflows](/pg-skills/reference/plugins/github-workflows/) | | Invoke as | `github-workflows:github-issue-to-subissues` | | Source | [`plugins/github-workflows/skills/github-issue-to-subissues/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/github-workflows/skills/github-issue-to-subissues/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [GitHub CLI (gh)](/pg-skills/reference/dependencies/#gh), required: reading and filing issues and pull requests (from the plugin) * [jq](/pg-skills/reference/dependencies/#jq), optional: the PreCompact hook reads the session’s directory from its input with it; without jq it uses the current directory (from the plugin) # github-milestone-plan-to-issues > Use when a project's design document lays out milestones or phases and the user wants the next one turned into an implementation plan plus a GitHub epic with one sub-issue per task, ready for subagents to execute. Triggers on "plan milestone N", "write the plan for the next milestone", "write the milestone plan and file the epic and sub-issues", "take DESIGN.md section X and turn it into issues", or "set up the next milestone the way we did the last one". > Use when a project’s design document lays out milestones or phases and the user wants the next one turned into an implementation plan plus a GitHub epic with one sub-issue per task, ready for subagents to execute. Triggers on “plan milestone N”, “write the plan for the next milestone”, “write the milestone plan and file the epic and sub-issues”, “take DESIGN.md section X and turn it into issues”, or “set up the next milestone the way we did the last one”. | Field | Value | | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Plugin | [github-workflows](/pg-skills/reference/plugins/github-workflows/) | | Invoke as | `github-workflows:github-milestone-plan-to-issues` | | Source | [`plugins/github-workflows/skills/github-milestone-plan-to-issues/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/github-workflows/skills/github-milestone-plan-to-issues/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [superpowers](/pg-skills/reference/dependencies/#superpowers), required: writing the milestone plan with `superpowers:writing-plans` * [Telekin (knowledge catalog)](/pg-skills/reference/dependencies/#telekin), optional: background reading in the author’s catalog * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [GitHub CLI (gh)](/pg-skills/reference/dependencies/#gh), required: reading and filing issues and pull requests (from the plugin) * [jq](/pg-skills/reference/dependencies/#jq), optional: the PreCompact hook reads the session’s directory from its input with it; without jq it uses the current directory (from the plugin) # github-plan-to-issue > Plan-first workflow that turns a feature idea into a well-structured GitHub issue using the `gh` CLI. Enters plan mode to shape the feature with the user, then commits the finalized plan to the repository's issue tracker so it can be actioned later (e.g. by the `github-issue-to-pr` skill). Use this skill whenever the user asks Claude to "plan a feature", "file a feature issue", "create a feature plan in github", "turn this idea into an issue", "draft an issue for X", "let's plan X and track it", or any similar phrasing that implies producing a GitHub issue from a design discussion. This is a plan-then-commit workflow — do not create the issue until the plan has been explicitly accepted. > Plan-first workflow that turns a feature idea into a well-structured GitHub issue using the `gh` CLI. Enters plan mode to shape the feature with the user, then commits the finalized plan to the repository’s issue tracker so it can be actioned later (e.g. by the `github-issue-to-pr` skill). Use this skill whenever the user asks Claude to “plan a feature”, “file a feature issue”, “create a feature plan in github”, “turn this idea into an issue”, “draft an issue for X”, “let’s plan X and track it”, or any similar phrasing that implies producing a GitHub issue from a design discussion. This is a plan-then-commit workflow — do not create the issue until the plan has been explicitly accepted. | Field | Value | | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Plugin | [github-workflows](/pg-skills/reference/plugins/github-workflows/) | | Invoke as | `github-workflows:github-plan-to-issue` | | Source | [`plugins/github-workflows/skills/github-plan-to-issue/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/github-workflows/skills/github-plan-to-issue/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [Git](/pg-skills/reference/dependencies/#git), required: branches, worktrees, commits and pushes (from the plugin) * [GitHub CLI (gh)](/pg-skills/reference/dependencies/#gh), required: reading and filing issues and pull requests (from the plugin) * [jq](/pg-skills/reference/dependencies/#jq), optional: the PreCompact hook reads the session’s directory from its input with it; without jq it uses the current directory (from the plugin) # study-guide-fact-check > Adversarially fact-check a codebase study guide (or any code documentation) against the actual source code, flagging claims that are wrong, unsupported, stale, or stated with false confidence, and proposing corrections. Use this skill whenever the user wants to verify, fact-check, audit, validate, red-team, or "check the accuracy of" a study guide, onboarding doc, architecture doc, glossary, flashcards, or any generated documentation against the code it describes — especially as a second pass run on a different model than wrote the docs, to catch hallucinations and circular reasoning. Trigger this even when the user only says "make sure the docs are right," "check these docs against the code," or "see what the study guide got wrong." > Adversarially fact-check a codebase study guide (or any code documentation) against the actual source code, flagging claims that are wrong, unsupported, stale, or stated with false confidence, and proposing corrections. Use this skill whenever the user wants to verify, fact-check, audit, validate, red-team, or “check the accuracy of” a study guide, onboarding doc, architecture doc, glossary, flashcards, or any generated documentation against the code it describes — especially as a second pass run on a different model than wrote the docs, to catch hallucinations and circular reasoning. Trigger this even when the user only says “make sure the docs are right,” “check these docs against the code,” or “see what the study guide got wrong.” | Field | Value | | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Plugin | [study-guides](/pg-skills/reference/plugins/study-guides/) | | Invoke as | `study-guides:study-guide-fact-check` | | Source | [`plugins/study-guides/skills/study-guide-fact-check/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/study-guides/skills/study-guide-fact-check/SKILL.md) | # study-guide-reconcile > Reconcile the output of a study-guide fact-check with the original codebase study guide: triage each finding against the actual source code, apply the corrections that hold up, reframe overconfident claims, defer the ones that need a human, and record every change. Use this skill whenever the user wants to refactor, revise, update, correct, or "apply the fact-check to" a study guide or code documentation; incorporate review findings back into the docs; or close the loop after an adversarial fact-check pass. Trigger this even when the user only says "fix the docs based on the review," "apply the corrections," or "merge the fact-check findings." > Reconcile the output of a study-guide fact-check with the original codebase study guide: triage each finding against the actual source code, apply the corrections that hold up, reframe overconfident claims, defer the ones that need a human, and record every change. Use this skill whenever the user wants to refactor, revise, update, correct, or “apply the fact-check to” a study guide or code documentation; incorporate review findings back into the docs; or close the loop after an adversarial fact-check pass. Trigger this even when the user only says “fix the docs based on the review,” “apply the corrections,” or “merge the fact-check findings.” | Field | Value | | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Plugin | [study-guides](/pg-skills/reference/plugins/study-guides/) | | Invoke as | `study-guides:study-guide-reconcile` | | Source | [`plugins/study-guides/skills/study-guide-reconcile/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/study-guides/skills/study-guide-reconcile/SKILL.md) | # token-usage-review > Works out where local Claude Code token usage went over a window (default the last 7 days) from the session transcripts: by model, token type, project, day and session, main session vs subagents by agent type and model, coordinator context sizes, and Opus overrides with no stated reason. Then maps each finding to a fix. Use when the user is near or over a usage or weekly limit, asks where their tokens or spend went, why usage is so high, which sessions or subagents cost the most, or wants a usage review or follow-up check. > Works out where local Claude Code token usage went over a window (default the last 7 days) from the session transcripts: by model, token type, project, day and session, main session vs subagents by agent type and model, coordinator context sizes, and Opus overrides with no stated reason. Then maps each finding to a fix. Use when the user is near or over a usage or weekly limit, asks where their tokens or spend went, why usage is so high, which sessions or subagents cost the most, or wants a usage review or follow-up check. | Field | Value | | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Plugin | [usage-analysis](/pg-skills/reference/plugins/usage-analysis/) | | Invoke as | `usage-analysis:token-usage-review` | | Source | [`plugins/usage-analysis/skills/token-usage-review/SKILL.md`](https://github.com/PeterGrace/pg-skills/blob/main/plugins/usage-analysis/skills/token-usage-review/SKILL.md) | ## Requires [Section titled “Requires”](#requires) * [Python 3](/pg-skills/reference/dependencies/#python), required: running `scripts/usage_report.py` # Your first issue to merged PR > Install the github-workflows plugin, file a tiny issue on a sandbox repository, and take it through a reviewed pull request to a merge. In this tutorial you take one small issue all the way to a merged pull request, with an AI agent doing the work and you doing the reviewing. At the end you’ll have a merged PR on a sandbox repository that you can delete afterwards. You’ll use two skills: `github-issue-to-pr`, which turns an issue into a PR, and `github-address-pr-review`, which answers a review. This is the “curate issue by issue” way of working described in [How I work](/pg-skills/explanation/how-i-work/), and the smallest piece of that workflow. ## What you need [Section titled “What you need”](#what-you-need) * [Claude Code](https://claude.com/claude-code), signed in. * [Git](/pg-skills/reference/dependencies/#git), and the [GitHub CLI](/pg-skills/reference/dependencies/#gh) (`gh`), signed in. Check with `gh auth status`. * [`just`](/pg-skills/reference/dependencies/#just), a command runner. The skills run the project’s `just fmt` and `just test`. * The [`claims-audit`](/pg-skills/reference/dependencies/#claims-audit) skill, which `github-issue-to-pr` needs for its audit step. Install it into your Claude Code skills directory by following claims-mcp’s [install guide](https://hypotheosis.github.io/claims-mcp/guides/install.html#3-install-the-skill), then restart Claude Code. * Python 3, for the sandbox project below. ## 1. Install the plugin [Section titled “1. Install the plugin”](#1-install-the-plugin) In Claude Code, run these two commands. They come from the [github-workflows reference page](/pg-skills/reference/plugins/github-workflows/), which has the install commands for other clients too. ```text /plugin marketplace add PeterGrace/pg-skills /plugin install github-workflows@pg-skills ``` Start a new Claude Code session afterwards so it loads the plugin. ## 2. Create a sandbox repository [Section titled “2. Create a sandbox repository”](#2-create-a-sandbox-repository) In a terminal, create a tiny project and push it to a new repository on your own account. The project is one function and one test, and a `justfile` with the two recipes that `github-issue-to-pr` expects, `fmt` and `test`. ```bash mkdir sandbox-greeter && cd sandbox-greeter git init -b main cat > greeter.py <<'PY' def greet(name): return "Hello, " + name + "!" PY cat > test_greeter.py <<'PY' import unittest from greeter import greet class GreetTest(unittest.TestCase): def test_greet(self): self.assertEqual(greet("Ada"), "Hello, Ada!") if __name__ == "__main__": unittest.main() PY cat > justfile <<'JUST' fmt: @echo "nothing to format" test: python3 -m unittest -v JUST cat > .gitignore <<'IGNORE' __pycache__/ *.py[cod] IGNORE just test git status --short git add . && git commit -m "Add greeter" gh repo create sandbox-greeter --private --source=. --push ``` `just test` should print `OK`. The `.gitignore` keeps Python’s `__pycache__` out of the repository, so later test runs don’t leave the working tree dirty. `git status --short` should list only `.gitignore`, `greeter.py`, `justfile` and `test_greeter.py`. Making the repository private keeps your sandbox out of sight, and you can delete it at the end. ## 3. File a tiny issue [Section titled “3. File a tiny issue”](#3-file-a-tiny-issue) ```bash gh issue create --title "greet should handle an empty name" --body "greet(\"\") returns \"Hello, !\". It should return \"Hello, stranger!\" instead. Add a test." ``` Note the issue number it prints. The rest of this tutorial calls it `1`. ## 4. Run github-issue-to-pr [Section titled “4. Run github-issue-to-pr”](#4-run-github-issue-to-pr) Open Claude Code in the `sandbox-greeter` directory and say: ```text Run the github-issue-to-pr skill on issue 1. ``` Here is what you should see. The skill is a push-through workflow, so it doesn’t stop to ask you unless something fails. 1. Because your session is the top-level one, it hands the work to an `issue-implementer` subagent in a worktree of its own, and relays the report. 2. The agent reads the issue, creates a branch named `-issue-1-`, where the prefix (`fix`, `feat` or `issue`) depends on the issue’s labels and the slug comes from its title, and makes the change. 3. It runs `just fmt` and `just test`. It skips `cargo clippy` because the project has no `Cargo.toml`, and says so. Then it commits. 4. A second, fresh subagent audits the issue’s requirements and the draft PR description against the commit. Your repository has no `claims.json`, so the audit runs in table-only mode and nothing is recorded; the results go into the PR body. The audit follows the [`claims-audit`](/pg-skills/reference/dependencies/#claims-audit) skill, which this plugin doesn’t ship. 5. It pushes, opens a PR whose body includes `Closes #1`, and comments the PR link on the issue. When it finishes you have a PR number. Open it with `gh pr view 2 --web` (use your number) and look at the Summary, the Validation section and the Claims table. To read that table, see [Validate a change](/pg-skills/how-to/validate-a-change/#read-the-verdicts). ## 5. Review the PR [Section titled “5. Review the PR”](#5-review-the-pr) The author uses a review bot, Brooke, for this step. You probably don’t have one, so you’ll be the reviewer. A bot is optional. To see what a bot review looks like, read [one of Brooke’s](/pg-skills/explanation/review-bot/#read-three-real-reviews). You don’t need one to finish this tutorial. Post a review that asks for one more change. GitHub won’t let you approve your own PR, so leave a comment review: ```bash gh pr review 2 --comment --body "Please also add a test for a name with surrounding spaces: greet(\" Ada \") should return \"Hello, Ada!\"." ``` You can also open the PR in your browser, go to Files changed and leave inline comments on particular lines. The next skill reads both kinds. ## 6. Run github-address-pr-review [Section titled “6. Run github-address-pr-review”](#6-run-github-address-pr-review) Back in Claude Code, say: ```text Walk through the review comments on PR 2. ``` The implementer’s worktree may still have the PR’s branch checked out. If the skill reports that it can’t check the branch out, run `git worktree list`, remove the implementer’s worktree with `git worktree remove `, and ask again. This skill never asks you anything. For your comment it should: 1. fetch the PR’s conversation comments, inline comments and review bodies, and find yours; 2. decide to apply it, because it’s a sensible, cheap request within the PR’s scope; 3. edit the code, add the test and commit it, quoting your comment in the message; 4. run `just fmt` and `just test` again, and push only when they pass; 5. reply naming the commit, after the push (a review body gets a top-level PR comment rather than a threaded reply); 6. end with a report: the PR, a count per disposition, the commit SHAs, the validation results and the push status. The skill may also choose to explain and change nothing, and then you’ll see a reply saying why. Either is a valid way to finish this step. ## 7. Merge [Section titled “7. Merge”](#7-merge) Check the PR’s checks and read the new commit. Then merge. The skill doesn’t merge for you, and neither does the workflow unless you tell it to. ```bash gh pr merge 2 --merge ``` Because the PR’s base is `main`, the `Closes #1` in its body closes the issue when it merges. Check: ```bash gh issue view 1 --json state -q .state ``` It prints `CLOSED`. ## What you did [Section titled “What you did”](#what-you-did) You took one issue to a merged PR: an implementer agent opened the PR and a second agent audited its claims, you reviewed it, and a second skill answered your review. That’s the whole loop. The epic workflow runs this same loop for many issues at once. ## Next steps [Section titled “Next steps”](#next-steps) * Delete the sandbox: `gh repo delete sandbox-greeter --yes` (`gh` may first ask you to run `gh auth refresh -s delete_repo`). * Read [How I work](/pg-skills/explanation/how-i-work/) to see where this fits. * Plan a larger piece of work with [Plan a milestone](/pg-skills/how-to/plan-a-milestone/). # Your first study guide > Write a study guide for a small public Python library, fact-check it on a second model, reconcile the findings, and end with a checked guide and a report of every change. In this tutorial you run the whole study-guide loop once, on a small repository you can download. You write a guide with one skill, have a second model check it with another, and fold the findings back in with a third. At the end you’ll have a fact-checked, reconciled guide in a local clone, and a report listing every change made to it. The three skills are [`codebase-study-guide`](/pg-skills/reference/skills/codebase-study-guide/), [`study-guide-fact-check`](/pg-skills/reference/skills/study-guide-fact-check/) and [`study-guide-reconcile`](/pg-skills/reference/skills/study-guide-reconcile/). Why the loop has three steps is in [Why I fact-check generated docs](/pg-skills/explanation/why-fact-check-generated-docs/). You don’t need to read it first. ## What you need [Section titled “What you need”](#what-you-need) * [Claude Code](https://claude.com/claude-code), signed in, with a choice of at least two models. The fact-check pass should run on a different model from the one that wrote the guide, and step 4 does that. * [Git](/pg-skills/reference/dependencies/#git), to clone the repository. * Nothing else from the [dependencies page](/pg-skills/reference/dependencies/). The catalog lists no outside requirements for the study-guides plugin or its three skills. ## The repository you’ll use [Section titled “The repository you’ll use”](#the-repository-youll-use) You’ll write a guide for [`pallets/itsdangerous`](https://github.com/pallets/itsdangerous), a Python library for signing data so that it can be passed through untrusted places such as a cookie or a URL. It suits the tutorial because: * it’s public and under a permissive license, so you can clone it without an account; * it’s small: about 1,200 lines of Python in `__init__.py` and seven modules under `src/itsdangerous/`, few enough to cover in one session. For a codebase with more than about 10 to 15 modules the skill asks which areas to prioritize, or works entry-point-first; * it has a tagged release, `2.2.0`, so you can check out the same code every time and your guide describes the same commit as the one in this tutorial; * it already has a `docs/` folder, so you see the skill nest its output under `docs/study-guide/` instead of mixing it in. You’ll only read the repository. Nothing here pushes to it. ## 1. Install the plugin [Section titled “1. Install the plugin”](#1-install-the-plugin) In Claude Code, run these two commands. They come from the [study-guides reference page](/pg-skills/reference/plugins/study-guides/), which has the install commands for other clients too. ```text /plugin marketplace add PeterGrace/pg-skills /plugin install study-guides@pg-skills ``` If you’ve already added the marketplace, only the second command is new. Start a new Claude Code session afterwards so it loads the plugin. ## 2. Clone the repository [Section titled “2. Clone the repository”](#2-clone-the-repository) In a terminal, in a scratch directory of your choice: ```bash git clone --depth 1 --branch 2.2.0 --config advice.detachedHead=false https://github.com/pallets/itsdangerous itsdangerous-study cd itsdangerous-study git rev-parse --short HEAD ls src/itsdangerous ``` The commit should print as `096c8d4`. The listing should show `__init__.py`, `_json.py`, `encoding.py`, `exc.py`, `serializer.py`, `signer.py`, `timed.py`, `url_safe.py` and `py.typed`. ## 3. Write the guide [Section titled “3. Write the guide”](#3-write-the-guide) Open Claude Code in the `itsdangerous-study` directory. Any model works for this pass, as long as the fact-check in step 4 uses a different one. This tutorial follows Peter’s usual pairing: write with Opus and check with Sonnet. Switch with `/model` if you need to. Then say: ```text Write a study guide for this codebase. ``` The skill works in phases and in order, and you’ll see each of them. 1. **Reconnaissance.** It detects the language, the build system (`pyproject.toml`) and the layout, and looks for entry points. This is a library with no `main`, so the entry point is its public interface, which `src/itsdangerous/__init__.py` re-exports. It notes the tests and the existing `docs/`. It doesn’t read every file yet. 2. **Plan and scope.** It lists the modules it found, each with a path and a one-line guess at its job. The skill confirms the scope before it writes the deep dives. If it asks what to prioritize, answer “all of them”. 3. **Architecture overview.** It writes `00-architecture-overview.md`, built around a real walk of one primary path through the code, with file references at each step. 4. **Module deep dives.** One document per module, written one module at a time. 5. **Glossary.** It collects domain terms and named code constructs. 6. **Flashcards.** It derives Anki-ready cards from the documents it just wrote. You won’t use them in this tutorial. 7. **Index and checklist.** It writes `docs/study-guide/README.md`, with a reading order and a checklist of every *Open questions / verify with an SME* item from all the docs. When it finishes, look at what it wrote: ```bash find docs/study-guide -type f | sort ``` You should see this layout. The module and flashcard file names depend on how the model grouped the code. ```text docs/study-guide/ ├── 00-architecture-overview.md ├── README.md ├── glossary.md ├── flashcards/.txt └── modules/.md ``` Open `00-architecture-overview.md`. Near the top is a header with the generation date and the commit hash, which should be `096c8d4`. Then open the checklist at the bottom of `README.md`. These are the places where the guide itself says it isn’t sure. Don’t edit any of these files by hand: the skill says corrections go through the loop, so that there’s an audit trail. ## 4. Fact-check the guide on a different model [Section titled “4. Fact-check the guide on a different model”](#4-fact-check-the-guide-on-a-different-model) Open a new Claude Code window in the same directory, so the check starts with a fresh context. Run `/model` there and pick a different model from step 3: Sonnet, if you wrote with Opus. Don’t switch models in the session that wrote the guide, because the writing conversation would still be in context. The skills don’t name a model for either pass. What they ask for is that the two differ, because a model checking its own output shares its own blind spots. Then say: ```text Fact-check the study guide in docs/study-guide/. ``` You should see the skill: 1. read the index, and compare the commit in each doc’s header with the current checkout. Both are `096c8d4`, so there’s no drift warning; 2. pull out each doc’s checkable claims, tagging each as a claim about what the code does, a claim about why, or a cross-reference; 3. try to disprove the claims about what the code does, by opening the cited file and the code around it; 4. check that claims about why are hedged, and note any important omissions it can point to in the code; 5. write the report without changing the guide. Look at what it wrote: ```bash find docs/study-guide/fact-check -type f | sort ``` There is a `SUMMARY.md` and a `.review.md` file for each doc it reviewed, laid out like the guide (the flashcards share one `flashcards.review.md`). Open `SUMMARY.md`. Read the provenance section, the totals by severity, and the list under *Fix these first (Critical)*. Then open one `.review.md` and read a finding. It has a verdict, a severity, the claim, the evidence (a file and symbol) and a suggested correction. The review also lists a few spot-checks it verified. The number of findings will differ from run to run. A pass can find several Critical claims, or only Minor ones, or none. Any of those is a valid result. If it reports no findings, the next step has little to do, and you’ve still run the loop. ## 5. Reconcile the findings [Section titled “5. Reconcile the findings”](#5-reconcile-the-findings) The reconcile step can run in the same session, or a new one. The skills don’t name a model for it. It re-checks each finding against the code before it edits anything. Say: ```text Reconcile the fact-check findings into the study guide. ``` You should see the skill: 1. gather the findings from `SUMMARY.md` and the review files; 2. sort each one into apply, reframe, defer or reject, with Critical findings first; 3. re-check each finding it plans to act on against the code, then edit the guide; 4. add a revision line to each doc it changed, update the open questions, and update any flashcard that taught a corrected claim; 5. write `docs/study-guide/fact-check/RECONCILIATION.md`; 6. suggest a re-check if the edits were substantial. Now check its work. Open `RECONCILIATION.md`. The summary table counts the findings per outcome. Compare the total with the findings in `SUMMARY.md`. The report is meant to account for every finding under exactly one outcome. Then find the revision lines: ```bash grep -rn "Revised by study-guide-reconcile" docs/study-guide ``` Open one entry under *Applied*. It has what the guide said before, what it says now and a *Confirmed by* line with a file and symbol. Open that file in `src/itsdangerous/` and check the claim yourself. This is the habit the loop is for. If there are any entries under *Deferred*, find the matching open question in the guide. The report says why it wasn’t resolved and how it was left in the guide. ## 6. Decide whether to check again [Section titled “6. Decide whether to check again”](#6-decide-whether-to-check-again) If the report recommends a re-check, you can do it now. Use a new window on the checking model, as in step 4, with the same fact-check request. It writes new review files and a new summary. The skills don’t say whether a re-run leaves `RECONCILIATION.md` in place, so copy it somewhere outside the `fact-check/` folder first if you want to keep it. Whether to do this, and what to do about the deferred items, is a judgment call. [Why I fact-check generated docs](/pg-skills/explanation/why-fact-check-generated-docs/#how-i-finish-a-guide-that-has-open-findings) says how the author decides. ## What you did [Section titled “What you did”](#what-you-did) You wrote a guide with one pass, had a second model try to disprove it against the code, and applied the corrections the code supported, with a report of what changed and why. The guide is usable now, with its deferred items still flagged. ## Next steps [Section titled “Next steps”](#next-steps) * Delete the clone when you’ve finished with it: remove the `itsdangerous-study` directory. * Do the same on a repository of your own, then use [Fact-check and reconcile a study guide](/pg-skills/how-to/fact-check-a-study-guide/) whenever you have a guide to check. * Read [Why I fact-check generated docs](/pg-skills/explanation/why-fact-check-generated-docs/) for the reasons behind each step.