[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M736VWJ6G0773GP64V9RF4Q8":3,"skill-same:01M736VWJ6G0773GP64V9RF4Q8":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":45},"01M736VWJ6G0773GP64V9RF4Q8","setup-feedback-loops",null,"Wire stack-agnostic feedback loops (static check, tests, formatter) behind a pre-commit gate so an agent can verify its own work","acbcdev\u002Fskills","acbcdev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99365650?v=4","01M736VHN1NBT3C738N6G01W1T","ACBC","01M736VHNXZV5WJ16J5ZKXCQ1Y",0,"MIT","https:\u002F\u002Fgithub.com\u002Facbcdev\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-feedback-loops\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: setup-feedback-loops\ndisable-model-invocation: true\ndescription: Wire stack-agnostic feedback loops (static check, tests, formatter) behind a pre-commit gate so an agent can verify its own work\nargument-hint: (run in a project root)\n---\n\nA **feedback loop** = check that go GREEN when code good, RED when not, wired so agent run it without human. Three loops — static check, tests, formatter — gated behind pre-commit hook so bad change caught before land.\n\nConcepts, not tools. Pick whatever stack already use. Skill done only when deliberate break make loop go RED.\n\n## 0. Identify the stack, confirm the loops\n\nRead project manifest to detect language and package manager: `package.json`, `pyproject.toml`, `Cargo.toml`, `go.mod`, `Gemfile`, etc. Ambiguous or missing → ASK user.\n\nThen confirm with user before wiring (propose stack common choice, let them override):\n- which of three loops to wire (default: all three),\n- which tool fill each, if more than one fit.\n\nDone: stack known, tool chosen for each loop user want.\n\n## 1. Static check — read the code without running it\n\nCatch errors code never has to run to reveal. Types or lint, whatever stack offer:\n- types: `tsc --noEmit`, `mypy`, `pyright`, `go vet`, `cargo check`\n- lint: `eslint`, `ruff`, `clippy`, `golangci-lint`\n\nWire behind one command. Done: command run, exit 0 on clean code.\n\n## 2. Tests — run the code and assert\n\nStack test runner, run-once mode — never watch, watch hang hook:\n- `vitest run`, `pytest`, `cargo test`, `go test .\u002F...`, `rspec`\n\nDone: one command run suite, exit 0.\n\n## 3. Formatter — fix style so the agent stops guessing\n\nTool that rewrite code to fixed style:\n- `prettier`, `ruff format` \u002F `black`, `gofmt`, `rustfmt`\n\nDone: running it leave tree formatted, exit 0.\n\n## 4. Pre-commit gate\n\nInstall pre-commit hook that run loops; any failure block commit. Use whatever stack reach for, or plain git hook:\n- JS: husky, lefthook\n- any stack: the `pre-commit` framework, lefthook, or hand-written `.git\u002Fhooks\u002Fpre-commit`\n\nHook run, in order: formatter (on staged files) → static check → tests.\nDone: hook file exist and executable.\n\n## 5. Prove the loop goes RED\n\nStage deliberate error static check or tests will catch (type error, failing assert), attempt commit, confirm BLOCKED, then clean up error.\n\nDone: commit blocked (RED). Loop that never go RED not a feedback loop — if commit succeed, fix hook before finishing.\n\n---\n\nConcrete JS\u002FTS walkthrough (TS + Vitest + Husky + lint-staged): [EXAMPLE-js-ts.md](.\u002FEXAMPLE-js-ts.md).\n","A **feedback loop** = check that go GREEN when code good, RED when not, wired so agent run it without human. Three loops — static check, tests, formatter — gated behind pre-commit hook so bad change caught before land.\n\nConcepts, not tools. Pick whatever stack already use. Skill done only when deliberate break make loop go RED.\n\n## 0. Identify the stack, confirm the loops\n\nRead project manifest to detect language and package manager: `package.json`, `pyproject.toml`, `Cargo.toml`, `go.mod`, `Gemfile`, etc. Ambiguous or missing → ASK user.\n\nThen confirm with user before wiring (propose stack common choice, let them override):\n- which of three loops to wire (default: all three),\n- which tool fill each, if more than one fit.\n\nDone: stack known, tool chosen for each loop user want.\n\n## 1. Static check — read the code without running it\n\nCatch errors code never has to run to reveal. Types or lint, whatever stack offer:\n- types: `tsc --noEmit`, `mypy`, `pyright`, `go vet`, `cargo check`\n- lint: `eslint`, `ruff`, `clippy`, `golangci-lint`\n\nWire behind one command. Done: command run, exit 0 on clean code.\n\n## 2. Tests — run the code and assert\n\nStack test runner, run-once mode — never watch, watch hang hook:\n- `vitest run`, `pytest`, `cargo test`, `go test .\u002F...`, `rspec`\n\nDone: one command run suite, exit 0.\n\n## 3. Formatter — fix style so the agent stops guessing\n\nTool that rewrite code to fixed style:\n- `prettier`, `ruff format` \u002F `black`, `gofmt`, `rustfmt`\n\nDone: running it leave tree formatted, exit 0.\n\n## 4. Pre-commit gate\n\nInstall pre-commit hook that run loops; any failure block commit. Use whatever stack reach for, or plain git hook:\n- JS: husky, lefthook\n- any stack: the `pre-commit` framework, lefthook, or hand-written `.git\u002Fhooks\u002Fpre-commit`\n\nHook run, in order: formatter (on staged files) → static check → tests.\nDone: hook file exist and executable.\n\n## 5. Prove the loop goes RED\n\nStage deliberate error static check or tests will catch (type error, failing assert), attempt commit, confirm BLOCKED, then clean up error.\n\nDone: commit blocked (RED). Loop that never go RED not a feedback loop — if commit succeed, fix hook before finishing.\n\n---\n\nConcrete JS\u002FTS walkthrough (TS + Vitest + Husky + lint-staged): [EXAMPLE-js-ts.md](.\u002FEXAMPLE-js-ts.md).\n",{"name":5,"description":7,"argument-hint":24,"disable-model-invocation":25},"(run in a project root)",true,"main","39a01611d6d0e0ea759fb1fd8d84fc61d2683651","skills\u002Fsetup-feedback-loops","https:\u002F\u002Fgithub.com\u002Facbcdev\u002Fskills","https:\u002F\u002Fgithub.com\u002Facbcdev","acbc.dev","2026-07-24 13:28:48",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":25},[35,38,41],{"tool":36,"command":37},"npx","npx skills add acbcdev\u002Fskills --skill setup-feedback-loops",{"tool":39,"command":40},"bunx","bunx skills add acbcdev\u002Fskills --skill setup-feedback-loops",{"tool":42,"command":43},"pnpm","pnpm dlx skills add acbcdev\u002Fskills --skill setup-feedback-loops","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Facbcdev\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-feedback-loops\u002FSKILL.md",[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"EXAMPLE-js-ts.md","REFERENCE","参考文档",1452,"https:\u002F\u002Fgithub.com\u002Facbcdev\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-feedback-loops\u002FEXAMPLE-js-ts.md",[53,60,67,74],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M736VSRWK1WA5AG8CPXR8B3X","readme-writer","Write a README that sells the project. Treat it like a landing page. Use when the user asks to write, create, or improve a README.","https:\u002F\u002Fgithub.com\u002Facbcdev\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Freadme-writer\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M736VQE15D8BF5SJYJJMKE1N","before-implement","Look for prefactoring opportunities","https:\u002F\u002Fgithub.com\u002Facbcdev\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fbefore-implement\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M736VNQ9FAGAK5BN4YDK5K8Q","autommit","Automate commit messages using the Conventional Commits specification.","https:\u002F\u002Fgithub.com\u002Facbcdev\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fautommit\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M736VM5ZD59Q5S6BGWCX4149","writing-great-skills","Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.","https:\u002F\u002Fgithub.com\u002Facbcdev\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-great-skills\u002FSKILL.md",[],[]]