Skip to content

feat(skills/reporting-a-skill-gap): report a skill gap as an issue a maintainer can reproduce - #79

Merged
sourcehawk merged 10 commits into
mainfrom
feat/report-skill-inefficiencies
Oct 2, 2026
Merged

sourcehawk merged 10 commits into
mainfrom
feat/report-skill-inefficiencies

Conversation

@sourcehawk

Copy link
Copy Markdown
Owner

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 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.

🤖 Generated with Claude Code

sourcehawk and others added 4 commits October 2, 2026 16:10
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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 2, 2026 15:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Privacy, upstream-permission, occurrence-metadata, and required documentation-map issues remain unresolved.

Review effort: Balanced
Findings: 3 Medium severity · 1 Low severity

Open (4)
What changed in this PR

Adds a workflow for reporting reproducible, sanitized skill gaps to the plugin repository.

Changes:

  • Adds the reporting skill and issue template.
  • Adds repository metadata for issue targeting.
  • Documents the new skill in user-facing skill tables.
File Description
.claude-plugin/​plugin.json Adds the repository URL.
skills/​reporting-a-skill-gap/​SKILL.md Defines the reporting workflow.
skills/​reporting-a-skill-gap/​templates/​skill-gap.md Provides the report template.
templates/​user-CLAUDE.md Adds the invocation trigger.
README.md Lists the new skill.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread README.md Resolved
Comment thread skills/reporting-a-skill-gap/SKILL.md Resolved
sourcehawk and others added 3 commits October 2, 2026 16:22
…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>
Copilot AI balanced review requested due to automatic review settings October 2, 2026 15:22
@sourcehawk

Copy link
Copy Markdown
Owner Author

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Repository scoping conflicts with gh api, and duplicate reports lack a valid comment-only workflow.

Review effort: Balanced
Findings: 1 High severity

Open (1)
Resolved since last review (4)
Previously missed (1)

In code that hasn't changed since last review

Medium severity 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.

Comment thread skills/reporting-a-skill-gap/SKILL.md Resolved
sourcehawk and others added 2 commits October 2, 2026 16:27
…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>
Copilot AI balanced review requested due to automatic review settings October 2, 2026 15:27
@sourcehawk

Copy link
Copy Markdown
Owner Author

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Duplicate detection must inspect candidate issue bodies and comments before deciding whether to comment or file.

Review effort: Balanced
Findings: None

Resolved since last review (1)
Previously missed (1)

In code that hasn't changed since last review

Medium severity 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>
@sourcehawk

Copy link
Copy Markdown
Owner Author

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.

Copilot AI balanced review requested due to automatic review settings October 2, 2026 15:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Medium severity 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).

Low severity Multi-skill report format conflicts with three-line requirement

skills/​reporting-a-skill-gap/​templates/​skill-gap.md:28

“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.

@sourcehawk
sourcehawk merged commit 4c3e5e4 into main Oct 2, 2026
6 checks passed
@sourcehawk
sourcehawk deleted the feat/report-skill-inefficiencies branch October 2, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants