[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78HFWF500Q74DVZ4PCAP5MK":3,"skill-same:01M78HFWF500Q74DVZ4PCAP5MK":51},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":44},"01M78HFWF500Q74DVZ4PCAP5MK","optimize",null,"Audit an existing project for agent-native development and produce a ranked plan - verification, AGENTS.md, structure enforced by lint and types, vertical slices, test quality - at the depth I pick, then carry it out one verified step at a time. Use for \u002Foptimize. For a brand-new project use \u002Finit-project.","kausthubh-coder\u002Fskills","kausthubh-coder","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F69598472?v=4","01M78HD86HJXRJ8D9WAZPWEQWQ","Kausthubh Nandimandalam","01M78HD876SS34X45HNK3A5WXV",0,"MIT","https:\u002F\u002Fgithub.com\u002Fkausthubh-coder\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Foptimize\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: optimize\ndescription: Audit an existing project for agent-native development and produce a ranked plan - verification, AGENTS.md, structure enforced by lint and types, vertical slices, test quality - at the depth I pick, then carry it out one verified step at a time. Use for \u002Foptimize. For a brand-new project use \u002Finit-project.\ndisable-model-invocation: true\n---\n\n# Optimize\n\nMake an existing repo easier for agents to work in, so changes are verified, mistakes get caught by structure, and every feature is easy to find. Audit first, plan second, change code only for the items I pick.\n\n## 1. Pick the depth\n\nAsk once, recommending one based on the repo's size and state:\n\n| Depth | What it covers | Typical result |\n|---|---|---|\n| quick | AGENTS.md, commands, verification gaps, obvious slop tests | a handful of fixes done in one session |\n| standard | quick + mistakes agents keep repeating (git history, my T3 threads), lint and type rules, duplicate patterns, giant files | a plan for a few sessions |\n| deep | standard + restructure toward vertical slices and deep modules, sequenced as a migration | a multi-step restructure plan |\n\nAlso ask whether there's an area I care about most (a feature, a pain point).\n\n## 2. Audit\n\nUse read-only subagents for the parallel parts. Every finding cites `file:line`, a commit, or a thread title. No finding without evidence.\n\n1. **Verification.** Can an agent launch the app, use it like a user, and see the result (screens, logs, data)? Is there a `verify-*` skill, and does it still match the app? Are checks fast, and is there one command for them? Is test data realistic? Check tests against `principle-test-behavior-not-implementation`: list tests that would pass if every function returned undefined.\n2. **Steering.** Is AGENTS.md a short, accurate map, or a long rulebook? List claims that are stale, contradict the code, or that nothing enforces. Find duplicate ways of doing the same thing, half-finished migrations, and dead code an agent might copy.\n3. **Repeated mistakes** (standard and deep). Run the `correct` skill's \"find the mistake classes\" step over recent commits, reverts and fix-ups. Then read my past agent sessions for this repo and find where I corrected or pushed back on the agent. A correction I gave twice is a mistake class. Sources, use whichever exist:\n   - T3 Code threads: `t3_project_list` (match `workspaceRoot`), then `t3_thread_list` and `t3_thread_read`.\n   - Claude Code sessions: `~\u002F.claude\u002Fprojects\u002F\u003Crepo path with separators as dashes>\u002F*.jsonl` (also its worktree paths).\n   - Codex sessions: `~\u002F.codex\u002Fsessions\u002F**\u002F*.jsonl`; keep the ones whose `cwd` is this repo or one of its worktrees.\n   Read user messages only, newest first, and stop when new sessions stop adding new mistake classes.\n4. **Locality.** By feature or by layer? List the largest source files with line counts. Pick two real features and count the files you'd have to open to change each one. Note hidden wiring (dynamic names, magic strings, global state) that grep can't follow. Use `principle-minimize-reader-load` and `codebase-design`.\n5. **Safety.** Ways an agent could touch live data, production deploys, my real profiles or secrets. Whether the repo works in a fresh worktree (env files, ports).\n\n### Gaps every one of my projects had (check these first)\n\nFrom the 2026-10-12 audits of krida, Studi and kriyan (`reports\u002F` in the skill library):\n\n- The main checkout is behind `origin\u002Fmain` or has broken `node_modules`. T3 copies `.env.local` from it, so every new worktree starts broken.\n- No `.gitattributes`, so line endings churn.\n- Hard-coded dev port; parallel worktrees collide.\n- All worktrees share one dev backend, so a branch's functions overwrite another's.\n- No doctor: broken setup or dead credentials show up mid-task.\n- Production commands written in AGENTS.md as routine; destructive admin functions with no deployment check.\n- Dozens of stale worktrees with stranded uncommitted work.\n- Tests listed by hand (some never run); e2e that skips on a missing function and looks like a pass.\n- Agents said done without driving the changed screens.\n- T3's worktree-create script never ran. With project settings folded, T3 only reads `projectSettingsOverrides` in `~\u002F.t3\u002Fuserdata\u002Fsettings.json`, and scripts saved through `t3_project_update` are ignored. No `worktree-\u003Capp>` or `ship-\u003Capp>` skill, so the main checkout falls weeks behind.\n\n## 3. Plan\n\nWrite the plan as an HTML page, never Markdown: I read it. Save it where this repo keeps plans (look for `.agent\u002Fplans`, `docs\u002Fplans`, or similar; otherwise `.agents\u002Fplans\u002F`), named `\u003Cdate>-optimize.html`. Keep a status block on it that you update as items finish.\n\n- **Snapshot:** stack, layout, size, and the agent setup today.\n- **Findings**, grouped by the five audit areas, each with evidence.\n- **Plan:** numbered items ranked by value for effort, grouped as quick wins, medium, and deep. Each item says what changes, why (the finding it fixes), how it will be verified, and roughly how big it is.\n- **For deep:** the restructure as an ordered migration, one feature folder at a time, each step leaving the app working.\n\nShow me the plan and wait. I pick the items.\n\n## 4. Carry it out\n\n- One item at a time. Each ends in a state you checked: known-good, one change, check, next.\n- Prefer the strongest fix: make the mistake impossible (structure, types), then a lint rule whose error says what to do instead, then a test, then docs last (the `correct` skill's order).\n- Missing verification comes first. If there's no `verify-*` skill, run `create-verification-skill` before restructuring anything, so every later step can be proven. If one exists but may be stale, run `maintain-verification-skill`. If there's no `worktree-\u003Capp>` or `ship-\u003Capp>` skill, run `create-project-flows`.\n- Restructures move code without changing behavior, so behavior tests and the verify skill must pass before and after each step.\n- Never commit, push or deploy unless I ask. Update the plan file as items finish.\n","# Optimize\n\nMake an existing repo easier for agents to work in, so changes are verified, mistakes get caught by structure, and every feature is easy to find. Audit first, plan second, change code only for the items I pick.\n\n## 1. Pick the depth\n\nAsk once, recommending one based on the repo's size and state:\n\n| Depth | What it covers | Typical result |\n|---|---|---|\n| quick | AGENTS.md, commands, verification gaps, obvious slop tests | a handful of fixes done in one session |\n| standard | quick + mistakes agents keep repeating (git history, my T3 threads), lint and type rules, duplicate patterns, giant files | a plan for a few sessions |\n| deep | standard + restructure toward vertical slices and deep modules, sequenced as a migration | a multi-step restructure plan |\n\nAlso ask whether there's an area I care about most (a feature, a pain point).\n\n## 2. Audit\n\nUse read-only subagents for the parallel parts. Every finding cites `file:line`, a commit, or a thread title. No finding without evidence.\n\n1. **Verification.** Can an agent launch the app, use it like a user, and see the result (screens, logs, data)? Is there a `verify-*` skill, and does it still match the app? Are checks fast, and is there one command for them? Is test data realistic? Check tests against `principle-test-behavior-not-implementation`: list tests that would pass if every function returned undefined.\n2. **Steering.** Is AGENTS.md a short, accurate map, or a long rulebook? List claims that are stale, contradict the code, or that nothing enforces. Find duplicate ways of doing the same thing, half-finished migrations, and dead code an agent might copy.\n3. **Repeated mistakes** (standard and deep). Run the `correct` skill's \"find the mistake classes\" step over recent commits, reverts and fix-ups. Then read my past agent sessions for this repo and find where I corrected or pushed back on the agent. A correction I gave twice is a mistake class. Sources, use whichever exist:\n   - T3 Code threads: `t3_project_list` (match `workspaceRoot`), then `t3_thread_list` and `t3_thread_read`.\n   - Claude Code sessions: `~\u002F.claude\u002Fprojects\u002F\u003Crepo path with separators as dashes>\u002F*.jsonl` (also its worktree paths).\n   - Codex sessions: `~\u002F.codex\u002Fsessions\u002F**\u002F*.jsonl`; keep the ones whose `cwd` is this repo or one of its worktrees.\n   Read user messages only, newest first, and stop when new sessions stop adding new mistake classes.\n4. **Locality.** By feature or by layer? List the largest source files with line counts. Pick two real features and count the files you'd have to open to change each one. Note hidden wiring (dynamic names, magic strings, global state) that grep can't follow. Use `principle-minimize-reader-load` and `codebase-design`.\n5. **Safety.** Ways an agent could touch live data, production deploys, my real profiles or secrets. Whether the repo works in a fresh worktree (env files, ports).\n\n### Gaps every one of my projects had (check these first)\n\nFrom the 2026-10-12 audits of krida, Studi and kriyan (`reports\u002F` in the skill library):\n\n- The main checkout is behind `origin\u002Fmain` or has broken `node_modules`. T3 copies `.env.local` from it, so every new worktree starts broken.\n- No `.gitattributes`, so line endings churn.\n- Hard-coded dev port; parallel worktrees collide.\n- All worktrees share one dev backend, so a branch's functions overwrite another's.\n- No doctor: broken setup or dead credentials show up mid-task.\n- Production commands written in AGENTS.md as routine; destructive admin functions with no deployment check.\n- Dozens of stale worktrees with stranded uncommitted work.\n- Tests listed by hand (some never run); e2e that skips on a missing function and looks like a pass.\n- Agents said done without driving the changed screens.\n- T3's worktree-create script never ran. With project settings folded, T3 only reads `projectSettingsOverrides` in `~\u002F.t3\u002Fuserdata\u002Fsettings.json`, and scripts saved through `t3_project_update` are ignored. No `worktree-\u003Capp>` or `ship-\u003Capp>` skill, so the main checkout falls weeks behind.\n\n## 3. Plan\n\nWrite the plan as an HTML page, never Markdown: I read it. Save it where this repo keeps plans (look for `.agent\u002Fplans`, `docs\u002Fplans`, or similar; otherwise `.agents\u002Fplans\u002F`), named `\u003Cdate>-optimize.html`. Keep a status block on it that you update as items finish.\n\n- **Snapshot:** stack, layout, size, and the agent setup today.\n- **Findings**, grouped by the five audit areas, each with evidence.\n- **Plan:** numbered items ranked by value for effort, grouped as quick wins, medium, and deep. Each item says what changes, why (the finding it fixes), how it will be verified, and roughly how big it is.\n- **For deep:** the restructure as an ordered migration, one feature folder at a time, each step leaving the app working.\n\nShow me the plan and wait. I pick the items.\n\n## 4. Carry it out\n\n- One item at a time. Each ends in a state you checked: known-good, one change, check, next.\n- Prefer the strongest fix: make the mistake impossible (structure, types), then a lint rule whose error says what to do instead, then a test, then docs last (the `correct` skill's order).\n- Missing verification comes first. If there's no `verify-*` skill, run `create-verification-skill` before restructuring anything, so every later step can be proven. If one exists but may be stale, run `maintain-verification-skill`. If there's no `worktree-\u003Capp>` or `ship-\u003Capp>` skill, run `create-project-flows`.\n- Restructures move code without changing behavior, so behavior tests and the verify skill must pass before and after each step.\n- Never commit, push or deploy unless I ask. Update the plan file as items finish.\n",{"name":5,"description":7,"disable-model-invocation":24},true,"main","16324e7f9b33ea663982e77e17c70c3d1c9d65de","skills\u002Foptimize","https:\u002F\u002Fgithub.com\u002Fkausthubh-coder\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkausthubh-coder","idk","2026-11-12 02:40:31",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":24},[34,37,40],{"tool":35,"command":36},"npx","npx skills add kausthubh-coder\u002Fskills --skill optimize",{"tool":38,"command":39},"bunx","bunx skills add kausthubh-coder\u002Fskills --skill optimize",{"tool":41,"command":42},"pnpm","pnpm dlx skills add kausthubh-coder\u002Fskills --skill optimize","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkausthubh-coder\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Foptimize\u002FSKILL.md",[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",43,"https:\u002F\u002Fgithub.com\u002Fkausthubh-coder\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Foptimize\u002Fagents\u002Fopenai.yaml",[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M78HGP3TZ9GKGVHJWZQA260T","writing-for-agents","Write docs that agents read (skills, AGENTS.md, CLAUDE.md). Use when creating or editing a skill, or changing AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fkausthubh-coder\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M78HGKHT02YCX5GN0J65AWNH","unslop","Make prose sound human, not AI-written. Use whenever you write a PR description, commit message, doc, README, release note, post, email or UI copy, or when asked to unslop or de-AI text.","https:\u002F\u002Fgithub.com\u002Fkausthubh-coder\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M78HGHGKYYCJF2TGFYP1V5SR","tutor","Run a study session from my exam plan and progress files in the study repo. Use when I say study, teach me, quiz me, practice for an exam, or check whether I really understand a topic.","https:\u002F\u002Fgithub.com\u002Fkausthubh-coder\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftutor\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M78HGF54K9V30X8S1BJZ09V4","threads","Start, steer and read T3 threads on my laptop or Mac mini from either machine. Use to move a thread to the Mac, get a Windows check from the laptop, manage threads on both, or answer a message from the other machine.","https:\u002F\u002Fgithub.com\u002Fkausthubh-coder\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fthreads\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M78HG985HPM88MPYCNKBS40Y","statechart","Check a TLA+ model and draw it as a Mermaid statechart, with the shortest path to each broken rule. Use for \u002Fstatechart, to read a TLC result, or to show a bug as a path through states.","https:\u002F\u002Fgithub.com\u002Fkausthubh-coder\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fstatechart\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M78HG7NEAG7FMFY92VC6YJVC","sol-loop","Review a change with GPT Sol in a loop until we both agree. Use when I say \"sol loop\".","https:\u002F\u002Fgithub.com\u002Fkausthubh-coder\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsol-loop\u002FSKILL.md",[],[]]