/dev10x-teach:skill-createfrom dev10x-teach
Creates or fixes local Dev10x skills: scaffolds directory structure, wires frontmatter fields for invocability, and pre-approves bash commands to eliminate approval prompts.
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; scripts run unread.
This skill follows references/task-orchestration.md patterns.
Create a task at invocation, mark completed when done:
REQUIRED: Create a task at invocation. Execute at startup:
TaskCreate(subject="Create or improve skill", activeForm="Working on skill")Mark completed when done: TaskUpdate(taskId, status="completed")
Announce: "Using dev10x-teach:skill-create to [create/improve] the <name> skill."
Foundation: Read superpowers:writing-skills first for TDD methodology,
CSO principles, and quality standards. This skill covers only the local
Dev10x conventions that sit on top of that foundation.
~/.claude/skills/
<namespace>:<skill-name>/
SKILL.md # required
scripts/ # executable helpers (optional)
references/ # markdown reference docs (optional)
Active namespaces: my:, dev10x:, ticket:, pr:, commit:
---
name: dev10x:my-skill-name
invocation-name: dev10x:my-skill-name
description: Use when [situation trigger] so [what the user gains or stops suffering]
user-invocable: true # include for user-invocable skills
allowed-tools: # pre-approve bash commands (removes prompts)
- Bash(git commit:*)
- Bash(~/.claude/skills/<name>/scripts/:*)
---
| Field | When to use |
|---|---|
name | Canonical identifier; MUST use dev10x: prefix |
invocation-name | Required on every skill; matches name: by default, or shorter alias |
user-invocable: true | Skill appears in MOTD and is callable via Skill tool |
allowed-tools | Pre-approve bash commands Claude needs; use :* for any args |
persona | Optional, judgment-heavy skills only; mirror it as a **Persona:** line after the H1 — see references/skill-personas.md |
Descriptions, step rationale, and mistake consequences should communicate what changes for the user — not what the skill covers or what steps do.
Description: situation + gain, not a feature list.
❌ Covers namespace conventions, user-invocable frontmatter, and MOTD registration.
✅ Use when bash commands keep prompting for approval or the skill won't appear
in MOTD — so you get the wiring right without hunting existing skills.
Step rationale: what breaks without this step, not just what the step does.
❌ After creating or modifying any skill, regenerate the SKILLS.md index.
✅ Skills don't appear in session context until indexed. Regenerate so the
new skill is discoverable at the next session start.
Mistake consequence: what the user can no longer do — not the technical cause.
❌ Forgot user-invocable: true → Skill won't appear in MOTD or be invocable.
✅ Forgot user-invocable: true → Skill exists but nobody can call it — silent failure.
Every invocable skill MUST open with an announce line so Claude signals which skill is running:
**Announce:** "Using <skill-name> to [purpose matching the task]."
Automated scaffold (recommended):
REQUIRED: Call AskUserQuestion (do NOT use plain text).
Options:
Then run the scaffold:
${CLAUDE_PLUGIN_ROOT}/skills/skill-create/scripts/scaffold.sh <skill-name> <pattern>
This generates SKILL.md with correct frontmatter, evals/evals.json skeleton, and pattern-specific directories (scripts/ or references/).
Manual scaffold (for edge cases):
mkdir -p ~/.claude/skills/<namespace>-<skill-name>
Then create SKILL.md following the frontmatter template above.
Follow superpowers:writing-skills RED-GREEN-REFACTOR:
${CLAUDE_PLUGIN_ROOT}/skills/skill-index/scripts/generate-all.sh --force
rg -n "<namespace>-<skill-name>" ~/.claude/SKILLS.md ~/.claude/.skills-menu.txt
This validates frontmatter parsing and confirms the new skill is indexable.
Skills don't appear in session context until indexed. Regenerate so the new skill is discoverable at the next session start (run this if you skipped step 3 or made additional edits):
${CLAUDE_PLUGIN_ROOT}/skills/skill-index/scripts/generate-motd.sh --force
| Skill | Patterns to study |
|---|---|
dev10x-coding:git-worktree | Step-numbered workflow, allowed-tools, templates |
dev10x-scoping:ticket-create | Prerequisites check, integration section |
dev10x-teach:skill-index | Minimal skill that fully delegates to a script |
commit | Multi-step workflow with explicit validation gates |
Use the Skill tool or a REQUIRED: Use <skill-name> instruction line.
Never @-force-load another skill file — it consumes context immediately.
## Prerequisites
**REQUIRED:** Invoke `dev10x-coding:ticket-branch` before this workflow begins.
All scripts in scripts/ must be executable so they can be invoked directly
and match the Bash(~/.claude/skills/<name>/scripts/:*) allow rule pattern.
After creating any script in scripts/:
chmod +x ~/.claude/skills/<namespace>:<skill-name>/scripts/<script>
Or for all scripts in a skill at once:
chmod +x ~/.claude/skills/<namespace>:<skill-name>/scripts/*
| Script type | Shebang | Invoke as |
|---|---|---|
| Python (any) | #!/usr/bin/env -S uv run --script + PEP 723 block | ~/.claude/skills/.../script.py |
| Shell | #!/usr/bin/env bash or #!/bin/bash | ~/.claude/skills/.../script.sh |
PEP 723 block (for uv scripts with dependencies):
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = ["requests", "slack_sdk"]
# ///
Call scripts directly — never prefix with python3 or bash:
# ✅ Direct call — matches Bash(~/.claude/skills:*) allow rule
~/.claude/skills/<name>/scripts/my-script.py --arg value
# ❌ Prefixed — command starts with python3, not ~/.claude/skills
python3 ~/.claude/skills/<name>/scripts/my-script.py --arg value
The allowed-tools entry Bash(~/.claude/skills/<name>/scripts/:*) only
pre-approves commands whose prefix is ~/.claude/skills/.... If the script
is invoked with python3 or bash prefix, the prefix becomes python3 or
bash, the allow rule doesn't match, and Claude prompts for approval on
every invocation.
| Mistake | Consequence |
|---|---|
| Description lists features covered | Claude can't tell when to load it — skill never gets used |
No Announce: line | User can't tell which skill is running when something goes wrong |
Forgot user-invocable: true | Skill exists but nobody can call it — silent, invisible failure |
| MOTD not refreshed after creation | Skill missing from session context until next regeneration |
allowed-tools without :* suffix | Every bash command in the workflow triggers an approval prompt |
| Script not marked executable | Direct invocation fails; python3/bash prefix breaks allow rule matching |
python3 ~/.claude/skills/... in SKILL.md | Allow rule Bash(~/.claude/skills:*) doesn't match; prompts on every run |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/audit-filedev10x-teach:audit-fileFile skill-audit findings as a GitHub issue at the plugin repo that owns the offending skill. Invoked by skill-audit Phase 7 with the target repo confirmed at its destination gate. TRIGGER when: skill-audit Phase 7 completes and user opts to file upstream. DO NOT TRIGGER when: no audit findings exist, or user wants to review findings before filing.
/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).
npx claudepluginhub dev10x-guru/dev10x-claude --plugin dev10x-teach