Skip to content

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.

  1. Clone the repository:

    Terminal window
    git clone https://github.com/wyattowalsh/agents.git
    cd agents
  2. Install with uv:

    Terminal window
    uv sync
  3. Verify installation:

    Terminal window
    uv run wagents --version

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:

Terminal window
wagents new skill my-skill

This creates skills/my-skill/SKILL.md with a complete template including all optional frontmatter fields as comments, and scaffolds a documentation page.

Terminal window
# Skip the docs page scaffold
wagents new skill my-skill --no-docs

Output structure:

skills/my-skill/
SKILL.md # Frontmatter + instructions

Validate frontmatter and structure for every skill, agent, and MCP server in the repository:

Terminal window
wagents validate

What it checks:

Asset typeValidations
SkillsRequired name and description fields, kebab-case naming, name matches directory, description within 1024 chars, body is non-empty
AgentsRequired name and description fields, kebab-case naming, name matches filename
MCP serversDirectory 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.


Regenerate README.md from the current repository contents, or check if the existing README is up to date:

Terminal window
# Fully regenerate README.md
wagents readme
# Check if README is stale (exits 1 if out of date)
wagents readme --check

The generated README includes tables for all skills, agents, and MCP servers, plus a development commands reference.


Install skills into agent platforms via npx skills:

Terminal window
# Install all skills to all supported agents globally
wagents install
# Install specific skill(s)
wagents install my-skill
# Install to a specific agent
wagents install -a claude-code
# List available skills without installing
wagents install --list
# Copy files instead of symlinking
wagents install --copy
# Skip confirmation prompts
wagents install -y

Supported agents: claude-code, gemini-cli, codex, crush, cursor, antigravity, github-copilot, opencode


Package skills into portable ZIP files for distribution:

Terminal window
# Package a single skill
wagents package my-skill
# Package all skills
wagents package --all
# Check portability without creating ZIPs
wagents package --dry-run
# Specify output directory
wagents package my-skill --output dist/
# Output as JSON instead of table
wagents package my-skill --format json

Packaged ZIPs are self-contained and can be distributed independently or attached to GitHub releases.


Manage the Starlight-powered documentation site at agents.w4w.dev.

One-time setup to install documentation dependencies:

Terminal window
wagents docs init

This runs pnpm install in the docs/ directory.


  1. Scaffold the skill:

    Terminal window
    wagents new skill my-skill
  2. Edit skills/my-skill/SKILL.md with your instructions.

  3. Validate the frontmatter:

    Terminal window
    wagents validate
  4. Preview the docs page:

    Terminal window
    wagents docs dev
  5. Package for distribution:

    Terminal window
    wagents package my-skill
  1. Regenerate all docs:

    Terminal window
    wagents docs generate
  2. Rebuild the README:

    Terminal window
    wagents readme
  3. Run validation:

    Terminal window
    wagents validate

  • 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/