/toolsmith:edit-toolfrom toolsmith
Creates, modifies, and orchestrates Claude Code tools (skills, agents, scripts). Guides type selection via a decision tree based on token cost, frequency, and context needs.
Ships in toolsmith. 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.
Pick the tool type before writing anything. The wrong type is expensive to unwind later (a skill that should have been a 0-token bash script pollutes every session; an agent that should have been a skill loses main-context access). Triaging first is what makes this skill worth more than "just write the file".
✅ [TYPE] because: pollution cost (~X tokens × Yfreq), context mode (inline | context: fork), key factorgraph TD
A["Tool Request"] --> AA{"Plugin<br/>version/release?"}
AA -->|Yes| PLUGIN["✅ edit-plugin"]
AA -->|No| B{"Deterministic<br/>shell only?"}
B -->|Yes| C{"AI needed to<br/>decide when/how?"}
C -->|No| BASH["✅ Bash Script<br/>0 tokens"]
C -->|Yes| D{"Token<br/>budget?"}
D -->|<500| WRAP["✅ Skill + scripts/"]
D -->|>500| SKILL_REF["✅ Skill + reference.md"]
B -->|No| E{"Pollution<br/>cost?"}
E -->|High >2000 tokens<br/>OR deep exploration| W{"Multi-agent<br/>control flow?"}
W -->|Single reasoning pass| AGENT["✅ Sub-Agent"]
W -->|Loops/fan-out/<br/>verify-stages| WORKFLOW["✅ Workflow script<br/>+ optional skill wrapper"]
E -->|Medium 500-2000| F{"Context<br/>mode?"}
F -->|Needs isolation, no history| FORK["✅ Skill context:fork<br/>+ optional agent:type"]
F -->|Needs main context: inline, absent| SKILL_BIG["✅ Skill + reference.md"]
E -->|Low <500| G{"Frequency?"}
G -->|1+ per session| SKILL["✅ Skill"]
G -->|Rare <1/10| DIRECT["❌ No tool needed"]
style PLUGIN fill:#B2DFDB,stroke:#00897B,stroke-width:2px,color:#000
style BASH fill:#90EE90,stroke:#000,stroke-width:2px,color:#000
style SKILL fill:#FFD700,stroke:#000,stroke-width:2px,color:#000
style WRAP fill:#FFA500,stroke:#000,stroke-width:2px,color:#000
style SKILL_REF fill:#FFA500,stroke:#000,stroke-width:2px,color:#000
style SKILL_BIG fill:#87CEEB,stroke:#000,stroke-width:2px,color:#000
style FORK fill:#DDA0DD,stroke:#000,stroke-width:2px,color:#000
style AGENT fill:#DDA0DD,stroke:#000,stroke-width:2px,color:#000
style WORKFLOW fill:#9FA8DA,stroke:#000,stroke-width:2px,color:#000
style DIRECT fill:#FFB6C1,stroke:#000,stroke-width:2px,color:#000
Workflow leaf: when the task needs deterministic multi-agent orchestration — pipeline/parallel/fan-out with loops, judge panels, verify-stages, loop-until-dry — author a Workflow script (optionally a thin skill wrapper that invokes it), not a single sub-agent. A sub-agent is one spawn; a Workflow choreographs many under control flow.
Default: All skills are dual-invocable (both /name and model auto-invoke). disable-model-invocation: true is opt-out for rare edge cases.
When the verdict is "skill" and correctness matters more than speed → this skill gets you a well-architected draft. To know whether that draft actually beats baseline, hand off to Anthropic's official skill-creator skill, which owns the empirical loop edit-tool deliberately does not: draft → test on real prompts → eval with/without the skill → improve → repeat, plus a script that auto-optimizes the description for triggering. Reach for it when the skill is non-trivial, will run many times, or you can't eyeball whether it works. edit-tool decides what to build and how to structure it; skill-creator proves that it works.
/claude-api prompt-audit, by name), see references/frameworks.md § Prompt-audit pass💡 Before creating: consider running /search-skill to discover existing solutions.
pick-model skill for model and effort selection/claude-api prompt-audit, by name, see references/frameworks.md § Prompt-audit pass):| Type | Guide | Location |
|---|---|---|
| Skill | references/skill-guide.md | skills/name/SKILL.md |
| Agent | references/agent-guide.md | .claude/agents/name.md or plugin agents/ |
| Plugin | edit-plugin skill | plugin.json + marketplace.json |
| Bash | Direct guidance (scripts/, chmod +x) | Project scripts dir |
Frontmatter: Skill core = name (lowercase-hyphens) + description (triggers; description+when_to_use ≤ 1536 chars, doc officielle, 2026-09-23) + context (only value fork = isolated, no history; absent = inline) + model. Agent core = name + description + tools/model. Full field tables in the type guides above.
These aren't gates to satisfy — they're the failure modes that make a new tool a net negative. Each one, and what goes wrong if you ignore it:
| Check | Why it matters — the failure it prevents |
|---|---|
| Pollution acceptable? (skill: ~tokens × freq) | A skill's body loads on every trigger. Heavy + frequent = it crowds out the actual work every session, forever. |
| SKILL.md < 500 lines? (overflow → reference.md) | Past that, the always-loaded cost outweighs the value; progressive disclosure keeps the hot path lean. |
| One capability, not a workflow bundle? (skill & agent) | Bundles violate single-responsibility — they under-trigger (description can't cover everything) and are impossible to eval. |
| Needs multi-step reasoning with isolation? (→ agent) | If yes, a skill in main context will either pollute or bias the reasoning; that's the signal to make it an agent. |
If a skill trips the first three, it usually wants a different shape — context:fork (+ agent:<type>), an agent, or just a direct request. Say which, and why, rather than forcing the skill.
context:fork (isolated, no history; agent: picks the type) when isolation avoids pollution or biasreferences/frameworks.md § Fork vs Subagent. Skill frontmatter modes (inline | context: fork + optional agent:) → § Context Execution Mode.references/frameworks.md § Proactive Audit.| Operation | Guidance |
|---|---|
| ✅ Read-only | Parallelize freely — no conflict possible |
| ⚠️ Writes (independent files) | Sequential, or Plan Mode first — concurrent writes race |
| ❌ Destructive / >3 files | Plan Mode first — the cost of a wrong parallel destructive op is unrecoverable |
See references/frameworks.md for edge cases, conversion guide, and extended examples.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub digital-stoic-org/agent-skills --plugin toolsmith5 skills in this plugin
/edit-claudeCreates, updates, or optimizes CLAUDE.md files following Anthropic best practices. Use when user requests creating, updating, improving, or optimizing CLAUDE.md files for project context, coding standards, or persistent memory./edit-pluginAutomates agent-skills plugin version bumps and release metadata. Use when: adding/removing/updating skills or commands, bumping plugin version, preparing a release. Triggers: bump version, edit plugin, update plugin, release, version bump, new skill added, new command added./install-dependencyInstall dependencies with monorepo awareness. Use when: user asks to install a package, add a dependency, or setup Python/JS packages. Triggers: "install X", "add package", "setup dependency", "I need lodash", "install docling".
/search-skillDiscover and evaluate Claude Code skills and plugins from curated sources. Use when searching for existing skills/plugins, finding inspiration, or before creating a new skill. Triggers include "search skill", "find skill", "find plugin", "skill for X", "what skills exist for", "discover skills".Other plugins' skills for the same job