Every AI coding tool โ Cursor, Claude Code, Gemini/Antigravity, Devin, Codex, Windsurf, and GitHub Copilot โ has its own way of defining skills and coding rules.
Some use .cursor/rules/name.mdc. Others use .claude/skills/name/SKILL.md or .agents/rules/name.md. If you work across multiple agents or repositories, keeping your prompt instructions, coding standards, and runbooks in sync quickly becomes a copy-paste mess.
Axon solves this. It acts as a universal Skill & Constitution Management System. You write or stage your skills once in a central hub (~/.axon/), and Axon automatically symlinks them into every agent format your project needs.
Paired with community rulebooks like ai-assets, you can onboard any repository to production-ready AI skills in seconds.
Stop Copy-Pasting AI Prompts Across Agents
Cursor uses .mdc files. Claude Code uses .claude/skills/. Gemini & Antigravity use .agents/rules/. Axon connects them all from a single central hub.
Importing or adding skills with axon add or axon import is 100% safe. It only places raw files in your central hub (~/.axon/). Absolutely zero files in your repository break or change until you explicitly run axon enable.
axon add / axon importStores files in central hub. Zero project mutation.
axon enable skillCreates repo symlink in skills folder. Skill is now available.
enable principle / activateAlters always-on rules or enables autonomous LLM execution.
What Problem Does Axon Solve?
Modern AI development often involves using multiple tools โ Cursor for coding, Claude Code for CLI tasks, Antigravity for subagent automation, or Devin for background refactoring. Managing your instructions across repositories means duplicating files, risking prompt drift, and struggling with incompatible folder formats.
Each AI agent expects different paths, file extensions, and folder structures. You end up copying files into multiple directories across every repo.
Keep a single source of truth in ~/.axon/. Axon creates exact, agent-aware symlinks into your project automatically.
โโโ principles/code-standards.md
โโโ workflows/pr-review.md
Discover all 23 pre-built skills in our catalog or read our architectural deep dive on Principles vs Skills vs Workflows.
Core Axon Workflow Commands
1. Install Axon
The automated installation script creates an isolated Python virtual environment at ~/.axon-env/ and links the executable to ~/.local/bin/axon. Zero global package pollution.
curl -sSL https://raw.githubusercontent.com/aayushlalroy/axon/main/install.sh | bash๐2. Stage Skills & Principles (axon import / axon add)
๐ข SAFE STAGING (0 PROJECT CHANGES)Before initializing project repos or enabling skills, stage them into your central hub (~/.axon/). Importing or adding skills only populates your central staging area โ zero files in your current project repository are mutated until you run axon enable.
Option A: Bulk Import Open-Source Skill Library (ai-assets)
Clone aayushlalroy/ai-assets and bulk stage battle-tested skills into ~/.axon/:
git clone https://github.com/aayushlalroy/ai-assets.git๐cd ai-assets && axon import . --config axon-import.yaml๐Option B: Stage Your Own Custom Skill or Principle
Stage a local folder or .md file into the central hub with a custom name:
axon add path/to/my-skill-folder --type skill --name=my-skill๐axon add path/to/coding-standards.md --type principle --name=code-standards๐3. Initialize Project Repository (axon init)
Scaffold agent configuration directories for your repository. Axon automatically creates the required folder structures for all supported AI agents (.cursor/rules/, .claude/skills/, .agents/skills/, etc.).
cd your-project๐axon init๐4. Inspect Hub & Project State (axon list / axon list --all)
Inspect what skills and principles are staged in your central hub versus what is actively enabled in your current project repository.
Lists all skills and principles currently enabled in the active project repository.
Lists all skills and principles staged in your central hub (~/.axon/), showing enabled/disabled status across repositories and activation state.
axon list๐axon list --all๐5. Enable & Disable (axon enable / axon disable)
Link or unlink staged items from your central hub into the current project repository.
Running axon enable my-skill creates agent-specific symlinks in your repo. The skill is now available in your repository.
Running axon enable principle skill-attribution adds an always-on constitution rule to agent rules, modifying LLM behavior across every conversation turn.
axon enable my-skill๐axon enable principle skill-attribution๐axon disable my-skill๐6. Activate & Deactivate (axon activate / axon deactivate)
๐ด MAJOR IMPACT (MODEL AUTO-INVOCATION)Control model auto-invocation behavior for skills and principles. Activating or deactivating is a Major Impact change because it controls whether the LLM is allowed to auto-invoke skills autonomously on intent match.
axon activate skill clarify-first๐axon deactivate skill clarify-first๐Copies raw skill/principle files into your central hub at ~/.axon/. Zero project mutation! Absolutely nothing changes in your project repository until enabled.
Creates atomic symlinks in your current project repository (e.g. .cursor/rules/, .claude/skills/). The skill is now active in this repository for human or agent invocation.
Updates frontmatter (disable-model-invocation: false). Allows the AI model to trigger the skill autonomously on matching user intent without explicit prompt invocation.
Sets disable-model-invocation: true. Stops the LLM from auto-triggering the skill autonomously, but leaves the skill symlinked in the project for manual use (saves LLM tokens).
Removes project symlinks from the current repository. The canonical skill source stays 100% safe inside ~/.axon/ so you can enable it again later.
Completely deletes the skill or principle from your central ~/.axon/ hub and unlinks it across all projects.
8. Uninstall Axon CLI
Need to uninstall? Axon includes a script to clean up binary symlinks and virtual environment. You can choose to keep your staged skills or purge everything.
curl -sSL https://raw.githubusercontent.com/aayushlalroy/axon/main/uninstall.sh | bash๐curl -sSL https://raw.githubusercontent.com/aayushlalroy/axon/main/uninstall.sh | bash -s -- --keep-data๐curl -sSL https://raw.githubusercontent.com/aayushlalroy/axon/main/uninstall.sh | bash -s -- --purge๐Supported AI Agents Matrix
๐ Exhaustive Architecture & Advanced Reference
In-Depth GuideAn exhaustive reference on Axon's hub-and-spoke architecture, lifecycle state transitions, AI agent adapter formats, CLI command options, and hierarchical configuration schemas.
Visualizing asset flow from source repos, central staging (~/.axon/), symlinked enablement, to agent discovery.
Assets are added using axon add <path> or bulk-imported with axon import . into ~/.axon/skills/, principles/, or workflows/. Zero changes occur in project repos until enabled.
axon enable [TYPE] NAME (creates agent symlinks)Axon links staged assets into .cursor/rules/, .claude/skills/, .agents/skills/, etc. Editing in ~/.axon/ updates all enabled repos automatically.
Passed with --global to enable assets in machine-wide agent folders (~/.cursor/rules/, ~/.claude/, ~/.gemini/config/).
axon activate [TYPE] NAME (turns on auto-invocation / detached override)Activating sets disable-model-invocation: false (or creates an un-linked physical local file copy if custom repo tweaks are needed). The AI agent detects the skill autonomously on user intent!
axon deactivate โ Reverts override back to symlink / turns auto-invocation offaxon disable โ Removes target symlinks cleanly1. Asset Lifecycle States & Transitions
Axon enforces a clean state machine for every asset across your machine:
Stored in central hub (~/.axon/{skills,principles,workflows}). Canonical source of truth across all repos on your machine.
Axon creates target symlinks in initialized agent directories (.cursor/rules, .claude/skills, etc.). Changes in ~/.axon/ reflect instantly.
Enables LLM auto-invocation (disable-model-invocation: false) or detaches symlink into a local physical override file for project-specific customization. Discoverable by agents!
Disables auto-triggering or reverts physical local overrides back to managed symlinks pointing to ~/.axon/.
Symlinks are safely unlinked from project repositories. The staged asset stays 100% intact in ~/.axon/.
Purges item from ~/.axon/ hub and cleans up all target symlinks, local overrides, and config references.
2. Architecture & AI Agent Mechanics
Axon relies on a Hub-and-Spoke model. Staged assets in ~/.axon/ act as single sources of truth. Agent adapters dynamically convert canonical formats into whatever format each AI IDE or CLI expects:
Used by Devin, Claude Code, Gemini/Antigravity, Codex. Symlinks whole folder containing SKILL.md and auxiliary scripts.
Used by Cursor. Symlinks SKILL.md as .cursor/rules/name.mdc and compiles principles into .cursorrules.
Used by Windsurf and Copilot. Symlinks skills or principles as flat .md instruction files.
3. Exhaustive CLI Command Reference
All 15 CLI commands supported by Axon with full arguments, options, and tooltips:
axon setup๐axon version๐axon update --version v1.1.0๐axon agents๐axon init --agent cursor,devin๐axon deinit --agent cursor -y๐axon add skills/my-skill --type skill๐axon add schema-sync.md --skill openapi-first๐axon import . --config axon-import.yaml --dry-run๐axon remove skill my-old-skill -y๐axon enable skill clarify-first --agent cursor๐axon enable principle skill-attribution --global๐axon disable skill clarify-first๐axon activate skill clarify-first๐axon deactivate skill clarify-first๐axon list --all๐axon sync -y๐4. Hierarchical Configuration Schema & Storage Reference
Axon resolves configuration in order of precedence: Project (axon-config.yaml) > Global (~/.axon/config.yaml) > Built-in Defaults.
# Complete axon-config.yaml Schema Reference
# Managed agent frameworks scaffolded during 'axon init'
enabled_agents:
- gemini
- cursor
- devin
- windsurf
- codex
- copilot
# Operational defaults
defaults:
name_source: auto # Strategies: auto | frontmatter | folder | file
scope: local # Scopes: local | global
ignore_patterns: # Globs ignored when staging or importing
- "README.md"
- "INDEX.md"
- ".DS_Store"
- "*.tmp"
# 'axon import' overrides
import:
name_source: auto
ignore_patterns:
- "README.md"
- "INDEX.md"
- "AGENTS.md"
# Skill staging options
staging:
ignore_readme: true # Exclude README.md files inside skill directoriesReady to Supercharge Your AI Agent Workflow?
Explore the 23 pre-built skills in our catalog or read the architectural deep dive on Principles vs Skills vs Workflows.