Quick Start
Prerequisites
Section titled “Prerequisites”- 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.
Install
Section titled “Install”There are three ways to run aspens:
npx (no install)
Section titled “npx (no install)”npx aspens scanDownloads 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.
Local install (per-project)
Section titled “Local install (per-project)”npm install --save-dev aspensAdds 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.
Global install
Section titled “Global install”npm install -g aspensInstalls 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.
1. Generate docs and skills
Section titled “1. Generate docs and skills”From your project root:
npx aspens doc initThis scans the repo, runs discovery passes, generates skills, and writes everything to .claude/skills/ and CLAUDE.md.
To generate for a different target:
npx aspens doc init --target codex # Codex formatnpx aspens doc init --target all # both Claude and Codex2. Keep docs in sync
Section titled “2. Keep docs in sync”Install the post-commit hook so skills update automatically:
npx aspens doc sync --install-hookOr run sync manually after making changes:
npx aspens doc sync3. Check doc health
Section titled “3. Check doc health”See which skills are stale or missing coverage:
npx aspens doc impactWhat’s next
Section titled “What’s next”- 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