2025-12-24 17:11:18 +09:00
|
|
|
# FEATURES KNOWLEDGE BASE
|
|
|
|
|
|
|
|
|
|
## OVERVIEW
|
|
|
|
|
|
2026-01-02 10:42:38 +09:00
|
|
|
Claude Code compatibility layer + core feature modules. Commands, skills, agents, MCPs, hooks from Claude Code work seamlessly.
|
2025-12-24 17:11:18 +09:00
|
|
|
|
|
|
|
|
## STRUCTURE
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
features/
|
2026-01-09 15:44:06 +09:00
|
|
|
├── background-agent/ # Task lifecycle, notifications (608 lines)
|
|
|
|
|
├── boulder-state/ # Boulder state persistence
|
2026-01-02 10:42:38 +09:00
|
|
|
├── builtin-commands/ # Built-in slash commands
|
2026-01-09 15:44:06 +09:00
|
|
|
│ └── templates/ # start-work, refactor, init-deep, ralph-loop
|
|
|
|
|
├── builtin-skills/ # Built-in skills
|
|
|
|
|
│ ├── git-master/ # Atomic commits, rebase, history search
|
|
|
|
|
│ └── frontend-ui-ux/ # Designer-turned-developer skill
|
2026-01-02 10:42:38 +09:00
|
|
|
├── claude-code-agent-loader/ # ~/.claude/agents/*.md
|
|
|
|
|
├── claude-code-command-loader/ # ~/.claude/commands/*.md
|
|
|
|
|
├── claude-code-mcp-loader/ # .mcp.json files
|
2025-12-24 17:11:18 +09:00
|
|
|
│ └── env-expander.ts # ${VAR} expansion
|
2026-01-09 15:44:06 +09:00
|
|
|
├── claude-code-plugin-loader/ # installed_plugins.json (486 lines)
|
2025-12-24 17:11:18 +09:00
|
|
|
├── claude-code-session-state/ # Session state persistence
|
2026-01-09 15:44:06 +09:00
|
|
|
├── context-injector/ # Context collection and injection
|
2026-01-02 10:42:38 +09:00
|
|
|
├── opencode-skill-loader/ # Skills from OpenCode + Claude paths
|
|
|
|
|
├── skill-mcp-manager/ # MCP servers in skill YAML
|
2026-01-09 15:44:06 +09:00
|
|
|
├── task-toast-manager/ # Task toast notifications
|
2025-12-24 17:11:18 +09:00
|
|
|
└── hook-message-injector/ # Inject messages into conversation
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## LOADER PRIORITY
|
|
|
|
|
|
2026-01-02 10:42:38 +09:00
|
|
|
| Loader | Priority (highest first) |
|
|
|
|
|
|--------|--------------------------|
|
2025-12-24 17:11:18 +09:00
|
|
|
| Commands | `.opencode/command/` > `~/.config/opencode/command/` > `.claude/commands/` > `~/.claude/commands/` |
|
2025-12-30 10:42:05 +09:00
|
|
|
| Skills | `.opencode/skill/` > `~/.config/opencode/skill/` > `.claude/skills/` > `~/.claude/skills/` |
|
2025-12-24 17:11:18 +09:00
|
|
|
| Agents | `.claude/agents/` > `~/.claude/agents/` |
|
|
|
|
|
| MCPs | `.claude/.mcp.json` > `.mcp.json` > `~/.claude/.mcp.json` |
|
|
|
|
|
|
|
|
|
|
## CONFIG TOGGLES
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"claude_code": {
|
2026-01-02 10:42:38 +09:00
|
|
|
"mcp": false, // Skip .mcp.json
|
|
|
|
|
"commands": false, // Skip commands/*.md
|
|
|
|
|
"skills": false, // Skip skills/*/SKILL.md
|
|
|
|
|
"agents": false, // Skip agents/*.md
|
2025-12-24 17:11:18 +09:00
|
|
|
"hooks": false // Skip settings.json hooks
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
2026-01-02 10:42:38 +09:00
|
|
|
## BACKGROUND AGENT
|
2026-01-02 00:14:38 +09:00
|
|
|
|
2026-01-02 10:42:38 +09:00
|
|
|
- Lifecycle: pending → running → completed/failed
|
|
|
|
|
- OS notification on complete
|
|
|
|
|
- `background_output` to retrieve results
|
|
|
|
|
- `background_cancel` with task_id or all=true
|
2026-01-02 00:14:38 +09:00
|
|
|
|
2026-01-02 10:42:38 +09:00
|
|
|
## SKILL MCP
|
2026-01-02 00:14:38 +09:00
|
|
|
|
2026-01-02 10:42:38 +09:00
|
|
|
- MCP servers embedded in skill YAML frontmatter
|
|
|
|
|
- Lazy client loading, session-scoped cleanup
|
|
|
|
|
- `skill_mcp` tool exposes capabilities
|
2026-01-02 00:14:38 +09:00
|
|
|
|
2026-01-02 10:42:38 +09:00
|
|
|
## ANTI-PATTERNS
|
2025-12-24 17:11:18 +09:00
|
|
|
|
2026-01-02 10:42:38 +09:00
|
|
|
- Blocking on load (loaders run at startup)
|
|
|
|
|
- No error handling (always try/catch)
|
|
|
|
|
- Ignoring priority order
|
|
|
|
|
- Writing to ~/.claude/ (read-only)
|