/dev10x-teach:audit-filefrom dev10x-teach
Files skill-audit findings as a GitHub issue at the plugin repo owning the offending skill. Used after audit Phase 7 when user opts to report upstream.
Ships in dev10x-teach. 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.
Read when SKILL.md points to them.
Generate a structured GitHub issue from skill-audit findings and file it at the plugin repo that owns the offending skill.
dev10x-teach:skill-audit Phase 7 after the user
approves upstream reporting and confirms the destination
tracker at the Phase 7 sub-step B2 gateTwo arguments:
--repo <owner>/<repo> — the target issue tracker (GH-816).
Required when the caller resolved a destination. Skills from
every installed plugin live under ~/.claude/plugins/, so the
owner cannot be inferred here — the caller resolves it via
mcp__plugin_dev10x_cli__resolve_plugin_origin and confirms it
with the user.dev10x-teach:skill-audit.Target repo resolution:
| Input | Behavior |
|---|---|
--repo passed | File there. Never override it. |
No --repo, findings file has a **Target repo**: line | Use that value. |
| Neither present | REQUIRED: Call AskUserQuestion asking which repo receives the issue (do NOT use plain text, do NOT silently default to Dev10x-Guru/dev10x-claude). Offer the detected plugin repos when the findings name one, plus a free-text override. |
Store the resolved value as $TARGET_REPO — every later step
(version detection, label sync, filing) uses it.
The findings file contains:
## Session Context
- **Repo**: {repo-name}
- **Branch**: {branch-name}
- **Date**: {audit-date}
- **Target repo**: {owner}/{repo}
## Upstream Findings
| # | Phase | Classification | Skill | Description |
|---|-------|---------------|-------|-------------|
| 1 | ... | ... | ... | ... |
## Proposed Fixes
{Grouped by skill}
If no argument is provided, check for the most recent file in
/tmp/Dev10x/skill-audit/ matching findings*.md.
Read the findings file passed as argument. Validate it contains at least one finding row in the table.
If empty or missing, inform the user and exit.
Report the version of the plugin the findings are about, not
the Dev10x version. The caller's origin resolution supplies the
marketplace, plugin, and version; when the findings file carries a
**Plugin**: {marketplace}/{plugin} {version} line, use it
directly.
Otherwise list the owning plugin's cache directory:
ls ~/.claude/plugins/cache/{marketplace}/{plugin}/
Use the version directory name (e.g., 0.19.0.dev0). If the
cache directory is not found, use unknown.
Treat the source session as private by default. The upstream
issue is a public artifact at $TARGET_REPO and MUST
NOT disclose any identifier from a non-public repository, project,
branch, ticket tracker, file path, person, or service that is not
part of the public Dev10x plugin.
Instead of redacting private identifiers with bracketed
placeholders (<private-repo>, TICKET-NN), replace them with
similar-sounding fictional counterparts drawn from pop culture —
movies, books, TV, cartoons, video games. The resulting issue
reads as a coherent story while leaking nothing. Real precedents:
issue #68 used initech/initech-pos + reviewer skywalker;
issue #98 used Tyrell Corp + Aperture Labs.
Apply the vibe-matching guide, consistency rule, and 6-step
algorithm in
references/privacy-scrub.md to
the verbatim findings text before assembling the issue body.
REQUIRED: Call AskUserQuestion when a finding is
fundamentally about a private codebase pattern that cannot be
retold through fictional stand-ins without losing the technical
point (do NOT use plain text). Options:
Never auto-include unfictionalized text. Re-read the assembled body and verify every named entity is fictional (pop-culture sourced, not a real company / person / product) before continuing to Step 4.
Build the issue body from the fictionalized findings:
## Audit Findings
**Plugin**: {plugin} {version} (marketplace: {marketplace})
**Session context**: {fictional-org}/{fictional-repo} / {fictional-branch}
**Audit date**: {date}
### Findings
| # | Phase | Classification | Skill | Description |
|---|-------|---------------|-------|-------------|
{fictionalized rows}
### Proposed Fixes
{fictionalized fixes, grouped by skill}
### Evidence
{fictionalized transcript excerpts — 2-3 lines per finding, no
real file paths, real handles, or real product names}
The "Session context" line uses fictional stand-ins (e.g.,
initech/initech-pos / skywalker/CORE-401/death-star-3/...) so
the report reads as a coherent narrative — the upstream
maintainer does not need the real repo or branch to act on a
Dev10x plugin finding.
Use the primary skill name (most findings) as the title anchor:
skill-audit findings: dev10x:{skill}skill-audit findings: dev10x:{skill} (+N)/tmp/Dev10x/bin/mktmp.sh skill-audit upstream-issue .md
Write the assembled body to that file using the Write tool.
Audit issues are batched by an automated session, so similar
findings should cluster under a shared label and be discoverable
as a bundle during implementation. Derive the label set from the
fictionalized findings BEFORE filing — never hardcode a single
enhancement label.
Apply the resolution algorithm in
references/labels.md:
enhancementskill:<name> per unique skill referenced in the
findings table (strip the dev10x: prefix; fictionalized names
only — see Step 3)references/labels.md § 3; add each matching
topical label onceDo NOT mint a per-session audit-YYYY-MM-DD label — the session
date already lives in the issue body's ## Session Context
section, and dated labels accumulate without bundling value.
Collect the result as a comma-separated string (e.g.,
enhancement,skill:work-on,routing-bypass).
Store it as $LABELS for Step 8.
GitHub fails issue creation if any label is missing, so try to reconcile the set first. Fetch the current labels once and create only the missing ones:
gh label list --repo "$TARGET_REPO" --limit 200 \
--json name -q '.[].name' > /tmp/Dev10x/skill-audit/existing-labels.txt
for label in $(echo "$LABELS" | tr ',' ' '); do
grep -qxF "$label" /tmp/Dev10x/skill-audit/existing-labels.txt || \
gh label create "$label" --repo "$TARGET_REPO" \
--color "$COLOR_FOR_CATEGORY" \
--description "$DESC_FOR_CATEGORY"
done
Colors and descriptions per category live in
references/labels.md. gh label create is idempotent here
because the loop only runs for missing labels.
Labels are best-effort — never a filing precondition (GH-931
finding 6). Every step above can fail for a reporter who is not
a maintainer of $TARGET_REPO, and filing the findings matters
more than bundling them:
| Failure | Cause | Response |
|---|---|---|
unknown command "label" for "gh" | gh build without the subcommand | Skip reconciliation entirely; go to the no-label fallback |
403 / 404 on label create | Label creation needs push access | Drop the labels that could not be created |
403 / 404 applying labels at filing | Applying labels needs push (triage) access | Re-file with no --label flag |
No-label fallback: when the label set cannot be reconciled or applied, file with no labels and record the intended set in the issue body instead, so a maintainer can apply them afterwards:
**Suggested labels** (filed without them — no push access):
`enhancement`, `skill:git`, `routing-bypass`
Never abort the filing because labels are unavailable. An audit finding that never reaches the tracker is a total loss; an unlabelled one is merely harder to bundle.
Delegate to dev10x-scoping:ticket-create — never use raw gh issue create.
Write the title as the first line of the temp file (followed by a
blank line and the body) to avoid permission friction from special
characters in the args string. Pass the comma-separated label set
derived in Step 7 only when Step 8 confirmed every label exists
and is applicable:
Skill(skill="dev10x-scoping:ticket-create",
args="--repo {TARGET_REPO} --body-file {temp-file-path} --label {LABELS}")
When Step 8 hit any failure above, omit the --label flag and
rely on the in-body "Suggested labels" line instead:
Skill(skill="dev10x-scoping:ticket-create",
args="--repo {TARGET_REPO} --body-file {temp-file-path}")
If a filing attempt with labels is rejected for permissions, retry once without the flag rather than reporting failure.
The ticket-create skill reads the first line as the title when
no --title flag is provided.
Display the created issue URL. If filing fails, show the error and the temp file path so the user can file manually.
--body-file: Never pass the body inline via
--body — markdown tables break shell quoting.$TARGET_REPO. A finding about a non-Dev10x plugin's skill
belongs at that plugin's tracker. Do NOT fall back to
Dev10x-Guru/dev10x-claude when --repo is absent — raise the
AskUserQuestion gate documented under Arguments instead.$TARGET_REPO for each finding —
open and closed. Drop the ones already tracked and list
them in the issue as "already tracked: #N" instead. File only
what is new. A finding already closed is re-filed only when
this session shows the behaviour recurring after the close,
and the body must say so.references/labels.md so similar issues can be
filtered and worked together during implementation. Never
file with only the default enhancement label.Dev10x-Guru/Dev10x-Claude issue/PR
numbers — is allowed verbatim. Re-verify every named entity is
fictional before filing.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub dev10x-guru/dev10x-claude --plugin dev10x-teach7 skills in this plugin
/context-auditdev10x-teach:context-auditAudit context window utilization — CLAUDE.md files, rules, agent specs, references, and memories. Reports budget compliance, flags oversized files, and suggests pruning actions. TRIGGER when: user wants to optimize context usage, after adding many rules or memories, or when sessions feel sluggish from context bloat. DO NOT TRIGGER when: auditing memory content quality (use dev10x-teach:memory-maintenance instead).
/memory-maintenancedev10x-teach:memory-maintenanceAudit project and global memory files for stale patterns, version-pinned paths, contradictory instructions, and anti-patterns that cause skill bypass or permission friction. Reports findings and offers to clean up. TRIGGER when: user wants to audit memory health, after a plugin upgrade, or when agents keep bypassing skills despite memory instructions. DO NOT TRIGGER when: user wants to save or recall a specific memory (use the auto memory system directly).
/skill-auditdev10x-teach:skill-auditAudit a session's skill usage, compliance, and extract lessons learned. Default (lightweight): analyzes visible context inline and presents a disposition gate — no separate terminal needed for most audits. Forensic (--full or escalation): dispatches parallel subagents for deep transcript analysis — run from a separate terminal. TRIGGER when: session is complete and user wants usage review, or a skill didn't behave as expected. DO NOT TRIGGER when: mid-session during active work, or user is asking about a specific skill's documentation.
/skill-audit-queuedev10x-teach:skill-audit-queueQueue a skill-audit invocation for later by appending a tracker task to the end of the current task list. Use mid-session when you notice friction but do not want to interrupt in-flight work — the audit runs when the supervisor reaches the queued task. Also captures lightweight friction/skill-improvement notes as annotations on the queued task, so the full audit has prior context. TRIGGER when: friction noticed mid-session, but interrupting current work is not desirable; supervisor wants the audit deferred until the active task completes. DO NOT TRIGGER when: supervisor wants the audit to run NOW (use dev10x-teach:skill-audit directly), or no friction has been observed.
/skill-createdev10x-teach:skill-createUse when creating or improving a local skill and hitting friction — bash commands keep prompting for approval, the skill doesn't appear in MOTD, or it's unclear which frontmatter fields wire up invocability — so you get the Dev10x-specific setup right without hunting through existing skills for examples. TRIGGER when: creating a new skill, fixing skill registration, or scaffolding skill directory structure. DO NOT TRIGGER when: editing skill content without structural issues, or writing non-skill code.
/skill-indexdev10x-teach:skill-indexGenerate a family-grouped, adaptive-density skill index. Scans local skills and all installed plugins, groups by families.yaml, hides orchestration deps via hidden.yaml, and writes ~/.claude/SKILLS.md (≤45 lines, ≤300 chars/line). TRIGGER when: regenerating SKILLS.md after adding, removing, or renaming skills. DO NOT TRIGGER when: viewing the existing skill index, or editing individual skills.