Files
CodePilot/docs/exec-plans
7418andClaude Opus 4.6 281e7f9502 fix: skills/MCP/completion system overhaul — separate skill kinds, fix MCP remote servers, deduplicate completion processing
Skills system:
- Replace `CommandBadge.isSkill: boolean` with `kind: SkillKind` (agent_skill | slash_command | sdk_command | codepilot_command)
- handleSubmit dispatches by kind: agent_skill retains skill name in prompt, slash/sdk commands pass through to SDK, codepilot commands expand via COMMAND_PROMPTS
- Popover groups commands into Commands / Slash Commands / Agent Skills
- API `/api/skills` returns `kind` field; `displayOverride` persisted through full chain (frontend → API → DB)
- Forward SDK `system:init` slash_commands/skills metadata to frontend via SSE

MCP management:
- Fix remote server (SSE/HTTP) creation: validate `url` instead of `command`
- Fix dual-config read/write asymmetry: PUT routes servers by `_source` to correct file (~/.claude.json vs ~/.claude/settings.json)
- DELETE checks both config files; POST checks both for name collision
- McpManager preserves `_source` tags on edit/rename; JSON editor only manages settings.json servers

Completion processing:
- Extract core logic into `onboarding-processor.ts` and `checkin-processor.ts` (shared by route handlers and server-side detection)
- Remove frontend `detectAssistantCompletion` from ChatView — server-side path in `finally` block is now the single source of truth
- Replace hard-coded `fetch("http://localhost:PORT/...")` with direct function imports
- Both processors are internally idempotent (check state before processing)

Other:
- `settingSources` always includes 'user' so SDK loads ~/.claude/skills/
- Add 24 unit tests for SkillKind dispatch logic
- Add onboarding-completion extraction tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 12:49:43 +08:00
..

Exec Plans / 执行计划

中大型功能的执行计划,包含分阶段目标、进度状态和决策日志。

AI 须知:

  • 新建执行计划放在 active/,完成后移至 completed/
  • 纯调研/可行性分析仍放 docs/research/
  • 修改或新增文件后更新下方索引
  • 检索本目录前先读此文件

什么时候需要执行计划

  • 涉及数据库 schema 变更
  • 跨 3 个以上模块的功能
  • 需要分阶段交付的中大型功能
  • 重构或迁移类任务

执行计划模板

# {功能名称}

> 创建时间:YYYY-MM-DD
> 最后更新:YYYY-MM-DD

## 状态

| Phase | 内容 | 状态 | 备注 |
|-------|------|------|------|
| Phase 0 | ... | 📋 待开始 / 🔄 进行中 / ✅ 已完成 / ⏸ 暂缓 | |

## 决策日志

- YYYY-MM-DD: 决策内容及原因

## 详细设计

(目标、技术方案、拆分步骤、依赖项、验收标准)

索引

Active

文件 主题 状态
active/context-storage-migration.md 上下文共享与存储迁移 Phase 0 部分完成,Phase 1-3 待开始

Completed

文件 主题 完成日期
completed/engineering-quality-assurance.md 工程质量保障体系(Harness Engineering)— 验证闭环、AI 文档、CDP、执行计划 2026-03-04