/sdd:report-friction [skill-name] [--label bug|documentation|enhancement|usability] [--from-file <path>]from sdd
Files a GitHub issue against the SDD plugin repository when a skill causes significant friction like contradictory instructions, repeated tool failures, or ambiguous documentation. Prompts user for approval before submitting.
Ships in sdd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Harness portability. This skill runs on any agent harness that loads Agent Skills — Claude Code, Codex CLI, OpenCode, Crush. Tool names used below (
AskUserQuestion,Task,TeamCreate,SendMessage,TaskCreate,ToolSearch,mcp__*,${CLAUDE_PLUGIN_ROOT}) denote capabilities, not hard requirements: map each to your harness's equivalent or use the documented fallback per${CLAUDE_PLUGIN_ROOT}/references/harness-compat.md. References toCLAUDE.mdmean the project memory file (CLAUDE.md,AGENTS.md, orCRUSH.md) per harness-compat § "Project Memory File". A citation of the formshared-patterns.md § "Section"names one##heading in that file — load only that section (see its "How to Read This File" note), never the whole file. Invocation and arguments. Where your harness has no command layer (Crush, Codex CLI, OpenCode) this skill is reached from itsdescription, not a slash command: the/sdd:{name}form below is Claude Code namespacing.$ARGUMENTSmeans whatever arrived with the invocation: take the target and any--flagsfrom the request that triggered this skill, and when neither is present follow this skill's documented no-argument path instead of reporting missing arguments (harness-compat § "Invocation and Arguments").
This is a meta-skill: when an SDD plugin skill burns time, breaks, or guides you wrong, you can use this to file a feedback issue against the plugin's own repository (joestump/claude-plugin-sdd). The user always sees and approves the entire submission first.
This skill is for significant friction with the SDD plugin specifically — not minor wobbles, not the user's own code, not third-party tools. The threshold is real cost: tokens wasted, work duplicated, instructions that misled. Use it sparingly.
/sdd:plan invocation said "use the canonical Branch Naming pattern from ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Branch Naming Conventions"", but that section described a slug algorithm that produced branch names rejected by the tracker. You had to manually fix every branch name./sdd:work instructed you to broadcast FILE_CLAIM via SendMessage, but the agent harness rejected the call because no Team was active. The SKILL.md did not mention that Team initialization was a prerequisite. You spent ~8k tokens debugging./sdd:check told you to scan for "the first # heading" to extract titles, but four files in the corpus had a leading H1 in a comment block, causing wrong titles in every report. SKILL.md should specify "first H1 outside frontmatter and outside HTML/comment blocks."gh). That belongs in the user's setup, not as a plugin issue, unless the SKILL.md should have done a preflight check and didn't./sdd:adr to propose a change instead.Run these checks in order. If any fails, stop and report the specific remediation.
command -v gh >/dev/null 2>&1 — if missing, output: "The gh CLI is not installed. Install from https://cli.github.com/ and re-run." Stop.gh auth status 2>&1 — if not authenticated, output: "gh is not authenticated. Run gh auth login and re-run." Stop.gh repo view joestump/claude-plugin-sdd --json name >/dev/null 2>&1. If this fails, the user lacks read access to the repo OR the network is down. Output: "Cannot reach joestump/claude-plugin-sdd via gh. Check network and that your GitHub account can read the repo." Stop.Before drafting, evaluate the friction against the "When to use this skill" criteria above. If it does not clearly qualify, output a one-line note ("Friction did not meet the report threshold — proceeding without filing.") and stop. The threshold is intentionally high; over-filing dilutes signal in the issue tracker.
A useful self-check: "If the maintainer reads this and asks 'why did the agent file this?', is the answer obviously a plugin defect, not a user error or a one-off?"
Use the Friction Report template from ${CLAUDE_PLUGIN_ROOT}/references/issue-authoring.md § Body Templates. The template defines seven sections: Friction summary, Affected, What the SKILL.md said vs. what happened, Reproduction context, Workaround used, Estimated cost, Suggested fix (optional).
The "Said vs. Happened" section is the load-bearing one — it gives the maintainer the diff between intent and observed reality. Without it, a friction report is just a complaint. Be honest with severity: "low / I lost ~2k tokens but worked around it" is useful signal; inflating to "high" because you were frustrated is not. Omit "Suggested fix" if you don't have a concrete one — half-baked suggestions are worse than none.
Fill every applicable section. Don't pad.
Two labels go on every issue this skill files:
skill-friction — auto-applied to every issue. Lets the maintainer filter all friction reports cleanly.bug / documentation / enhancement / usability. Pick based on what you observed:
bug — SKILL.md instructions produced wrong behavior (the skill is broken)documentation — SKILL.md was correct but ambiguous, missing context, or contradictory (the skill works if you guess right)enhancement — the skill was missing a capability you needed (the skill is incomplete)usability — the skill worked correctly but burned tokens unnecessarily (the skill is inefficient)If $ARGUMENTS contains --label <name>, use that as the second label and skip the auto-classification.
Labels are best-effort — the report matters more than its labels. You are almost always filing into a repo you cannot write to: you are reporting friction from your project against this plugin. Creating a missing label needs write access, so gh label create returns HTTP 404 for an external reporter, and the Try-Then-Create Label Pattern in ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Try-Then-Create Label Pattern" does not apply here — that pattern assumes write access to the target repo.
This matters because gh issue create --label is atomic: if any named label does not exist, the command fails and no issue is created at all. Applied naively, a missing label turns a complete, sanitized, user-approved friction report into nothing. So treat labelling as try-then-omit, never try-then-create:
could not add label: 'x' not found), retry the identical command with --label flags removed.gh label create.Never drop, truncate, or summarize the body to work around a label failure. An unlabelled issue with the full report is a good outcome; a missing issue is not.
Before showing the draft to the user, scan the body for sensitive content, replace each match with a clear placeholder, and keep a record of every redaction. The user sees the sanitized body (which is what will be submitted) plus an explicit "what was redacted" list — so they know both what's leaving the machine and what was changed.
The patterns to detect and the placeholder formats are defined canonically in ${CLAUDE_PLUGIN_ROOT}/references/issue-authoring.md § Sanitization. Brief recap (see the reference for the full table and rationale):
/Users/, /home/, /var/, /opt/, C:\Users\ → [REDACTED-PATH]/{basename} (preserve trailing filename)internal, corp, staging, dev., .local, or non-public TLDs → [REDACTED-URL]token, key, secret, password, bearer) → [REDACTED-CREDENTIAL][REDACTED-EMAIL][REDACTED-IP]After scanning, you have:
Line 12: 1 absolute path → [REDACTED-PATH]).When you present the prompt to the user (Step 7), show:
This balances two goals: sensitive content does not leak even by inattention, AND the user has full visibility into what's leaving the machine. False positives are acceptable; the user can always edit to put something back.
Run a search against the SDD repo's existing issues:
gh issue list --repo joestump/claude-plugin-sdd --state all \
--search "{first 4-6 distinctive words from the friction summary}" \
--json number,title,state,url --limit 5
Surface the top 3 results to the user. If a near-match exists (semantic match on title or summary), include "comment on existing" as a prompt option (Step 7).
Offer the choice with AskUserQuestion where the harness has it, with the full proposed issue rendered inline; otherwise print the same options as a plain-text numbered list and wait for the answer. The prompt text MUST include the complete body (not a summary), the labels that will be applied, and any sanitization warnings. Options:
/tmp/sdd-friction-{timestamp}.md, output the path and instruction "Edit this file, then re-run /sdd:report-friction --from-file /tmp/sdd-friction-{timestamp}.md". Stop.--comment-on {N} instead of opening a new issueShow the prompt with this layout:
## Proposed issue submission
**Repository**: joestump/claude-plugin-sdd
**Labels**: skill-friction, {second-label}
### Sanitization
I sanitized {N} items before drafting the body shown below:
- Line {X}: {kind} → {placeholder}
- Line {Y}: {kind} → {placeholder}
{If N=0, write "Nothing flagged for sanitization." instead of the bullet list.}
### Duplicate search
{Top duplicates found, with URLs. Or "No similar issues found." if zero matches.}
---
{Full sanitized body — exactly what will be submitted}
---
How do you want to proceed?
The user MUST see the entire sanitized body — not a summary. The body shown IS the body submitted (modulo "edit then submit" path).
gh issue create \
--repo joestump/claude-plugin-sdd \
--title "{first line of the friction summary, capped at ~80 chars}" \
--body-file /tmp/sdd-friction-{timestamp}.md \
--label skill-friction \
--label {second-label}
If that fails with a label error (could not add label: '{name}' not found), no issue was created — the command is atomic. Retry once, identical but unlabelled, per Step 4's try-then-omit rule:
gh issue create \
--repo joestump/claude-plugin-sdd \
--title "{first line of the friction summary, capped at ~80 chars}" \
--body-file /tmp/sdd-friction-{timestamp}.md
Then tell the user the issue was filed without labels, and name the ones that could not be applied. Do not attempt gh label create — filing from your own project means you almost certainly lack write access here, and the 404 costs a round-trip without changing the outcome.
Capture the URL of the created issue from gh's output. Report it to the user.
gh issue comment {N} \
--repo joestump/claude-plugin-sdd \
--body-file /tmp/sdd-friction-{timestamp}.md
Capture the comment URL from gh's output. Report it to the user.
Write a marker file to /tmp/sdd-friction-filed-{session-id} so a second invocation in the same session can detect the prior filing. On second invocation, warn: "You already filed an issue this session ({prior URL}). File another only if it's a distinctly different friction." Then proceed if the user confirms.
Do NOT use this throttle to refuse — the user always wins.
## Friction Report Filed
{New issue created OR Comment added to existing issue}
- **URL**: {gh's returned URL}
- **Labels**: skill-friction, {second-label}
- **Repo**: joestump/claude-plugin-sdd
The maintainer (Joe Stump) will see this in his issue tracker. No further action needed unless he replies asking for clarification.
(See Step 10 above.)
## Issue Body Saved for Editing
Wrote the proposed body to `/tmp/sdd-friction-{timestamp}.md`.
Edit it, then re-run:
`/sdd:report-friction --from-file /tmp/sdd-friction-{timestamp}.md`
Or, if you decide not to file after editing, just delete the file.
## Friction Noted, Not Filed
The friction with `/sdd:{skill-name}` was real but you chose not to file. Nothing was submitted to joestump/claude-plugin-sdd.
If you change your mind later, you can re-run `/sdd:report-friction` (the threshold check will re-evaluate; you may need to re-supply context if a fresh session has lost it).
joestump/claude-plugin-sdd regardless of the cwd's git remote — this skill files against the SDD plugin's own repo, NOT against the user's project. Use --repo joestump/claude-plugin-sdd on every gh invocation.AskUserQuestion where the harness has it, otherwise by printing the body and asking in plain text. Where no answer can be obtained (batch, CI, unattended run) do not submit: leave the drafted body for the user to approve. The user is the final approver; no silent submissions ever.[REDACTED-PATH], [REDACTED-URL], [REDACTED-CREDENTIAL], [REDACTED-EMAIL], [REDACTED-IP]) AND surface a "what was redacted" log above the body so the user knows both what is leaving the machine and what was changed. The displayed body is the submitted body — no surprise content gets added or subtracted between display and submission.skill-friction label to every issue, plus exactly one of {bug, documentation, enhancement, usability}.gh is installed and authenticated before drafting (Step 1) — silent failures during submission are confusing.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
22 skills in this plugin
/adrCreate a new Architecture Decision Record (ADR) using MADR format. Use when the user wants to document an architectural decision, says "create an ADR", "we need an ADR for", or discusses a decision that should be recorded./auditComprehensive audit of design artifact alignment across the project. Use when the user says "audit the architecture", "full drift report", or wants a thorough review of spec compliance and ADR adherence./checkQuick-check code against ADRs and specs for drift. Use when the user says "check for drift", "does this match the spec", or wants a fast alignment check on a specific file or directory.npx claudepluginhub joestump/claude-plugin-sdd --plugin sddOther plugins' skills for the same job