Agent skill

Setup Caliber

by caliber-ai-org in caliber-ai-org/ai-setup

Sets up Caliber for automatic AI agent context sync. An agent skill from caliber-ai-org/ai-setup.

MITAuto-check passedAgent Workflows

Install Setup Caliber

skills CLI
$ npx skills add caliber-ai-org/ai-setup --skill setup-caliber -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install caliber-ai-org/ai-setup setup-caliber --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/caliber-ai-org/ai-setup.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/setup-caliber .claude/skills/setup-caliber && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
setup-caliber
GitHub stars
1.3k
Token cost
~1.9k tokens
SKILL.md length
788 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Sets up Caliber for automatic AI agent context sync. An agent skill from caliber-ai-org/ai-setup.

  • Works in 5 steps: Check if Caliber is installed → Check if pre-commit hook is installed → Detect agents and check if configs exist → …
  • Caliber hooks are not yet installed
  • SKILL.md covers Instructions, When to trigger and When NOT to trigger
  • Calls npm and npx; needs ANTHROPIC_API_KEY and OPENAI_API_KEY

What it does

Setup Caliber is an agent skill from caliber-ai-org/ai-setup. 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.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Agent instruction files and Codebase knowledge for agents. The repository describes itself as: Continuously sync your AI setups with one command. Codebase tailor suited agent skills, MCPs and config files for Claude Code, Cursor, and Codex. The licence is MIT.

When your agent uses it

  • Caliber hooks are not yet installed
  • The user asks about keeping agent configs in sync

Example prompts

  • “/setup-caliber”

Requirements

  • Node.js
  • A credential in GITHUB_TOKEN
  • A credential in ANTHROPIC_API_KEY

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Check if Caliber is installed
  2. Check if pre-commit hook is installed
  3. Detect agents and check if configs exist
  4. Check if configs are fresh
  5. Ask about team setup

What it can do on your machine

Read from SKILL.md and the folder at commit f5dbc00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm and npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • ANTHROPIC_API_KEY
    • OPENAI_API_KEY
    • GOOGLE_APPLICATION_CREDENTIALS
    • GITHUB_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Setup Caliber loads about 1.9k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 788 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from caliber-ai-org/ai-setup at commit f5dbc00, republished under its MIT licence (© caliber-ai-org). 788 words, ~1,941 tokens.

Download SKILL.mdSave it as .claude/skills/setup-caliber/SKILL.md (or your agent's skills folder).
name
setup-caliber
description
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.

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
bash
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):

    bash
    npm install -g @rely-ai/caliber

    Set CALIBER="caliber".

    If npm fails (permissions, no sudo, etc.), fall back to npx:

    bash
    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.
Step 2: Check if pre-commit hook is installed
bash
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."
    bash
    $CALIBER hooks --install
Step 3: Detect agents and check if configs exist

First, detect which coding agents are configured in this project:

bash
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:

bash
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:
    bash
    $CALIBER init --auto-approve --agent <comma-separated-agents>
    For example: $CALIBER init --auto-approve --agent claude,cursor This generates CLAUDE.md, Cursor rules, AGENTS.md, skills, and sync infrastructure for the specified agents.
Step 4: Check if configs are fresh
bash
$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:
    bash
    $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:

    bash
    $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:
      bash
      $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 skills anytime to discover community skills for your stack"

    Then show the summary (see below) and stop.

  • If team → Check if the GitHub Action already exists:

    bash
    [ -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:

      yaml
      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:

      bash
      $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_ID and GOOGLE_APPLICATION_CREDENTIALS (service account JSON)

      Update the workflow env block to match the provider. For example, if using OpenAI:

      yaml
              env:
                OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

      Then check if the gh CLI is available to set the secret:

      bash
      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:
        bash
        gh secret set ANTHROPIC_API_KEY
        (This prompts for the value securely via stdin)
      • 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:

      bash
      git add .github/workflows/caliber-sync.yml
      git commit -m "feat: add Caliber sync GitHub Action"
      git push
Show full SKILL.md (71 more words)Show less
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

© caliber-ai-org, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/setup-caliber of caliber-ai-org/ai-setup.

Open the folder on GitHubat commit f5dbc00

Compare with similar skills

Setup Caliber next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Setup Caliber compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Setup Caliber this skillcaliber-ai-org/ai-setup1.3k—~1.9kAutomated safety check: PassMIT
Context Engineeringabashev/vfs-s31069 repos~2.6kAutomated safety check: NotesApache-2.0
Dotagents Standardgetknit/knit131—~4.1kAutomated safety check: PassMIT
Reconcile ContextApocrathia/home-assistant-config179—~931Automated safety check: PassNone
Verify Agent ContextLuligu/matterbridge983—~525Automated safety check: PassApache-2.0
Init Deep AGENTS.md Generatorcode-yeongyu/oh-my-openagent70k—~3.5kAutomated safety check: PassCustom licence

Similar skills

  • Context Engineering

    abashev/vfs-s3

    Optimizes agent context setup. An agent skill from abashev/vfs-s3.

    106 GitHub starsUsed in 9 repos~2.6k tokens
    Agent WorkflowsAuto-check: notes
  • Dotagents Standard

    getknit/knit

    Set up, author, and navigate the dotagents standard — a slim AGENTS.md "router" at the repository root plus a hidden .agents/ directory (rules, context, memory, personas, skills, specs, logs, tasks)…

    131 GitHub stars~4.1k tokensUpdated 3 days ago
    Agent WorkflowsAuto-check passed
  • Reconcile Context

    Apocrathia/home-assistant-config

    Fix drift in Home Assistant Homelab agent context (AGENTS.md, CLAUDE.md, .agents/context/, rules, skills, agents) against the repo.

    179 GitHub stars~931 tokensUpdated 16 days ago
    Agent WorkflowsAuto-check passed
  • Verify Agent Context

    Luligu/matterbridge

    Verify which coding agent is running and that it loaded the shared Matterbridge instructions, rules and skills from AGENTS.md and .agents/.

    983 GitHub stars~525 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Init Deep AGENTS.md Generator

    code-yeongyu/oh-my-openagent

    Generates a tree of AGENTS.md files for a repository, one at the root and more in complex subdirectories, so agents learn its structure and conventions.

    70k GitHub stars~3.5k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • gbrain Sync

    garrytan/gstack

    Re-indexes a repository into gbrain and refreshes the agent search guidance in CLAUDE.md, safe to run again whenever search results look stale.

    136k GitHub stars~15k tokensUpdated today
    Agent WorkflowsAuto-check: notes

More from caliber-ai-org/ai-setup

All 8 skills in this repo
  • Adding A Command

    caliber-ai-org/ai-setup

    Creates a new CLI command following the Commander.js pattern in src/commands/.

    1.3k GitHub stars~2k tokensUpdated 14 days ago
    Auto-check passed
  • Caliber Testing

    caliber-ai-org/ai-setup

    Writes Vitest tests following project patterns: tests/ directories, vi.mock() for module mocking with vi.hoisted() for test-time factories, global LLM mock from src/test/setup.ts, environment…

    1.3k GitHub stars~3.2k tokensUpdated 14 days ago
    Auto-check passed
  • Find Skills

    caliber-ai-org/ai-setup

    Discovers and installs community skills from the public registry.

    1.3k GitHub stars~593 tokensUpdated 14 days ago
    Auto-check passed
  • LLM Provider

    caliber-ai-org/ai-setup

    Adds a new LLM provider implementing LLMProvider interface with call() and stream() methods.

    1.3k GitHub stars~2.7k tokensUpdated 14 days ago
    Auto-check passed
  • Save Learning

    caliber-ai-org/ai-setup

    Saves user instructions as persistent learnings for future sessions.

    1.3k GitHub stars~626 tokensUpdated 14 days ago
    Auto-check passed
  • Scoring Checks

    caliber-ai-org/ai-setup

    Add a new deterministic scoring check in src/scoring/checks/ that evaluates config quality.

    1.3k GitHub stars~3k tokensUpdated 14 days ago
    Auto-check passed

Categories

Questions about Setup Caliber

What does Setup Caliber do?

Sets up Caliber for automatic AI agent context sync. An agent skill from caliber-ai-org/ai-setup. Setup Caliber is an agent skill from caliber-ai-org/ai-setup. Sets up Caliber for automatic AI agent context sync.

When should I use Setup Caliber?

Setup Caliber fits situations like: caliber hooks are not yet installed; the user asks about keeping agent configs in sync.

How do I install Setup Caliber in Claude Code?

Run `npx skills add caliber-ai-org/ai-setup --skill setup-caliber -a claude-code`. Or copy the skill folder (skills/setup-caliber in caliber-ai-org/ai-setup) into .claude/skills/setup-caliber in your project. Claude Code loads it when a task matches its description.

How do I install Setup Caliber in Codex?

Run `npx skills add caliber-ai-org/ai-setup --skill setup-caliber -a codex`. Or copy the skill folder (skills/setup-caliber in caliber-ai-org/ai-setup) into .agents/skills/setup-caliber in your project. Codex loads it when a task matches its description.

Can I use Setup Caliber in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add caliber-ai-org/ai-setup --skill setup-caliber -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/setup-caliber, .gemini/skills/setup-caliber, .github/skills/setup-caliber and .opencode/skills/setup-caliber in your project.

What does Setup Caliber need to run?

Going by SKILL.md and its folder, Setup Caliber needs the command-line tools its instructions call (npm and npx) and credentials named ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_APPLICATION_CREDENTIALS and GITHUB_TOKEN. Our summary lists: Node.js; A credential in GITHUB_TOKEN; A credential in ANTHROPIC_API_KEY.

Does Setup Caliber access the network?

SKILL.md contains no URLs. Its commands use npm and npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Setup Caliber safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Setup Caliber use?

Setup Caliber is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Setup Caliber use?

About 1.9k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Setup Caliber?

Skills that share tags, products or a category with Setup Caliber: Context Engineering (abashev/vfs-s3, 106 stars), Dotagents Standard (getknit/knit, 131 stars), Reconcile Context (Apocrathia/home-assistant-config, 179 stars) and Verify Agent Context (Luligu/matterbridge, 983 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Setup Caliber?

caliber-ai-org (a GitHub organization) maintains it in caliber-ai-org/ai-setup, which has 1,300 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 24, 2026.

Source: caliber-ai-org/ai-setup on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.