Commit Graph

19 Commits

Author SHA1 Message Date
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