[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DNGET76R9D426YCZS2X7R5":3,"skill-same:01M6DNGET76R9D426YCZS2X7R5":58},{"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":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":57},"01M6DNGET76R9D426YCZS2X7R5","improve-codebase-architecture",null,"Audit an existing codebase or named subsystem for evidence-backed architecture improvements by finding shallow modules, pass-through layers, scattered ownership, weak seams, and hard-to-test interfaces; trigger on \u002Fimprove-codebase-architecture, “improve the architecture”, “architecture audit”, “find refactor opportunities”, or “where should we deepen this codebase”, but stop before designing or implementing a selected change.","0xgleb\u002Fdotconfig","0xgleb","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F39841057?v=4","01M6DNDD83BRMM1SH4R4C6K8GY","01M6DNDDCPH33FEFB6JN6Y2GVD",3,"MIT","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Fimprove-codebase-architecture\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31],"improve codebase architecture","architecture","improve","test","change","audit","refactor","deepen","find","evidence","modules","stop","but","trigger","2026-11-10 10:12:30",false,"---\nname: improve-codebase-architecture\ndescription: Audit an existing codebase or named subsystem for evidence-backed architecture improvements by finding shallow modules, pass-through layers, scattered ownership, weak seams, and hard-to-test interfaces; trigger on \u002Fimprove-codebase-architecture, “improve the architecture”, “architecture audit”, “find refactor opportunities”, or “where should we deepen this codebase”, but stop before designing or implementing a selected change.\nuser-invocable: true\n---\n\n# Improve codebase architecture\n\nFind the architectural changes most likely to reduce recurring maintenance cost.\nReport candidates first. Do not design interfaces or modify code until the user\nchooses one.\n\n## Route the work first\n\nUse another workflow when:\n\n- the user already chose a change and wants its types, signatures, or module\n  structure designed: use `architect`;\n- intent or success criteria are vague: use `shape-work`;\n- an existing diff needs review rather than a standing-code audit: use\n  `architecture-direction-inspector`;\n- a confirmed expensive-to-reverse decision needs recording: use `adr`;\n- a public interface, storage layout, or migration is involved: include\n  `interface-lifecycle`.\n\n## Phase 1: Choose the search area\n\n1. Use the subsystem, module, pain point, or direction named by the user.\n2. If no area was named, inspect a bounded stretch of recent history to find\n   files and modules that change repeatedly.\n3. Prefer recurring hotspots over a repository-wide theoretical redesign.\n4. Read applicable project instructions, architecture documents, ADRs, tests,\n   and public contracts. Do not assume any fixed file layout such as\n   `CONTEXT.md` or `docs\u002Fadr\u002F`.\n5. State the selected scope and why the available evidence makes it worth\n   inspecting.\n\n## Phase 2: Trace the current shape\n\nFor the selected area, trace:\n\n- callers and public interfaces;\n- ownership of state, effects, persistence, and lifecycle;\n- dependency direction;\n- invariants and error handling;\n- test entry points;\n- facts callers must know that the module should hide;\n- changes that currently require edits in several places.\n\nDistinguish repository evidence from analysis. A file name, class name, or large\nline count is not evidence of an architectural problem by itself.\n\n## Phase 3: Find candidates\n\nLook for:\n\n- shallow modules whose interface is nearly as complicated as their\n  implementation;\n- pass-through layers that add names and call depth without hiding knowledge;\n- concepts whose state or invariants are split across unrelated owners;\n- dependency direction that makes stable policy depend on volatile details;\n- tests that must bypass the public interface to reach important behavior;\n- repeated changes that cross the same files or boundaries;\n- speculative seams with only one concrete implementation;\n- public interfaces that expose ordering, configuration, or lifecycle rules\n  callers should not manage.\n\nApply these checks:\n\n### Deletion test\n\nImagine removing the suspected abstraction.\n\n- If its complexity disappears, it was probably pass-through structure.\n- If its complexity spreads into several callers, it is hiding real work.\n- Do not recommend deletion until the affected callers and behavior are traced.\n\n### Interface depth\n\nPrefer a smaller interface that hides more behavior and required knowledge. Do\nnot measure depth by implementation line count.\n\n### Evidence for a seam\n\nA seam is strongest when real behavior varies across it. One hypothetical future\nimplementation is not enough. Two concrete variations, external contract\nseparation, or a demonstrated test boundary can justify it.\n\n### Locality\n\nPrefer changes that put ownership, invariants, effects, and verification in one\nplace. Reject changes that merely redistribute the same knowledge across new\nfiles.\n\n## Phase 4: Report candidates\n\nFor each candidate, provide:\n\n1. **Scope:** exact files and modules involved.\n2. **Observed friction:** repository evidence, including repeated changes,\n   caller knowledge, test difficulty, or ownership splits.\n3. **Deletion test:** what happens if the current abstraction is removed.\n4. **Direction:** the architectural change in plain language, without designing\n   the final interface.\n5. **Expected benefit:** what knowledge, change, or verification becomes local.\n6. **Risk:** compatibility, migration, lifecycle, performance, or rollback\n   concerns.\n7. **Confidence:** `strong`, `worth exploring`, or `speculative`, with the\n   evidence behind the rating.\n8. **Falsification:** what additional evidence would show the recommendation is\n   wrong.\n\nEnd with one top recommendation and explain why it should be investigated first.\n\nUse compact Markdown by default. Produce HTML, diagrams, or browser-opened\nreports only when the user asks for them.\n\n## Phase 5: Stop at selection\n\nAsk which candidate the user wants to explore. Do not silently move from audit\ninto design or implementation.\n\nAfter selection:\n\n- use `shape-work` if requirements or non-goals remain unclear;\n- use `architect` to compare caller-first type, signature, and module designs;\n- use `interface-lifecycle` for compatibility and migration;\n- use `adr` when the decision meets the repository’s ADR criteria;\n- run the applicable threat model before changes involving money, trust, access\n  control, untrusted input, external integrations, or LLM tools.\n\n## Hard rules\n\n1. Never recommend architecture from aesthetics, naming preference, file size,\n   or generic best practices alone.\n2. Never invent project direction, domain language, ADRs, callers, or future\n   implementations.\n3. Never force a fixed vocabulary or rewrite established domain terms.\n4. Never introduce a seam, adapter, interface, or module without evidence that\n   it hides complexity or real variation.\n5. Never require `CONTEXT.md`, a specific ADR directory, CDN assets, OS browser\n   launching, or an external grilling tool.\n6. Never write code, mutate architecture documents, commit, or publish during\n   the candidate-report phase.\n7. Never re-litigate a documented decision without new friction strong enough to\n   justify reopening it.\n8. Prefer no recommendation over a speculative refactor that cannot be\n   falsified.\n","# Improve codebase architecture\n\nFind the architectural changes most likely to reduce recurring maintenance cost.\nReport candidates first. Do not design interfaces or modify code until the user\nchooses one.\n\n## Route the work first\n\nUse another workflow when:\n\n- the user already chose a change and wants its types, signatures, or module\n  structure designed: use `architect`;\n- intent or success criteria are vague: use `shape-work`;\n- an existing diff needs review rather than a standing-code audit: use\n  `architecture-direction-inspector`;\n- a confirmed expensive-to-reverse decision needs recording: use `adr`;\n- a public interface, storage layout, or migration is involved: include\n  `interface-lifecycle`.\n\n## Phase 1: Choose the search area\n\n1. Use the subsystem, module, pain point, or direction named by the user.\n2. If no area was named, inspect a bounded stretch of recent history to find\n   files and modules that change repeatedly.\n3. Prefer recurring hotspots over a repository-wide theoretical redesign.\n4. Read applicable project instructions, architecture documents, ADRs, tests,\n   and public contracts. Do not assume any fixed file layout such as\n   `CONTEXT.md` or `docs\u002Fadr\u002F`.\n5. State the selected scope and why the available evidence makes it worth\n   inspecting.\n\n## Phase 2: Trace the current shape\n\nFor the selected area, trace:\n\n- callers and public interfaces;\n- ownership of state, effects, persistence, and lifecycle;\n- dependency direction;\n- invariants and error handling;\n- test entry points;\n- facts callers must know that the module should hide;\n- changes that currently require edits in several places.\n\nDistinguish repository evidence from analysis. A file name, class name, or large\nline count is not evidence of an architectural problem by itself.\n\n## Phase 3: Find candidates\n\nLook for:\n\n- shallow modules whose interface is nearly as complicated as their\n  implementation;\n- pass-through layers that add names and call depth without hiding knowledge;\n- concepts whose state or invariants are split across unrelated owners;\n- dependency direction that makes stable policy depend on volatile details;\n- tests that must bypass the public interface to reach important behavior;\n- repeated changes that cross the same files or boundaries;\n- speculative seams with only one concrete implementation;\n- public interfaces that expose ordering, configuration, or lifecycle rules\n  callers should not manage.\n\nApply these checks:\n\n### Deletion test\n\nImagine removing the suspected abstraction.\n\n- If its complexity disappears, it was probably pass-through structure.\n- If its complexity spreads into several callers, it is hiding real work.\n- Do not recommend deletion until the affected callers and behavior are traced.\n\n### Interface depth\n\nPrefer a smaller interface that hides more behavior and required knowledge. Do\nnot measure depth by implementation line count.\n\n### Evidence for a seam\n\nA seam is strongest when real behavior varies across it. One hypothetical future\nimplementation is not enough. Two concrete variations, external contract\nseparation, or a demonstrated test boundary can justify it.\n\n### Locality\n\nPrefer changes that put ownership, invariants, effects, and verification in one\nplace. Reject changes that merely redistribute the same knowledge across new\nfiles.\n\n## Phase 4: Report candidates\n\nFor each candidate, provide:\n\n1. **Scope:** exact files and modules involved.\n2. **Observed friction:** repository evidence, including repeated changes,\n   caller knowledge, test difficulty, or ownership splits.\n3. **Deletion test:** what happens if the current abstraction is removed.\n4. **Direction:** the architectural change in plain language, without designing\n   the final interface.\n5. **Expected benefit:** what knowledge, change, or verification becomes local.\n6. **Risk:** compatibility, migration, lifecycle, performance, or rollback\n   concerns.\n7. **Confidence:** `strong`, `worth exploring`, or `speculative`, with the\n   evidence behind the rating.\n8. **Falsification:** what additional evidence would show the recommendation is\n   wrong.\n\nEnd with one top recommendation and explain why it should be investigated first.\n\nUse compact Markdown by default. Produce HTML, diagrams, or browser-opened\nreports only when the user asks for them.\n\n## Phase 5: Stop at selection\n\nAsk which candidate the user wants to explore. Do not silently move from audit\ninto design or implementation.\n\nAfter selection:\n\n- use `shape-work` if requirements or non-goals remain unclear;\n- use `architect` to compare caller-first type, signature, and module designs;\n- use `interface-lifecycle` for compatibility and migration;\n- use `adr` when the decision meets the repository’s ADR criteria;\n- run the applicable threat model before changes involving money, trust, access\n  control, untrusted input, external integrations, or LLM tools.\n\n## Hard rules\n\n1. Never recommend architecture from aesthetics, naming preference, file size,\n   or generic best practices alone.\n2. Never invent project direction, domain language, ADRs, callers, or future\n   implementations.\n3. Never force a fixed vocabulary or rewrite established domain terms.\n4. Never introduce a seam, adapter, interface, or module without evidence that\n   it hides complexity or real variation.\n5. Never require `CONTEXT.md`, a specific ADR directory, CDN assets, OS browser\n   launching, or an external grilling tool.\n6. Never write code, mutate architecture documents, commit, or publish during\n   the candidate-report phase.\n7. Never re-litigate a documented decision without new friction strong enough to\n   justify reopening it.\n8. Prefer no recommendation over a speculative refactor that cannot be\n   falsified.\n",{"name":5,"description":7,"user-invocable":37},true,"master","78a61ce3053fc3d49eefd21d7051baf0c300af2d","ai\u002Fskills\u002Fimprove-codebase-architecture",0,"https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig","https:\u002F\u002Fgithub.com\u002F0xgleb","2026-11-14 09:46:23",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":37},[47,50,53],{"tool":48,"command":49},"npx","npx skills add 0xgleb\u002Fdotconfig --skill improve-codebase-architecture",{"tool":51,"command":52},"bunx","bunx skills add 0xgleb\u002Fdotconfig --skill improve-codebase-architecture",{"tool":54,"command":55},"pnpm","pnpm dlx skills add 0xgleb\u002Fdotconfig --skill improve-codebase-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Fimprove-codebase-architecture\u002FSKILL.md",[],[59,84,108,132,151,168],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":32},"01M6DNKHP7NV7KR552KFZ6EW3R","worktree","Manage worktrees only for concurrent work by the owner or agents launched by the owner on the same repository, or for explicitly requested inventory and cleanup; never create one for isolation alone.","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Fworktree\u002FSKILL.md",[],[61,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83],"create","work","never","worktrees","manage","inventory","repository","fix","git","only","cleanup","cd","Bash","isolation","ls","for","mkdir","true",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":32},"01M6DNKEGPR8F3BA95ZMWQ48V9","unslop","Rewrite draft prose before owner-facing replies, docs, issues, PR text, handoffs, or Telegram reports to remove AI tells while preserving facts, links, tone, and authority; auto-trigger on externally visible prose, but never on code, commands, logs, tool output, quoted sources, or user text.","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Funslop\u002FSKILL.md",[],[86,91,68,92,93,31,94,95,96,97,98,99,100,101,102,103,104,105,106,107],"draft","pr","remove","tool","issues","auto","rewrite","code","tone","telegram","sources","links","authority","logs","facts","output","replies",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":32},"01M6DNK9VFNJYKB6GMA15WJ3HZ","threat-model-first","Use at the START of a change that moves money, changes balances or custody, touches access control or signing, deserializes untrusted input, adds an external or on-chain integration, or wires an LLM tool. Design-time threat modeling that turns abuse cases into the first failing tests; it precedes the post-hoc security-review pass.","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Fthreat-model-first\u002FSKILL.md",[],[115,116,117,118,119,120,121,122,123,124,125,78,126,127,22,23,128,129,130,131],"model","threat model","threat","first","threat model first","chain","time","security-review","design","forge","access","cargo audit","review","read","write","edit","modeling",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":32},"01M6DNK6M72QAMH2TYVMPYJGDM","test-inspector","Auto-run for new or changed retained behavior, even without test changes, and for test, fixture, snapshot or mock changes; verify real happy-path and error-path coverage, expose false-confidence assertions and over-mocking, but do not perform general production-code correctness review.","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Ftest-inspector\u002FSKILL.md",[],[21,139,140,141,96,142,78,98,127,143,128,144,145,146,147,148,149,74,30,150],"test inspector","fixture","do","false","run","coverage","error","number","URL","mktemp","snapshot","path",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":32},"01M6DNK3BPN73D003FFADEWJP5","strong-typing-inspector","Lightweight review — flags primitives used where a domain type already exists (e.g. String for a USD field when Usd exists) and missed newtype opportunities.","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Fstrong-typing-inspector\u002FSKILL.md",[],[158,159,21,160,92,161,128,162,163,74,164,165,78,166,127,167],"strong typing inspector","type","missed","domain","flags","grep","usd","gh","primitives","newtype",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":32},"01M6DNJZHG2RK3MC4VPB9KWPYF","spec-review","Critique existing specifications and design proposals, including whether their approach or addition is justified, and refine them through adversarial Pi review and authorized author revisions. Not for code review, implementation-plan sequencing, creating a design from scratch or minor copy edits.","https:\u002F\u002Fgithub.com\u002F0xgleb\u002Fdotconfig\u002Fblob\u002Fmaster\u002Fai\u002Fskills\u002Fspec-review\u002FSKILL.md",[],[175,176,127,177,178,179,180,181,123,182,98,81,183,184,185,186,187,188,189,190],"spec review","spec","plan","critique","code review","pi","refine","implementation","sequencing","specifications","proposals","scratch","Existing","author","From Scratch","adversarial"]