
feedback-plugin
Feedback plugin that files skill bugs as GitHub issues and mines weekly session friction for fixes.
- version
- 1.16.3
- GitHub stars
- 60
What it does
- Adds
/feedback:session, afriction-learneragent, andcheck-open-pr.shandskill-usage-log.shhooks for skill feedback analysis - Captures per-session skill bugs as GitHub issues, and clusters recurring interruptions, hook blocks, and rejections across a week of transcripts
- Guards against unconditional force pushes to branches with open PRs, while allowing
--force-with-leaseand fast-forward pushes - Designed for teams running Claude Code across many sessions who want recurring skill friction turned into rule, skill, or hook fixes
Session feedback analysis - capture skill bugs as GitHub issues and learn from weekly friction across sessions
Add marketplace
/plugin marketplace add laurigates/claude-pluginsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install feedback-plugin@laurigates-claude-pluginsRun it inside Claude Code after adding the marketplace.
Files
Discovered from source/feedback:session
Analyze the current session for skill feedback and create GitHub issues to track bugs, enhancements, and positive patterns.
When to Use This Skill
| Use this skill when... | Use alternative when... |
|---|---|
| A skill gave wrong or outdated guidance | Want to update skills directly -> session-plugin:session-distill |
| A command failed due to skill advice | Need static skill quality analysis -> /health:check --scope=agentic |
| Discovered a better flag or pattern | Want to capture general learnings -> session-plugin:session-distill |
| A skill worked particularly well | Want to track command usage stats -> /analytics-report |
| End of session, want to file feedback | Need to fix a skill right now -> edit the SKILL.md directly |
| Feedback is about the plugin itself | Use --target-repo laurigates/claude-plugins to file against the plugin source |
Context
Detection runs at execution time (Steps 1a, 3); why, and known limitations: references/design-notes.md.
Parameters
Parse these from $ARGUMENTS:
| Parameter | Description |
|---|---|
--dry-run | Show findings without creating issues |
--confirmed | The caller pre-approved filing the seed findings (set by session-plugin:session-end, which files feedback without asking because feedback issues are triaged separately). Skip Step 4 and file the findings that survive Step 3 dedup. If Step 1 would need AskUserQuestion to pick the target repo, file nothing and return each finding as a DEFERRED: <finding> line. If Step 1b finds IaC-managed labels, do not ask: proceed without the session labels ($SKIP_SESSION_LABELS=true) and say so in the Step 6 summary |
--bugs-only | Only report bugs (wrong/outdated guidance) |
--enhancements-only | Only report enhancement opportunities |
--positive-only | Only report positive feedback |
--target-repo <owner/repo> | File issues against this repo instead of the cwd repo |
-R <owner/repo> | Alias for --target-repo |
[plugin-name] | Scope analysis to a specific plugin |
<freeform prose> | Any non-flag, non-plugin-name text is treated as one or more explicit seed findings to file (see below) |
After parsing, set $TARGET_REPO to the value of --target-repo/-R if provided. Append -R $TARGET_REPO to all gh commands below when $TARGET_REPO is set.
Freeform feedback prose is a first-class input. After removing the
recognized flags and any leading [plugin-name] token from $ARGUMENTS, treat
whatever prose remains as one or more explicit findings the user wants filed —
not as a transcript to scan. Record this remainder as $SEED_FINDINGS and feed
it into Step 2. Flags and prose coexist: --target-repo X "the skill should do Y" files finding "the skill should do Y" against repo X. A bare invocation
with no prose falls back to the transcript scan as before.
Execution
Execute this session feedback workflow:
Step 1: Resolve target repo and check label policy
1a. Determine target repo
Steps A–D implement the decision table in references/target-repo-resolution.md.
Step A: Check for explicit --target-repo / -R.
If --target-repo or -R was passed in $ARGUMENTS, set $TARGET_REPO to that value and append -R $TARGET_REPO to every gh command in the remaining steps. Skip the rest of this sub-step.
Step B: Run the dominant-source scan (always).
Walk the conversation transcript and tool-call history collecting every reference of the form <plugin>:<skill> (skill invocations like /blueprint:init, agent IDs like agents-plugin:security-audit, and plugin names mentioned in skill bodies). For each match, look up the owning <owner>/<repo> by enumerating directories under ~/.claude/plugins/cache/<owner>/<repo>/ and matching <plugin> against the cached plugin manifests. Tally references per <owner>/<repo>.
Compute the share per entry. If the top entry accounts for more than ~70% of total references and there are at least 3 references in total, treat it as dominant: record $SUGGESTED_REPO and $N.
Step C: Attempt cwd remote detection.
Run gh repo view --json nameWithOwner -q '.nameWithOwner'. If it succeeds, record the result as $CWD_REPO.
Step D: Branch on the combination.
-
No
$CWD_REPO— prompt per references/target-repo-resolution.md, then continue to Step 1b. -
$CWD_REPOpresent, no dominant source OR dominant source ==$CWD_REPO— use$CWD_REPOsilently as the implicit target (ghdefaults to cwd; no-Rneeded). Continue to Step 1b. -
$CWD_REPOpresent AND dominant source differs from$CWD_REPO— the session's plugin activity pointed mostly at a different repo than the cwd remote. Use AskUserQuestion to ask:Mismatch detected. The session's tool calls were dominated by
$SUGGESTED_REPO($N references), but the current directory's git remote points to$CWD_REPO. Which repo should receive the feedback?Options:
$SUGGESTED_REPO(plugin/skill source — dominant this session) — set$TARGET_REPOto$SUGGESTED_REPOand append-R $TARGET_REPOto all remainingghcommands.$CWD_REPO(cwd git remote — the application repo) — use$CWD_REPOsilently (no-Rneeded).- Enter a different
owner/repo— free-text follow-up; validate and set$TARGET_REPO. - Abort — exit the skill.
Continue to Step 1b once the choice is resolved.
Thresholds and evidence: references/target-repo-resolution.md — read before editing this step.
1b. Check whether labels are IaC-managed
Follow step 1b of references/labels.md: detect IaC-managed labels (may set $SKIP_SESSION_LABELS=true). This step only reads; labels are created in Step 5a, once at least one finding is approved.
Step 2: Collect findings (seed prose first, then conversation history)
2a. Seed findings from freeform prose. If $SEED_FINDINGS is non-empty
(see Parameters), each distinct statement in it is an explicit finding the
user asked to file. Split it into one finding per concern (the user may pass
several, e.g. "two things. firstly… also…"). For each, infer the category
(bug / enhancement / positive) from the wording; if a finding's category is
ambiguous, ask via AskUserQuestion rather than guessing. These seed findings
flow through dedup (Step 3), the confirmation prompt (Step 4), and issue
creation (Step 5) exactly like scanned findings. When $SEED_FINDINGS is
present, the transcript scan in 2b is optional context, not the primary
source — do not let inference override what the user explicitly stated.
2b. Scan the conversation history. When $SEED_FINDINGS is empty (a bare
invocation), this scan is the primary source of findings.
Review the entire conversation for feedback signals. Look for these categories:
Categories (bug, enhancement, positive) and their signals: references/finding-signals.md.
For each finding, record:
- Category: bug, enhancement, or positive
- Plugin: which plugin the skill belongs to
- Skill: which specific skill
- Description: what happened
- Evidence: the specific interaction or error that demonstrates it
Filter by $ARGUMENTS:
- If
--bugs-only: only report bugs - If
--enhancements-only: only report enhancements - If
--positive-only: only report positive feedback - If
[plugin-name]specified: only report for that plugin
Step 3: Deduplicate against open issues
For each finding, search for existing issues in $TARGET_REPO:
gh issue list --label session-feedback --search "<skill-name> <key-phrase>" --json number,title --jq '.[].title'
Skip findings that match an existing open issue title. Note skipped items for the summary.
If $SKIP_SESSION_LABELS=true, search without labels: gh issue list --search "feedback(<plugin>)" --json number,title --jq '.[].title'
Step 4: Present findings for review
Use AskUserQuestion to present categorized findings. Group by category:
Use the one-line finding format in references/issue-format.md.
Let the user select which findings to file as issues (use multiSelect).
If --dry-run, present findings and stop here.
--confirmed skips this step: the caller pre-approved filing, and dedup
only removes findings, so the filed set is never larger than what was
approved.
Auto mode does not skip this step. Filing a GitHub issue is not reversible via git restore — closing an issue leaves noise in the issue tracker and notifies subscribers. Always confirm the selection set before Step 5, regardless of mode. To skip the prompt entirely, the user can pass --dry-run and re-run after reviewing.
In plan mode: do not file issues; follow references/plan-mode.md.
Step 5: Create approved issues
5a. Create missing labels. Only when at least one finding is approved and $SKIP_SESSION_LABELS is not true: follow step 5a of references/labels.md. Creating them here, not in Step 1, keeps --dry-run read-only and writes nothing when every finding deduped away.
5b. For each approved finding, create a GitHub issue in $TARGET_REPO:
Title format: feedback(<plugin-name>): <description>
Labels and body template: references/issue-format.md.
Create each issue from a body file. The body is multi-line and contains
backticks, which shell quoting mangles in an inline --body "<body>", so the
body goes through --body-file:
- Once per run, create a directory for the bodies with
mktemp -dand record it as$BODY_DIR. - Write each finding's body with the Write tool to
$BODY_DIR/<n>.md. - Read the file back before filing. If it is empty, or its whole content is a single
@pathreference (for example@/tmp/.../body.md), do not file it:ghdoes not expand@file, so the issue would carry the path as its only text (#3434). Write the real body and check again. - File it:
gh issue create --title "feedback(<plugin>): <desc>" --label "<labels>" --body-file "$BODY_DIR/<n>.md"
Append -R $TARGET_REPO when set. Omit --label if no labels apply (positive + $SKIP_SESSION_LABELS).
Step 6: Report summary
Print the summary table in references/issue-format.md.
List created issue numbers with links. If $SKIP_SESSION_LABELS=true, remind the user to add session-feedback and positive-feedback to their IaC label definition.
Agentic Optimizations
Compact gh commands and flag reference: references/command-reference.md.
Readme
feedback-plugin
Session feedback analysis — capture per-session skill bugs as GitHub issues, and learn recurring friction across a week of sessions via the friction-learner agent.
Skills
| Skill | Description |
|---|---|
/feedback:session | Analyze session for skill feedback and create GitHub issues |
Agents
| Agent | Description |
|---|---|
friction-learner | The slow loop: read open session-feedback issues as pre-registered signal and positive-feedback issues (any state, last 6 months) as stability markers, closing each newly read one once its weekly PR cites it, parse last week of transcripts, cluster interruptions/hook-blocks/rejections, corroborate/escalate clusters against the fast-loop issues, propose rule/skill/hook fixes, reproduce-and-verify each fix where safe, open one PR per target repo cross-linking the fast-loop issues |
Hooks
| Hook | Event | Default |
|---|---|---|
check-open-pr.sh | PreToolUse: Bash | Enabled |
skill-usage-log.sh | PreToolUse: Skill|SlashCommand + UserPromptSubmit | Opt-in |
Open-PR force-push guard
Fires only on an unconditional force push — --force, a short bundle
containing f (-f, -fu), or a leading + on a refspec — to a branch that
has an open PR. Everything else passes silently:
| Command shape | Outcome |
|---|---|
git push origin feature/x (fast-forward) | silent — adding commits is what a PR is for |
git push --force-with-lease … / --force-if-includes … | silent — the lease is the check |
git push --force …, no open PR on the target branch | silent |
git push --force …, open PR, [force-push-ok] in the last commit message | silent |
git push --force …, open PR | deny → the model is told to re-run with --force-with-lease |
Two deliberate choices:
deny, not ask. permissionDecision: "ask" renders a confirmation prompt
for the human; the model never sees permissionDecisionReason, and a "No"
reaches the agent as a bare permission denial that ends its turn — in a workflow
subagent that means a stalled run needing a manual nudge. deny returns the
reason to the model as tool feedback, so it reads the remedy and retries itself.
The remedy here is one flag, so the decision belongs to the agent.
--force-with-lease is exempt. The lease performs exactly the check the old
version asked a human to perform: git refuses the push if the remote ref moved
since the last fetch, so it cannot silently discard a reviewer suggestion, a CI
auto-fix, or a coworker agent's commit. Gating it added a prompt and no safety.
The [force-push-ok] escape hatch is keyed on the commit message rather than
the command, so the model cannot self-serve it
(.claude/rules/handling-blocked-hooks.md).
Regression suite: feedback-plugin/hooks/test-check-open-pr.sh.
Skill-usage log (opt-in)
export CLAUDE_HOOKS_ENABLE_SKILL_USAGE_LOG=1
Appends one JSONL record per skill invocation to ~/.claude/skill-usage.jsonl,
so usage history outlives transcript retention. Opt-in because every turn pays a
UserPromptSubmit fire and the log is only useful to someone who intends to
analyse it later; custom path via CLAUDE_SKILL_USAGE_LOG.
It fires on two events, because skills arrive by two different paths:
| Event | Path | Record src |
|---|---|---|
PreToolUse (Skill, SlashCommand) | The model invokes a skill | tool |
UserPromptSubmit | The user types /plugin:skill | slash |
A user-typed slash command never reaches a tool — the client expands it into the
prompt itself — so a PreToolUse hook alone misses every one of them. In a
1,134-session transcript sweep, 11 of the 57 used skills appeared only by that
path.
Each record carries ts, src, skill, plugin, args (+ untruncated
args_len), session, cwd, repo, branch, permission_mode, effort.
The hook never writes to stdout — a UserPromptSubmit hook's stdout is injected
into the model's context — and rotates at 16 MB.
Skill usage report
python3 feedback-plugin/scripts/skill_usage_report.py --since 30d --include-transcripts
Merges the durable log with the (expiring) transcripts and buckets the installed
catalog into active / dormant / never, emitting the KEY=VALUE diagnostic
convention plus --json for an agent. friction-learner Step 1b reads it to
decide which skills are worth analysing — see the caveats there; never is a
floor bounded by COVERAGE_SINCE, not a verdict.
Friction learner
Spawn via the Agent tool or wire to a weekly cron:
Agent({
subagent_type: "friction-learner",
prompt: "Analyze the last 7 days of sessions. Target repo: laurigates/claude-plugins. Open a PR with proposed rule edits.",
})
Dry-run the pipeline manually:
python3 feedback-plugin/scripts/friction_parse.py --since 7d --out /tmp/frictions.jsonl
python3 feedback-plugin/scripts/friction_cluster.py --in /tmp/frictions.jsonl --min-count 3 \
--render-pr-body /tmp/pr-body.md --out /tmp/clusters.json
python3 feedback-plugin/scripts/friction_open_prs.py \
--clusters /tmp/clusters.json --pr-body /tmp/pr-body.md \
--target-repo laurigates/claude-plugins --dry-run
Signatures currently recognized: plan:entered-plan-mode, push:branch-has-open-pr, hook:pr-metadata, hook:branch-protection, hook:conventional-commit, hook:gitleaks, hook:pre-commit, hook:external-pr-merge-guard, error:<tool>:<class>, reject:<tool>, interrupt:user.
Stop-hook output arrives as an isMeta user record (Stop hook feedback:), not a tool result, so it is parsed separately as kind: stop_hook_feedback and keyed on the emitting hook: stop:git-stash-reminder:<auto-checkpoint|mixed|other>, stop:task-completeness, stop:no-calendar-estimates, stop:session-end-nudge, stop:subagent-output-check, or stop:unclassified. Any other <Event> hook feedback|error: record surfaces as hook-feedback:<event> / hook-error:<event>. These clusters are reported for prevalence only; the fix for a noisy Stop hook lives in the hook. friction_parse.py --list-prefixes lists every hook-output prefix in the window and whether a dedicated branch handles it.
Hook blocks whose harness wrapper names the plugin cache path carry the plugin and version that ran. friction_cluster.py reports them as build_share in clusters.json and as a standing ## Build share table in the PR body: per plugin, the share of build-stamped hook blocks per version, with the current release (the user-scope version in --installed-plugins, or --current-version PLUGIN=VERSION) marked. A fix looks ineffective when most blocks still run on a build that predates it (#3220).
Before opening a PR, the agent reproduces each actionable failure and runs the
proposed fix's prescribed substitution where it is safe and read-only (hook
blocks are safe by construction — the blocked command never executes). Clusters
that no longer reproduce are downgraded to watch items, and each PR body
carries a ## Verification table with one verdict per cluster
(REPRODUCED_FIX_VERIFIED / REPRODUCED_FIX_UNVERIFIED / NOT_REPRODUCED /
NOT_REPRODUCIBLE).
Two-speed feedback (fast ↔ slow). friction-learner is the slow loop; the
fast loop is the /feedback:session skill, which files per-session,
human-authored issues under the shared session-feedback / positive-feedback
labels. At the start of its weekly run the agent reads the open session-feedback
issues as pre-registered signal, corroborates or escalates them against its
quantitative transcript clusters (a human-noticed pain confirmed by the data is
the highest-confidence deliverable; a reported pain below the count threshold is
escalated as a watch item), and cross-links the issue numbers in the PR body's
## Fast-loop signal section. It also reads positive-feedback issues, in a
separate query because positive findings carry that label alone, as
stability markers: a proposal that changes a skill or hook one of them
praises must name the issue (Preserves #<n>) and say why the praised behaviour
survives, or it is downgraded to a watch item.
A positive-feedback issue's lifecycle:
| Stage | What happens |
|---|---|
| Filed | /feedback:session opens it with the positive-feedback label |
| Cited | The next weekly run lists it in its PR's ## Fast-loop signal section |
| Closed | After opening that PR, the run closes the issue with a comment naming the PR. Closed means processed. No PR (quiet window, dry run) means no close |
| Stability marker | Each run reads positive issues in any state created in the last 6 months, so a closed issue still guards the behaviour it praises |
scripts/check-friction-learner-fast-loop.sh fails if Step 0 stops fetching
either label, if the positive fetch stops covering closed issues and a date
window, or if Step 6 stops closing cited issues. See
docs/archive/session-plugin-workflow.md for the full architecture.
Hooks
| Hook | Event | Purpose |
|---|---|---|
check-open-pr.sh | PreToolUse (Bash) | Deny an unconditional force push (--force / -f / +refspec) to a branch with an open PR, steering the model to --force-with-lease. Include [force-push-ok] in the last commit message to bypass. |
Usage
# Analyze full session
/feedback:session
# Dry run - see findings without creating issues
/feedback:session --dry-run
# Only bugs
/feedback:session --bugs-only
# Only for a specific plugin
/feedback:session git-plugin
# Only positive feedback
/feedback:session --positive-only
# File feedback against the plugin source repo (not the cwd repo)
/feedback:session --target-repo laurigates/claude-plugins
# Short form
/feedback:session -R laurigates/claude-plugins
Labels
The plugin creates and uses these GitHub labels:
| Label | Color | Purpose |
|---|---|---|
session-feedback | Purple | Bugs and enhancements from session analysis |
positive-feedback | Green | Skills that worked well (stability markers) |
IaC-managed labels: If your repository manages labels declaratively (Terraform, Pulumi, etc.), the skill detects this and offers to proceed without
session-feedback/positive-feedbacklabels, or to target a different repo. Add the two labels to your IaC definition to restore full labeling. See the Known Limitations section for details.
Issue Format
Issues are created with conventional title format:
feedback(<plugin-name>): <description>
This integrates with the project's conventional commit workflow.
Workflow
- Use skills during a session
- At end of session, run
/feedback:session - Review categorized findings
- Select which to file as issues
- Issues are created with appropriate labels and body. Missing
session-feedback/positive-feedbacklabels are created at this point, so--dry-runand a run whose findings all match open issues create none - Use
session-plugin:session-distillto actually update the skills based on filed issues
Known Limitations
IaC-managed labels
Some repositories manage GitHub labels declaratively using Terraform, Pulumi, CDK, or similar tools. Creating labels out-of-band with gh label create in these repos causes two problems:
- Drift: The IaC tool destroys the manually-created label on the next apply.
- Policy: Many org-level IaC setups explicitly forbid direct label creation.
The skill detects IaC label management by:
- Scanning existing label descriptions for keywords like
terraform,pulumi,managed by,iac - Looking for
labels.tforlabels.yamlfiles in the working tree
When detected, the skill offers three options:
- Proceed without
session-feedbacklabels — issues are created with onlybug/enhancementlabels - Use a different target repo — file the issue against a repo where labels can be created freely
- Abort
Default target repo
By default, issues are filed against the repository in the current working directory. When giving feedback about a plugin skill itself (rather than the application code in the session), use --target-repo <owner/repo> to point at the plugin source repo (e.g. laurigates/claude-plugins).
Details
- Marketplace
- laurigates/claude-plugins
- Source
- feedback-plugin
- Author
- Lauri Gates
- Category
- Quality
- License
- MIT
- Keywords
- feedback, session-analysis, skill-quality, github-issues, friction-learner
- Listed since
- Apr 7, 2026
More from laurigates/claude-plugins
All 52- finops-pluginv1.4.7
- foundryvtt-pluginv1.6.4
- git-pluginv2.74.4
- github-actions-pluginv1.13.8
- health-pluginv1.24.9
- home-assistant-pluginv1.4.1
- hooks-pluginv2.22.3
- kernel-pluginv1.1.1
- kitty-pluginv2.0.0
- kubernetes-pluginv1.10.4
- langchain-pluginv1.5.10
- linux-pluginv1.1.1
- macos-pluginv2.0.1
- migration-patterns-pluginv1.7.1
- networking-pluginv1.4.3
- obsidian-pluginv1.3.8
- project-pluginv1.21.17
- prompt-engineering-pluginv1.1.4
- prose-pluginv1.4.5
- python-pluginv1.5.10
- reverse-engineering-pluginv1.1.0
- rust-pluginv1.9.1
- session-pluginv1.18.3
- software-design-pluginv1.2.0
Similar to feedback-plugin
More Skill & Plugin Building
evaluate-pluginPluginlaurigates/claude-plugins60 starsSkill evaluation and benchmarking - test skill effectiveness with behavioral eval cases, grade results, and track quality improvements
continuous-learningSkillaffaan-m/ecc6K installsDeprecated v1 Stop-hook skill that extracts reusable session patterns into learned skills, superseded by continuous-learning-v2.
han-feedbackPlugintestdouble/han352 starsPost-session feedback skill for the Han suite. Captures structured observations, ratings, and improvement ideas on the Han skills you ran in a session and optio
github-issue-fixPluginananddtyagi/cc-marketplace689 starsThis is a detailed way you can analyze the GitHub issues and let Claude handle them in best possible way.
skill-improvement-malik-taiarPluginlawvable/awesome-legal-skills962 starsGuide to analyze a current work session and propose improvements to skills. Use (1) automatically after working with a skill to capture learnings, (2) when the