From mthds-dev
Edit existing MTHDS bundles (.mthds files). Use when user says "change this pipe", "update the prompt", "rename this concept", "add a step", "remove this pipe", "modify the workflow", "modify the method", "refactor this pipeline", or wants any modification to an existing .mthds file. Supports automatic mode for clear changes and interactive mode for complex modifications.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mthds-dev:mthds-editThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Modify existing MTHDS method bundles.
Modify existing MTHDS method bundles.
Explicit override: If the user states a preference, always honor it:
Skill default: Each skill defines its own default based on the nature of the task.
Request analysis: If no explicit signal and no strong skill default, assess the request:
Automatic mode:
Interactive mode:
Default: Automatic for clear, specific changes. Interactive for ambiguous or multi-step modifications.
Detection heuristics:
Run this command to check toolchain status:
~/.claude/plugins/marketplaces/mthds-plugins/bin/mthds-env-check "0.3.4" 2>/dev/null || ../mthds-plugins/bin/mthds-env-check "0.3.4" 2>/dev/null || echo "MTHDS_ENV_CHECK_MISSING"
Interpret the output:
MTHDS_AGENT_MISSING → STOP. Do not proceed. Tell the user:The
mthds-agentCLI is required but not installed. Install it with:npm install -g /build-src/mthds-js/Then re-run this skill.
MTHDS_AGENT_VERSION_UNKNOWN → STOP. The installed mthds-agent returned an unparseable version. Tell the user:Could not parse the output of
mthds-agent --version. Your installation may be corrupt. Reinstall with:npm install -g /build-src/mthds-js/Then re-run this skill.
MTHDS_AGENT_OUTDATED <installed> <required> → The installed mthds-agent is too old for this plugin. Do not hard-stop. Instead, tell the user their mthds-agent (v<installed>) is older than the required v<required>, then follow the upgrade flow to offer upgrading mthds-agent via npm install -g /build-src/mthds-js/. After the upgrade flow completes (whether the user upgraded or declined), proceed to Step 1. The upgrade flow's "Not now" and "Never ask" options let users continue with current versions.
MTHDS_UPDATE_CHECK_FAILED ... → WARN. The update check command failed. Show the error output to the user. Suggest checking network connectivity and mthds-agent installation. Proceed to Step 1 with current versions.
UPGRADE_AVAILABLE ... → Read upgrade flow and follow the upgrade prompts before continuing to Step 1.
JUST_UPGRADED ... → Announce what was upgraded to the user, then continue to Step 1.
MTHDS_ENV_CHECK_MISSING → WARN. The env-check script was not found at either expected path. Tell the user the environment check could not run, but proceed to Step 1.
No output or UP_TO_DATE → Proceed to Step 1.
Any other output → WARN. The preamble produced unexpected output. Show it to the user verbatim. Proceed to Step 1 cautiously.
Do not write .mthds files manually, do not do any other work. The CLI is required for validation, formatting, and execution — without it the output will be broken.
No backend setup needed: This skill works without configuring inference backends or API keys. You can start building/validating methods right away. Backend configuration is only needed to run methods with live inference — use
/mthds-runner-setupwhen you're ready.
Read the existing .mthds file — Understand current structure before making changes
Understand requested changes:
Interactive checkpoint: Present a summary of planned changes. Ask "Does this plan look right?" before proceeding to step 3.
Automatic: Proceed directly to step 3. State planned changes in one line.
Apply changes:
Validate after editing:
If you suspect TOML syntax issues after editing, run mthds-agent plxt lint <file>.mthds for a quick check before the heavier semantic validation. Then validate:
mthds-agent validate bundle <file>.mthds -L <bundle-dir>/
If errors, see Error Handling Reference for recovery strategies by error domain. Use /mthds-fix skill for automatic error resolution.
Regenerate inputs if needed:
mthds-agent inputs bundle <file>.mthds -L <bundle-dir>/Present completion:
inputs.json contains placeholder values, suggest the safe dry-run command first:
To try the updated method now, use /mthds-run or from the terminal:
mthds-agent run bundle <bundle-dir>/ --dry-run --mock-inputsTo run with real data, use /mthds-inputs to prepare your inputs (provide your own files, or generate synthetic test data), then:
mthds-agent run bundle <bundle-dir>/
batch_over (plural list name or dotted path like "result.sources") and batch_as (singular item name) to step — they must be different$var.field in prompts or from in construct blocks, to know which attributes each native concept exposesmodel field is optional — omit it to use defaultsnpx claudepluginhub mthds-ai/mthds-plugins --plugin mthds-devProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.