Repository navigation
Conversation
- .claude/skills/new-module/SKILL.md:从零加业务模块的清单。不复制代码(代码在 first-module 指南和真实文件里), 只管每一步必须做到的事、哪些规则漏了不报错、当步怎么验收 - apps/api/pyproject.toml:testpaths 的 app 一级改成 backend/app/*/tests。原来逐个列,新增 app 忘了加一行, 那个模块的测试不会被收集、pnpm test 照样全绿。实测改前改后都是 2244 条 / 175 个文件;临时 app 逐个列时 0 条、通配时 1 条 - scripts/ctx-check.mjs:SKILL.md 纳入核对。实测 74 → 75 份,往技能里塞一个不存在的路径报 dead-path - 指南第 10 步与常见卡点、scripts / tests 分册、conftest 注释同步 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
让一个没看过上下文的代理只照技能在一次性 worktree 里从零建「客户管理」(35 个文件,收尾命令全过, 非超管账号经接口验了本部门 / 仅本人 / 无权限 / 没开后台登录四种)。它报出 13 条,全部改进: 照做一定会错的 4 条: - 测试前要重建测试库(pnpm --filter api test:db),否则 relation does not exist - 指南的 index.tsx 手写外包 div,过不了 arch:check 的 list-body-handwritten → 指南中英两份改成 <ListBody>; 技能不再称指南为「完整可运行代码」,前端范本统一为 pages/user/ - 菜单图标要在 shell/icon-registry.tsx 注册,否则侧边栏静默变圆点 - 第 6 步验收的 token:swagger 调试口参数走 query,Basic 认证会 422 没写 / 有歧义的 9 条:菜单写进哪个迁移、已 upgrade 后怎么回退 · 字典种子放哪 · 字典字段后端别限死上限 (指南补「改用字典后去掉 le=2」)· QueryBar 没有选项失败态 · 测试收尾的硬删与指南矛盾 · 别照 plugin/dict 抄 crud · 收尾补上 seed / sql / i18n / 迁移 / 列长度守卫 · Python 靠提交钩子 · 菜单排序撞号 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
做了什么
1. 新模块技能
.claude/skills/new-module/SKILL.md仓库刻意没有代码生成器(#180)。技能不复制代码,只管「别漏」:先问清 6 件事 → 10 步,每步写明照哪份真实文件、哪些规则漏了不报错、当步怎么验收 → 收尾全量闸门。代码样例仍在
first-module指南里。2. 两处配套改动(让技能不腐烂)
pyproject.toml的testpaths改成backend/app/*/testspnpm test照样全绿ctx:check纳入SKILL.mddead-path3. 验收:让独立代理只照技能真跑一遍
一个没看过上下文的代理在一次性 worktree + 私有库里从零建「客户管理」:35 个文件,收尾命令全过(pytest 157 + 117 条),非超管账号经接口验了「本部门 / 仅本人 / 无权限 / 没开后台登录」四种。它报出的 13 条问题全部改进到技能里:
index.tsx手写外包 div、过不了arch:check(指南中英两份已改成<ListBody>)· 菜单图标要注册,否则侧边栏静默变圆点 · 拿 token 的调试口参数走 queryle=2」)· QueryBar 没有选项失败态 · 测试收尾的硬删与指南矛盾 · 别照plugin/dict抄 crud(它关了数据权限)· 收尾补上 seed / sql / i18n / 迁移 / 列长度守卫 · Python 靠提交钩子 · 菜单排序撞号代理写的「客户管理」代码没有合进来(它只是验收用的,产品里不要这个模块)。
验证
ctx:check76 份 0 错误(技能里的路径全部存在)· 文档站构建:链接 0 断链、标题 0 越界fba init那条路、MySQL / SQL Server 真库(代理也只做到静态检查)🤖 Generated with Claude Code