[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74FDNFGP62V88RN3S2YSQK6":3,"skill-same:01M74FDNFGP62V88RN3S2YSQK6":89},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M74FDNFGP62V88RN3S2YSQK6","module-attribution-extractor",null,"Runs the deterministic module-attribution extractor over a prompt and surfaces MD-XXXX drafts through the Decision Pause Contract, as the first half of the Attribution Gate in feature-development planning. Use when planning starts, when a pasted ticket needs a first pass before the inferencer, or when a prompt names a module.","Eliyce\u002Fpaqad-ai","Eliyce","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F173689792?v=4","01M74F7NHRXY2FW9KM93WHKHST","01M74F7NJDEWZ2XM9CQV70T3JK",8,"MIT","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fbase\u002Fskills\u002Fmodule-attribution-extractor\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: module-attribution-extractor\ndescription: 'Runs the deterministic module-attribution extractor over a prompt and surfaces MD-XXXX drafts through the Decision Pause Contract, as the first half of the Attribution Gate in feature-development planning. Use when planning starts, when a pasted ticket needs a first pass before the inferencer, or when a prompt names a module.'\nmetadata:\n  model_tier: fast\n  cacheable: 'false'\n  output_format: markdown\n  paqad-meta: skill.meta.yaml\n---\n\n## What It Does\n\nApplies the framework-owned pattern set (`Module:` \u002F `Component:` \u002F `Area:` \u002F `Subsystem:` ticket headers; `module: \u003Cslug>`; `new module \u003CName>`; `in the \u003Cname> module`) to the prompt. Emits one candidate per distinct slug, classified as `exact-match`, `near-collision` (Levenshtein ≤ 2 against an existing slug), or `unknown`. Multiple modules in a single prompt produce one MD-XXXX draft each (spec AC #9).\n\n## Use This When\n\n- Running the Attribution Gate at the start of `feature-development.planning`.\n- A user pastes a ticket and you need a deterministic first pass before invoking the inferencer.\n- A user prompt explicitly names a module (`module: billing`, `Subsystem: Reporting`).\n\n## Inputs\n\n- `prompt`: required. The user-supplied text (typically a ticket body or feature request).\n- `project_root`: optional. Used to resolve `module-map.yml` for collision detection. Defaults to `cwd`.\n- The pattern set itself is closed and lives in `references\u002Fpattern-set.md`.\n\n## Procedure\n\n1. Resolve the project root (default `cwd`).\n2. Invoke the TS engine via the bundled wrapper:\n   ```\n   bash scripts\u002Fextract.sh \u003Cprompt-file> [project-root]\n   ```\n   The wrapper shells out to `paqad-ai module-decisions extract --project-root \u003Croot> --prompt-file \u003Ctmp>`. Prefer `--prompt-file` (the wrapper always uses it) so multiline ticket text survives the shell.\n3. Parse the emitted JSON. Each entry in `candidates` has: `slug`, `display_name`, `kind`, `collision_with`, `pattern`, `excerpt`.\n4. If `needs_decision` is empty, the extractor either found nothing or every hit was an `exact-match`: exit with the literal status `extractor: no-decision-needed` so the caller can fall through to the inferencer (the empty case) or continue planning (the exact-match case).\n5. Otherwise, for each candidate in `needs_decision`, surface a Decision Pause packet via `AskUserQuestion` (or the active adapter's Decision Pause Contract entry point).\n\n## Decision Pause Packet Shape\n\nFor each candidate that needs a decision, the packet must include:\n\n- **Question**: the user-visible question. For `unknown`: `Confirm new module \"\u003Cdisplay_name>\" (slug: \u003Cslug>)?`. For `near-collision`: `\"\u003Cslug>\" is suspiciously close to existing module \"\u003Ccollision_with>\"; confirm which one this is.`\n- **Header**: short tag, e.g. `New module`, `Slug collision`.\n- **Options** (2–4):\n  - **Accept new module `\u003Cslug>`**: proceed to atomic apply via `src\u002Fmodule-decisions\u002Fapply.ts`.\n  - For near-collision: **Use existing `\u003Ccollision_with>`**, resolve to the existing slug; mark the draft `superseded`.\n  - **Rename**: collect a new slug from the user; loop back through `extract`.\n  - **Reject**: mark the draft `rejected`; no module-map mutation.\n\nThe packet's selected option drives the state transition. Only an explicit `Accept` response promotes the MD-XXXX from `draft` → `proposed` → `accepted`. No silent acceptance.\n\n## Output Contract\n\n- Zero or more MD-XXXX YAML files written under `.paqad\u002Fdecisions\u002Fmodule-decisions\u002F\u003Cid>.yml` (one per candidate that needs a decision).\n- A `Workflow Status` block listing what was extracted and what is awaiting the user.\n- On accepted decisions only: `apply.ts` performs the snapshot → temp-write → rename → record update → events append. **Do not write `module-map.yml` from this skill directly.**\n- When the extractor returns no candidates, emit the literal status `extractor: no-decision-needed` so the caller can fall through to `module-attribution-inferencer`.\n\n## Escalate \u002F Stop Conditions\n\n- Stop and surface the packet if `kind === 'near-collision'`: never auto-resolve to either side.\n- Stop if the same slug appears in two different patterns with conflicting display names: ask which name to use.\n- Refuse to write any MD-XXXX file if the project has no `.paqad\u002F` directory (project is not onboarded).\n\n## Scripts\n\nDeterministic plumbing: do **not** re-derive these in the LLM layer.\n\n- `scripts\u002Fextract.sh \u003Cprompt-file> [project-root]`: invoke the extractor; prints the JSON report.\n- `scripts\u002Fneeds-decision.sh [report.json|-]`: exit 0 if a Decision Pause packet is needed, exit 1 otherwise (with `extractor: no-decision-needed` on stderr).\n- `scripts\u002Ffilter-by-kind.sh \u003Cexact-match|near-collision|unknown> [report.json|-]`: filter `candidates` by kind; prints a JSON array.\n\n## Assets\n\n- `assets\u002Ftemplates\u002Fpacket-unknown.md`: Decision Pause packet template for an `unknown` candidate.\n- `assets\u002Ftemplates\u002Fpacket-collision.md`: Decision Pause packet template for a `near-collision` candidate.\n\n## Resources\n\n- `references\u002Fpattern-set.md`: bundled pattern reference.\n- `runtime\u002Fbase\u002Fskills\u002Fmodule-attribution-extractor\u002Fagents\u002Fopenai.yaml`: agent interface metadata.\n- `src\u002Fmodule-decisions\u002Fextractor.ts`: pattern set + classification.\n- `src\u002Fmodule-decisions\u002Fschema.ts`: MD-XXXX state machine.\n- `src\u002Fmodule-decisions\u002Fapply.ts`: atomic apply path (only writer of `module-map.yml`).\n- the Decision Pause Contract (in the framework bootstrap): packet semantics.\n","## What It Does\n\nApplies the framework-owned pattern set (`Module:` \u002F `Component:` \u002F `Area:` \u002F `Subsystem:` ticket headers; `module: \u003Cslug>`; `new module \u003CName>`; `in the \u003Cname> module`) to the prompt. Emits one candidate per distinct slug, classified as `exact-match`, `near-collision` (Levenshtein ≤ 2 against an existing slug), or `unknown`. Multiple modules in a single prompt produce one MD-XXXX draft each (spec AC #9).\n\n## Use This When\n\n- Running the Attribution Gate at the start of `feature-development.planning`.\n- A user pastes a ticket and you need a deterministic first pass before invoking the inferencer.\n- A user prompt explicitly names a module (`module: billing`, `Subsystem: Reporting`).\n\n## Inputs\n\n- `prompt`: required. The user-supplied text (typically a ticket body or feature request).\n- `project_root`: optional. Used to resolve `module-map.yml` for collision detection. Defaults to `cwd`.\n- The pattern set itself is closed and lives in `references\u002Fpattern-set.md`.\n\n## Procedure\n\n1. Resolve the project root (default `cwd`).\n2. Invoke the TS engine via the bundled wrapper:\n   ```\n   bash scripts\u002Fextract.sh \u003Cprompt-file> [project-root]\n   ```\n   The wrapper shells out to `paqad-ai module-decisions extract --project-root \u003Croot> --prompt-file \u003Ctmp>`. Prefer `--prompt-file` (the wrapper always uses it) so multiline ticket text survives the shell.\n3. Parse the emitted JSON. Each entry in `candidates` has: `slug`, `display_name`, `kind`, `collision_with`, `pattern`, `excerpt`.\n4. If `needs_decision` is empty, the extractor either found nothing or every hit was an `exact-match`: exit with the literal status `extractor: no-decision-needed` so the caller can fall through to the inferencer (the empty case) or continue planning (the exact-match case).\n5. Otherwise, for each candidate in `needs_decision`, surface a Decision Pause packet via `AskUserQuestion` (or the active adapter's Decision Pause Contract entry point).\n\n## Decision Pause Packet Shape\n\nFor each candidate that needs a decision, the packet must include:\n\n- **Question**: the user-visible question. For `unknown`: `Confirm new module \"\u003Cdisplay_name>\" (slug: \u003Cslug>)?`. For `near-collision`: `\"\u003Cslug>\" is suspiciously close to existing module \"\u003Ccollision_with>\"; confirm which one this is.`\n- **Header**: short tag, e.g. `New module`, `Slug collision`.\n- **Options** (2–4):\n  - **Accept new module `\u003Cslug>`**: proceed to atomic apply via `src\u002Fmodule-decisions\u002Fapply.ts`.\n  - For near-collision: **Use existing `\u003Ccollision_with>`**, resolve to the existing slug; mark the draft `superseded`.\n  - **Rename**: collect a new slug from the user; loop back through `extract`.\n  - **Reject**: mark the draft `rejected`; no module-map mutation.\n\nThe packet's selected option drives the state transition. Only an explicit `Accept` response promotes the MD-XXXX from `draft` → `proposed` → `accepted`. No silent acceptance.\n\n## Output Contract\n\n- Zero or more MD-XXXX YAML files written under `.paqad\u002Fdecisions\u002Fmodule-decisions\u002F\u003Cid>.yml` (one per candidate that needs a decision).\n- A `Workflow Status` block listing what was extracted and what is awaiting the user.\n- On accepted decisions only: `apply.ts` performs the snapshot → temp-write → rename → record update → events append. **Do not write `module-map.yml` from this skill directly.**\n- When the extractor returns no candidates, emit the literal status `extractor: no-decision-needed` so the caller can fall through to `module-attribution-inferencer`.\n\n## Escalate \u002F Stop Conditions\n\n- Stop and surface the packet if `kind === 'near-collision'`: never auto-resolve to either side.\n- Stop if the same slug appears in two different patterns with conflicting display names: ask which name to use.\n- Refuse to write any MD-XXXX file if the project has no `.paqad\u002F` directory (project is not onboarded).\n\n## Scripts\n\nDeterministic plumbing: do **not** re-derive these in the LLM layer.\n\n- `scripts\u002Fextract.sh \u003Cprompt-file> [project-root]`: invoke the extractor; prints the JSON report.\n- `scripts\u002Fneeds-decision.sh [report.json|-]`: exit 0 if a Decision Pause packet is needed, exit 1 otherwise (with `extractor: no-decision-needed` on stderr).\n- `scripts\u002Ffilter-by-kind.sh \u003Cexact-match|near-collision|unknown> [report.json|-]`: filter `candidates` by kind; prints a JSON array.\n\n## Assets\n\n- `assets\u002Ftemplates\u002Fpacket-unknown.md`: Decision Pause packet template for an `unknown` candidate.\n- `assets\u002Ftemplates\u002Fpacket-collision.md`: Decision Pause packet template for a `near-collision` candidate.\n\n## Resources\n\n- `references\u002Fpattern-set.md`: bundled pattern reference.\n- `runtime\u002Fbase\u002Fskills\u002Fmodule-attribution-extractor\u002Fagents\u002Fopenai.yaml`: agent interface metadata.\n- `src\u002Fmodule-decisions\u002Fextractor.ts`: pattern set + classification.\n- `src\u002Fmodule-decisions\u002Fschema.ts`: MD-XXXX state machine.\n- `src\u002Fmodule-decisions\u002Fapply.ts`: atomic apply path (only writer of `module-map.yml`).\n- the Decision Pause Contract (in the framework bootstrap): packet semantics.\n",{"name":5,"metadata":23,"description":7},{"cacheable":24,"model_tier":25,"paqad-meta":26,"output_format":27},"false","fast","skill.meta.yaml","markdown","main","793418e848ae0410573905284b68adcab385230e","runtime\u002Fbase\u002Fskills\u002Fmodule-attribution-extractor",0,"https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai","https:\u002F\u002Fpaqad.ai","https:\u002F\u002Fgithub.com\u002FEliyce","https:\u002F\u002Feliyce.com\u002F","AI delivery you can review. Dutch software company building software and AI agents. Makers of Paqad, the open-source AI delivery framework.","2026-11-13 04:41:45",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add Eliyce\u002Fpaqad-ai --skill module-attribution-extractor",{"tool":44,"command":45},"bunx","bunx skills add Eliyce\u002Fpaqad-ai --skill module-attribution-extractor",{"tool":47,"command":48},"pnpm","pnpm dlx skills add Eliyce\u002Fpaqad-ai --skill module-attribution-extractor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fbase\u002Fskills\u002Fmodule-attribution-extractor\u002FSKILL.md",true,[52,58,64,68,72,78,82,86],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"agents\u002Fopenai.yaml","REFERENCE","参考文档",291,"https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fbase\u002Fskills\u002Fmodule-attribution-extractor\u002Fagents\u002Fopenai.yaml",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"assets\u002Ftemplates\u002Fpacket-collision.md","ASSET","资产文件",720,"https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fbase\u002Fskills\u002Fmodule-attribution-extractor\u002Fassets\u002Ftemplates\u002Fpacket-collision.md",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"assets\u002Ftemplates\u002Fpacket-unknown.md",600,"https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fbase\u002Fskills\u002Fmodule-attribution-extractor\u002Fassets\u002Ftemplates\u002Fpacket-unknown.md",{"path":69,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fpattern-set.md",1740,"https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fbase\u002Fskills\u002Fmodule-attribution-extractor\u002Freferences\u002Fpattern-set.md",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Fextract.sh","SCRIPT","脚本",719,"https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fbase\u002Fskills\u002Fmodule-attribution-extractor\u002Fscripts\u002Fextract.sh",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Ffilter-by-kind.sh",1292,"https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fbase\u002Fskills\u002Fmodule-attribution-extractor\u002Fscripts\u002Ffilter-by-kind.sh",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Fneeds-decision.sh",1257,"https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fbase\u002Fskills\u002Fmodule-attribution-extractor\u002Fscripts\u002Fneeds-decision.sh",{"path":26,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":87,"sourceHtmlUrl":88},406,"https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fbase\u002Fskills\u002Fmodule-attribution-extractor\u002Fskill.meta.yaml",[90,97,104,109,116,123],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M74FSCKQP6TACC8X8AZ19F4V","sample-skill","Sample bundled skill fixture","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Ftests\u002Funit\u002Fadapters\u002Ffixtures\u002Fsample-skill\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":18},"01M74FSAQ6C28V4G3322XGMARB","processing-invoices","Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fauthoring\u002Fnpm-project\u002Fskill\u002FSKILL.md",[],[],{"skillNo":105,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":18},"01M74FS914YQKWQNHC58MEG1N8","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fauthoring\u002Flaravel-project\u002Fskill\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":18},"01M74FS356J9QP10A362QRVCPZ","understand-idea","Chat and Claude Code: Step 1 of the discover journey: clarifies the goal, who benefits, success and constraints into the idea block. Use when the journey directs it to step 1, not directly.","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fclaude-plugin\u002Fskills\u002Funderstand-idea\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":18},"01M74FRSWEMB7KNVW0TP8P3JKB","size-work","Chat and Claude Code: Suggest a size for a ticket from comparable finished work, as a labelled suggestion the team still owns. Use it when someone asks \"how big is this?\", \"roughly how much work is ABC-12?\", or wants a backlog item sized. It finds the team's sizing scale at first use, picks two to five of the closest finished tickets with links, and gives a size or range with the drivers behind it and a confidence of low, medium or high, lowered and explained when the area's documents are template text. Every result is labelled a suggested size, never a date or a commitment. It writes nothing into the size field unless the user says \"set it\", and it refuses to overwrite an existing size unless the user asks to replace it. Produces the sizing block of the record.","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fclaude-plugin\u002Fskills\u002Fsize-work\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":18},"01M74FR9A9VPHW1NFAFYZMXE2H","refine-ticket","Chat and Claude Code: Improve one or more existing tracker tickets without losing the author's intent. Use it when someone wants a ticket read, diagnosed and tidied up (\"this ticket is vague\", \"fix up ABC-12\", \"split this, it's too big\"). It reads each ticket in full and snapshots it with its last-updated time, says what is wrong with evidence, and proposes a field-by-field before and after change set limited to summary, description, labels, parent, links and new child tickets on a split. It writes nothing until an explicit \"apply it\" bound to that exact change set, re-checks the ticket for conflicting edits just before writing, never replaces rich descriptions with plain text, never deletes or closes a ticket, and reads each ticket back after applying. Produces the existing and changes blocks of the record.","https:\u002F\u002Fgithub.com\u002FEliyce\u002Fpaqad-ai\u002Fblob\u002Fmain\u002Fruntime\u002Fclaude-plugin\u002Fskills\u002Frefine-ticket\u002FSKILL.md",[],[]]