Core Concepts
Core concepts
- One hub (
~/chain-hub): Skills, rules, agents, workflows, and registry state live in one directory (default~/chain-hub; override withchain config set chain_homeor theCHAIN_HOMEenvironment variable). Editors read from it via symlinks afterchain setup. - Tiered bundled skills: Every install ships 14 protected operations skills under
core/skills/(for examplechain-setup,hub-learn,chain-validate). They cannot be removed withchain remove. The Hub Authoring Pack (9 removable skills such ascreate-skill,create-workflow) installs withchain init --with-authoringorchain addintoskills/and registers under thechain_hubbucket. - Registry index: Public skill metadata is published in
registry/index.yaml, generated fromcli/core/registry.yamland skill frontmatter.chain add <slug>andchain searchuse this index. - Skills registry:
skills-registry.yamlat the hub root tracks buckets (core,chain_hub,personal,packs,community, …), GitHub pack sources, and authorship. Folders underskills/that are not yet listed are auto-registered onchain setup, hub API load, andchain validate --fix(typically aspersonalorcommunitybased on provenance). - Agent skill loading: Editors inject skill names + descriptions each session; the assistant reads
SKILL.mdwhen the description matches your task. Skills are not auto-created during chat — install, author, or improve them explicitly. - Memory rules: Global preferences live under
memory/identity/; per-repo context undermemory/workspaces/<id>/afterchain memory init.chain memory syncwrites editor-native rule files for linked adapters. - Continual learning: Short events queue in
learnings/queue/; the hub Brain → Pipeline tab (orchain reflect) distills them — Brain requires Chain Hub Pro. Hub-wide insights become shared skill/workflow patches; project-tagged insights (repo_hint) become workspace memory rules — grouped by project in Inbox, Drafts, and For you before you approve anything. - Design System: Active-project tokens live in
.chain/design/profile.json; hub #design-system edits and exports Tailwind/CSS snippets. Free tier covers presets and the editor; Pro adds AI/random generators and Pro presets. - Git sync (optional):
chain syncbacks up and shares your hub across machines with a private Git remote — not Dropbox/Syncthing onskills/in parallel.