setup-caliber
Skill1.3k starsChanged 7 months agoMITView on GitHub
Sets up Caliber for automatic AI agent context sync. Installs pre-commit hooks so CLAUDE.md, Cursor rules, and Copilot instructions update automatically on every commit. Use when Caliber hooks are not yet installed or when the user asks about keeping agent configs in sync.
- Reads credentials
- Installs packages
- Commits and pushes
Trending
Less talk lately.about the whole repository
Who's talking about caliber-ai-org/ai-setup
- sudosubin/agents.nix“agent-skills.github.caliber-ai-org.ai-setup: 1.55.1 → 1.55.2”GitHub · Oct 3, 2026
- FlorianBruniaux/claude-code-ultimate-guide“Broken links detected in guide markdown”GitHub · Oct 1, 2026
- sudosubin/agents.nix“agent-skills.github.caliber-ai-org.ai-setup: init at 1.55.1”GitHub · Sep 26, 2026
- FlorianBruniaux/claude-code-ultimate-guide“Broken links detected in guide markdown”GitHub · Sep 2, 2026
- FlorianBruniaux/claude-code-ultimate-guide“Broken links detected in guide markdown”GitHub · Sep 1, 2026
The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 22
Talked about on GitHub (22 times).
On GitHub · 22
- Oct 3, 2026agent-skills.github.caliber-ai-org.ai-setup: 1.55.1 → 1.55.2 — sudosubin/agents.nix0 reactions
- Oct 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions
- Sep 26, 2026agent-skills.github.caliber-ai-org.ai-setup: init at 1.55.1 — sudosubin/agents.nix0 reactions
- Sep 2, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- Sep 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
17 more on GitHub
- Sep 1, 2026Broken links detected in guide markdown — AMusso19/CUSTOM-claude-code-ultimate-guide-Florian0 reactions
- Sep 1, 2026Broken links detected in guide markdown — alexica00/claude-code-ultimate-guide0 reactions
- Aug 1, 2026Broken links detected in guide markdown — AMusso19/CUSTOM-claude-code-ultimate-guide-Florian0 reactions
- Aug 1, 2026Broken links detected in guide markdown — alexica00/claude-code-ultimate-guide0 reactions
- Aug 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- Jul 1, 2026Broken links detected in guide markdown — AMusso19/CUSTOM-claude-code-ultimate-guide-Florian0 reactions
- Jul 1, 2026Broken links detected in guide markdown — alexica00/claude-code-ultimate-guide0 reactions
- Jul 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- Jun 1, 2026Broken links detected in guide markdown — alexica00/claude-code-ultimate-guide0 reactions
- Jun 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- May 18, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- May 18, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- May 18, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- May 18, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- Apr 18, 2026Audit candidate: caliber-ai-org/ai-setup — xiaolai/nlpm0 reactions · 4 comments
- Mar 28, 2026Add Caliber — AI config generation & sync CLI — roboco-io/awesome-vibecoding0 reactions · 1 comment
- Mar 26, 2026feat: charter score — zero-install AI-readiness audit for any repo — Stackbilt-dev/charter0 reactions · 1 comment
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/caliber-conventions.mdcCursor rule
- .cursor/rules/caliber-learnings.mdcCursor rule
- .cursor/rules/caliber-pre-commit.mdcCursor rule
- .cursor/rules/llm-layer.mdcCursor rule
- .cursor/rules/testing.mdcCursor rule
- adding-a-commandSkill
- caliber-testingSkill
- find-skillsSkill
- llm-providerSkill
- save-learningSkill
- scoring-checksSkill
- setup-caliberSkill
- writers-patternSkill
- adding-a-commandSkill
- caliber-testingSkill
- find-skillsSkill
- llm-providerSkill
- save-learningSkill
- scoring-checksSkill
- setup-caliberSkill
- writers-patternSkill
- adding-a-commandSkill
- caliber-testingSkill
- find-skillsSkill
- llm-providerSkill
- save-learningSkill
- scoring-checksSkill
- setup-caliberSkill
- writers-patternSkill
- adding-a-commandSkill
- caliber-testingSkill
- find-skillsSkill
- llm-providerSkill
- save-learningSkill
- scoring-checksSkill
- writers-patternSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
34 rules. About 0 are common, 22 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈22
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Run all diagnostic steps below on every invocation to determine what's already set up and what still needs to be done.
- Distinctive: line 14
Run these checks in order.
- Very specific: line 23
If a version prints → Caliber is installed globally.
- Very specific: line 24
If NOT_INSTALLED → Install it globally (faster for daily use since the pre-commit hook runs on every commit):
- Distinctive: line 30
If npm fails (permissions, no sudo, etc.), fall back to npx:
- Very specific: line 34
If npx works → Set CALIBER="npx @rely-ai/caliber".
- Very specific: line 35
If NO_NODE → Tell the user: "Caliber requires Node.js >= 20.
- Very specific: line 43
If HOOK_ACTIVE → Tell the user: "Pre-commit hook is active — configs sync on every commit." Move to Step 3.
- Very specific: line 44
If NO_HOOK → Tell the user: "I'll install the pre-commit hook so your agent configs sync automatically on every commit."
- Distinctive: line 61
If no agents are detected, ask the user which coding agents they use (Claude Code, Cursor, Codex, GitHub Copilot).
- Distinctive: line 72
If configs exist for the detected agents → Tell the user which configs are present.
- Distinctive: line 73
If configs are missing → Tell the user: "No agent configs found.
- Distinctive: line 74
Use the detected or user-selected agent list:
- Distinctive: line 87
If score is 80+ → Tell the user: "Your configs are in good shape (score: X/100)."
- Distinctive: line 88
If score is below 80 → Tell the user: "Your configs could be improved (score: X/100).
- Distinctive: line 96
Ask the user: "Are you setting up for yourself only, or for your team too?"
- Distinctive: line 98
If solo → Continue with solo setup:
- Distinctive: line 100
Check if session learning is enabled:
- Distinctive: line 104
If learning is already enabled → note it in the summary.
- Distinctive: line 105
If not enabled → ask the user: "Caliber can learn from your coding sessions — when you correct a mistake or fix a pattern, it remembers for …
- Distinctive: line 113
Every time you commit, Caliber syncs your agent configs automatically
- Very specific: line 115
Run $CALIBER skills anytime to discover community skills for your stack"
- Distinctive: line 119
If team → Check if the GitHub Action already exists:
- Very specific: line 123
If ACTION_EXISTS → Tell the user: "GitHub Action is already configured."
- Very specific: line 124
If NO_ACTION → Tell the user: "I'll create a GitHub Action that syncs configs nightly and on every PR." Write this file to …
- Very specific: line 125
Write this file to .github/workflows/caliber-sync.yml:
- Distinctive: line 158
Update the workflow env block to match the provider.
- Very specific: line 169
If GH_AVAILABLE → Ask the user for their API key and set it:
- Very specific: line 174
If NO_GH → Tell the user exactly what to do: "Go to your repo on GitHub → Settings → Secrets and variables → Actions → New repository …
- Distinctive: line 188
After completing all steps, show the user what's configured:
- Distinctive: line 203
When a developer first opens this project
- Distinctive: line 204
When the user asks about keeping agent configs up to date
- Distinctive: line 205
When the user asks "how do I set up Caliber" or "what is Caliber"
- Distinctive: line 206
When the user sees a message saying "Run /setup-caliber to get set up"
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Setup Caliber
Dynamic onboarding for Caliber — automatic AI agent context sync. Run all diagnostic steps below on every invocation to determine what's already set up and what still needs to be done.
Instructions
Run these checks in order. For each step, check the current state first, then only act if something is missing.
Step 1: Check if Caliber is installed
command -v caliber >/dev/null 2>&1 && caliber --version || echo "NOT_INSTALLED"- If a version prints → Caliber is installed globally. Set
CALIBER="caliber"and move to Step 2. If NOT_INSTALLED → Install it globally (faster for daily use since the pre-commit hook runs on every commit):
npm install -g @rely-ai/caliberSet
CALIBER="caliber".If npm fails (permissions, no sudo, etc.), fall back to npx:
npx @rely-ai/caliber --version 2>/dev/null || echo "NO_NODE"- If npx works → Set
CALIBER="npx @rely-ai/caliber". This works but adds ~500ms per invocation. - If NO_NODE → Tell the user: "Caliber requires Node.js >= 20. Install Node first, then run /setup-caliber again." Stop here.
- If npx works → Set
Step 2: Check if pre-commit hook is installed
grep -q "caliber" .git/hooks/pre-commit 2>/dev/null && echo "HOOK_ACTIVE" || echo "NO_HOOK"- If HOOK_ACTIVE → Tell the user: "Pre-commit hook is active — configs sync on every commit." Move to Step 3.
- If NO_HOOK → Tell the user: "I'll install the pre-commit hook so your agent configs sync automatically on every commit."
$CALIBER hooks --install
Step 3: Detect agents and check if configs exist
First, detect which coding agents are configured in this project:
AGENTS=""
[ -d .claude ] && AGENTS="claude"
[ -d .cursor ] && AGENTS="${AGENTS:+$AGENTS,}cursor"
[ -d .agents ] || [ -f AGENTS.md ] && AGENTS="${AGENTS:+$AGENTS,}codex"
[ -f .github/copilot-instructions.md ] && AGENTS="${AGENTS:+$AGENTS,}github-copilot"
echo "DETECTED_AGENTS=${AGENTS:-none}"If no agents are detected, ask the user which coding agents they use (Claude Code, Cursor, Codex, GitHub Copilot). Build the agent list from their answer as a comma-separated string (e.g. "claude,cursor").
Then check if agent configs exist:
echo "CLAUDE_MD=$([ -f CLAUDE.md ] && echo exists || echo missing)"
echo "CURSOR_RULES=$([ -d .cursor/rules ] && ls .cursor/rules/*.mdc 2>/dev/null | wc -l | tr -d ' ' || echo 0)"
echo "AGENTS_MD=$([ -f AGENTS.md ] && echo exists || echo missing)"
echo "COPILOT=$([ -f .github/copilot-instructions.md ] && echo exists || echo missing)"- If configs exist for the detected agents → Tell the user which configs are present. Move to Step 4.
- If configs are missing → Tell the user: "No agent configs found. I'll generate them now."
Use the detected or user-selected agent list:
For example:$CALIBER init --auto-approve --agent <comma-separated-agents>$CALIBER init --auto-approve --agent claude,cursorThis generates CLAUDE.md, Cursor rules, AGENTS.md, skills, and sync infrastructure for the specified agents.
Step 4: Check if configs are fresh
$CALIBER score --json --quiet 2>/dev/null | head -1- If score is 80+ → Tell the user: "Your configs are in good shape (score: X/100)."
- If score is below 80 → Tell the user: "Your configs could be improved (score: X/100). Want me to run a refresh?"
If yes:
$CALIBER refresh
Step 5: Ask about team setup
Ask the user: "Are you setting up for yourself only, or for your team too?"
If solo → Continue with solo setup:
Check if session learning is enabled:
$CALIBER learn status 2>/dev/null | head -3- If learning is already enabled → note it in the summary.
- If not enabled → ask the user: "Caliber can learn from your coding sessions — when you correct a mistake or fix a pattern, it remembers for next time. Enable session learning?"
If yes:
$CALIBER learn install
Then tell the user: "You're all set! Here's what happens next:
- Every time you commit, Caliber syncs your agent configs automatically
- Your CLAUDE.md, Cursor rules, and AGENTS.md stay current with your code
- Run
$CALIBER skillsanytime to discover community skills for your stack"
Then show the summary (see below) and stop.
- If team → Check if the GitHub Action already exists:
[ -f .github/workflows/caliber-sync.yml ] && echo "ACTION_EXISTS" || echo "NO_ACTION"- If ACTION_EXISTS → Tell the user: "GitHub Action is already configured."
If NO_ACTION → Tell the user: "I'll create a GitHub Action that syncs configs nightly and on every PR." Write this file to
.github/workflows/caliber-sync.yml:name: Caliber Sync on: schedule: - cron: '0 3 * * 1-5' pull_request: types: [opened, synchronize] workflow_dispatch: jobs: sync: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: caliber-ai-org/ai-setup@v1 with: mode: sync auto-refresh: true comment: true github-token: ${{ secrets.GITHUB_TOKEN }} env: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}Now determine which LLM provider the team uses. Check the local Caliber config:
$CALIBER config --show 2>/dev/null || echo "NO_CONFIG"Based on the provider, the GitHub Action needs the corresponding secret:
- anthropic →
ANTHROPIC_API_KEY - openai →
OPENAI_API_KEY - vertex →
VERTEX_PROJECT_IDandGOOGLE_APPLICATION_CREDENTIALS(service account JSON)
Update the workflow env block to match the provider. For example, if using OpenAI:
env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}Then check if the
ghCLI is available to set the secret:command -v gh >/dev/null 2>&1 && echo "GH_AVAILABLE" || echo "NO_GH"- If GH_AVAILABLE → Ask the user for their API key and set it:
(This prompts for the value securely via stdin)gh secret set ANTHROPIC_API_KEY - If NO_GH → Tell the user exactly what to do: "Go to your repo on GitHub → Settings → Secrets and variables → Actions → New repository secret. Name: ANTHROPIC_API_KEY (or OPENAI_API_KEY depending on provider) Value: your API key"
Finally, offer to commit and push the workflow file:
git add .github/workflows/caliber-sync.yml git commit -m "feat: add Caliber sync GitHub Action" git push- anthropic →
Summary
After completing all steps, show the user what's configured:
Caliber Setup Complete:
✓ Caliber installed (vX.X.X)
✓ Pre-commit hook — configs sync on every commit
✓ Agent configs — CLAUDE.md, Cursor rules, AGENTS.md
✓ Config score: X/100
✓ GitHub Action — nightly sync + PR checks (team only)
From now on, every commit keeps all your agent configs in sync automatically.When to trigger
- When a developer first opens this project
- When the user asks about keeping agent configs up to date
- When the user asks "how do I set up Caliber" or "what is Caliber"
- When the user sees a message saying "Run /setup-caliber to get set up"
When NOT to trigger
- The user is in the middle of time-sensitive work
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

