[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C4X6SKTTCSQD7ZJHBFCCZB":3,"skill-same:01M6C4X6SKTTCSQD7ZJHBFCCZB":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":6,"updatedAt":51,"install":52,"resources":64},"01M6C4X6SKTTCSQD7ZJHBFCCZB","rsi",null,"Runs a loop that improves existing code (bugs, performance, consistency, tests, DRY) without adding features. Use when the user says 'rsi', or asks to improve, clean up or harden a codebase. For one refactor use refactoring-protocol.","rubakas\u002Fagent-notes","rubakas","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35782457?v=4","01M6C4THGGA9DDE6AAEF5SZF6V","01M6C4THN6FV04VNKF1NG01W68",4,"MIT","https:\u002F\u002Fgithub.com\u002Frubakas\u002Fagent-notes\u002Fblob\u002Fmain\u002Fagent_notes\u002Fdata\u002Fskills\u002Frsi\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"bugs","codebase","features","dry","Existing","tests","true","clean","for","scope","consistency","code","loop","use","improve","up","performance","refactoring","process","2026-11-10 10:12:30",false,"---\nname: rsi\ndescription: Runs a loop that improves existing code (bugs, performance, consistency, tests, DRY) without adding features. Use when the user says 'rsi', or asks to improve, clean up or harden a codebase. For one refactor use refactoring-protocol.\ngroup: process\ndisable-model-invocation: true\nargument-hint: \"[path or scope, optional]\"\n---\n\n# RSI — Recursive Self-Improvement (Code)\n\nIteratively improve existing code until it stops yielding improvements. The main session orchestrates; specialized agents do the work. This is a quality loop, not a feature loop.\n\n## Prime invariant\n\n- **Behaviour-preserving except for defect fixes, each in its own commit with a regression test.** Never add functionality, new features, new public API, or new config. A change that adds capability is out of scope: reject it.\n- **Tests green before a pass and after every change.** If the target has no test coverage, write a characterization test first, then improve.\n- **One change = one concern.** Structure OR behavior, never both in the same change.\n\n## The loop (orchestrated by the main session, loop-until-dry)\n\n1. **Scope.** Resolve the target (arg path, or whole project). Identify the test command and confirm the suite is green. If it is red, stop and report — fix the suite before improving. Don't run the loop on code that lacks meaningful test coverage — write characterization tests first. Ask the user once, before the first change: \"Commit each step as I go?\" Yes → commit each step locally; No → leave the changes uncommitted and list them in the report. Never push.\n2. **Scan — one dimension at a time.** Scan inline when the scope is a few files; dispatch scanners only for scopes a handful of tool calls can't cover, at most 3 at once. Scanners are read-only and produce a ranked list of concrete opportunities:\n   - `reviewer` \u002F `security-auditor` → bugs, correctness, vulnerabilities\n   - `performance-profiler` → hot paths, N+1, redundant work\n   - `system-auditor` → duplication, dead code, coupling, inconsistent implementations of one concept\n   - `reviewer` → readability, naming, pattern & consistency adherence\n   - `explorer` \u002F `reviewer` → coverage gaps\n\n   Each opportunity is a **finding record**: `file` · `line` · `dimension` · `severity` (blocker | major | minor) · `why` · `fix` (one-line proposed change). When a downstream agent consumes the scan, emit findings as JSON objects with exactly those keys; otherwise the dashed form `file:line — dimension\u002Fseverity — why — fix` is fine.\n\n3. **Prioritize.** Order: correctness\u002Fsafety > missing tests on touched code > DRY\u002Fduplication > consistency\u002Fhomogeneity > pattern & convention fit > performance > clarity\u002Fnaming. Drop anything that changes behavior or adds capability.\n4. **Apply one atomic, independent change.** Dispatch `coder` (bugfix) or `refactorer` (behavior-preserving cleanup). Smallest viable diff. Tell the agent not to commit; the main session commits. Sub-agents don't inherit skills, so paste into each brief: the finding record, the prime invariant, the fail-first rule and, for `reviewer` or `refactorer`, the content of `code-review\u002FSMELLS.md` (sibling skill directory).\n5. **Verify.** Run affected tests — must stay green. After a batch of atomic changes, `reviewer` confirms: no behavior change, fits conventions, genuinely improves the dimension; mechanical changes rely on green tests. On regression → revert and re-plan. Escalate real logic bugs to `debugger` rather than re-looping.\n6. **Commit (only if the user said yes at the start).** One concern per commit, independent and revertable. Use the `git` skill's message format. If the user said no, leave the change uncommitted. Then take the next opportunity.\n7. **Repeat passes.** Stop after two consecutive dry passes or 5 passes total, whichever comes first. Then report.\n\n## Dimensions rubric\n\nEach dimension: what to **hunt**, what to **fix**, what to **leave alone**.\n\n- **Bugs & correctness** — off-by-one, nil\u002FNone, races, missing error handling, unhandled edge cases. Fix minimally + add a regression test. Don't redesign.\n- **Performance** — measured hot paths, N+1 queries, redundant work, bad complexity, unbounded growth. Don't micro-optimize cold paths or trade clarity for guesswork.\n- **Code quality** — the smells in `code-review\u002FSMELLS.md` (sibling skill directory), plus deep nesting and magic values. Extract, apply guard clauses, rename. Don't gold-plate.\n- **Consistency \u002F homogeneity** — the same kind of thing implemented multiple different ways: mixed styles for one object type, divergent shapes for one concept, inconsistent signatures or return types. Converge on one canonical form and reduce needless variation. Distinct from DRY — this targets divergent *expression* of one concept, not duplicated *logic*. Don't force genuinely different things into a false-common shape.\n- **Pattern adherence** — match the project's dominant idioms, structure, and conventions. Align outliers. Don't invent new patterns.\n- **Tests** — cover changed or risky code, fix flaky\u002Fslow tests, add missing edge cases. Don't test trivial getters.\n- **Atomicity** — split god-functions and god-classes into single-responsibility units. Don't over-fragment.\n- **Independence** — reduce coupling, remove hidden global state, narrow interfaces. Don't add abstraction layers nobody needs.\n- **DRY** — collapse genuine duplication into one source of truth. Don't DRY accidental similarity (premature abstraction is worse than duplication).\n- **Dead code** — unused functions, variables, imports, branches. Delete after confirming no external use.\n\n## Gates (hard)\n\n- **No-redesign gate.** If the change needs a module or interface redesign, stop and suggest the user run `\u002Fimprove-codebase-architecture`.\n- **Revert on regression.** On regression, if the change was committed, revert it with `git revert`; if it is uncommitted, discard that one change instead. Never `reset --hard` or force-push.\n- **Max 2 review rounds per batch,** then accept or drop the change.\n- **Fail-first, anti-gaming.** Every regression test must be shown to FAIL on the unfixed code (it must actually reproduce the bug) BEFORE the fix lands; a characterization test must pass on current code and fail when the pinned behaviour is mutated. Reject any \"fix\" that games the test rather than addressing root cause — hardcoded expected values, weakened\u002Fremoved assertions, special-casing the asserted inputs, or operator\u002Fequality overloading. A test that passes regardless of the fix proves nothing. The reviewer confirms the test genuinely falsifies the bug.\n\n## Done\n\nReport: improvements grouped by dimension, commits made (or the uncommitted changes, if the user said no), tests added, deferrals (with reasons), and anything skipped as out-of-scope (new functionality).\n","# RSI — Recursive Self-Improvement (Code)\n\nIteratively improve existing code until it stops yielding improvements. The main session orchestrates; specialized agents do the work. This is a quality loop, not a feature loop.\n\n## Prime invariant\n\n- **Behaviour-preserving except for defect fixes, each in its own commit with a regression test.** Never add functionality, new features, new public API, or new config. A change that adds capability is out of scope: reject it.\n- **Tests green before a pass and after every change.** If the target has no test coverage, write a characterization test first, then improve.\n- **One change = one concern.** Structure OR behavior, never both in the same change.\n\n## The loop (orchestrated by the main session, loop-until-dry)\n\n1. **Scope.** Resolve the target (arg path, or whole project). Identify the test command and confirm the suite is green. If it is red, stop and report — fix the suite before improving. Don't run the loop on code that lacks meaningful test coverage — write characterization tests first. Ask the user once, before the first change: \"Commit each step as I go?\" Yes → commit each step locally; No → leave the changes uncommitted and list them in the report. Never push.\n2. **Scan — one dimension at a time.** Scan inline when the scope is a few files; dispatch scanners only for scopes a handful of tool calls can't cover, at most 3 at once. Scanners are read-only and produce a ranked list of concrete opportunities:\n   - `reviewer` \u002F `security-auditor` → bugs, correctness, vulnerabilities\n   - `performance-profiler` → hot paths, N+1, redundant work\n   - `system-auditor` → duplication, dead code, coupling, inconsistent implementations of one concept\n   - `reviewer` → readability, naming, pattern & consistency adherence\n   - `explorer` \u002F `reviewer` → coverage gaps\n\n   Each opportunity is a **finding record**: `file` · `line` · `dimension` · `severity` (blocker | major | minor) · `why` · `fix` (one-line proposed change). When a downstream agent consumes the scan, emit findings as JSON objects with exactly those keys; otherwise the dashed form `file:line — dimension\u002Fseverity — why — fix` is fine.\n\n3. **Prioritize.** Order: correctness\u002Fsafety > missing tests on touched code > DRY\u002Fduplication > consistency\u002Fhomogeneity > pattern & convention fit > performance > clarity\u002Fnaming. Drop anything that changes behavior or adds capability.\n4. **Apply one atomic, independent change.** Dispatch `coder` (bugfix) or `refactorer` (behavior-preserving cleanup). Smallest viable diff. Tell the agent not to commit; the main session commits. Sub-agents don't inherit skills, so paste into each brief: the finding record, the prime invariant, the fail-first rule and, for `reviewer` or `refactorer`, the content of `code-review\u002FSMELLS.md` (sibling skill directory).\n5. **Verify.** Run affected tests — must stay green. After a batch of atomic changes, `reviewer` confirms: no behavior change, fits conventions, genuinely improves the dimension; mechanical changes rely on green tests. On regression → revert and re-plan. Escalate real logic bugs to `debugger` rather than re-looping.\n6. **Commit (only if the user said yes at the start).** One concern per commit, independent and revertable. Use the `git` skill's message format. If the user said no, leave the change uncommitted. Then take the next opportunity.\n7. **Repeat passes.** Stop after two consecutive dry passes or 5 passes total, whichever comes first. Then report.\n\n## Dimensions rubric\n\nEach dimension: what to **hunt**, what to **fix**, what to **leave alone**.\n\n- **Bugs & correctness** — off-by-one, nil\u002FNone, races, missing error handling, unhandled edge cases. Fix minimally + add a regression test. Don't redesign.\n- **Performance** — measured hot paths, N+1 queries, redundant work, bad complexity, unbounded growth. Don't micro-optimize cold paths or trade clarity for guesswork.\n- **Code quality** — the smells in `code-review\u002FSMELLS.md` (sibling skill directory), plus deep nesting and magic values. Extract, apply guard clauses, rename. Don't gold-plate.\n- **Consistency \u002F homogeneity** — the same kind of thing implemented multiple different ways: mixed styles for one object type, divergent shapes for one concept, inconsistent signatures or return types. Converge on one canonical form and reduce needless variation. Distinct from DRY — this targets divergent *expression* of one concept, not duplicated *logic*. Don't force genuinely different things into a false-common shape.\n- **Pattern adherence** — match the project's dominant idioms, structure, and conventions. Align outliers. Don't invent new patterns.\n- **Tests** — cover changed or risky code, fix flaky\u002Fslow tests, add missing edge cases. Don't test trivial getters.\n- **Atomicity** — split god-functions and god-classes into single-responsibility units. Don't over-fragment.\n- **Independence** — reduce coupling, remove hidden global state, narrow interfaces. Don't add abstraction layers nobody needs.\n- **DRY** — collapse genuine duplication into one source of truth. Don't DRY accidental similarity (premature abstraction is worse than duplication).\n- **Dead code** — unused functions, variables, imports, branches. Delete after confirming no external use.\n\n## Gates (hard)\n\n- **No-redesign gate.** If the change needs a module or interface redesign, stop and suggest the user run `\u002Fimprove-codebase-architecture`.\n- **Revert on regression.** On regression, if the change was committed, revert it with `git revert`; if it is uncommitted, discard that one change instead. Never `reset --hard` or force-push.\n- **Max 2 review rounds per batch,** then accept or drop the change.\n- **Fail-first, anti-gaming.** Every regression test must be shown to FAIL on the unfixed code (it must actually reproduce the bug) BEFORE the fix lands; a characterization test must pass on current code and fail when the pinned behaviour is mutated. Reject any \"fix\" that games the test rather than addressing root cause — hardcoded expected values, weakened\u002Fremoved assertions, special-casing the asserted inputs, or operator\u002Fequality overloading. A test that passes regardless of the fix proves nothing. The reviewer confirms the test genuinely falsifies the bug.\n\n## Done\n\nReport: improvements grouped by dimension, commits made (or the uncommitted changes, if the user said no), tests added, deferrals (with reasons), and anything skipped as out-of-scope (new functionality).\n",{"name":5,"group":36,"description":7,"argument-hint":42,"disable-model-invocation":43},"[path or scope, optional]",true,"main","2b53465943af2bdffb61667ba9c3377a2ea8e649","agent_notes\u002Fdata\u002Fskills\u002Frsi",2,"https:\u002F\u002Fgithub.com\u002Frubakas\u002Fagent-notes","https:\u002F\u002Fgithub.com\u002Frubakas","https:\u002F\u002Frubakas.com","2026-11-04 06:46:55",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":43},[54,57,60],{"tool":55,"command":56},"npx","npx skills add rubakas\u002Fagent-notes --skill rsi",{"tool":58,"command":59},"bunx","bunx skills add rubakas\u002Fagent-notes --skill rsi",{"tool":61,"command":62},"pnpm","pnpm dlx skills add rubakas\u002Fagent-notes --skill rsi","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frubakas\u002Fagent-notes\u002Fblob\u002Fmain\u002Fagent_notes\u002Fdata\u002Fskills\u002Frsi\u002FSKILL.md",[],[66,86,107,122,133,148],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":37},"01M6M445BZF5CP0C4VCF538T36","security-audit","Audits a codebase for security vulnerabilities, independently verifies each one, and writes a report. Use when asked for a full, multi-phase codebase security audit or pen test, or for focused security guidance on code.","https:\u002F\u002Fgithub.com\u002Frubakas\u002Fagent-notes\u002Fblob\u002Fmain\u002Fagent_notes\u002Fdata\u002Fskills\u002Fsecurity-audit\u002FSKILL.md",[],[73,74,75,76,26,77,24,31,29,78,79,36,80,19,81,82,83,84,85],"security audit","audit","security","codebase security audit","security guidance","multi","test","report","guidance","vulnerabilities","full","guide","path",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":37},"01M6C4XHM2B03ZDXCSGE2MARZQ","wayfinder","Charts a map of investigation tickets on the issue tracker for work too big for one agent session, then resolves them one per session. Use when the user wants to wayfind a large loose idea or continue an existing wayfinder map.","https:\u002F\u002Fgithub.com\u002Frubakas\u002Fagent-notes\u002Fblob\u002Fmain\u002Fagent_notes\u002Fdata\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[88,93,94,36,95,96,26,97,24,98,31,22,99,100,101,102,103,104,105,106],"investigation","work","session","Charts","continue","map","number","URL","tracker","tickets","issue","issue tracker","user","idea",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":37},"01M6C4XFG6NNBQVTV6MHAC6BZW","triage","Triages issues and external PRs: categorises, verifies, grills if needed, and writes agent-ready briefs. Use when the user wants to triage the backlog or a specific issue or PR.","https:\u002F\u002Fgithub.com\u002Frubakas\u002Fagent-notes\u002Fblob\u002Fmain\u002Fagent_notes\u002Fdata\u002Fskills\u002Ftriage\u002FSKILL.md",[],[109,114,36,115,116,117,118,119,24,103,120,31,121,105],"ready","issues","pr","backlog","at","prs","look","briefs",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":37},"01M6C4XDMWQ5PM188GBGTAZ0A1","to-tickets","Breaks a plan, spec or conversation into tracer-bullet tickets, each declaring its blocking edges, and publishes them to the configured tracker. Use when the user wants a spec or plan turned into tickets or issues.","https:\u002F\u002Fgithub.com\u002Frubakas\u002Fagent-notes\u002Fblob\u002Fmain\u002Fagent_notes\u002Fdata\u002Fskills\u002Fto-tickets\u002FSKILL.md",[],[129,102,130,36,131,105,132,115,24,31,99,100,101,103,85],"to tickets","plan","spec","conversation",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":37},"01M6C4XBXCF4ZN71K05B76YT1F","to-spec","Turns the current conversation into a spec and publishes it to the project issue tracker, with no interview, only synthesis of what was discussed. Use when the user wants the discussion written up as a spec.","https:\u002F\u002Fgithub.com\u002Frubakas\u002Fagent-notes\u002Fblob\u002Fmain\u002Fagent_notes\u002Fdata\u002Fskills\u002Fto-spec\u002FSKILL.md",[],[140,131,141,36,105,132,142,143,33,24,144,31,145,101,103,104,146,147,85],"to spec","interview","as","project","only","with","it","Synthesis",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":159,"publishedAt":37},"01M6C4X99BG4ENH8GE9AK67902","setup-agent-tracker","Configures a repo's issue tracker, triage label vocabulary and domain doc layout for the agent-notes workflow skills. Use when starting in a new repo, once, before triage, to-spec, to-tickets or wayfinder.","https:\u002F\u002Fgithub.com\u002Frubakas\u002Fagent-notes\u002Fblob\u002Fmain\u002Fagent_notes\u002Fdata\u002Fskills\u002Fsetup-agent-tracker\u002FSKILL.md",[154],{"categoryNo":155,"categoryName":156,"taxonomyType":157,"taxonomyTypeDesc":158},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[160,161,101,36,162,163,109,31,164,26,24,165,166,167,102,131,103,88,104,168],"setup agent tracker","setup","repo","doc","domain","workflow","notes","layout","new repo"]