[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DJHX3J7ED48A8607GD7YQM":3,"skill-same:01M6DJHX3J7ED48A8607GD7YQM":93},{"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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M6DJHX3J7ED48A8607GD7YQM","code-structure-cleanup",null,"Use when a working feature has duplicated mechanics, repeated API calls, inconsistent parsing or validation, messy helpers, or structure that will make review or future agent work harder.","danchamorro\u002Fpi-agent-toolkit","danchamorro","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19739839?v=4","01M6DJG9M33RM5P1GFCFG9DSJE","Dan Chamorro","01M6DJG9QYKDT43HSTFG1JPK82",17,"MIT","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fengineering\u002Fcode-structure-cleanup\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"cleanup","code","structure","code structure cleanup","review","validation","api","parsing","work","use","mechanics","feature","2026-11-10 10:12:30",false,"---\nname: code-structure-cleanup\ndescription: Use when a working feature has duplicated mechanics, repeated API calls, inconsistent parsing or validation, messy helpers, or structure that will make review or future agent work harder.\n---\n\n# Code Structure Cleanup\n\n## Overview\n\nRun this after a feature works, before review. The goal is a behavior-preserving cleanup pass that reduces duplicated runtime mechanics and makes the changed area easier for humans and agents to understand.\n\nThis is not a redesign pass. Keep the scope tied to the feature and keep the diff small.\n\n## When to Use\n\nUse when:\n\n- A feature works locally but the code feels duplicated, messy, or hard to review.\n- Similar helper functions, API calls, parsing, validation, or transformations were added in multiple places.\n- Calling files contain mechanics that would be clearer behind a reusable module.\n- Future agents are likely to copy the messy pattern because it is now the easiest thing to find.\n\nDo not use when:\n\n- The feature does not work yet.\n- The requested change is a new feature, not cleanup.\n- The only issue is formatting.\n- The cleanup would require redesigning unrelated parts of the app.\n\n## Core Rule\n\nThis is a behavior-preserving cleanup pass.\n\nDo not add features, change UX, alter API contracts, change data shapes, move business decisions, or modify user-facing behavior. If preserving behavior is uncertain, stop and investigate before editing.\n\n## Service Layer Boundary\n\nA service layer is a place for reusable mechanics:\n\n- sending an email,\n- streaming an AI response,\n- creating a sandbox,\n- validating a webhook,\n- calling an external API,\n- transforming a payload,\n- parsing or normalizing data.\n\nThe route, action, component, command, or job decides **what** should happen. The service handles **how** it happens.\n\nServices should not decide permissions, pricing, workflow branching, feature flags, product policy, or user-facing business rules unless the existing architecture already puts that policy in a service.\n\n## Cleanup Process\n\nBefore editing, identify the duplication inventory:\n\n- repeated mechanic,\n- files involved,\n- proposed extraction,\n- why this extraction is smaller and clearer than leaving the duplication,\n- validation command that will prove behavior was preserved.\n\nThen:\n\n1. Inspect only the feature-touched area plus directly related shared modules.\n2. Name the repeated mechanic clearly.\n3. Extract the smallest reusable function or module that removes the repetition.\n4. Keep domain policy in the caller.\n5. Update callers without renaming unrelated concepts.\n6. Run the narrowest relevant tests, typecheck, lint, or build.\n7. Summarize exactly what got simpler.\n\n## Extraction Test\n\nDo not extract code just because two snippets look similar. Extract only when the repeated logic represents the same runtime mechanic and has the same reason to change.\n\nGood extraction:\n\n- Four routes each build and send the same email payload with minor drift. Create one email service and keep each route's decision to send the email in the route.\n\nBad extraction:\n\n- Two flows both check `status === \"active\"`, but one is billing policy and the other is UI display logic. The snippets look similar, but they do not have the same reason to change.\n\n## Common Pitfalls\n\n| Pitfall | Correction |\n|---|---|\n| Refactoring the whole app | Stay inside the feature area. |\n| Renaming everything | Avoid naming churn unless a name blocks understanding. |\n| Mixing cleanup with new behavior | Make cleanup a separate pass. |\n| Only formatting code | Reduce duplicated mechanics, not just whitespace. |\n| Moving policy into services | Keep business decisions in the caller unless the existing architecture says otherwise. |\n| Creating a vague abstraction | Prefer a concrete, searchable service name tied to the mechanic. |\n\n## Final Response Format\n\nReport:\n\n- Repeated mechanics removed:\n- New or changed service modules:\n- Calling files simplified:\n- Behavior-preservation evidence:\n- Validation run:\n- Risks or follow-up:\n\nIf no safe extraction exists, say so and explain why duplication is preferable for now.\n\n## Verification Checklist\n\n- [ ] User-facing behavior stayed the same.\n- [ ] Repeated mechanics were actually reduced.\n- [ ] Calling files became simpler.\n- [ ] Domain policy stayed in the caller.\n- [ ] The diff stayed focused on the feature area.\n- [ ] Relevant tests, typechecks, linters, or builds ran.\n- [ ] Missing test coverage or residual risk was reported clearly.\n","# Code Structure Cleanup\n\n## Overview\n\nRun this after a feature works, before review. The goal is a behavior-preserving cleanup pass that reduces duplicated runtime mechanics and makes the changed area easier for humans and agents to understand.\n\nThis is not a redesign pass. Keep the scope tied to the feature and keep the diff small.\n\n## When to Use\n\nUse when:\n\n- A feature works locally but the code feels duplicated, messy, or hard to review.\n- Similar helper functions, API calls, parsing, validation, or transformations were added in multiple places.\n- Calling files contain mechanics that would be clearer behind a reusable module.\n- Future agents are likely to copy the messy pattern because it is now the easiest thing to find.\n\nDo not use when:\n\n- The feature does not work yet.\n- The requested change is a new feature, not cleanup.\n- The only issue is formatting.\n- The cleanup would require redesigning unrelated parts of the app.\n\n## Core Rule\n\nThis is a behavior-preserving cleanup pass.\n\nDo not add features, change UX, alter API contracts, change data shapes, move business decisions, or modify user-facing behavior. If preserving behavior is uncertain, stop and investigate before editing.\n\n## Service Layer Boundary\n\nA service layer is a place for reusable mechanics:\n\n- sending an email,\n- streaming an AI response,\n- creating a sandbox,\n- validating a webhook,\n- calling an external API,\n- transforming a payload,\n- parsing or normalizing data.\n\nThe route, action, component, command, or job decides **what** should happen. The service handles **how** it happens.\n\nServices should not decide permissions, pricing, workflow branching, feature flags, product policy, or user-facing business rules unless the existing architecture already puts that policy in a service.\n\n## Cleanup Process\n\nBefore editing, identify the duplication inventory:\n\n- repeated mechanic,\n- files involved,\n- proposed extraction,\n- why this extraction is smaller and clearer than leaving the duplication,\n- validation command that will prove behavior was preserved.\n\nThen:\n\n1. Inspect only the feature-touched area plus directly related shared modules.\n2. Name the repeated mechanic clearly.\n3. Extract the smallest reusable function or module that removes the repetition.\n4. Keep domain policy in the caller.\n5. Update callers without renaming unrelated concepts.\n6. Run the narrowest relevant tests, typecheck, lint, or build.\n7. Summarize exactly what got simpler.\n\n## Extraction Test\n\nDo not extract code just because two snippets look similar. Extract only when the repeated logic represents the same runtime mechanic and has the same reason to change.\n\nGood extraction:\n\n- Four routes each build and send the same email payload with minor drift. Create one email service and keep each route's decision to send the email in the route.\n\nBad extraction:\n\n- Two flows both check `status === \"active\"`, but one is billing policy and the other is UI display logic. The snippets look similar, but they do not have the same reason to change.\n\n## Common Pitfalls\n\n| Pitfall | Correction |\n|---|---|\n| Refactoring the whole app | Stay inside the feature area. |\n| Renaming everything | Avoid naming churn unless a name blocks understanding. |\n| Mixing cleanup with new behavior | Make cleanup a separate pass. |\n| Only formatting code | Reduce duplicated mechanics, not just whitespace. |\n| Moving policy into services | Keep business decisions in the caller unless the existing architecture says otherwise. |\n| Creating a vague abstraction | Prefer a concrete, searchable service name tied to the mechanic. |\n\n## Final Response Format\n\nReport:\n\n- Repeated mechanics removed:\n- New or changed service modules:\n- Calling files simplified:\n- Behavior-preservation evidence:\n- Validation run:\n- Risks or follow-up:\n\nIf no safe extraction exists, say so and explain why duplication is preferable for now.\n\n## Verification Checklist\n\n- [ ] User-facing behavior stayed the same.\n- [ ] Repeated mechanics were actually reduced.\n- [ ] Calling files became simpler.\n- [ ] Domain policy stayed in the caller.\n- [ ] The diff stayed focused on the feature area.\n- [ ] Relevant tests, typechecks, linters, or builds ran.\n- [ ] Missing test coverage or residual risk was reported clearly.\n",{"name":5,"description":7},"main","b762a116c343f012c9b23009a7f2d9af217b8b00","dotfiles\u002Fpersonal-skills\u002Fengineering\u002Fcode-structure-cleanup",1,"https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit","https:\u002F\u002Fgithub.com\u002Fdanchamorro","https:\u002F\u002Fdanchamorro.com","Python engineer by day, SaaS founder by night","2026-08-24 04:44:54",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add danchamorro\u002Fpi-agent-toolkit --skill code-structure-cleanup",{"tool":51,"command":52},"bunx","bunx skills add danchamorro\u002Fpi-agent-toolkit --skill code-structure-cleanup",{"tool":54,"command":55},"pnpm","pnpm dlx skills add danchamorro\u002Fpi-agent-toolkit --skill code-structure-cleanup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fengineering\u002Fcode-structure-cleanup\u002FSKILL.md",true,[59,65,69,75,79,83,89],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"assets\u002Fposter_html_template.html","ASSET","资产文件",5639,"https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fskills\u002Fby-category\u002Fscience-research-data-analysis\u002Flatest-release-community\u002Fpptx-posters\u002Fassets\u002Fposter_html_template.html",{"path":66,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":67,"sourceHtmlUrl":68},"assets\u002Fposter_quality_checklist.md",11171,"https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fskills\u002Fby-category\u002Fscience-research-data-analysis\u002Flatest-release-community\u002Fpptx-posters\u002Fassets\u002Fposter_quality_checklist.md",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fposter_content_guide.md","REFERENCE","参考文档",20339,"https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fskills\u002Fby-category\u002Fscience-research-data-analysis\u002Flatest-release-community\u002Fpptx-posters\u002Freferences\u002Fposter_content_guide.md",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fposter_design_principles.md",22912,"https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fskills\u002Fby-category\u002Fscience-research-data-analysis\u002Flatest-release-community\u002Fpptx-posters\u002Freferences\u002Fposter_design_principles.md",{"path":80,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fposter_layout_design.md",22289,"https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fskills\u002Fby-category\u002Fscience-research-data-analysis\u002Flatest-release-community\u002Fpptx-posters\u002Freferences\u002Fposter_layout_design.md",{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Fgenerate_schematic_ai.py","SCRIPT","脚本",31754,"https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fskills\u002Fby-category\u002Fscience-research-data-analysis\u002Flatest-release-community\u002Fpptx-posters\u002Fscripts\u002Fgenerate_schematic_ai.py",{"path":90,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Fgenerate_schematic.py",5087,"https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fskills\u002Fby-category\u002Fscience-research-data-analysis\u002Flatest-release-community\u002Fpptx-posters\u002Fscripts\u002Fgenerate_schematic.py",[94,119,137,153,179,193],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":31},"01M6DJKPTTD68WF0YJRZ4XNRVH","1password-developer","Work with 1Password developer features including SSH key management, the SSH agent, 1Password Environments for secrets injection, and the op CLI. Use this skill whenever the user mentions 1Password, op CLI, 1Password SSH agent, 1Password Environments, secret references, op run, op inject, or wants to manage SSH keys through 1Password, secure .env files with 1Password, or inject secrets at runtime. Also trigger when the user wants to stop storing plaintext secrets on disk or asks about securing developer credentials.","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fsecurity-environment\u002F1password-developer\u002FSKILL.md",[],[101,102,103,104,27,105,106,107,108,109,110,28,111,112,113,114,115,116,117,118],"1password developer","developer","1password","cli","trigger","env","runtime","references","manage","files","management","disk","secrets","credentials","ssh","injection","run","secure",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":31},"01M6DJKJ8FW4D1R7009DBJAN0Z","plan-reviewer","Use when creating, refining, or reviewing implementation plans, migration plans, refactoring proposals, feature plans, implementation trackers, or committable phase plans; especially when turning a rough plan into executable phases or checking whether a plan is concrete, testable, safe, dependency-aware, and suitable for parallel work.","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fplanning\u002Fplan-reviewer\u002FSKILL.md",[],[126,127,128,129,30,130,131,132,28,133,27,134,135,136],"plan reviewer","reviewer","plan","plans","implementation","migration","dependency","proposals","parallel","refactoring","safe",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":31},"01M6DJKC1N9DDSGDNE8AZJ4NZ0","brainstorm","Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions \"brainstorm\".","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fplanning\u002Fbrainstorm\u002FSKILL.md",[],[139,144,145,146,28,147,148,149,128,150,151,152],"get","shared","stress-test","interview","branch","decision","test","design","user",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":31},"01M6DJK7Z2833PKW7PHQR7P956","youtube-video-context","Use this skill whenever the user gives a YouTube URL and asks to summarize, digest, analyze, extract transcript\u002Fcontext, decide whether a video is worth watching, or understand what a video is about. Prefer the summarize CLI for YouTube\u002Fvideo context instead of web search. Use Codex as the default summarize backend when possible, and use the local Whisper large-v3 model for transcription fallback. Do not use this for ordinary web pages; use the installed web-access tools for webpage research.","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fmedia\u002Fyoutube-video-context\u002FSKILL.md",[],[160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,28,178],"youtube video context","youtube","context","Video","web search","access","dlp","search","cpp","model","local","as","v3","pages","yt-dlp","local whisper","do","default","decide",{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":31},"01M6DJK3RXFZP1M42D0MEG19D8","thermos","Launch both thermo-nuclear review subagents in parallel. Use for thermos, double thermo review, or combined bug\u002Fsecurity and code-quality branch audits.","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fengineering\u002Fthermos\u002FSKILL.md",[],[181,186,187,188,28,148,189,134,190,20,191,192,23],"subagents","nuclear","bug","quality","code-quality","launch","security",{"skillNo":194,"name":195,"nameZh":6,"description":196,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":197,"categories":198,"keywords":199,"publishedAt":31},"01M6DJK0D7GN2THPKEYQTXSAYM","thermo-nuclear-review","Comprehensive security and correctness audit of a branch's changes. Use for thermo nuclear, thermonuclear, or deep review requests, or branch\u002FPR diff audits focused on bugs, breaking changes, security issues, devex regressions, and feature-gate leaks.","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fengineering\u002Fthermo-nuclear-review\u002FSKILL.md",[],[23,187,200,201,202,148,192,203,204,205,30,28,206,207,208],"thermo nuclear review","audit","deep review","pr","issues","deep","diff","thermonuclear","gate"]