Platform Examples
Step-by-step examples for using ContextKit with Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Aider, Continue, and Windsurf. Every integration writes the same canonical AGENTS.md; each tool then imports it, reads it directly, or gets a copy of the same body.
Cursor
Automatic context loading
✅ Zero Configuration Required
.cursor/rules/contextkit-standards.mdc (alwaysApply: true) points Cursor at AGENTS.md and index.md. Topic standards load from path-scoped contextkit-<name>.mdc rules (globs:) only when you touch matching files.
Setup
If .contextkit exists, run contextkit cursor to add Cursor integration. It writes the rules above plus the five skills to .cursor/prompts/ and .agents/skills/.
Basic Usage
Create a login button using btn patternSkills
/ck setup/doc— update docs affected by this branch/learn— turn a correction into a rule/goal— run a long task against a goal file
VS Code + GitHub Copilot
copilot-instructions.md + path-scoped instructions
Setup
If .contextkit exists, run contextkit copilot (or contextkit vscode). It writes .github/copilot-instructions.md with the same body as AGENTS.md, plus path-scoped .github/instructions/contextkit-<name>.instructions.md files (applyTo:) rendered from context_rules.
Extra context: Mention the Folder
@.contextkit Create a login buttonUsually not needed — copilot-instructions.md is loaded automatically. Useful when you want every standards file in one prompt.
Alternative: Mention Subfolders
@.contextkit/standards Create a login buttonStandards only (no templates)
@.contextkit/standards/glossary.md @.contextkit/standards/code-style.md Create a login buttonSpecific files
Claude Code
CLAUDE.md imports AGENTS.md
Auto-Loaded Context
CLAUDE.md imports AGENTS.md and .contextkit/standards/index.md every session. Topic standards load from path-scoped .claude/rules/ files only when you touch matching files.
Setup
Run contextkit claude to set up Claude integration. This writes AGENTS.md, a CLAUDE.md that imports it, path-scoped .claude/rules/, and the five skills in .claude/skills/.
What CLAUDE.md contains
@AGENTS.md @.contextkit/standards/index.md Claude Code: skills run as /ck, /doc, /learn, /goal, /headline. ...
Claude Code reads AGENTS.md on its own only when there is no CLAUDE.md — the import keeps one source of truth.
Path-scoped rules
- Source:
context_rulesin.contextkit/config.yml - Output:
.claude/rules/contextkit-<name>.mdwithpaths:frontmatter - Fixed in 2.0: older rule files used
globs:, which Claude Code ignores, so they loaded every session
Verify it works
/contextCheck that AGENTS.md and index.md appear in the loaded context list. First time triggers an approval dialog for @imports. Run ck check --context to flag stale references or an oversized always-loaded context.
Usage
claude "create [your-feature] for [your-entity]"Standards are already loaded — no need to tell Claude to read them.
OpenAI Codex CLI
Reads AGENTS.md, skills as $name
Setup
Run contextkit codex to set up Codex integration. Codex reads AGENTS.md automatically. Skills go to .codex/skills/ and the portable .agents/skills/, and run as $ck, $doc, $learn, $goal, $headline.
Usage
codex "create a button component"OpenCode
Auto-loads AGENTS.md
Setup
Run contextkit opencode to set up OpenCode integration. OpenCode auto-loads AGENTS.md, which points it at index.md and the topic standards.
Usage
opencode "create a button component"Continue.dev
Automatic context loading
Setup
If .contextkit exists, run contextkit continue to add Continue integration. It writes .continue/rules/contextkit-standards.md and .continue/config.yaml.
Usage
Create a login button using project standardsAider
CONVENTIONS.md
Setup
If .contextkit exists, run contextkit aider to add Aider integration. It writes CONVENTIONS.md with the same body as AGENTS.md, plus .aider/rules.md.
Usage
aider "Create a login button. Follow .contextkit/standards/code-style.md"Google Gemini CLI
GEMINI.md imports AGENTS.md
Setup
Run contextkit gemini. It writes GEMINI.md — a short pointer plus @AGENTS.md — which Gemini CLI loads automatically.
Usage
gemini "create a button component"Windsurf
Automatic context loading
Setup
If .contextkit exists, run contextkit windsurf to add Windsurf integration. It writes .windsurfrules with the same body as AGENTS.md, plus .windsurf/rules/contextkit-standards.md.
Usage
Create a login button using project standardsWindsurf automatically loads all ContextKit rules from .windsurfrules and .windsurf/rules/contextkit-standards.md.
👥 Multi-Team Workflow
Perfect for teams where members use different AI tools. Share the .contextkit/ directory, and each team member adds their specific integration:
contextkit install cursorcontextkit cursorcontextkit vscodecontextkit claudecontextkit geminicontextkit codexcontextkit opencodecontextkit windsurf✨ Choose Your Tool
During ck install, you choose which AI tool to configure — or specify it directly: ck install claude. Run contextkit status to see installed integrations.
Was this helpful?
Help us improve the documentation by sharing your feedback.