本文件为 Claude Code 提供项目工作指引。
IpMan (Intelligence Package Manager) -- Agent 技能虚拟环境管理器,类比 conda/uv,实现技能的隔离、依赖管理和分发。
- 项目代号:
ipman - 版本:v0.1.12
- 当前阶段:Sprint 2 待启动(Sprint 0+1 已完成)
| 文档 | 说明 |
|---|---|
.claude/COLLABORATION.md |
协作框架:角色分工、工作步骤、代码提交原则 |
.claude/tech-spec-registry.md |
技术规格:技术栈、终端配色、API依赖、Prompt Tag 设计 |
.claude/arch-spec-registry.md |
架构规格:系统分层、环境规划、CI/CD、目录结构 |
.claude/sprint-plan.md |
迭代计划:各阶段的任务拆分与进度 |
.claude/module-spec-registry.md |
模块索引:各模块的设计文档与源码位置 |
.claude/test-registry.md |
测试登记:各模块测试覆盖与测试场景 |
.claude/validation-registry.md |
验收标准:通用交付标准与模块专项验收标准 |
.claude/current-sprint.md |
当前Sprint:实时任务状态、活跃文件、改动记录 |
.claude/research/agent-skill-cli-comparison.md |
调研:Claude Code vs OpenClaw 技能 CLI 命令对比 |
.claude/research/iphub-design.md |
设计:IpHub 引用注册表架构设计 |
人工TODO事项.md |
人工事项跟踪:需要人工介入的待办与已完成事项 |
每次会话开始时,必须检查 git config core.hooksPath 是否为 .githooks。如果未设置,立即执行:
git config core.hooksPath .githooks这确保 .githooks/pre-commit(自动版本 bump)能正常工作。此配置是本地的,不跟随 git clone,因此每次换机器或 clone 新仓库后都需要重新设置。
每次完成一组有意义的改动后,必须立即执行 git add + git commit,不得拖延、不得遗忘、不得等用户提醒。
具体规则:
- 产生了新文件或修改了现有文件,只要具有永久保存价值,就必须
git add纳入版本管理 - 每完成一个逻辑上完整的改动,立即
git commit,附带简明扼要的提交说明 - 如果一次工作涉及多个不相关的改动,按逻辑分批提交
git push禁止自动执行,必须由人工手动触发.idea/、node_modules/、__pycache__/等 IDE/工具目录不纳入版本管理
- 整个项目工作过程严格遵循
.claude/COLLABORATION.md中指定的工作框架。
- 根据需求文档,确定开发技术框架,完善
.claude/tech-spec-registry.md - 制定工作计划,完善
.claude/sprint-plan.md - 完善
.claude/module-spec-registry.md - 完善
.claude/test-registry.md以及.claude/validation-registry.md - 依照工作计划,依次开展每个 Sprint 的开发
- 由人工确认是否开始此 Sprint,在收到明确答复后才开始开发
- 根据
.claude/sprint-plan.md以及当前项目进度,更新.claude/current-sprint.md - 检查
人工TODO事项.md中本 Sprint 相关的人工前置事项是否已完成 - 依照此 Sprint 的任务列表,依次开展每个任务的开发
- 由人工确认是否开始此项任务
- 读取
.claude/tech-spec-registry.md、.claude/module-spec-registry.md、.claude/sprint-plan.md、.claude/current-sprint.md、.claude/test-registry.md - 明确技术规格、模块边界、项目进度、测试要求
- 读取
.claude/test-registry.md,依次进行测试 - 读取
.claude/validation-registry.md,对照自检
- 更新
.claude/current-sprint.md - 更新
.claude/module-spec-registry.md - 把测试结果回写到
.claude/test-registry.md
- 把
.claude/current-sprint.md内容复制到.claude/archive目录下存档 - 更新
.claude/sprint-plan.md - 同步更新
人工TODO事项.md - 清空
.claude/current-sprint.md内容
- 开发语言:Python 3.10+,使用 uv 管理依赖
- CLI 框架:Click
- Agent 解耦:不侵入 Agent 内部实现,所有 skill CRUD 通过 agent CLI 命令执行
- 跨平台:所有路径操作使用 pathlib,软链接在 Windows 上需有降级方案
- TDD:先写测试,再写实现
- Git Flow:feature/* -> dev -> release/* -> main
- 许可证:Apache 2.0
对于每个阶段的任务,按以下步骤进行:
- 先形成设计稿
- 所有设计经人工确认后方可进入开发
- 分解出 CLI 命令开发任务
- 分解出核心逻辑开发任务
- 分解出 Agent 适配开发任务
- 分解出测试场景及测试用例
- 分解出 CI/CD 相关任务
- 按优先级安排:先撰写测试 -> 核心逻辑 -> CLI 命令 -> Agent 适配 -> CI/CD
When the user's request matches an available skill, ALWAYS invoke it using the Skill tool as your FIRST action. Do NOT answer directly, do NOT use other tools first. The skill has specialized workflows that produce better results than ad-hoc answers.
Key routing rules:
- Product ideas, "is this worth building", brainstorming → invoke office-hours
- Bugs, errors, "why is this broken", 500 errors → invoke investigate
- Ship, deploy, push, create PR → invoke ship
- QA, test the site, find bugs → invoke qa
- Code review, check my diff → invoke review
- Update docs after shipping → invoke document-release
- Weekly retro → invoke retro
- Design system, brand → invoke design-consultation
- Visual audit, design polish → invoke design-review
- Architecture review → invoke plan-eng-review