Commit Graph

31 Commits

Author SHA1 Message Date
dongliang
f0e5735ffa feat(dev-cicd): CD deployment checklist + health check port mismatch lesson 2026-04-06 12:42:48 +09:30
dongliang
52b8c85b94 feat(dev-cicd): docker compose up --no-deps lesson 2026-04-06 11:53:38 +09:30
dongliang
0e24828a6d feat(dev-cicd): add docker compose pull scope + Docker Hub timeout lesson 2026-04-06 11:49:18 +09:30
dongliang
d564e6dbf9 feat(dev-cicd): add Docker context analysis + .dockerignore check
从实际 CI 失败中学到的经验:
- 缺 .dockerignore 导致 768MB context 传入(node_modules)
- ACR push denied 因镜像路径缺 namespace
- /cicd analyze 增加 .dockerignore + 凭据硬编码 + 镜像命名扫描

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 11:43:21 +09:30
dongliang
a58dc39795 feat: add dev-cicd skill + enhance dev-deploy
新增 dev-cicd(CI/CD 流水线设计/优化/排查):
- Gitea Actions 模板(Go/iOS/Web/Docker)
- Pipeline 优化(浅克隆/缓存/并发取消)
- 故障排查决策树(20+ 常见错误)
- 安全检查清单 + Runner 管理

增强 dev-deploy(部署执行):
- Docker Staging/Production 部署模板
- 部署前健康检查(证书/Docker/磁盘)
- 回滚策略(TestFlight/Docker/数据库)
- 部署监控(Feishu通知/ASC API)

技能总数: 28 (dev 分类: 7)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 11:10:13 +09:30
dongliang
b5f44ac6aa feat: add dev-deploy skill — iOS TestFlight deployment
新增部署技能,含 iOS TestFlight 完整部署流程:
- SSH 远程构建 + 无签名 Archive + Export 签名上传
- ASC API 补全合规/测试说明/版本关联
- 10 个坑的经验教训总结
- 一键部署脚本模板 + 检查清单

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 09:46:23 +09:30
b6bd4bbfed feat(req): 新增 /req ci 命令 + dev→review quality_gate 门禁说明
- req 技能新增 /req ci 命令规范(CI 检查与自动修复循环)
- 补充 dev→review 阶段 quality_gate 门禁说明
- req-workflow 流程概览增加 7.5 /req ci 步骤

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-31 13:19:55 +10:30
187f5621c9 feat(req): 部署门禁制度 — PDV 验收任务 + Deploy Gate 1-3
在 /req deploy 流程中增加部署后 E2E 验收(Post-Deploy Verification)门禁:
- 新增 verification linkRole 和【验收】任务命名规范
- Deploy Gate 1 健康检查 / Gate 2 PDV 任务完成 / Gate 3 证据完整
- PDV Playwright spec 模板(页面可达、菜单可见、API 连通)
- 同步更新 req-workflow、dev-test、e2e-testing 相关文档

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-31 09:34:08 +10:30
b9c808cce0 feat(req-test-gate): 集成 Harness Engineering 工程约束方法论
将项目级的 Ratchet/约定检测方法论融入 req-test-gate 技能,
通过 /req 流程三个节点自动触发(dev 环境检测、cr 约定建议、test Gate 0B),
无需手动记忆执行。

新增文档:harness-engineering.md、ratchet-pattern.md、convention-flow.md、
project-bootstrap.md 及 4 个模板(ratchet/convention 脚本、GATES.md、pre-commit)。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-26 11:34:42 +10:30
e3924e6b2b feat(skills): 新增 agent-browser 浏览器自动化技能
基于 Vercel agent-browser CLI,支持网页交互、E2E 冒烟测试、需求验收验证、前端开发验证和截图对比。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 16:07:04 +10:30
22107fa7b8 feat(req): 集成 Stitch 原型设计到需求工作流
新建 req-prototype 技能,支持基于 PRD 自动生成 Stitch UI 原型。
同步 req-review、req-workflow 技能到仓库,并更新 req、req-prd 中的
原型相关引用。

REQ-20260320-0005

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 23:42:24 +10:30
0724357ff4 feat(dev-test): 添加集成测试模板 + TG2 检测规则
- 新增 templates/go-integration-test.md 集成测试代码骨架模板
- SKILL.md 增加 TG2 集成测试检测:跨 handlers/middleware/routes 变更自动触发

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 14:28:44 +10:30
2309e31e74 refactor(skills): 澄清 dev-test 与 req-test-gate 的职责边界
- dev-test: 移除 "Gate 4" 编号,改用 "E2E 冒烟门禁"(避免与 req-test-gate 的 Gate 编号冲突)
- dev-test: 添加与 req-test-gate 的关系说明(本文档定义执行技术,门禁流程在 req-test-gate)
- req-test-gate: 2C 联调节新增无后端替代方案提示,引用 dev-test 的 API Mock 模式
- req-test-gate: Gate 5 前端回归贡献引用 dev-test 的 e2e-testing.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 11:40:47 +10:30
63ab37c256 feat(dev-test): 新增 API Mock E2E 冒烟测试模式,让 Gate 4 不再流于形式
解决 E2E 门禁依赖后端导致形同虚设的问题:
- 新增 page.route() API Mock 模式,零后端依赖
- 文档化 mock JWT 生成、addInitScript 注入、catch-all 兜底等关键模式
- 整理 6 个常见陷阱及解决方案
- 明确 Gate 4 判定标准和适用场景

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 11:06:17 +10:30
58516a57a9 feat: add comprehensive MCP verification in init.sh
Three-step verification after setup:
1. Server connection test (initialize → HTTP 200)
2. Tool registration test (tools/list → tool count)
3. Claude Code MCP test (claude mcp list → Connected)

Uses Mcp-Session-Id from initialize response for tools/list call.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 13:25:05 +10:30
185c4d0681 fix: detect claude CLI in common install paths
command -v misses claude when not in PATH (e.g. brew install without
shell init). Now also checks /opt/homebrew/bin/claude and
/usr/local/bin/claude. Uses $CLAUDE_BIN variable for all invocations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 13:17:14 +10:30
c303b534fc fix: update init.sh with lessons from MCP SSE debugging
- Rename mode "sse" → "remote" (actual transport is Streamable HTTP)
- Fix .mcp.json fallback: "type": "sse" → "type": "http"
- Add post-install connection verification (curl initialize test)
- Accept "sse" as alias for backward compatibility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 12:41:10 +10:30
3547db27d7 fix(init): use claude mcp add for new Claude Code, install skills to ~/.claude/skills/
- Detect claude CLI availability; if present, use `claude mcp add`
  with --transport http (Streamable HTTP) instead of writing .mcp.json
- Fall back to .mcp.json for environments without claude CLI
- Install skills directly to ~/.claude/skills/ (where Claude Code reads them)
- Remove marketplace/plugin registration (not used by Claude Code)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 00:26:24 +10:30
a17ac97906 docs: 重写 README 面向外部用户 + init.sh 增加技能市场自动注册
README 从开发者内部文档风格改为面向小白用户的中文项目介绍,
增加场景演示、技能速查表、FAQ;init.sh 新增自动注册技能市场
到 known_marketplaces.json,实现真正的一键部署。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 16:21:26 +10:30
dcdae8c636 chore(marketplace): add publish-plugin, rewrite init.sh, cleanup obsolete plugins
- Add publish-plugin: marketplace publish + Feishu bot notification
- Rewrite init.sh: SSE-first, fixed prod API, remove env selection
- Update CLAUDE.md, README.md, claude-config.yaml
- Update skills: req-plugin, req-prd-plugin, pull-request-plugin
- Delete sync-skills.sh (obsolete)
- Delete deprecated plugins: skills-ops/*, skills-projects/*, old skills-dev/req duplicates
- Regenerate marketplace.json (27 plugins)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 15:09:07 +10:30
5878c1f852 chore: 更新 marketplace.json,合并个人插件 dotfiles → qiudl-personal
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 11:54:07 +10:30
bb8f666108 refactor: 删除 session-plugin,Claude Code 已内置会话管理
删除 skills-workflow/ 目录(已清空)。44 → 43 插件。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 11:51:46 +10:30
99a701d34d refactor: ai-proj-plugin 移至 skills-core,合并冗余 session 插件
- ai-proj-plugin 作为 MCP 基础设施移入 skills-core/
- 删除 4 个冗余 session 子插件(save/reload/read/search),
  session-plugin 已包含全部功能
- 48 → 44 插件

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 11:50:11 +10:30
5ba8b21ad5 refactor: 删除已过时的 skill-manager-plugin
功能已被 generate-marketplace.py、claude-config.yaml、sync-skills.sh 完全覆盖。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 11:33:49 +10:30
712063071c refactor: 通用技能按类别拆分为独立目录
skills/ → skills-dev(9), skills-req(10), skills-ops(4),
skills-integration(8), skills-biz(4), skills-workflow(7)

generate-marketplace.py 改为自动扫描所有 skills-* 目录。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 11:31:58 +10:30
ea266e9cce refactor: 项目技能拆分到 skills-projects/
将 coolbuy (3) 和 enjoysa (2) 共 5 个项目特定技能从 skills/ 移至 skills-projects/,
保持通用技能与业务项目技能分离。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 11:21:53 +10:30
40b36a8e41 refactor: 将 dotfiles-plugin 移至 skills-personal
个人化配置(私有 dotfiles 仓库、个人机器信息、个人路径),不适合公共技能目录。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 11:16:42 +10:30
99881e268a refactor: 合并 claude-marketplace,重构目录结构为单一仓库
- 重命名 plugins/ → skills/,个人插件迁移到 skills-personal/(gitignore)
- 更新 generate-marketplace.py 支持 config 读取和 skills-personal 扫描
- 新增 claude-config.yaml(技能启用/禁用 + MCP 配置)
- 新增 init.sh(交互式 MCP 初始化,支持 stdio/SSE 模式)
- 新增 CLAUDE.md 项目说明
- 重写 README.md 反映新结构
- 删除过时脚本:PUSH.sh、generate-marketplace.sh、convert-skills.sh

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 11:11:59 +10:30
f7f5428812 feat(req): 代码评审增加五视角扫描法
CR 从"Git diff + 检查清单"升级为结构化的五视角对抗性审查:
- 攻击者:跨租户泄露、越权、注入
- 泄露者:错误消息/日志/响应信息泄露
- 并发者:竞态、幂等、锁粒度
- 边界者:参数校验、类型溢出
- 依赖者:超时、降级、token 区分

每个视角配具体扫描 checklist,CR 报告模板增加五视角分节,
/req cr 流程从 1 行扩展为 8 步完整链路。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 08:12:41 +10:30
43585b8504 move claude-marketplace to ai-proj-helper 2026-03-12 21:42:30 +08:00
d7b6835e1d first commit 2026-03-12 21:41:15 +08:00