skills/codebolt_api_access/SKILL.md
Use when you need to call codebolt modules (fs, browser, terminal, git, chat, llm, thread, todo, memory, task, swarm, job, roadmap, autoTesting, mcp, actionPlan)
npx skillsauth add codeboltai/codeboltjs codebolt-api-accessInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides reference documentation for direct TypeScript SDK calls to codebolt modules.
import codebolt from '@anthropic/codeboltjs';
// Read and write files
const content = await codebolt.fs.readFile('/path/to/file.ts');
await codebolt.fs.createFile('newfile.ts', 'const x = 1;', '/path/to/dir');
// Search files
const results = await codebolt.fs.grepSearch('/src', 'function', '*.ts');
import codebolt from '@anthropic/codeboltjs';
await codebolt.browser.goToPage('https://example.com');
const screenshot = await codebolt.browser.screenshot();
const markdown = await codebolt.browser.getMarkdown();
await codebolt.browser.close();
import codebolt from '@anthropic/codeboltjs';
const result = await codebolt.terminal.executeCommand('npm install');
const stream = codebolt.terminal.executeCommandWithStream('npm run dev');
stream.on('commandOutput', (data) => console.log(data));
import codebolt from '@anthropic/codeboltjs';
await codebolt.git.init('/path/to/project');
await codebolt.git.addAll();
await codebolt.git.commit('Add new feature');
await codebolt.git.push();
const status = await codebolt.git.status();
import codebolt from '@anthropic/codeboltjs';
const response = await codebolt.llm.inference({
messages: [
{ role: 'system', content: 'You are a helpful assistant.' },
{ role: 'user', content: 'What is TypeScript?' }
],
tool_choice: 'auto',
max_tokens: 1000,
temperature: 0.7
});
console.log(response.completion.content);
import codebolt from '@anthropic/codeboltjs';
const thread = await codebolt.thread.createThread({
name: 'Feature Discussion',
threadType: 'discussion',
agentId: 'agent-123'
});
await codebolt.thread.startThread(thread.thread.id, {
initialMessage: 'Lets discuss new feature requirements.'
});
const messages = await codebolt.thread.getThreadMessages({
threadId: thread.thread.id,
limit: 50
});
import codebolt from '@anthropic/codeboltjs';
const swarm = await codebolt.swarm.createSwarm({
name: 'Processing Swarm',
allowExternalAgents: false,
maxAgents: 10
});
const agent = await codebolt.swarm.registerAgent(swarm.data.swarm.id, {
name: 'Agent Alpha',
agentType: 'internal'
});
const team = await codebolt.swarm.createTeam(swarm.data.swarm.id, {
name: 'Processing Team',
maxMembers: 5
});
const role = await codebolt.swarm.createRole(swarm.data.swarm.id, {
name: 'Data Processor',
permissions: ['task:execute', 'data:read'],
maxAssignees: 5
});
import codebolt from '@anthropic/codeboltjs';
const group = await codebolt.job.createJobGroup({
name: 'Data Processing Jobs'
});
const job = await codebolt.job.createJob(group.data.groupId, {
title: 'Process dataset',
priority: 'high',
estimatedHours: 2
});
await codebolt.job.addDependency(job.data.job.id, otherJobId, 'finish_to_start');
await codebolt.job.lockJob(job.data.job.id, 'agent-001', 'Worker Agent');
await codebolt.job.unlockJob(job.data.job.id, 'agent-001');
import codebolt from '@anthropic/codeboltjs';
const enabled = await codebolt.mcp.getEnabledMCPServers();
const tools = await codebolt.mcp.listMcpFromServers(['filesystem', 'browser']);
const result = await codebolt.mcp.executeTool(
'filesystem',
'read_file',
{ path: '/path/to/file.ts' }
);
import codebolt from '@anthropic/codeboltjs';
const suite = await codebolt.autoTesting.createSuite({
name: 'Authentication Tests'
});
const testCase = await codebolt.autoTesting.addCaseToSuite(suite.data.suite.id, {
name: 'Valid login',
steps: ['Navigate', 'Enter credentials', 'Click login'],
expectedResult: 'Redirected to dashboard'
});
const run = await codebolt.autoTesting.createRun({
suiteId: suite.data.suite.id,
name: 'Test Run 001'
});
import codebolt from '@anthropic/codeboltjs';
// Store JSON data
await codebolt.memory.json.save({ theme: 'dark' }, { type: 'config' });
const saved = await codebolt.memory.json.list({ type: 'config' });
// Store markdown notes
await codebolt.memory.markdown.save('# Notes', { topic: 'meetings' });
const notes = await codebolt.memory.markdown.list({ tags: ['meetings'] });
| Module | Description | Reference |
|--------|-------------|-----------|
| codebolt.fs | File system operations (read, write, search, diff) | fs.md |
| codebolt.browser | Browser automation (navigation, screenshots, DOM) | browser.md |
| codebolt.terminal | Command execution (sync, async, streaming) | terminal.md |
| codebolt.git | Git operations (init, clone, commit, push, pull) | git.md |
| codebolt.chat | Chat & WebSocket communication (messages, process lifecycle, notifications) | chat.md |
| codebolt.project | Project management (settings, path, repo map, execution) | project.md |
| codebolt.llm | LLM inference with tools and model configuration | llm.md |
| codebolt.agent | Agent discovery and execution (find, start, list agents) | agent.md |
| codebolt.thread | Thread management (create, start, update, delete, messages) | thread.md |
| codebolt.todo | Todo list management (add, update, delete, export, import) | todo.md |
| codebolt.memory | Persistent memory storage (JSON, Markdown, Todo formats) | memory.md |
| codebolt.task | Task management (create, update, delete, assign, execute) | task.md |
| codebolt.codeutils | Code analysis, matching, and markdown generation | codeutils.md |
| codebolt.search | Web search operations | search.md |
| codebolt.job | Job management with pheromones, bidding, locks, blockers | job.md |
| codebolt.swarm | Swarm orchestration with teams, roles, vacancies | swarm.md |
| codebolt.orchestrator | Orchestrator management and control | orchestrator.md |
| codebolt.requirementPlan | Requirement plan document management (sections, review) | requirementPlan.md |
| codebolt.actionPlan | Action plan workflow management (tasks, groups, execution) | actionPlan.md |
| codebolt.actionBlock | Action block management and execution | actionBlock.md |
| codebolt.codebaseSearch | Semantic code search and MCP tool search | codebaseSearch.md |
| codebolt.mcp | MCP server and tool management (configure, list, execute) | mcp.md |
| codebolt.autoTesting | Automated testing (suites, cases, runs) | autoTesting.md |
| codebolt.hook | Hook management (event triggers, actions, conditions) | hook.md |
| codebolt.crawler | Web crawler automation (start, navigate, scroll, click, screenshot) | crawler.md |
| codebolt.vectordb | Vector database operations (store, retrieve, query vectors) | vectordb.md |
| codebolt.history | Chat history summarization (full history, partial history) | history.md |
| codebolt.rag | RAG system (placeholder) | rag.md |
| codebolt.roadmap | Roadmap management (phases, features, ideas) | roadmap.md |
| codebolt.reviewMergeRequest | Review and merge request management (create, review, merge, track) | reviewMergeRequest.md |
| codebolt.knowledge | Knowledge base (placeholder) | knowledge.md |
| codebolt.dbmemory | In-memory key-value database operations | dbmemory.md |
// Read, write, and search files
const content = await codebolt.fs.readFile('/path/to/file.ts');
await codebolt.fs.updateFile('file.ts', '/path/to', newContent);
const results = await codebolt.fs.grepSearch('/src', 'function', '*.ts');
// Navigate, capture content, screenshot
await codebolt.browser.goToPage('https://example.com');
const markdown = await codebolt.browser.getMarkdown();
await codebolt.browser.screenshot({ fullPage: true });
// Stream command output
const stream = codebolt.terminal.executeCommandWithStream('npm test');
stream.on('commandOutput', (data) => console.log('Output:', data));
stream.on('commandFinish', (data) => {
console.log('Finished:', data);
stream.cleanup?.();
});
tools
Build AI agents for the Codebolt platform using @codebolt/agent. Use when creating agents, configuring the agent loop, writing custom message modifiers, implementing processors, creating tools, building workflows, ActionBlocks, or choosing between abstraction levels. Covers Remix Agents (no-code), Level 1 (direct APIs), Level 2 (base components), Level 3 (high-level CodeboltAgent), and ActionBlocks for reusable logic.
development
--- name: codebolt-provider-development description: Create Codebolt providers that connect applications to external environments running remote executors. Providers abstract environment management (Docker, AWS EC2, WSL, SSH, Kubernetes, Git worktree, or any custom environment) and handle all communication with agents. Use when: (1) Building new providers for any environment type, (2) Implementing environment lifecycle management, (3) Setting up remote executor communication, (4) Handling file o
tools
Core skill for Codebolt agents to interact with the Codebolt MCP (Model Context Protocol) API. Use when agents need to execute tools for file operations, git, browser automation, terminal, memory, orchestration, planning, testing, collaboration, or any Codebolt platform functionality. Triggers on requests involving codebolt.tools.executeTool(), file system operations, git commands, browser control, agent orchestration, task management, or any MCP namespace operations.
tools
Build AI agents for the Codebolt platform using @codebolt/agent. When creating an agent, first decide what type you need — (1) CodeboltAgent wrapper for simple prompt-based agents with no custom loop, (2) Base Components for customizing the agentic loop, or (3) Core API for full advanced control. Also covers Remix Agents (no-code), ActionBlocks, tools, workflows, and processors. Permissions are handled by the application, not by the agent.