Skip to content

Quick Start

  • Node.js 18 or later
  • A git repository you want to document
  • A backend CLI for generation: Claude Code or Codex CLI

aspens scan works without a backend — it’s deterministic and free. Commands that generate content (doc init, doc sync) need one installed.

There are three ways to run aspens:

Terminal window
npx aspens scan

Downloads and runs aspens on the fly. Nothing is saved to your project or system — great for trying it out. The first run fetches the package; subsequent runs use the npm cache.

Terminal window
npm install --save-dev aspens

Adds aspens to your project’s devDependencies. This pins the version in package.json so everyone on the team uses the same one. Run it with npx aspens or add scripts to package.json:

{
"scripts": {
"aspens:scan": "aspens scan",
"aspens:init": "aspens doc init",
"aspens:sync": "aspens doc sync"
}
}

Recommended for teams — keeps the version consistent across contributors and CI.

Terminal window
npm install -g aspens

Installs aspens to your system so you can run aspens directly from any directory without npx. Convenient for personal use, but the version isn’t tied to any project — different team members may end up on different versions.

From your project root:

Terminal window
npx aspens doc init

This scans the repo, runs discovery passes, generates skills, and writes everything to .claude/skills/ and CLAUDE.md.

To generate for a different target:

Terminal window
npx aspens doc init --target codex # Codex format
npx aspens doc init --target all # both Claude and Codex

Install the post-commit hook so skills update automatically:

Terminal window
npx aspens doc sync --install-hook

Or run sync manually after making changes:

Terminal window
npx aspens doc sync

See which skills are stale or missing coverage:

Terminal window
npx aspens doc impact
  • How It Works — understand the generation pipeline
  • Skills — learn how skills are structured and activated
  • Target Support — configure outputs for Claude, Codex, or both
  • Commands — full command reference