Imported from nehcuh/cmspark (
AGENTS.md). Install upstream withnpx skills add nehcuh/cmspark. Copyright stays with the author.
CMspark Agent Configuration
Version: 0.6.7 (keep in lock-step with companion/package.json) Platform: CMspark Browser Agent
Tool Environment
The following development tools are available on this system. Use them when working with the corresponding ecosystems:
- nvm (Node Version Manager): When working with Node.js projects, use
nvm useto switch to the correct Node.js version before running any Node.js commands. Runnvm lsto see available versions. - uv (Python package manager): When working with Python projects, always use
uvinstead ofpipfor package management.- Use
uv run pythonoruv run pytestto run Python scripts and tests - Use
uv add <package>to install project dependencies - Use
uv pip install <package>for ad-hoc installations - Use
uv syncto sync the project environment
- Use
Routing Protocol
workflows/*.ts(phase() / log())是 playbook / 历史 DSL,不是执行器——仓库内没有 runner。活路由是 VibeSOP 与 .grok/workflows/*.rhai。可保留 workflows/ 文件当参考,不要包装成可执行运行时。
- Analyze the user request to determine the task type
- Match against playbooks in
workflows/(historical; not executed in-repo) - Live execution follows VibeSOP /
.grok/workflows/*.rhai
需求设计 Issue-first(锁定 · 2026-08-27)
任何需求设计必须先在 GitHub 建 Issue,再写 spec/plan。禁止只在 docs/superpowers/ 里设计。模板:.github/ISSUE_TEMPLATE/design.md。本季余项:#230 冻(F-S-10 / overlay-acl)。T1 #228 已记分,禁扩 outbound profile。语音/会议 #258–#260 已在树上(embedding 仍 experimental)。例外:无新需求的 typo/文档;已有行为的 bugfix。
Playbook categories (not executors):
workflows/bridge-*.ts— bridge/ module fixes and reviewsworkflows/dev-router.ts— development task routing (bug-fix / feature / refactor / review)
Custom playbooks may still live as .ts in workflows/ (meta + phase comments); they are not a runtime.
Skills
Run skill.list via WebSocket or read companion/src/skills/ to see available skills.
Session Lifecycle
When the user signals session end, run session-end.
Signals: "that's all for now", "heading out", "收工", "再见", /session-end.
Details: read .claude/docs/session-lifecycle.md (VibeSOP; not shipped in this repo).
Quick Commands
When the user types /dev-*, map to the matching playbook in workflows/ (historical DSL, not an executor).
CMspark-Specific Notes
- Use
readto load skill files fromcompanion/src/skills/ - Use existing tools (read, write, edit, bash) for all operations
- Session management is handled by CMspark; use
/new,/resume,/forkcommands - Compaction is automatic — no manual memory flush needed
MCP Support
- User-facing guide:
docs/mcp.md - Troubleshooting:
docs/TROUBLESHOOTING.md#mcp-相关 - Core implementation:
companion/src/mcp/(client.ts,manager.ts,aggregator.ts,transport.ts,confirm-cache.ts) - UI:
chrome-extension/src/sidepanel/components/McpPanel.tsx,McpServerForm.tsx - MCP meta tools (
mcp_list_resources,mcp_read_resource,mcp_get_prompt) are exposed dynamically based on connected server capabilities — they are NOT in the staticgetToolDefinitions()list.
CMspark Agent v0.6.7