CLI Reference
wagents CLI commands and usage
The wagents CLI manages AI agent assets in this repository — creating skills, agents, and MCP servers from templates, validating frontmatter, generating documentation, and packaging skills for distribution.
Installation
Section titled “Installation”-
Clone the repository:
Terminal window git clone https://github.com/wyattowalsh/agents.gitcd agents -
Install with uv:
Terminal window uv sync -
Verify installation:
Terminal window uv run wagents --version
Commands
Section titled “Commands”wagents new — Create Assets
Section titled “wagents new — Create Assets”Scaffold new skills, agents, or MCP servers from reference templates. Each template includes commented examples for all optional fields.
Create a new skill with YAML frontmatter and markdown body:
wagents new skill my-skillThis creates skills/my-skill/SKILL.md with a complete template including all optional frontmatter fields as comments, and scaffolds a documentation page.
# Skip the docs page scaffoldwagents new skill my-skill --no-docsOutput structure:
skills/my-skill/ SKILL.md # Frontmatter + instructionsCreate a new agent configuration:
wagents new agent my-agentThis creates agents/my-agent.md with frontmatter for tools, permissions, model selection, and a system prompt body.
# Skip the docs page scaffoldwagents new agent my-agent --no-docsCreate a new MCP server with FastMCP v3:
wagents new mcp my-serverThis creates a complete MCP server directory:
mcp/my-server/ server.py # FastMCP entry point with example tool pyproject.toml # Package config with fastmcp>=2 dependency fastmcp.json # FastMCP configurationThe command also adds the mcp/ directory to the uv workspace in pyproject.toml if not already present.
# Skip the docs page scaffoldwagents new mcp my-server --no-docswagents validate — Check All Assets
Section titled “wagents validate — Check All Assets”Validate frontmatter and structure for every skill, agent, and MCP server in the repository:
wagents validateWhat it checks:
| Asset type | Validations |
|---|---|
| Skills | Required name and description fields, kebab-case naming, name matches directory, description within 1024 chars, body is non-empty |
| Agents | Required name and description fields, kebab-case naming, name matches filename |
| MCP servers | Directory is kebab-case, server.py exists and references FastMCP, pyproject.toml includes fastmcp dependency, fastmcp.json exists |
The command exits with code 1 if any validation fails, printing each error to stderr.
wagents readme — Generate README
Section titled “wagents readme — Generate README”Regenerate README.md from the current repository contents, or check if the existing README is up to date:
# Fully regenerate README.mdwagents readme
# Check if README is stale (exits 1 if out of date)wagents readme --checkThe generated README includes tables for all skills, agents, and MCP servers, plus a development commands reference.
wagents install — Install Skills
Section titled “wagents install — Install Skills”Install skills into agent platforms via npx skills:
# Install all skills to all supported agents globallywagents install
# Install specific skill(s)wagents install my-skill
# Install to a specific agentwagents install -a claude-code
# List available skills without installingwagents install --list
# Copy files instead of symlinkingwagents install --copy
# Skip confirmation promptswagents install -ySupported agents: claude-code, gemini-cli, codex, crush, cursor, antigravity, github-copilot, opencode
wagents package — Package Skills
Section titled “wagents package — Package Skills”Package skills into portable ZIP files for distribution:
# Package a single skillwagents package my-skill
# Package all skillswagents package --all
# Check portability without creating ZIPswagents package --dry-run
# Specify output directorywagents package my-skill --output dist/
# Output as JSON instead of tablewagents package my-skill --format jsonPackaged ZIPs are self-contained and can be distributed independently or attached to GitHub releases.
wagents docs — Documentation Site
Section titled “wagents docs — Documentation Site”Manage the Starlight-powered documentation site at agents.w4w.dev.
One-time setup to install documentation dependencies:
wagents docs initThis runs pnpm install in the docs/ directory.
Generate MDX content pages, sidebar, and index pages from repository assets:
wagents docs generateOptions:
# Include installed skills from ~/.claude/skills/wagents docs generate --include-installed
# Include skills with TODO descriptionswagents docs generate --include-draftsBy default, generation is deterministic and repository-only. The generator creates individual pages for each skill, agent, and MCP server, plus category index pages and the sidebar navigation.
Generate content and start the development server with hot reload:
wagents docs devGenerate content and produce a static build:
wagents docs buildOutput goes to docs/dist/.
Generate, build, and start a preview server for the production build:
wagents docs previewRemove generated content pages while preserving hand-maintained files:
wagents docs cleanFiles containing HAND-MAINTAINED in their content are preserved during clean operations.
Common Workflows
Section titled “Common Workflows”Adding a new skill end-to-end
Section titled “Adding a new skill end-to-end”-
Scaffold the skill:
Terminal window wagents new skill my-skill -
Edit
skills/my-skill/SKILL.mdwith your instructions. -
Validate the frontmatter:
Terminal window wagents validate -
Preview the docs page:
Terminal window wagents docs dev -
Package for distribution:
Terminal window wagents package my-skill
Updating documentation after changes
Section titled “Updating documentation after changes”-
Regenerate all docs:
Terminal window wagents docs generate -
Rebuild the README:
Terminal window wagents readme -
Run validation:
Terminal window wagents validate
Repository Structure
Section titled “Repository Structure”Directoryskills/
Directory<name>/
- SKILL.md
Directoryreferences/ (optional)
- …
Directoryscripts/ (optional)
- …
Directoryevals/ (optional)
- …
Directoryagents/
- <name>.md
Directorymcp/
Directory<name>/
- server.py
- pyproject.toml
- fastmcp.json
Directorydocs/ (this site)
Directorysrc/
Directorycontent/
Directorydocs/ (generated MDX pages)
- …
- generated-sidebar.mjs
Directorywagents/
- __init__.py
- cli.py
- parsing.py
- catalog.py
- rendering.py
- docs.py
Directorytests/
- …