验证步骤会执行仓库控制的测试、构建和工具命令
原文依据:2 处该 Skill 明确要求运行仓库自己的测试、构建、类型检查和 lint 命令,包括 npm、Gradle、pytest 与 npx 示例。这些命令可执行仓库中的脚本、插件、构建逻辑及依赖代码,而不只是读取源文件。
如果仓库或依赖不可信,验证可能运行恶意代码,读取代理可访问的文件或凭据、修改工作区,或进行代理权限允许的网络操作。
该 Skill 主动要求在每个增量后运行仓库自己的测试、构建、类型检查和 lint 命令。此类命令通常会执行仓库脚本、构建插件或依赖代码;若仓库来源不可信,它们可能在代理权限范围内读写文件、读取环境凭据或联网。验证本身符合该 Skill 的开发用途,但执行代码的风险真实存在。用户可要求先展示命令,并限制网络、凭据和文件权限。
After each increment, verify with the repository's own commands (see the test-driven-development skill's Discover the Stack First section):- [ ] The change does one thing and does it completely- [ ] All existing tests still pass (the repository's test command: `npm test`, `./gradlew test`, `pytest`, ...)- [ ] The build succeeds (the repository's build command)- [ ] Type checking passes, where the stack has one (`npx tsc --noEmit`, `mypy`, ...)- [ ] Linting passes (the repository's lint command)- [ ] The new functionality works as expected- [ ] The change is committed with a descriptive message查看另外 1 个位置
1. **Implement** the smallest complete piece of functionality2. **Test** — run the test suite (or write a test if none exists)3. **Verify** — confirm the slice works as expected (tests pass, build succeeds, manual check)4. **Commit** -- save your progress with a descriptive message (see `git-workflow-and-versioning` for atomic commit guidance)5. **Move to the next slice** — carry forward, don't restart