You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(skills/reporting-a-skill-gap): report a skill gap as an issue a maintainer can reproduce - #79
When a skill in this plugin lets the work down, such as when the user has to add an instruction by hand, the report so far has been a story with no repeatable test, so each fix starts by guessing the scenario. This PR adds reporting-a-skill-gap, which files the gap as an issue on this plugin's repository with a reproduction that a maintainer can run as a RED baseline under superpowers:writing-skills. Installs older than the next release lack the manifest's repository field, so there the skill asks the user for the target repository.
Changes
New skill reporting-a-skill-gap: it resolves the target repository from the plugin manifest and passes --repo on every gh call, finds the exact skill section that failed, searches for an existing issue and comments there instead of filing a duplicate, removes project and personal details, and files through writing-github-issues.
New template skills/reporting-a-skill-gap/templates/skill-gap.md: fixed Skill, Section and Plugin version lines, the instruction added by hand, and a required Reproduction (situation, environment facts, task prompt, failure predicate).
.claude-plugin/plugin.json gets a repository field, so the skill finds the target without a repository name in its text.
One row each in templates/user-CLAUDE.md and the README skill table.
Testing
Isolated subagents without the skill reported a skill gap in three scenarios (a hand-added instruction, a skill that did not trigger with an issue already open, and a manifest without repository). None of 15 reports had a reproduction with a task prompt and a failure predicate, and none named the exact skill section. With the skill, 10 of 10 had both, and all 5 runs in the duplicate case commented on the existing issue. A refactor round fixed task prompts that still carried the user's feature: 5 of 5 reruns used a neutral prompt, and 2 of 2 runs without the repository field asked the user for the repository. The JSON in .claude-plugin/ parses. No script changed.
A skill that files an issue against this plugin needs to know where the plugin lives. The installed copy has no git remote, and the working directory's remote is the user's project. The manifest's standard `repository` field gives the skill one place to read it from, so no skill body hardcodes the slug.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…down as an issue on the plugin's repository
When a skill gave wrong or missing guidance, did not trigger, or made the user paste an instruction by hand, the gap stayed in the session. Agents asked to report it wrote a story a maintainer cannot test: in 15 baseline runs, none gave a task prompt or a failure predicate a RED baseline could replay, and none gave the skill and section as a fixed reference. With no `repository` field in the manifest, all 5 runs went looking in the README or marketplace files, where the marketplace lists more than one repository.
The skill resolves the target from the manifest's `repository` field and asks the user when it is missing. It searches for an existing issue and comments there instead of duplicating. It sanitizes the body to the generic shape of the failure, and fills a template whose required `## Reproduction` section is a scenario a maintainer can replay under superpowers:writing-skills. The GitHub write goes through writing-github-issues and its confirmation gate.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…emplate
The new skill triggers on a moment that can come in any project, not on a step in the feature flow, so the user-scope table is where agents find it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…user who can push to the plugin's repository
Most users of the plugin cannot push to its repository, and GitHub drops the label and the assignee of an issue that such a user creates. The report then claimed metadata that never landed. The skill now checks the push permission first and passes neither field without it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ach occurrence in a comment on an existing issue
The comment form left out `## Where in the plugin`, so a second occurrence on an existing issue lost its plugin version, and a maintainer could not tell an old version from a regression.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…before it is quoted
The template said to quote the instruction word for word, which conflicts with the sanitizing table and can publish a project name or path. The quote now keeps the words except for the reductions of that table.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round 1: review base 29fb1c7. The review had no suppressed findings. The comment gate (comment_growth.py) reported 0 flagged, 0 listed: the changes are to markdown skill text, not code comments, so no comment went to the evaluator. The four threads have their dispositions: one declined (project template scope), three applied in edf84b1, 8485a83 and e1bcf1d.
Add comment-only mechanics for duplicate issue reports
skills/reporting-a-skill-gap/SKILL.md:76
writing-github-issues has no comment-only branch: its four branches create, edit, or stop, and its only gh issue comment path (Step 2D) also rewrites the issue body. In the duplicate path from line 44, this delegation therefore does not define how to add ## Another occurrence without mutating the existing report. Add explicit comment-only mechanics while retaining that skill's confirmation gate.
…since gh api takes no --repo
Step 1 said to pass --repo on every gh command, which makes the push-permission probe of Step 5 fail. gh issue commands keep --repo; gh api calls name the repository in their path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ut rewriting its body
writing-github-issues comments only in its Step 2D, which also reconciles the issue body, so a second occurrence had no defined way to land. Step 5 now gives the comment command, keeps the confirmation gate, and leaves the body as it is.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round 2: review base 29fb1c7. The thread on gh api and --repo is applied in 2134cbf. The finding that the review body lists as previously missed, "Add comment-only mechanics for duplicate issue reports" (SKILL.md:76), is applied in dfbbf34: Step 5 now posts a second occurrence with gh issue comment <num> --repo OWNER/REPO --body-file <file> under the confirmation gate of writing-github-issues, and leaves the issue body as it is. The comment gate reported 0 flagged, 0 listed.
Review full issue details before classifying search matches
skills/reporting-a-skill-gap/SKILL.md:42
The search result list does not expose an issue's full body and comments, yet the branches below require checking whether it covers the same gap and whether the same reproduction is already present. Require opening each plausible result before deciding; otherwise this flow can add a duplicate occurrence or misclassify a closed report from title-only output.
…eciding it is the same gap
The search list shows titles only, but the branches of Step 3 depend on the issue's body, its reproduction, and the version of its fix. Each plausible match is now opened with its comments first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round 3: review base 29fb1c7. The review had no inline findings. The finding that its body lists as previously missed, "Review full issue details before classifying search matches" (SKILL.md:42), is applied in 54e58f5: Step 3 now opens each plausible match with gh issue view <num> --repo OWNER/REPO --comments before it picks a branch. The comment gate reported 0 flagged, 0 listed.
The reason will be displayed to describe this comment to others. Learn more.
Copilot review overview
🔵 Needs a closer look
Closed-but-unfixed reports lack a workflow branch, and the multi-skill template instructions contradict their required format.
Review effort: Balanced Findings: None
Previously missed (2)
In code that hasn't changed since last review
Branch table lacks handling for unfixed closed reports
skills/reporting-a-skill-gap/SKILL.md:46
The branch table omits closed reports that were not fixed, such as issues closed as duplicate or not planned. Those reports satisfy neither version-based branch, so the agent has no prescribed action after being told to choose a branch. Add explicit handling for the closure reason (for example, follow a canonical duplicate and define whether a new occurrence should be added to an unfixed closed report).
Multi-skill report format conflicts with three-line requirement
“Exactly these three lines” conflicts with the multi-skill rule below: repeating the Skill and Section entries necessarily produces more than three lines. This makes the required format impossible to follow for a report involving multiple skills. Define the shape as one pair per skill plus one version line.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When a skill in this plugin lets the work down, such as when the user has to add an instruction by hand, the report so far has been a story with no repeatable test, so each fix starts by guessing the scenario. This PR adds
reporting-a-skill-gap, which files the gap as an issue on this plugin's repository with a reproduction that a maintainer can run as a RED baseline undersuperpowers:writing-skills. Installs older than the next release lack the manifest'srepositoryfield, so there the skill asks the user for the target repository.Changes
reporting-a-skill-gap: it resolves the target repository from the plugin manifest and passes--repoon everyghcall, finds the exact skill section that failed, searches for an existing issue and comments there instead of filing a duplicate, removes project and personal details, and files throughwriting-github-issues.skills/reporting-a-skill-gap/templates/skill-gap.md: fixed Skill, Section and Plugin version lines, the instruction added by hand, and a required Reproduction (situation, environment facts, task prompt, failure predicate)..claude-plugin/plugin.jsongets arepositoryfield, so the skill finds the target without a repository name in its text.templates/user-CLAUDE.mdand the README skill table.Testing
Isolated subagents without the skill reported a skill gap in three scenarios (a hand-added instruction, a skill that did not trigger with an issue already open, and a manifest without
repository). None of 15 reports had a reproduction with a task prompt and a failure predicate, and none named the exact skill section. With the skill, 10 of 10 had both, and all 5 runs in the duplicate case commented on the existing issue. A refactor round fixed task prompts that still carried the user's feature: 5 of 5 reruns used a neutral prompt, and 2 of 2 runs without therepositoryfield asked the user for the repository. The JSON in.claude-plugin/parses. No script changed.🤖 Generated with Claude Code