Platform Examples
Step-by-step examples for using ContextKit with Cursor, VS Code, Claude CLI, Gemini CLI, Codex CLI, OpenCode, Windsurf, and other AI tools.
Cursor
Automatic context loading
✅ Zero Configuration Required
Cursor automatically loads all ContextKit context files via .cursor/rules/contextkit.mdc for every AI prompt.
Setup
If .contextkit exists, run contextkit cursor to add Cursor integration. Cursor automatically reads your context files via .cursor/rules/contextkit.mdc.
Basic Usage
Create a login button using btn patternReference Commands
@.contextkit/commands/analyze.md@.contextkit/commands/create-component.md@.contextkit/commands/run-tests.md@.contextkit/commands/quality-check.md
VS Code + GitHub Copilot
Use @ mentions in chat
Setup
If .contextkit exists, run contextkit vscode to add VS Code integration. Check .vscode/VSCODE_USAGE.md for details.
⭐⭐ Best: Mention Entire Folder
@.contextkit Create a login button✅ Includes ALL context files (standards, templates, commands) - No slash needed!
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
Auto-loaded standards via @imports
Auto-Loaded Context
CLAUDE.md uses @path imports to auto-load all standards and product files into context every session. No manual file reads needed — saves tokens and ensures consistency.
Setup
Run contextkit claude to set up Claude integration. This generates a CLAUDE.md with @ imports that auto-load your standards, plus .claude/rules/ and .claude/commands/.
How @imports work
- @.contextkit/standards/code-style.md - @.contextkit/standards/testing.md - @.contextkit/product/mission-lite.md
Claude Code resolves these on startup and loads the file contents into context automatically.
Token impact
- Upfront: Standards content is loaded into base context (slightly larger initial prompt)
- Per-session: No Read tool calls needed — saves tokens from avoided round-trips
- Net effect: Fewer total tokens for typical sessions, plus guaranteed consistency
Verify it works
/contextCheck that your standards files appear in the loaded context list. First time triggers an approval dialog for @imports.
Usage
claude "create [your-feature] for [your-entity]"Standards are already loaded — no need to tell Claude to read them.
OpenAI Codex CLI
Direct file references
Setup
Run contextkit codex to set up Codex integration. Codex CLI works by referencing .contextkit files in your prompts.
Usage
codex "read .contextkit/context.md and create a button"OpenCode
Auto-loads AGENTS.md
Setup
Run contextkit opencode to set up OpenCode integration. OpenCode auto-loads AGENTS.md so your standards are always in context.
Usage
opencode "create a button component"Continue.dev
Automatic context loading
Setup
If .contextkit exists, run contextkit continue to add Continue integration. Continue.dev automatically loads context from .continue/config.json.
Usage
Read .contextkit/commands/analyze.md and execute the analysisAider
Direct file references
Setup
If .contextkit exists, run contextkit aider to add Aider integration. The .aider/rules.md file will be configured.
Usage
aider "Create a login button. Follow .contextkit/standards/code-style.md"Google Gemini CLI
Direct file references
Setup
If .contextkit exists, use it directly. Gemini CLI works by referencing .contextkit files in your prompts.
Usage
gemini "read .contextkit/context.md and create a button"Windsurf
Automatic context loading
Setup
If .contextkit exists, run contextkit windsurf to add Windsurf integration. Windsurf automatically reads .windsurfrules and .windsurf/rules/.
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.