feat: 融合 devflow-claude P0 批机制 (REQ-20260416-0017) #1
Reference in New Issue
Block a user
Delete Branch "feat/devflow-integration-p0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
摘要
融合 devflow-claude 的核心机制到 ai-proj-helper 体系。P0 批 6 项全部落地(其中 P0-3 Release 机制完整实现拆子任务延后,本 PR 含设计文档 + 最小可用脚本)。
P0 批交付物
P0-1: SessionStart Hook
hooks/session-context.sh: 从分支名解析 REQ-ID → 调 MCP API → 注入需求上下文/api/v1/mcp/requirements/by-display-id/P0-2: PreToolUse Hook
hooks/pre-tool-confirm.sh: 拦截 10 类危险操作,弹原生确认P0-3: Release Draft 闸门(设计 + 最小可用脚本)
docs/design/release-draft-gate.md: 完整架构设计hooks/release-draft.sh: 从本地 git 调 Gitea API 创建 draft releaseP0-4: Memory 隔离规则
P0-5: CLAUDE.md 架构检查 + 架构片段库
templates/claude-md-snippets/:P0-6: /commit 分支保护自动化
dev-commit-plugin其他
hooks/install.sh(自动合并到 ~/.claude/settings.json).claude-plugin/marketplace.json重新生成,46 → 47 个 plugin验证
bash hooks/install.sh可安装成功feat/REQ-xxx分支后,SessionStart hook 注入需求上下文git push origin main会弹确认对话框/commit在 develop 分支自动建功能分支后续拆分
P0-3 Release 机制完整实现拆 7 个子任务(见设计文档第 5 节),建议先部署 hooks 跑 1-2 周观察,再推进 Release 落地。
REQ-20260416-0017
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.