Repository navigation
docs: 将项目规范迁至 AGENTS.md 并保留 Claude 兼容入口 - #279
Conversation
|
Claude encountered an error after 2s —— View job I'll analyze this and get back to you. |
|
Claude encountered an error after 1s —— View job I'll analyze this and get back to you. |
|
Claude encountered an error after 2s —— View job I'll analyze this and get back to you. |
|
Claude finished @lishuceo's task in 1m 7s —— View job PR review: approved ✅
I found no issues at confidence ≥75, so I left no inline comments.
One optional suggestion, below the threshold: the reworded |
✅ ApprovedI found no issues at confidence ≥75. There were no earlier review comments of mine to resolve.
Optional, below the threshold: the rewritten Overall: a careful, well-scoped docs migration. |
项目规范原先仅维护在
CLAUDE.md,CI 审查、技能模板和活动文档也硬编码该入口。本次将规范全文迁到AGENTS.md,并让CLAUDE.md只保留一行@AGENTS.md;后续规范维护统一修改AGENTS.md。保留 stub 有已验证的兼容原因:锁定的 Agent SDK 0.3.156 附带 Claude Code 2.1.156,低于原生加载 AGENTS.md 的 2.1.277 门槛。两个
claude-code-action@v1workflow 使用网关且未固定 CLI 版本,不能用本机 2.1.283 的版本推断其能力。官方加载规则支持通过该导入方式共享指引。settingSources默认值和调用方覆盖行为,包括[];不升级依赖或改变权限、技能发现及工作区重启逻辑。--model opus改为--model anthropic/claude-opus-5-5,使用网关要求的完整模型标识。验证:
git diff --check通过。npm run typecheck通过;npm run lint无错误,202 条警告。npm run docs:check及根目录AGENTS.md/CLAUDE.md的额外 Markdown lint 通过。anthropic/claude-opus-5-5,模型修复通过结构比较确认仅改动这一项。settingSources: []不加载项目指引。测试不调用真实模型。TMPDIR=/var/tmp npx --no-install vitest run --exclude='**/quality.test.ts' --exclude='**/integration.test.ts',100 个测试文件 / 1744 项测试全部通过。使用/var/tmp是为了避开本环境/tmp/.git对非 Git 目录用例的干扰;该干扰在未修改基线上也可复现。