[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79HG2MXT5BMX6PJMJSE7M70":3,"skill-same:01M79HG2MXT5BMX6PJMJSE7M70":54},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M79HG2MXT5BMX6PJMJSE7M70","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.","waveyhq\u002Fwavey-home","waveyhq","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F293528560?v=4","01M79HDNPYF39N9RKAW9GR33JR","Wavey","01M79HDNQH6HRDWAKE3B5AJV2A",1,"MIT","https:\u002F\u002Fgithub.com\u002Fwaveyhq\u002Fwavey-home\u002Fblob\u002Fmain\u002Fmatt-skills\u002Fskills\u002Fmisc\u002Fsetup-pre-commit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: setup-pre-commit\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.\n---\n\n# Setup Pre-Commit Hooks\n\n## What This Sets Up\n\n- **Husky** pre-commit hook\n- **lint-staged** running Prettier on all staged files\n- **Prettier** config (if missing)\n- **typecheck** and **test** scripts in the pre-commit hook\n\n## Steps\n\n### 1. Detect package manager\n\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.\n\n### 2. Install dependencies\n\nInstall as devDependencies:\n\n```\nhusky lint-staged prettier\n```\n\n### 3. Initialize Husky\n\n```bash\nnpx husky init\n```\n\nThis creates `.husky\u002F` dir and adds `prepare: \"husky\"` to package.json.\n\n### 4. Create `.husky\u002Fpre-commit`\n\nWrite this file (no shebang needed for Husky v9+):\n\n```\nnpx lint-staged\nnpm run typecheck\nnpm run test\n```\n\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.\n\n### 5. Create `.lintstagedrc`\n\n```json\n{\n  \"*\": \"prettier --ignore-unknown --write\"\n}\n```\n\n### 6. Create `.prettierrc` (if missing)\n\nOnly create if no Prettier config exists. Use these defaults:\n\n```json\n{\n  \"useTabs\": false,\n  \"tabWidth\": 2,\n  \"printWidth\": 80,\n  \"singleQuote\": false,\n  \"trailingComma\": \"es5\",\n  \"semi\": true,\n  \"arrowParens\": \"always\"\n}\n```\n\n### 7. Verify\n\n- [ ] `.husky\u002Fpre-commit` exists and is executable\n- [ ] `.lintstagedrc` exists\n- [ ] `prepare` script in package.json is `\"husky\"`\n- [ ] `prettier` config exists\n- [ ] Run `npx lint-staged` to verify it works\n\n### 8. Commit\n\nStage all changed\u002Fcreated files and commit with message: `Add pre-commit hooks (husky + lint-staged + prettier)`\n\nThis will run through the new pre-commit hooks: a good smoke test that everything works.\n\n## Notes\n\n- Husky v9+ doesn't need shebangs in hook files\n- `prettier --ignore-unknown` skips files Prettier can't parse (images, etc.)\n- The pre-commit runs lint-staged first (fast, staged-only), then full typecheck and tests\n","# Setup Pre-Commit Hooks\n\n## What This Sets Up\n\n- **Husky** pre-commit hook\n- **lint-staged** running Prettier on all staged files\n- **Prettier** config (if missing)\n- **typecheck** and **test** scripts in the pre-commit hook\n\n## Steps\n\n### 1. Detect package manager\n\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.\n\n### 2. Install dependencies\n\nInstall as devDependencies:\n\n```\nhusky lint-staged prettier\n```\n\n### 3. Initialize Husky\n\n```bash\nnpx husky init\n```\n\nThis creates `.husky\u002F` dir and adds `prepare: \"husky\"` to package.json.\n\n### 4. Create `.husky\u002Fpre-commit`\n\nWrite this file (no shebang needed for Husky v9+):\n\n```\nnpx lint-staged\nnpm run typecheck\nnpm run test\n```\n\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.\n\n### 5. Create `.lintstagedrc`\n\n```json\n{\n  \"*\": \"prettier --ignore-unknown --write\"\n}\n```\n\n### 6. Create `.prettierrc` (if missing)\n\nOnly create if no Prettier config exists. Use these defaults:\n\n```json\n{\n  \"useTabs\": false,\n  \"tabWidth\": 2,\n  \"printWidth\": 80,\n  \"singleQuote\": false,\n  \"trailingComma\": \"es5\",\n  \"semi\": true,\n  \"arrowParens\": \"always\"\n}\n```\n\n### 7. Verify\n\n- [ ] `.husky\u002Fpre-commit` exists and is executable\n- [ ] `.lintstagedrc` exists\n- [ ] `prepare` script in package.json is `\"husky\"`\n- [ ] `prettier` config exists\n- [ ] Run `npx lint-staged` to verify it works\n\n### 8. Commit\n\nStage all changed\u002Fcreated files and commit with message: `Add pre-commit hooks (husky + lint-staged + prettier)`\n\nThis will run through the new pre-commit hooks: a good smoke test that everything works.\n\n## Notes\n\n- Husky v9+ doesn't need shebangs in hook files\n- `prettier --ignore-unknown` skips files Prettier can't parse (images, etc.)\n- The pre-commit runs lint-staged first (fast, staged-only), then full typecheck and tests\n",{"name":5,"description":7},"main","f37688cdf1cea3fd7e7a2e635107eb068ad17222","matt-skills\u002Fskills\u002Fmisc\u002Fsetup-pre-commit",0,"https:\u002F\u002Fgithub.com\u002Fwaveyhq\u002Fwavey-home","https:\u002F\u002Fheywavey.tech","https:\u002F\u002Fgithub.com\u002Fwaveyhq","heywavey.tech","WiFi Sensing and RF Privacy Auditing.","2026-09-04 00:21:44",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add waveyhq\u002Fwavey-home --skill setup-pre-commit",{"tool":40,"command":41},"bunx","bunx skills add waveyhq\u002Fwavey-home --skill setup-pre-commit",{"tool":43,"command":44},"pnpm","pnpm dlx skills add waveyhq\u002Fwavey-home --skill setup-pre-commit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwaveyhq\u002Fwavey-home\u002Fblob\u002Fmain\u002Fmatt-skills\u002Fskills\u002Fmisc\u002Fsetup-pre-commit\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"agents\u002Fopenai.yaml","REFERENCE","参考文档",99,"https:\u002F\u002Fgithub.com\u002Fwaveyhq\u002Fwavey-home\u002Fblob\u002Fmain\u002Fmatt-skills\u002Fskills\u002Fmisc\u002Fsetup-pre-commit\u002Fagents\u002Fopenai.yaml",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M79HGWQ6CJAEB8SV8977NS4V","wavey-overview","Overview of Wavey open-source WiFi CSI sensing — occupancy, motion, and presence detection on ESP32 without cameras or wearables.","https:\u002F\u002Fgithub.com\u002Fwaveyhq\u002Fwavey-home\u002Fblob\u002Fmain\u002Fstatic\u002F.well-known\u002Fagent-skills\u002Fwavey-overview\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M79HGV96Q7QPR05W6PQV8ZQ8","getting-started","Guide agents to Wavey hardware setup, firmware, console access, and first CSI sensing deployment steps.","https:\u002F\u002Fgithub.com\u002Fwaveyhq\u002Fwavey-home\u002Fblob\u002Fmain\u002Fstatic\u002F.well-known\u002Fagent-skills\u002Fgetting-started\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79HGRGFFZXZWGNFA6ZZQS14","api-discovery","Discover Wavey public APIs, status endpoints, and machine-readable catalogs for automated integration.","https:\u002F\u002Fgithub.com\u002Fwaveyhq\u002Fwavey-home\u002Fblob\u002Fmain\u002Fstatic\u002F.well-known\u002Fagent-skills\u002Fapi-discovery\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M79HGPHN08X1CHGPKXGBBEHM","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fwaveyhq\u002Fwavey-home\u002Fblob\u002Fmain\u002Fmatt-skills\u002Fskills\u002Fproductivity\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M79HGN93FXH5X51410VZH7JT","wait-what","Stop. That last message did not land: re-pitch it.","https:\u002F\u002Fgithub.com\u002Fwaveyhq\u002Fwavey-home\u002Fblob\u002Fmain\u002Fmatt-skills\u002Fskills\u002Fproductivity\u002Fwait-what\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M79HGJCH94KQKE6CZ86S8ZYW","to-questionnaire","Turn a decision you can't fully answer into a questionnaire for someone else to fill in.","https:\u002F\u002Fgithub.com\u002Fwaveyhq\u002Fwavey-home\u002Fblob\u002Fmain\u002Fmatt-skills\u002Fskills\u002Fproductivity\u002Fto-questionnaire\u002FSKILL.md",[],[]]