Agentic ColdBox
The ColdBox CLI has tons of AI features to help build context and skills for any LLM and Agent
Introduction
Agentic ColdBox supercharges your development workflow by providing comprehensive AI assistance for both BoxLang and CFML applications through the ColdBox CLI.
The system combines four key components:
Guidelines - Framework documentation stored locally in
.agents/guidelines/core/and referenced viaread_fileSkills - On-demand coding cookbooks sourced from skills.boxlang.io
Agents - AI assistant configurations (Claude, Copilot, Cursor, Codex, Gemini, Kilo Code, OpenCode, Pi)
MCP Servers - Context protocol servers tracked in
.mcp.jsonfor live documentation and application introspection
Key Features
Dual-Language Support - First-class support for BoxLang and CFML with automatic detection
Multi-Agent Ecosystem - Works with Claude, GitHub Copilot, Cursor, Codex, Gemini, Kilo Code, OpenCode, and Pi
3 Core Guidelines - ColdBox, BoxLang, and CFML guidelines ship on-disk; agent files stay lean (~250 lines)
200+ Skills Registry - All skills sourced from skills.boxlang.io, the centralized Ortus ecosystem skill repository
30+ MCP Servers - Built-in documentation servers auto-matched to installed modules
Live App Introspection -
cbMCP(BoxLang only) lets AI agents query your running application in real timeOverride System - Customize core guidelines and skills at the project level
Installation
The wizard guides you through agent selection, language detection, and MCP server configuration. After installation, the following structure is created:
Agent configuration files are generated automatically:
Claude
CLAUDE.md
GitHub Copilot
AGENTS.md (shared)
Cursor
.cursorrules
Codex
AGENTS.md (shared)
Gemini
GEMINI.md
Kilo Code
AGENTS.md (shared)
OpenCode
AGENTS.md (shared)
Pi
AGENTS.md (shared)
Agent File Conflict Resolution
If coldbox ai install or coldbox ai refresh detects existing agent configuration files (AGENTS.md, CLAUDE.md, GEMINI.md, .cursorrules) that were not created by ColdBox CLI, you'll be prompted to choose how to handle each conflict:
Overwrite
Replace the entire file with ColdBox CLI content
Merge
Prepend the ColdBox CLI managed section at the top, preserving your custom content below
Skip
Leave the existing file untouched
Use --force to automatically overwrite all conflicting files without prompting:
Keeping Resources Updated
Automate with CommandBox scripts:
Core Concepts
Guidelines vs Skills
Guidelines teach AI agents what the framework is and how it works — architecture, conventions, and API references. They answer: "What tools do I have?"
Skills teach AI agents how to do specific things — step-by-step cookbooks with working code patterns. They answer: "How do I build this exact feature?"
Core guidelines (ColdBox + language) live on-disk in .agents/guidelines/core/ and are referenced via read_file in agent files — keeping agent files lean (~250 lines) while maintaining full framework knowledge. Skills are sourced from skills.boxlang.io and loaded on-demand.
AI Guidelines
Three core guidelines are installed automatically:
coldbox
coldbox.md
ColdBox framework architecture and conventions
boxlang
boxlang.md
BoxLang language features and syntax
cfml
cfml.md
CFML language fundamentals
Custom Guidelines
Custom guidelines live in .agents/guidelines/custom/ and are always available to the AI without needing to be explicitly requested. Use them to document your business domain, third-party integrations, architecture decisions, and team conventions:
Example guideline structure:
Overriding Guidelines
AI Skills
skills.boxlang.io is the centralized skill repository for the entire Ortus ecosystem — ColdBox, BoxLang, TestBox, CommandBox, and all major modules. With 200+ skills available, it is the single source of truth for implementation cookbooks. Skills are installed per-project and loaded on-demand by AI agents when the task matches.
Agent Skill-Directory Symlinks
Each supported AI agent has a dedicated skills directory where it expects to find skills:
Claude
.claude/skills/
Copilot
.github/instructions/
Cursor
.cursor/rules/
Kilo Code
.kilo/skills/
Pi
.pi/skills/
Codex, Gemini, OpenCode
Use .agents/skills/ directly
When a skill is installed, the CLI creates the skill at .agents/skills/{name}/ and automatically creates a relative directory symlink inside each active agent's dedicated skills directory (e.g., .claude/skills/{name} → ../../.agents/skills/{name}). This lets every agent discover skills through its own expected path without duplicating content.
Symlinks are automatically removed when a skill is removed (coldbox ai skills remove) or pruned during refresh.
Custom Skills
Create project-specific skills for workflows not covered by the registry. Each skill lives in its own folder with a SKILL.md file:
A SKILL.md should include a brief description of when to use the skill, step-by-step implementation instructions, and working code examples:
MCP Servers
Model Context Protocol (MCP) servers provide AI agents with live documentation and application introspection. All servers are tracked in .mcp.json at your project root.
Installing the ColdBox Live MCP Server (cbMCP)
cbMCP is available for BoxLang applications only.
The cbMCP module turns your running BoxLang ColdBox application into an MCP server, giving AI agents real-time access to routes, handlers, WireBox mappings, and more. See the ColdBox MCP Server documentation for the full tool reference, custom tool development, and AI client setup.
Once installed, AI agents can introspect your live app:
Managing MCP Servers
During coldbox ai refresh, the CLI auto-detects MCP servers from installed modules and updates .mcp.json automatically.
VSCode Copilot MCP Mirroring
When Copilot is a configured agent, MCP server configuration is automatically mirrored to .vscode/mcp.json using the VSCode-specific schema ("servers" + "inputs": []). This ensures GitHub Copilot in VS Code can discover all registered MCP servers without additional configuration. The .vscode/mcp.json file is written alongside the root .mcp.json whenever MCP configuration is regenerated (install, refresh, MCP add/remove).
Built-in MCP Servers
boxlang
BoxLang Language Documentation
boxlang-ide
BoxLang IDE Documentation
modern-cfml
Modern CFML Guide
coldbox
ColdBox Framework Documentation
commandbox
CommandBox CLI Documentation
testbox
TestBox Testing Framework
wirebox
WireBox Dependency Injection
cachebox
CacheBox Caching Framework
logbox
LogBox Logging Framework
docbox
DocBox Documentation Generator
bxorm
BoxLang ORM
cborm
ColdBox ORM Utilities
qb
Query Builder (QB)
quick
Quick ORM Active Record
cfmigrations
Database Migrations
cbsecurity
CBSecurity Authentication/Authorization
cbauth
CBAuth User Authentication
cbsso
CBSSO Single Sign-On
cbvalidation
CBValidation Validation Framework
cbi18n
CBI18N Internationalization
cbmailservices
CBMailServices Email Integration
cbdebugger
CBDebugger Debugging Tools
cbelasticsearch
CBElasticsearch Integration
cbfs
CBFS File System Abstraction
cfconfig
CFConfig Server Configuration
cbwire
CBWire Reactive Components
cbq
CBQ Job Queues
megaphone
Megaphone Messaging
contentbox
ContentBox CMS
relax
Relax REST API Documentation
CLI Commands
Setup & Management
During refresh, the CLI automatically:
Discovers and installs new module guidelines and skills
Auto-recovers any missing core skills (boxlang, coldbox, testbox, commandbox)
Auto-installs skills for newly added
box.jsonmodule dependenciesDetects and registers MCP documentation servers from installed modules
Regenerates agent configuration files and skill symlinks
Respects the
manifest.excludes[]list — removed skills won't be reinstalled
Component Management
Diagnostics
Best Practices
Version Control — commit your custom guidelines and skills to share them with your team:
Stay Synced — run coldbox ai refresh after pulling updates or installing new modules to keep agent configs current. Removed skills are tracked in manifest.excludes[] and won't be auto-reinstalled.
VSCode Users — when Copilot is configured as an agent, .vscode/mcp.json is auto-generated alongside .mcp.json so Copilot can discover MCP servers. Commit both files to share MCP configuration with your team.
Custom Guidelines — use .agents/guidelines/custom/ for business domain concepts, third-party service integrations, and team conventions that the AI should always know about.
Custom Skills — use .agents/skills/ for project-specific workflows, deployment procedures, and domain patterns not covered by skills.boxlang.io.
Last updated
Was this helpful?