Introduction
aspens is a CLI that keeps coding-agent context accurate as your codebase changes. It scans repos, generates project-specific instructions and skills for Claude Code and Codex CLI, and keeps them fresh.
The problem
Section titled “The problem”AI coding agents (Claude Code, Codex) work best when they understand your codebase: the architecture, conventions, key files, and domain-specific rules. Without this context, agents:
- Miss conventions and architectural boundaries
- Waste time rediscovering key files every session
- Make the same mistakes teams keep manually correcting
Most teams solve this by writing a CLAUDE.md or AGENTS.md file by hand. This works — until the code changes and the docs don’t. Stale context is worse than no context: it actively misleads the agent.
The solution
Section titled “The solution”aspens automates the full lifecycle:
- Scan the repo to understand its structure, tech stack, domains, and import graph
- Generate targeted skills and instructions from what it finds
- Sync those docs automatically as the codebase evolves
- Prove the docs are fresh and covering the right things
Key concepts
Section titled “Key concepts”Skills
Section titled “Skills”Skills are concise markdown files (~35 lines) that give agents the context they need for a specific domain. Each skill contains:
- Activation patterns — file globs that trigger the skill (e.g.,
**/billing*.ts) - Key files — the most important files for that domain
- Key concepts — patterns, conventions, and architecture notes
- Critical rules — gotchas, anti-patterns, and things agents must not do
Targets
Section titled “Targets”aspens supports multiple agent environments through output targets:
claude— writesCLAUDE.md+.claude/skills/+ hookscodex— writesAGENTS.md+.agents/skills/+ directory scoped filesall— generates both from one run
Backends
Section titled “Backends”The backend is which LLM CLI generates the content. Currently supported:
claude— uses Claude Code CLIcodex— uses Codex CLI
The target and backend are independent: you can generate Codex-format docs using the Claude backend.
Next steps
Section titled “Next steps”- Quick Start — get aspens running in your repo
- How It Works — understand the generation pipeline
- Commands — full command reference