Skip to content

CLI Reference

wagents CLI commands and usage

wagents is the repo control plane for skills, agents, MCP servers, and generated docs. Use it to scaffold new assets, validate the repo, publish docs, and package skills for release.

Multiple coding-agent harness interfaces connected to one shared skill source
Harness MatrixShows supported agents consuming one portable skill bundle.
  1. Sync the repo environment:

    Terminal window
    uv sync
  2. Sanity-check your toolchain:

    Terminal window
    uv run wagents doctor
  3. Validate the repo before making changes:

    Terminal window
    uv run wagents validate
  4. Start the docs site when you need to inspect generated output:

    Terminal window
    uv run wagents docs dev
CommandDescription
wagents new <asset>Scaffold a new skill, agent, or MCP server from repo templates
wagents validateCheck frontmatter, naming, hooks, and related-skill integrity
wagents doctorSanity-check Python, uv, Node tooling, docs deps, and Playwright
wagents readmeRegenerate README.md or fail if it is stale
wagents openspec <subcommand>Inspect, validate, and materialize OpenSpec workflows for downstream AI tools
wagents installInstall repo skills into supported agent platforms
wagents updateRefresh installed skills from their recorded sources
wagents skills <subcommand>Inventory, sync, search, read, and diagnose local skills on demand
wagents package <name>Build portable ZIP packages for sharing or release
wagents docs <subcommand>Generate, serve, build, preview, or clean the docs site
wagents hooks <subcommand>List and validate lifecycle hooks
wagents eval <subcommand>List, validate, and check eval coverage

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

wagents openspec — Spec Workflow Control

Section titled “wagents openspec — Spec Workflow Control”

Wrap OpenSpec CLI commands with repo defaults, downstream tool mappings, and OPENSPEC_TELEMETRY=0 for automation. Use these wrappers when AI agents need JSON status or instructions.

Terminal window
wagents openspec doctor
wagents openspec init --apply
wagents openspec status --change add-feature --format json
wagents openspec instructions design --change add-feature --format json
wagents openspec validate

Subcommands:

CommandPurpose
doctorCheck Node, npx, OpenSpec project files, generated artifacts, and tool mapping
initPrint or run openspec init for repo-supported downstream tools
updatePrint or run openspec update after CLI/profile changes
validateRun openspec validate --all --strict --json
statusReturn artifact state for one change as JSON-compatible output
instructionsReturn artifact or apply instructions as JSON-compatible output
schemasList available OpenSpec schemas

Validate frontmatter and structure for every skill, agent, and MCP server in the repository. Also validates hook event names and RELATED_SKILLS references.

Terminal window
wagents validate
# Output as JSON or JSONL
wagents validate --format json

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
HooksHook event names are known lifecycle events across skills, agents, and settings
Related skillsEvery key and value in RELATED_SKILLS maps to an existing skill directory

The command exits with code 1 if any validation fails, printing each error to stderr.


wagents doctor — Environment Health Check

Section titled “wagents doctor — Environment Health Check”

Diagnose your local environment and toolchain. Checks for required tools, correct Python version, docs dependency status, and Playwright availability.

Terminal window
wagents doctor
# Output as JSON for scripting
wagents doctor --format json

What it checks:

CheckStatus on failure
Python version satisfies requires-pythonfail
uv on PATHfail
node, npx, pnpm on PATHwarn
docs/node_modules present and freshwarn
Playwright Python package installedwarn
Playwright browser cache existswarn

Exits with code 1 if any check has fail status. Warnings are informational and do not affect the exit code.


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
# Project-local install instead of global
wagents install --local
# List available skills without installing
wagents install --list
# Copy files instead of symlinking
wagents install --copy
# Skip confirmation prompts
wagents install -y

For third-party skill sources or curated subsets, use npx skills add directly:

Terminal window
npx skills add <source> --skill <name> -y -g --agent antigravity --agent claude-code --agent codex --agent crush --agent cursor --agent gemini-cli --agent github-copilot --agent opencode
OptionDefaultDescription
<skills>allPositional skill name(s) to install
-a, --agentallTarget agent(s), repeatable
-g, --globaltrueInstall globally (default)
--localfalseInstall into current project only
--listfalseList available skills without installing
--copyfalseCopy files instead of symlinking
-y, --yesfalseSkip confirmation prompts

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


wagents update — Refresh Installed Skills

Section titled “wagents update — Refresh Installed Skills”

Refresh installed skills from the sources recorded by the skills CLI. Use this after this repository changes so downstream agent installs pick up the latest committed skill files.

Terminal window
wagents update
# Equivalent lower-level command
npx skills update

wagents skills sync — Additive Cross-Harness Sync

Section titled “wagents skills sync — Additive Cross-Harness Sync”

Build a normalized installed-skill inventory from npx skills ls -g -a <agent> --json, then preview or apply additive installs for the desired sync set.

Terminal window
# Default mode is dry-run across all supported harnesses
wagents skills sync
# Target one harness
wagents skills sync --agent github-copilot
# Include verified one-off installed external skills
wagents skills sync --include-installed
# Execute the verified install commands
wagents skills sync --apply
OptionDefaultDescription
-a, --agentallRestrict sync to one or more harnesses
--all-agentsfalseExplicitly target all supported harnesses
--dry-runtruePreview missing, already-present, unresolved, skipped rows, and exact install commands
--applyfalseExecute only the verified additive install commands
--include-installedfalseInclude verified one-off installed external skills outside the curated desired set

Inspect repository, installed, curated, and plugin skills without loading every skill description into startup context. Use this when local skill inventory exceeds an agent’s context budget or when you need additive sync diagnostics.

Preview additive cross-harness installs from the normalized inventory:

Terminal window
wagents skills sync --dry-run
# Narrow to one harness and include verified one-off installs
wagents skills sync --agent codex --include-installed
SourceRoots
reposkills/
project.agents/skills/ in the current project path
codex~/.codex/skills/
global~/.agents/skills/ plus supported agent skill stores
plugin~/.codex/plugins/cache/**/skills/

Each result includes name, path, source, trust_tier, score, matched fields, and warnings.


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.


Inspect and validate lifecycle hooks defined in .claude/settings.json, skill frontmatter, agent frontmatter, and the portable config/hook-registry.json.

List all hooks across skills, agents, settings, and the portable hook registry:

Terminal window
wagents hooks list
# Output as JSON
wagents hooks list --format json

Shows source, event, matcher, harness support, handler type, and command/prompt for each hook.


Manage and validate eval files stored in skills/<name>/evals/*.json. Evals define test queries and expected behaviors for skills.

List all eval files grouped by skill:

Terminal window
wagents eval list
# Output as JSON
wagents eval list --format json

Structured Output All validation commands

Section titled “Structured Output ”

Most inspection and validation commands accept --format to control output:

FormatDescription
textHuman-readable table output (default)
jsonSingle JSON object with full results
jsonlOne JSON object per line — ideal for piping to jq or log aggregators

Commands supporting --format: validate, doctor, hooks list, hooks validate, eval list, eval validate, eval coverage, skills index, skills search, skills read, skills context, skills doctor.


  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
  1. Run the doctor check:

    Terminal window
    wagents doctor
  2. Fix any FAIL items shown in the output.

  3. Run validation and hook checks:

    Terminal window
    wagents validate && wagents hooks validate

  • Directoryskills/
    • Directory<name>/
      • SKILL.md
      • Directoryreferences/ (optional)
      • Directoryscripts/ (optional)
      • Directoryevals/ (optional)
  • Directoryagents/
    • <name>.md
  • Directorymcp/
    • Directory<name>/
      • server.py
      • pyproject.toml
      • fastmcp.json
    • Directoryservers/ (ignored local third-party installs)
  • 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/