[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C41SGRQDFNYX5J3N1MWKFW":3,"skill-same:01M6C41SGRQDFNYX5J3N1MWKFW":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":62,"ownerHtmlUrl":63,"ownerBlogUrl":17,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M6C41SGRQDFNYX5J3N1MWKFW","setup-pre-commit","pre-commit 钩子配置与维护","Install, run or change this repo's own pre-commit hook (.githooks\u002Fpre-commit and the staged-file runner scripts\u002Fhooks\u002Fstaged.js). Use when the hook is not running, when a commit-time check needs adding or changing, or when a pre-commit failure needs explaining.","安装、运行或修改本仓库自身的 pre-commit 钩子（.githooks\u002Fpre-commit 及暂存文件运行脚本 scripts\u002Fhooks\u002Fstaged.js）。当钩子未运行、需要添加或更改提交时检查，或需要解释 pre-commit 失败原因时使用。","fderuiter\u002FQRCraftly-web","fderuiter","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F127706008?v=4","01M6C40AWP9EPQBS3EG0RF5DRD","Frederick de Ruiter","01M6C40B116HSW5KCWXDPRX69M",5,"MIT",null,"https:\u002F\u002Fgithub.com\u002Ffderuiter\u002FQRCraftly-web\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-pre-commit\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"commit","setup","setup pre commit","pre commit","running","change","when","staged","hook","scripts","time","runner","hooks","use","install","check","repo","js","pre-commit","file","run","2026-11-10 10:12:30",false,"---\nname: setup-pre-commit\ndescription: \"Install, run or change this repo's own pre-commit hook (.githooks\u002Fpre-commit and the staged-file runner scripts\u002Fhooks\u002Fstaged.js). Use when the hook is not running, when a commit-time check needs adding or changing, or when a pre-commit failure needs explaining.\"\nlicense: MIT\n---\n\n# Pre-Commit Hook\n\nQRCraftly runs its own pre-commit hook, with no hook packages ([ADR 0044](..\u002F..\u002F..\u002Fdocs\u002Fadr\u002F0044-own-git-hooks-and-staged-file-runner.md)).\n\n## Parts\n\n- `scripts\u002Fhooks\u002Finstall.js`: run by `pnpm install` (the `prepare` script). Sets `git config core.hooksPath .githooks`. Skips under `CI` and without `.git`.\n- `.githooks\u002Fpre-commit`: POSIX `sh`. Runs `node scripts\u002Fhooks\u002Fstaged.js`, then `pnpm run validate:duplication`, `pnpm run typecheck` and `pnpm test --run`.\n- `scripts\u002Fhooks\u002Fstaged.config.js`: the rule table. Each rule has a `match` test on the staged path and commands as argument arrays. A fixer has a `run` form (`--fix`, `--write`) and a read-only `check` form. `files: false` runs a whole-set check once.\n- `scripts\u002Fhooks\u002Fstaged.js`: runs the rules on the staged files. Partly staged files are checked, never rewritten. Fully staged files a fixer changed are staged again.\n\n## Steps\n\n### The hook does not run\n\n1. Run `pnpm install`, or `node scripts\u002Fhooks\u002Finstall.js` directly.\n2. Check `git config core.hooksPath` prints `.githooks`.\n3. Check `.githooks\u002Fpre-commit` is executable (`git ls-files --stage .githooks\u002Fpre-commit` shows `100755`).\n\n### Add or change a check\n\n1. Edit `scripts\u002Fhooks\u002Fstaged.config.js`. Use `node` with a script path, or the name of a package in `node_modules` whose `bin` runs with Node. Never build a shell string.\n2. Give every fixer a `check` form.\n3. Update `tests\u002Fhooks\u002Fstaged.test.ts`, which pins the table.\n4. Run `pnpm exec vitest --run tests\u002Fhooks`.\n\n### A commit failed\n\n- The summary names the command and the files. Fix them, stage them and commit again.\n- \"has unstaged changes, so it was checked, not fixed\": stage the whole file, or the fix with `git add -p`, or fix it by hand.\n- `git commit --no-verify` skips the hook. CI runs every check again.\n","# Pre-Commit Hook\n\nQRCraftly runs its own pre-commit hook, with no hook packages ([ADR 0044](..\u002F..\u002F..\u002Fdocs\u002Fadr\u002F0044-own-git-hooks-and-staged-file-runner.md)).\n\n## Parts\n\n- `scripts\u002Fhooks\u002Finstall.js`: run by `pnpm install` (the `prepare` script). Sets `git config core.hooksPath .githooks`. Skips under `CI` and without `.git`.\n- `.githooks\u002Fpre-commit`: POSIX `sh`. Runs `node scripts\u002Fhooks\u002Fstaged.js`, then `pnpm run validate:duplication`, `pnpm run typecheck` and `pnpm test --run`.\n- `scripts\u002Fhooks\u002Fstaged.config.js`: the rule table. Each rule has a `match` test on the staged path and commands as argument arrays. A fixer has a `run` form (`--fix`, `--write`) and a read-only `check` form. `files: false` runs a whole-set check once.\n- `scripts\u002Fhooks\u002Fstaged.js`: runs the rules on the staged files. Partly staged files are checked, never rewritten. Fully staged files a fixer changed are staged again.\n\n## Steps\n\n### The hook does not run\n\n1. Run `pnpm install`, or `node scripts\u002Fhooks\u002Finstall.js` directly.\n2. Check `git config core.hooksPath` prints `.githooks`.\n3. Check `.githooks\u002Fpre-commit` is executable (`git ls-files --stage .githooks\u002Fpre-commit` shows `100755`).\n\n### Add or change a check\n\n1. Edit `scripts\u002Fhooks\u002Fstaged.config.js`. Use `node` with a script path, or the name of a package in `node_modules` whose `bin` runs with Node. Never build a shell string.\n2. Give every fixer a `check` form.\n3. Update `tests\u002Fhooks\u002Fstaged.test.ts`, which pins the table.\n4. Run `pnpm exec vitest --run tests\u002Fhooks`.\n\n### A commit failed\n\n- The summary names the command and the files. Fix them, stage them and commit again.\n- \"has unstaged changes, so it was checked, not fixed\": stage the whole file, or the fix with `git add -p`, or fix it by hand.\n- `git commit --no-verify` skips the hook. CI runs every check again.\n",{"name":5,"license":16,"description":7},"main","5e9ab49e1cb8cac3dbf2019f3f975572fc7282f7",".agents\u002Fskills\u002Fsetup-pre-commit",0,"https:\u002F\u002Fgithub.com\u002Ffderuiter\u002FQRCraftly-web","https:\u002F\u002Fqrcraftly.com","https:\u002F\u002Fgithub.com\u002Ffderuiter","Clinical Data Specialist at @Bright-Research \r\n\r\nInterests in Photogrammetry, Data Analytics + Pipelines, Mathematics, and AI\u002FML.\r\n\r\nPython, Rust, TS.","2026-11-14 10:07:39",{"source":9,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add fderuiter\u002FQRCraftly-web --skill setup-pre-commit",{"tool":72,"command":73},"bunx","bunx skills add fderuiter\u002FQRCraftly-web --skill setup-pre-commit",{"tool":75,"command":76},"pnpm","pnpm dlx skills add fderuiter\u002FQRCraftly-web --skill setup-pre-commit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffderuiter\u002FQRCraftly-web\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-pre-commit\u002FSKILL.md",true,[80],{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"agents\u002Fopenai.yaml","REFERENCE","参考文档",99,"https:\u002F\u002Fgithub.com\u002Ffderuiter\u002FQRCraftly-web\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-pre-commit\u002Fagents\u002Fopenai.yaml",[87,109,137,176,197,212],{"skillNo":88,"name":89,"nameZh":90,"description":91,"descriptionZh":92,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":93,"categories":94,"keywords":99,"publishedAt":52},"01M6C40FJCT5X27N59TX7RQZRY","claude-handoff","会话交接至后台智能体","Hand the current conversation off to a fresh background agent that picks up the work immediately.","将当前会话交接给一个全新的后台智能体，由其立即接手继续工作。","https:\u002F\u002Fgithub.com\u002Ffderuiter\u002FQRCraftly-web\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fclaude-handoff\u002FSKILL.md",[95,96],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":97,"categoryName":98,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTBRVQZ06FQWD8P64214B2","会话上下文交接",[100,101,102,103,104,105,106,107,108],"claude handoff","handoff","background","hand","fresh","conversation","up","work","matt pocock",{"skillNo":110,"name":111,"nameZh":112,"description":113,"descriptionZh":114,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":115,"licenseFileUrl":17,"sourceHtmlUrl":116,"categories":117,"keywords":122,"publishedAt":52},"01M6C42TV73ZZ5TY86HHA682KG","steward","QRCraftly PR 合并管理","How to drive a QRCraftly pull request to merged. Use when opening a PR, handling CI or review events on it, updating its branch, or deciding whether to merge.","如何将 QRCraftly 的拉取请求（PR）推进至合并。适用于创建 PR、处理其上的 CI 或评审事件、更新分支，或决定是否合并。","AGPL-3.0","https:\u002F\u002Fgithub.com\u002Ffderuiter\u002FQRCraftly-web\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsteward\u002FSKILL.md",[118,119],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":120,"categoryName":121,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[111,37,123,124,125,126,127,128,129,130,44,131,132,133,134,135,136],"review","merge","pr","pull request","pull","ci","how","branch","opening a pr","drive","how to","events","it","request",{"skillNo":138,"name":139,"nameZh":140,"description":141,"descriptionZh":142,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":115,"licenseFileUrl":17,"sourceHtmlUrl":143,"categories":144,"keywords":149,"publishedAt":52},"01M6C42QWPRJ0G7BXDXE3DK50N","run-qrcraftly","QRCraftly 应用运行测试","Build, run, and drive the QRCraftly web app (Vike + React on Vite). Use when asked to start the dev server or production preview, take a screenshot of a page, click through the generator or QR code checker, download a generated code, confirm a UI change works in the real app, call a src\u002Fpackages function directly, or run unit and Playwright e2e tests in this container.","构建、运行并驱动 QRCraftly Web 应用（Vike + React on Vite）。适用于以下场景：启动开发服务器或生产预览、对页面截图、在生成器或二维码检查器中逐步点击操作、下载生成的二维码、确认 UI 变更在真实应用中生效、直接调用 src\u002Fpackages 中的函数，或在本容器中运行单元测试与 Playwright 端到端（e2e）测试。","https:\u002F\u002Fgithub.com\u002Ffderuiter\u002FQRCraftly-web\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frun-qrcraftly\u002FSKILL.md",[145,146],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":147,"categoryName":148,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C04E308NKV6CHWPE092YR2","二维码生成与定制",[51,150,151,152,153,154,155,156,157,158,44,159,160,161,162,163,37,164,165,166,167,36,168,169,170,171,172,173,174,175],"run qrcraftly","app","qr code","take a screenshot","checker","generator","unit","click","generated","tests","vite","preview","container","call","page","playwright","web","react","e2e tests","packages","code","dev","server","start","e2e","src",{"skillNo":177,"name":178,"nameZh":179,"description":180,"descriptionZh":181,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":182,"categories":183,"keywords":190,"publishedAt":52},"01M6C42NHXSZNS2E96WP7VQR4K","writing-shape","素材成文写作","Writing, exploit: shape raw material into an article, paragraph by paragraph.","写作，发挥：将原始素材逐段塑造成一篇文章。","https:\u002F\u002Fgithub.com\u002Ffderuiter\u002FQRCraftly-web\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-shape\u002FSKILL.md",[184,187],{"categoryNo":185,"categoryName":186,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",{"categoryNo":188,"categoryName":189,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CA3WT74BY17JY9YCJY42FJ","创意写作与内容编排",[191,192,193,108,194,195,196],"shape","writing shape","writing","exploit","article","material",{"skillNo":198,"name":199,"nameZh":200,"description":201,"descriptionZh":202,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":203,"categories":204,"keywords":207,"publishedAt":52},"01M6C42M1W5P95XKMR7B1HD7F3","writing-fragments","写作片段素材挖掘","Writing, explore: mine raw fragments, no structure yet.","写作，探索阶段：挖掘原始素材片段，暂不组织结构。","https:\u002F\u002Fgithub.com\u002Ffderuiter\u002FQRCraftly-web\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-fragments\u002FSKILL.md",[205,206],{"categoryNo":185,"categoryName":186,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":188,"categoryName":189,"taxonomyType":28,"taxonomyTypeDesc":29},[208,193,209,210,108,211],"writing fragments","mine","structure","explore",{"skillNo":213,"name":214,"nameZh":215,"description":216,"descriptionZh":217,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":218,"categories":219,"keywords":226,"publishedAt":52},"01M6C42J3DYGGDFFKNV8QFFSS9","writing-for-agents","智能体文档编写","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","为智能体编写文档。适用于创建或编辑技能（skill），或修改 AGENTS.md 或 CLAUDE.md。","https:\u002F\u002Fgithub.com\u002Ffderuiter\u002FQRCraftly-web\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[220,223],{"categoryNo":221,"categoryName":222,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师",{"categoryNo":224,"categoryName":225,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C5C7NGT4DWWBE15R6QGEX5","技术文档编写",[227,228,193,229,37,44,230,108],"for","writing for agents","documents","editing"]