mthds-install
Original:🇺🇸 English
Translated
Install MTHDS method packages from GitHub or local directories. Use when user says "install a method", "install from GitHub", "add a method package", "mthds install", "install method", "set up a method", or wants to install an MTHDS method package for use with an AI agent.
4installs
Sourcemthds-ai/skills
Added on
NPX Install
npx skill4agent add mthds-ai/skills mthds-installTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Install MTHDS method packages
Install method packages from GitHub or local directories using the CLI.
mthds-agentProcess
Step 0 — CLI Check (mandatory, do this FIRST)
Run . The minimum required version is 0.0.13 (declared in this skill's front matter as ).
mthds-agent --versionmin_mthds_version- If the command is not found: STOP. Do not proceed. Tell the user:
TheCLI is required but not installed. Install it with:mthds-agentnpm install -g mthdsThen re-run this skill.
- If the version is below 0.0.13: STOP. Do not proceed. Tell the user:
This skill requiresversion 0.0.13 or higher (found X.Y.Z). Upgrade with:mthds-agentnpm install -g mthds@latestThen re-run this skill.
- If the version is 0.0.13 or higher: proceed to the next step.
Do not attempt manual installation. The CLI handles resolution, file placement, shim generation, and runtime setup.
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 — usewhen you're ready./pipelex-setup
Step 1: Identify the Source
Determine where the method package lives:
| Source | Syntax | Example |
|---|---|---|
| GitHub (short) | | |
| GitHub (full URL) | | |
| Local directory | | |
If the user provides a GitHub URL or string, use it as the address argument. If they point to a local directory, use .
org/repo--localStep 2: Choose Install Parameters
| Flag | Required | Values | Description |
|---|---|---|---|
| Yes | | AI agent to install for |
| Yes | | |
| No | method name | Install only one method from a multi-method package |
| No | — | Also install the MTHDS skills plugin |
| No | — | Skip automatic Pipelex runtime installation |
Defaults:
- Use (since this skill runs inside Claude Code)
--agent claude-code - Use unless the user explicitly asks for global install
--location local
Step 3: Run the Install
From GitHub:
bash
mthds-agent install <org/repo> --agent claude-code --location localFrom a local directory:
bash
mthds-agent install --local <path> --agent claude-code --location localInstall a specific method from a multi-method package:
bash
mthds-agent install <org/repo> --agent claude-code --location local --method <name>Install with skills plugin:
bash
mthds-agent install <org/repo> --agent claude-code --location local --skillsStep 4: Present Results
On success, the CLI returns JSON:
json
{
"success": true,
"installed_methods": ["method-name"],
"location": "local",
"target_dir": "/path/to/.claude/methods",
"installed_skills": [],
"shim_dir": "~/.mthds/bin",
"shims_generated": ["method-name"]
}Present to the user:
- Which methods were installed and where ()
target_dir - If CLI shims were generated, note the shim directory and advise adding to PATH if not already present
~/.mthds/bin - If skills were installed, mention they are now available
Step 5: Handle Errors
When encountering errors, re-run with for additional context:
--log-level debugbash
mthds-agent --log-level debug install <org/repo> --agent claude-code --location localCommon errors:
| Error | Cause | Fix |
|---|---|---|
| Missing | Add |
| Missing | Add |
| Invalid agent ID | Use one of: |
| GitHub repo not found or no methods in repo | Verify the address and that the repo contains METHODS.toml |
| | Check available method names in the package |
| Runtime install failed (network, permissions) | Retry, or use |
For all error types and recovery strategies, see Error Handling Reference.
Reference
- Error Handling — read when CLI returns an error to determine recovery
- MTHDS Agent Guide — read for CLI command syntax or output format details