[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ASVTB3HXGFRYXY0857QJTM":3,"skill-same:01M7ASVTB3HXGFRYXY0857QJTM":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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7ASVTB3HXGFRYXY0857QJTM","setup-pre-commit",null,"Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting\u002Ftypechecking\u002Ftesting.","Diffusity\u002FrepoSphere_java_backend","Diffusity","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F119410541?v=4","01M7ASS8Z2BQV85KY5WA3C6G5E","Parth Maharaja","01M7ASS8ZRRXZNDAY7F88NBB4N",0,"MIT","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-pre-commit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\r\nname: setup-pre-commit\r\ndescription: Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting\u002Ftypechecking\u002Ftesting.\r\n---\r\n\r\n# Setup Pre-Commit Hooks\r\n\r\n## What This Sets Up\r\n\r\n- **Husky** pre-commit hook\r\n- **lint-staged** running Prettier on all staged files\r\n- **Prettier** config (if missing)\r\n- **typecheck** and **test** scripts in the pre-commit hook\r\n\r\n## Steps\r\n\r\n### 1. Detect package manager\r\n\r\nCheck for `package-lock.json` (npm), `pnpm-lock.yaml` (pnpm), `yarn.lock` (yarn), `bun.lockb` (bun). Use whichever is present. Default to npm if unclear.\r\n\r\n### 2. Install dependencies\r\n\r\nInstall as devDependencies:\r\n\r\n```\r\nhusky lint-staged prettier\r\n```\r\n\r\n### 3. Initialize Husky\r\n\r\n```bash\r\nnpx husky init\r\n```\r\n\r\nThis creates `.husky\u002F` dir and adds `prepare: \"husky\"` to package.json.\r\n\r\n### 4. Create `.husky\u002Fpre-commit`\r\n\r\nWrite this file (no shebang needed for Husky v9+):\r\n\r\n```\r\nnpx lint-staged\r\nnpm run typecheck\r\nnpm run test\r\n```\r\n\r\n**Adapt**: Replace `npm` with detected package manager. If repo has no `typecheck` or `test` script in package.json, omit those lines and tell the user.\r\n\r\n### 5. Create `.lintstagedrc`\r\n\r\n```json\r\n{\r\n  \"*\": \"prettier --ignore-unknown --write\"\r\n}\r\n```\r\n\r\n### 6. Create `.prettierrc` (if missing)\r\n\r\nOnly create if no Prettier config exists. Use these defaults:\r\n\r\n```json\r\n{\r\n  \"useTabs\": false,\r\n  \"tabWidth\": 2,\r\n  \"printWidth\": 80,\r\n  \"singleQuote\": false,\r\n  \"trailingComma\": \"es5\",\r\n  \"semi\": true,\r\n  \"arrowParens\": \"always\"\r\n}\r\n```\r\n\r\n### 7. Verify\r\n\r\n- [ ] `.husky\u002Fpre-commit` exists and is executable\r\n- [ ] `.lintstagedrc` exists\r\n- [ ] `prepare` script in package.json is `\"husky\"`\r\n- [ ] `prettier` config exists\r\n- [ ] Run `npx lint-staged` to verify it works\r\n\r\n### 8. Commit\r\n\r\nStage all changed\u002Fcreated files and commit with message: `Add pre-commit hooks (husky + lint-staged + prettier)`\r\n\r\nThis will run through the new pre-commit hooks — a good smoke test that everything works.\r\n\r\n## Notes\r\n\r\n- Husky v9+ doesn't need shebangs in hook files\r\n- `prettier --ignore-unknown` skips files Prettier can't parse (images, etc.)\r\n- The pre-commit runs lint-staged first (fast, staged-only), then full typecheck and tests\r\n","# Setup Pre-Commit Hooks\r\n\r\n## What This Sets Up\r\n\r\n- **Husky** pre-commit hook\r\n- **lint-staged** running Prettier on all staged files\r\n- **Prettier** config (if missing)\r\n- **typecheck** and **test** scripts in the pre-commit hook\r\n\r\n## Steps\r\n\r\n### 1. Detect package manager\r\n\r\nCheck for `package-lock.json` (npm), `pnpm-lock.yaml` (pnpm), `yarn.lock` (yarn), `bun.lockb` (bun). Use whichever is present. Default to npm if unclear.\r\n\r\n### 2. Install dependencies\r\n\r\nInstall as devDependencies:\r\n\r\n```\r\nhusky lint-staged prettier\r\n```\r\n\r\n### 3. Initialize Husky\r\n\r\n```bash\r\nnpx husky init\r\n```\r\n\r\nThis creates `.husky\u002F` dir and adds `prepare: \"husky\"` to package.json.\r\n\r\n### 4. Create `.husky\u002Fpre-commit`\r\n\r\nWrite this file (no shebang needed for Husky v9+):\r\n\r\n```\r\nnpx lint-staged\r\nnpm run typecheck\r\nnpm run test\r\n```\r\n\r\n**Adapt**: Replace `npm` with detected package manager. If repo has no `typecheck` or `test` script in package.json, omit those lines and tell the user.\r\n\r\n### 5. Create `.lintstagedrc`\r\n\r\n```json\r\n{\r\n  \"*\": \"prettier --ignore-unknown --write\"\r\n}\r\n```\r\n\r\n### 6. Create `.prettierrc` (if missing)\r\n\r\nOnly create if no Prettier config exists. Use these defaults:\r\n\r\n```json\r\n{\r\n  \"useTabs\": false,\r\n  \"tabWidth\": 2,\r\n  \"printWidth\": 80,\r\n  \"singleQuote\": false,\r\n  \"trailingComma\": \"es5\",\r\n  \"semi\": true,\r\n  \"arrowParens\": \"always\"\r\n}\r\n```\r\n\r\n### 7. Verify\r\n\r\n- [ ] `.husky\u002Fpre-commit` exists and is executable\r\n- [ ] `.lintstagedrc` exists\r\n- [ ] `prepare` script in package.json is `\"husky\"`\r\n- [ ] `prettier` config exists\r\n- [ ] Run `npx lint-staged` to verify it works\r\n\r\n### 8. Commit\r\n\r\nStage all changed\u002Fcreated files and commit with message: `Add pre-commit hooks (husky + lint-staged + prettier)`\r\n\r\nThis will run through the new pre-commit hooks — a good smoke test that everything works.\r\n\r\n## Notes\r\n\r\n- Husky v9+ doesn't need shebangs in hook files\r\n- `prettier --ignore-unknown` skips files Prettier can't parse (images, etc.)\r\n- The pre-commit runs lint-staged first (fast, staged-only), then full typecheck and tests\r\n",{"name":5,"description":7},"main","7623da0074c7f2756326dd104a40d1b0861a7edf",".agents\u002Fskills\u002Fsetup-pre-commit","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend","https:\u002F\u002Fgithub.com\u002FDiffusity","Member @gdg-da | @ossdaiict ","2026-08-18 17:58:04",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Diffusity\u002FrepoSphere_java_backend --skill setup-pre-commit",{"tool":37,"command":38},"bunx","bunx skills add Diffusity\u002FrepoSphere_java_backend --skill setup-pre-commit",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Diffusity\u002FrepoSphere_java_backend --skill setup-pre-commit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-pre-commit\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",102,"https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-pre-commit\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},"01M7ASXG7ZJ4SX5JDCYSQFWBNG","writing-shape","Writing, exploit — shape raw material into an article, paragraph by paragraph.","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-shape\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},"01M7ASXCE1RQCW502FDAJZ7J3X","writing-great-skills","Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-great-skills\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},"01M7ASXA5NMS4ZEBCTWX29RNZ8","writing-fragments","Writing, explore — mine raw fragments, no structure yet.","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-fragments\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},"01M7ASX7AM9T3DAJ6A0A6GYTFZ","writing-beats","Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-beats\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},"01M7ASX2F6FY5EW9SHSV5X2DHC","wizard","Generate an interactive bash wizard that walks a human through a manual procedure — third-party setup, a one-off migration, an A→B state transition — opening URLs, capturing values, confirming each step, and writing .env files and GitHub Actions secrets.","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwizard\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},"01M7ASWY2DYFMW5PK6X6YWCC90","wayfinder","Plan a huge chunk of work — more than one agent session can hold — as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[]]