Portable, canonical skill library for Claude Code (and future tools).
Agent Kit is the single source of truth for all Claude Code skills, templates, and adapters. The system supports:
- Cross-machine portability (clone + install)
- Clear separation between canonical skill definitions and tool-specific installed copies
- Profiles (bundles of skills) for different use cases
- Global vs project-scoped skills (future)
Core Principle: Agent Kit is the library. Claude's skills folder is a generated installation target.
# Clone the repository
git clone https://github.com/yourusername/agent-kit.git
cd agent-kit
# Install the media profile (includes all skills)
.\install\install.ps1 -Profile media
# Or install just the minimal profile (skill-factory only)
.\install\install.ps1 -Profile minimal
# Verify installation
.\install\install.ps1 -Profile media -DoctorAfter installing, skill-factory needs to find this repo when invoked from Claude. The discovery happens automatically if you run from inside agent-kit, but for convenience you should set one of:
Option 1: Environment variable (recommended)
[System.Environment]::SetEnvironmentVariable("AGENT_KIT_ROOT", "C:\path\to\agent-kit", "User")Option 2: User-level config file
# Windows: creates %LOCALAPPDATA%\agent-kit\agent-kit-root.txt
$dir = Join-Path $env:LOCALAPPDATA "agent-kit"
New-Item -ItemType Directory -Path $dir -Force | Out-Null
"C:\path\to\agent-kit" | Set-Content (Join-Path $dir "agent-kit-root.txt")This config persists across reinstalls (unlike files inside installed skills).
agent-kit/
skills/ # Canonical skill definitions (EDIT HERE)
skill-factory/
splice-deed/
pdf-to-png/
templates/ # Canonical templates for skill-factory
python-venv-ps/
profiles/ # Named bundles of skills
minimal.json
media.json
adapters/ # Tool-specific installers
claude/
install/ # Installer entry points
install.ps1
AGENTS.md # Instructions for AI agents
claude.md # Claude Code specific guidance
.\install\install.ps1 -Profile mediaRun diagnostics to verify installation health:
.\install\install.ps1 -Profile media -DoctorDoctor checks:
- Profile and skills exist in canonical repo
- Skills are installed in target directory
- No unresolved
__SKILLS_ROOT__placeholders remain - Version stamps are present
- Required files (SKILL.md, run.ps1) exist
.\install\install.ps1 -Profile media -Target "C:\custom\skills"Profiles define which skills get installed together.
| Profile | Skills | Use Case |
|---|---|---|
| minimal | skill-factory | Just the skill creator |
| media | skill-factory, pdf-to-png, splice-deed | Document/image processing |
Creates new Claude skills canonically in agent-kit/skills/ (not directly in Claude). Use the installer to sync.
# List available templates
/skill-factory --list-templates
# Create a new skill (in agent-kit/skills/)
/skill-factory --name my-tool --desc "My tool description" --deps "requests,pillow"
# Create and immediately sync to Claude
/skill-factory --name my-tool --desc "My tool" --install
# Just sync existing skills to Claude
/skill-factory --sync --profile mediaWorkflow:
- skill-factory creates canonical skill in
agent-kit/skills/ - Add skill to a profile (edit
profiles/media.json) - Run installer to sync:
.\install\install.ps1 -Profile media
Converts PDFs to PNG images (one per page).
/pdf-to-png .
/pdf-to-png . --recursive --dpi 300Splits double-page deed images into single-page images.
/splice-deed .
/splice-deed . --recursive --organizeRe-running the installer safely updates skills:
- Preserved on reinstall:
.venv,output/,logs/ - Replaced on reinstall: All other skill files
This means you can update skills without losing installed dependencies or output data.
Each installed skill gets a .agent-kit-meta.json file containing:
{
"skill_name": "pdf-to-png",
"installed_at": "2024-01-15T10:30:00Z",
"installed_from_profile": "media",
"installed_from_commit": "abc1234",
"agent_kit_version": "1.0.0"
}Canonical skills use __SKILLS_ROOT__ placeholder. The adapter:
- Only replaces in whitelisted files (
SKILL.md,run.ps1) - Fails if any placeholder remains after installation
- Never modifies Python files or user data
- Edit canonical, install live - All changes happen in agent-kit first, then sync to installed copies
- Canonical skills are tool-agnostic - Use
__SKILLS_ROOT__placeholder instead of hardcoded paths - Adapters handle path resolution - The adapter replaces placeholders during installation
- Profiles are declarative - Lists of skills only, no logic
- Installer is idempotent - Safe to re-run, preserves runtime artifacts
- Fail-loud behavior - Errors abort immediately with clear messages
See AGENTS.md for instructions on how AI agents should interact with this repository.
See claude.md for Claude Code specific guidance.
MIT