feat: 重组为标准 skill 包结构 + 修复 verify.sh bash 3.2 兼容

- 新增 .claude/skills/new-project/SKILL.md(标准 skill 格式)
- install-skill.sh 安装时组装 SKILL.md + verify.sh,单一源无重复
- verify.sh 改用索引数组替代 declare -A,兼容 macOS bash 3.2
- log_pass/log_skip 显式 return 0,避免 set -e 下非 verbose 误退出
- README 改为 skill 优先;补全 copier.yml/scripts/template 入库
This commit is contained in:
baozaotumao
2026-06-01 21:19:45 -07:00
parent 167fa10dde
commit 39fe248f9f
53 changed files with 3744 additions and 55 deletions
+22
View File
@@ -0,0 +1,22 @@
# 质量门禁(CI 强制)
> lint / format / type / test 门禁表 + 依赖安全 / 供应链。
提交即跑(`.pre-commit-config.yaml`),CI 再跑一遍(`.github/workflows/ci.yml`)。任一不过禁止合并。
| 语言 | Lint | 格式化 | 类型 | 测试 |
|------|------|--------|------|------|
| Python | ruff check | ruff format | mypystrict | pytest |
| TypeScript | eslint | prettier | tsc --noEmit | vitest |
- 安装钩子:`pre-commit install`
- mypy / tsc 必须零 errorruff / eslint 零 warning
- 配置位置:Python 在各 `pyproject.toml`TS 在 `frontend/` 的 eslint/prettier/tsconfig
- 架构边界由 import-linterPython/ dependency-cruiserTS)在 CI 强制(见 `architecture.md`
## 依赖安全 / 供应链
- 锁文件必须提交,CI 用 `--frozen`/`--frozen-lockfile` 安装(拒绝漂移)
- CI 跑依赖审计:Python `uv run pip-audit`,前端 `pnpm audit --audit-level high`
- 启用 Dependabot/Renovate 自动提依赖更新 PR`.github/dependabot.yml`
- 新增依赖须评估必要性,优先标准库;不引入无维护/单文件的小众包