/motoedie-utils:skillsmithfrom motoedie-utils
Create, audit, optimize, or test Agent Skills for coding agents. Use when designing a new skill or improving an existing skill's routing, instructions, token economy, resources, portability, safety, or evaluations. Existing-skill work is report-first and requires approval before edits. Do not use for ordinary prompt editing or unrelated documentation.
Ships in motoedie-utils. 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.
Preserve the skill's complete behavioral contract while reducing avoidable context and improving organization. Treat a skill like code: inspect it, define observable behavior, make the smallest useful change, and test the result. Feature loss is a regression even when the resulting instructions are shorter.
Before creating, auditing, improving, or testing a skill, load the
writing-for-agents skill (the writing-for-agents@motoedie plugin) and read
SKILL-MECHANICS.md in that skill's folder. Apply the full guide
when evaluating or writing skill instructions.
Skillsmith's workflow, behavior-preservation, approval, validation, and natural-endpoint rules take precedence where the guide differs. Treat pruning suggestions for existing skills as recommendations subject to Protect existing behavior.
Infer these settings from the request and state only assumptions that affect the result:
portable by default, or openai, cursor, or claude when the
user requests one. For a platform target, read
references/targets.md.normal by default. Use fast for a narrow/static pass and
benchmark only when the user requests comparative evidence or the request
otherwise clearly includes running evaluations. For normal, read
references/evaluation.md. For benchmark, read
that reference and
references/benchmarking.md.Preserve the user's chosen location and format. Before analyzing an existing skill, read references/existing-skills.md and references/package-analysis.md. Follow their complete inspection and reporting protocols for every package and example size.
When creating a skill, look among the current harness's available skills for
its skill-creation helper, such as Codex or Claude's skill-creator, or Cursor's
create-skill. Use its relevant instructions and tools without repeating
completed work. If none is available, continue with Skillsmith. The helper is
advisory, not a dependency; Skillsmith's rules take precedence. This workflow
remains responsible for instruction quality, economy, routing, evaluation,
safety, and portability.
Before creating one, determine whether the information would work better as:
Explain and stop if a skill would add no durable behavioral value. For an over-broad skill, recommend a split; for several skills with the same routing and workflow, consider a merge.
Feature preservation is a correctness requirement. A feature includes routing, operating modes, thresholds, workflows, outputs, side effects, tool or model requirements, concurrency, stopping conditions, and authorization boundaries.
Before proposing changes to an existing skill, inventory these features and map each proposed change to them using the existing-skill reference. Missing tests, infrequent activation, high context cost, or the agent's preference for a simpler workflow is not evidence that a feature is obsolete.
Do not edit an existing skill during the findings phase. Report proposed changes and ask for approval. After approval, apply only the approved findings without adjacent optimization. Never remove, weaken, merge, or replace a feature unless the report identifies the behavioral impact, provides evidence, and the user explicitly approves that change.
Identify the outcomes the skill must change before rewriting instructions:
Rely on the workflow's natural endpoint. Add explicit completion or stop criteria only when the endpoint is ambiguous, continued iteration or retries could waste significant time or tokens, or continued action could increase risk, cost, or external side effects.
Classify source material while reasoning as invariant, requirement,
preference, heuristic, example, or background. Do not add these labels to
the final skill unless they improve its use. Diagnose each observed failure as
missing knowledge, weak salience, ambiguity, bad routing, missing deterministic
tooling, a misleading example, or a one-off error. A one-off error does not by
itself justify another rule.
Define each behavioral rule in exactly one instruction file; other files may route to it but must not restate its conditions or exceptions.
When Python is available, run:
python3 scripts/analyze_skill.py <skill-directory>
Resolve scripts/analyze_skill.py relative to this
skill's directory. It reports a complete file inventory, direct local document
dependencies (including sibling skills), approximate discovery, activation,
conditional-resource and external-dependency costs, plus deterministic structure
findings. Use --format json for the file inventory. Referenced dependency costs
do not imply those documents are always loaded. Treat token counts as estimates
and its warnings as leads, not proof of semantic coverage.
After changing the analyzer, run its
regression tests with
python3 -B -m unittest discover -s <skillsmith-directory>/tests.
Also inspect semantically for:
For a new skill, make the smallest change supported by the analysis. For an existing skill, make the smallest approved change:
SKILL.md.Do not optimize solely against line count or an arbitrary score. Every retained instruction should earn its expected context cost through behavioral value, frequency, risk reduction, or clarity.
Before finishing, verify whether the following tasks were done. Do any that weren't.
Use the effort-specific checks routed above. For fast, perform static
analysis, link/resource checks, and a focused semantic review. For every new
skill, walk through at least one representative execution case; for an existing
skill, exercise all affected features, modes, thresholds, and conditional paths
and preserve uncovered behavior as unverified.
After editing, compare the result with the pre-change feature inventory, then rerun available structural validators and the static analyzer. For an existing skill, close every row in the package and feature coverage ledgers; otherwise report the result as incomplete. Run new or changed scripts on representative success and failure inputs. Convert demonstrated failures into regression cases when the expected behavior is stable; do not accumulate prose for every failure.
Report concisely:
Never claim preserved quality, token savings, compatibility, or benchmark gains without naming the evidence. If evidence is insufficient, say what was not run.
evals/evals.json (opens in a new tab)references/benchmarking.md (opens in a new tab)references/evaluation.md (opens in a new tab)references/existing-skills.md (opens in a new tab)references/large-input-analysis.md (opens in a new tab)references/package-analysis.md (opens in a new tab)references/script-extraction.md (opens in a new tab)references/targets.md (opens in a new tab)scripts/__pycache__/analyze_skill.cpython-313.pyc (opens in a new tab)scripts/analyze_skill.py (opens in a new tab)tests/__pycache__/test_analyze_skill.cpython-313.pyc (opens in a new tab)tests/test_analyze_skill.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub motoedie/.dotfiles --plugin motoedie-utils6 skills in this plugin
/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
/code-commentsAdd, review, or rewrite code comments so they explain intent, invariants, branch rationale, and multi-step flows without narrating obvious syntax. Use when documenting newly added or recently changed code, converting line-by-line comments into concise block comments, checking whether comment density is too sparse or too heavy, or making non-obvious branches, scripts, and side effects easier for reviewers to scan./git-conflict-resolveResolve git conflicts by understanding intent on every side, not by picking a winner. Use when an integration step (merge, rebase, cherry-pick, revert, or — only on explicit request — stash apply) left files with `<<<<<<<` markers. Scope is conflict resolution only — does not commit, continue, drop, or otherwise advance the integration./implementation-planStructure an implementation plan for a coding AI agent to execute autonomously. Use when preparing a multi-phase coding task that another agent (or future session) will carry out without human intervention. Produces a self-contained plan document with all context an agent needs./tddTest-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.