ai-setup
Continuously sync your AI setups with one command. Codebase tailor suited agent skills, MCPs and config files for Claude Code, Cursor, and Codex.
Install / Use
npx skills add caliber-ai-org/ai-setupInstalls into whichever agent you are using.
.cursorrules
Cursor IDE rules (legacy)
Quality Score
Category
AI & Machine LearningSupported Platforms
Tags
Skill content
View source on GitHubCaliber
Hand-written CLAUDE.md files go stale the moment you refactor. Your AI agent hallucinates paths that no longer exist, misses new dependencies, and gives advice based on yesterday's architecture. Caliber generates and maintains your AI context files (CLAUDE.md, .cursor/rules/, AGENTS.md, copilot-instructions.md) so they stay accurate as your code evolves — and keeps every agent on your team in sync, whether they use Claude Code, Cursor, Codex, OpenCode, or GitHub Copilot.
Before / After
Most repos start with a hand-written CLAUDE.md and nothing else. Here's what Caliber finds — and fixes:
Before After /setup-caliber
────────────────────────────── ──────────────────────────────
Agent Config Score 35 / 100 Agent Config Score 94 / 100
Grade D Grade A
FILES & SETUP 6 / 25 FILES & SETUP 24 / 25
QUALITY 12 / 25 QUALITY 22 / 25
GROUNDING 7 / 20 GROUNDING 19 / 20
ACCURACY 5 / 15 ACCURACY 13 / 15
FRESHNESS 5 / 10 FRESHNESS 10 / 10
BONUS 0 / 5 BONUS 5 / 5
Scoring is deterministic — no LLM, no API calls. It cross-references your config files against your actual project filesystem: do referenced paths exist? Are code blocks present? Is there config drift since your last commit?
caliber score --compare main # See how your branch changed the score
Get Started
Requires Node.js >= 20.
npx @rely-ai/caliber bootstrap
Then, in your terminal (not the IDE chat), start a Claude Code or Cursor CLI session and type:
/setup-caliber
Your agent detects your stack, generates tailored configs for every platform your team uses, sets up pre-commit hooks, and enables continuous sync — all from inside your normal workflow.
Don't use Claude Code or Cursor? Run caliber init instead — it's the same setup as a CLI wizard. Works with any LLM provider: bring your own Anthropic, OpenAI, MiniMax, or Vertex AI key.
<details> <summary><strong>Windows Users</strong></summary>Your code stays on your machine. Bootstrap is 100% local — no LLM calls, no code sent anywhere. Generation uses your own AI subscription or API key. Caliber never sees your code.
Caliber works on Windows with a few notes:
- Run from your terminal (PowerShell, CMD, or Git Bash) — not from inside an IDE chat window. Open a terminal,
cdinto your project folder, then runnpx @rely-ai/caliber bootstrap. - Git Bash is recommended. Caliber's pre-commit hooks and auto-sync scripts use shell syntax. Git for Windows includes Git Bash, which handles this automatically. If you only use PowerShell, hooks may be skipped silently.
- Cursor Agent CLI: If prompted to install it, download from cursor.com/downloads instead of the
curl | bashcommand shown on macOS/Linux. Then runagent loginin your terminal to authenticate. - One terminal at a time. Avoid running Caliber from multiple terminals simultaneously — this can cause conflicting state and unexpected provider detection.
Audits first, writes second
Caliber never overwrites your existing configs without asking. The workflow mirrors code review:
- Score — read-only audit of your current setup
- Propose — generate or improve configs, shown as a diff
- Review — accept, refine via chat, or decline each change
- Backup — originals saved to
.caliber/backups/before every write - Undo —
caliber undorestores everything to its previous state
If your existing config scores 95+, Caliber skips full regeneration and applies targeted fixes to the specific checks that are failing.
How It Works
Bootstrap gives your agent the /setup-caliber skill. Your agent analyzes your project — languages, frameworks, dependencies, architecture — generates configs, and installs hooks. From there, it's a loop:
npx @rely-ai/caliber bootstrap ← one-time, 2 seconds
│
▼
agent runs /setup-caliber ← agent handles everything
│
▼
┌──── configs generated ◄────────────┐
│ │ │
│ ▼ │
│ your code evolves │
│ (new deps, renamed files, │
│ changed architecture) │
│ │ │
│ ▼ │
└──► caliber refresh ──────────────►─┘
(auto, on every commit)
Pre-commit hooks run the refresh loop automatically. New team members get nudged to bootstrap on their first session.
What It Generates
Claude Code
CLAUDE.md— Project context, build/test commands, architecture, conventionsCALIBER_LEARNINGS.md— Patterns learned from your AI coding sessions.claude/skills/*/SKILL.md— Reusable skills (OpenSkills format).mcp.json— Auto-discovered MCP server configurations.claude/settings.json— Permissions and hooks
Cursor
.cursor/rules/*.mdc— Modern rules with frontmatter (description, globs, alwaysApply).cursor/skills/*/SKILL.md— Skills for Cursor.cursor/mcp.json— MCP server configurations
OpenAI Codex
AGENTS.md— Project context for Codex.agents/skills/*/SKILL.md— Skills for Codex
OpenCode
AGENTS.md— Project context (shared with Codex when both are targeted).opencode/skills/*/SKILL.md— Skills for OpenCode
GitHub Copilot
.github/copilot-instructions.md— Project context for Copilot
Key Features
<details> <summary><strong>Any Codebase</strong></summary>TypeScript, Python, Go, Rust, Java, Ruby, Terraform, and more. Language and framework detection is fully LLM-driven — no hardcoded mappings. Caliber works on any project.
</details> <details> <summary><strong>Any AI Tool</strong></summary>caliber bootstrap auto-detects which agents you have installed. For manual control:
caliber init --agent claude # Claude Code only
caliber init --agent cursor # Cursor only
caliber init --agent codex # Codex only
caliber init --agent opencode # OpenCode only
caliber init --agent github-copilot # GitHub Copilot only
caliber init --agent all # All platforms
caliber init --agent claude,cursor # Comma-separated
</details>
<details>
<summary><strong>Chat-Based Refinement</strong></summary>
Not happy with the generated output? During review, refine via natural language — describe what you want changed and Caliber iterates until you're satisfied.
</details> <details> <summary><strong>MCP Server Discovery</strong></summary>Caliber detects the tools your project uses (databases, APIs, services) and auto-configures matching MCP servers for Claude Code and Cursor.
</details> <details> <summary><strong>Deterministic Scoring</strong></summary>caliber score evaluates your config quality without any LLM calls — purely by cross-referencing config files against your actual project filesystem.
| Category | Points | What it checks | |---|---|---| | Files & Setup | 25 | Config files exist, skills present, MCP servers, cross-platform parity | | Quality | 25 | Code blocks, concise token budget, concrete instructions, structured headings | | Grounding | 20 | Config references actual project directories and files | | Accuracy | 15 | Referenced paths exist on disk, config freshness vs. git history | | Freshness & Safety | 10 | Recently updated, no leaked secrets, permissions configured | | Bonus | 5 | Auto-refresh hooks, AGENTS.md, OpenSkills format |
Every failing check includes structured fix data — when caliber init runs, the LLM receives exactly what's wrong and how to fix it.
Caliber watches your AI coding sessions and learns from them. Hooks capture tool usage, failures, and your corrections — then an LLM distills operational patterns into CALIBER_LEARNINGS.md.
caliber learn install # Install hooks for Claude Code and Cursor
caliber learn status # View hook status, event count, and ROI summary
caliber learn finalize # Manually trigger analysis (auto-runs on session end)
caliber learn remove # Remove hooks
Learned items are categorized by type — [correction], [gotcha], [fix], [pattern], [env], [convention] — and automatically deduplicated.
</details> <details> <summary><strong>Auto-Refresh</strong></summary>Keep configs in sync with your codebase automatically:
| Hook | Trigger | What it does |
|---|---|---|
| Git pre-commit | Before each commit | Refreshes docs and stages updated files |
| Claude Code session end | End of each session | Runs caliber refresh and updates docs |
| Learning hooks | During each session | Captures events for session learning |
caliber hooks --install # Enable refresh hooks
caliber hooks --remove # Disable refresh hooks
The refresh command analyzes your git diff (committed, staged, and unstaged changes) and updates config files to reflect what changed.
By default the pre-commit hook stages refreshed doc files into the commit in flight. If you prefer to review refreshed docs before committing them (e.g. signed-commit or minimal-diff workflows), disable auto-staging — the refresh still runs, but updated files stay in your working tree:
git config caliber.autostage false
</details>
<details>
<summary><strong>Team Onboarding</strong></summary>
When Caliber is set up in a repo, it automatically nudges new team members to configure it on their machine. A lightweight session hook checks whether the pre-commit hook is installed and prompts setup if not — no manual coordination needed.
</details> <details> <summary><strong>Fully Reversible</strong></summary>- Automatic backups — originals saved to
.caliber/backups/before every write - Score regression guard — if a regeneration produces a lower score, changes are auto-reverted
- Full undo —
caliber undorestores everything to its previous state - Clean uninstall —
caliber uninstallremoves everything Caliber added (hooks, generated sections, skills, learnings) while preserving your own content - Dry run — preview changes with
--dry-runbefore applying
Commands
| Command | Description |
|---|---|
| caliber bootstrap | Install agent skills — the fastest way to get started |
| caliber init | Full setup wizard — analyze, generate, review, install hooks |
| caliber score | Score config quality (deterministic, no LLM) |
| caliber score --compare <ref> | Compare current score
Truncated for display — read the full file on GitHub.
Related Skills
caveman
107.1k🪨 why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.
claude-mem
94.4kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
84.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
83.5kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
