Single Source of Truth

Your AI assistants,
finally in sync.

Chain Hub stores your skills, workflows, and rules in one canonical place and symlinks them into every AI-powered editor on your machine — automatically.

6 editors supported
100+ skills
TypeScript CLI
Self-healing symlinks
Open format
The problem

One machine.
Five configs.

Every AI editor has its own convention for storing rules and instructions. You maintain the same content in five places and they drift apart the moment you update one.

01
Cursor reads rules from .cursor/rules/ in its own Markdown format.
02
Claude Code looks in ~/.claude/ for skills and CLAUDE.md files.
03
Windsurf, Gemini CLI, Trae, Kiro — each with entirely different paths and expectations.
04
The result: stale duplicates everywhere. Your best skills live in one editor only.
How it works

Write once.
Run everywhere.

Chain Hub maintains one canonical directory for all your AI knowledge, then symlinks it precisely into every editor — simultaneously.

01
Clone your hub
Fork the Chain Hub template and clone it to ~/.chain. This becomes the canonical home for all your AI assistant knowledge.
$ git clone … ~/.chain
02
Run setup once
The CLI detects every installed IDE on your machine and creates symlinks from your hub into each editor's expected location.
$ chain setup
03
Edit once, sync everywhere
Change a skill in your hub. Every editor sees it instantly. Add, remove, scaffold and validate — all from one CLI.
$ chain validate
Supported editors

Works where
you work.

Every major AI coding environment. Synchronized from one hub.

Content model

Skills,
workflows
& rules.

Chain Hub organizes AI knowledge into three first-class types — each with a clear role in how your assistants behave.

Skills are invocable by name. Workflows guide multi-step processes step by step. Rules are always-on constraints that shape every response. Together they form a coherent, portable knowledge system.

Skills
100+ available
Specialized knowledge modules. Each has a trigger condition, a workflow, and a quality gate. The AI invokes them by name when the task matches.
Workflows
20+ available
Step-by-step procedures for complex agent tasks — spec writing, debugging, refactoring, deployment. Always sequential. Always verifiable.
Rules
Global & per-project
Always-on constraints for code style, language policy, and architecture. Applied automatically to every session. Never need invoking.
CLI reference

Everything from
one command.

The chain CLI handles the full lifecycle — from initial setup to publishing new skills.

$ chain setup
Detect all installed IDEs and create or repair symlinks from your hub into each editor.
$ chain validate
Lint all skill frontmatter and structure. Run before every commit — also enforced as a pre-commit hook.
$ chain list
Show all active skills with their source, type, and sync status across editors.
$ chain new <slug>
Scaffold a new skill from the canonical template with correct frontmatter pre-filled.
$ chain add github:…
Install a skill directly from any GitHub repository. Pulled into your hub and linked instantly.
$ chain reflect
Analyze recent session logs and surface patterns worth encoding as permanent skills or rules.
Quick start

Up in
three steps.

Clone, link, and run. No configuration files, no environment setup. Chain Hub figures out where each editor lives on its own.

Self-healing — broken symlinks are automatically repaired on the next chain setup.
Compiled binary — the CLI builds to a native Bun binary. No runtime required in production.
Validated on commit — the pre-commit hook runs chain validate and blocks broken skills automatically.
Extensible — bring any skill from GitHub with chain add github:owner/repo.
bash
# 1. Clone to your home directory
$ git clone https://github.com/you/chain-hub  ~/.chain

# 2. Install the CLI
$ cd ~/.chain/cli && bun install && bun link

# 3. Sync all your AI editors in one shot
$ chain setup

# ✓ Claude Code → ~/.claude/skills # ✓ Cursor → ~/.cursor/rules # ✓ Windsurf → ~/.codeium/windsurf # ✓ Gemini CLI → ~/.gemini/skills # ✓ Kiro → ~/.kiro/skills # ✓ Trae → ~/.trae/skills
6 IDEs synchronized.