[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74G6EWHC1SYJZPS35ZGXZ3V":3,"skill-same:01M74G6EWHC1SYJZPS35ZGXZ3V":50},{"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":6,"updatedAt":29,"install":30,"resources":43},"01M74G6EWHC1SYJZPS35ZGXZ3V","scaffold-component",null,"Generate a component\u002Fservice\u002Fmodule in the CURRENT repo per its conventions — native generator first, infra files from their owning skills, no freehand boilerplate.","MohammadBafkar\u002Fpolymath","MohammadBafkar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34940462?v=4","01M74G540TQFZWK6KVAPKFVGNR","Mohammad Bafkar","01M74G541HG19QP9V5DQCJVKYE",0,"MIT","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-author\u002Fskills\u002Fscaffold-component\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: scaffold-component\ndescription: Generate a component\u002Fservice\u002Fmodule in the CURRENT repo per its conventions — native generator first, infra files from their owning skills, no freehand boilerplate.\n---\n\n# scaffold-component\n\n> A new component should look like the team wrote it: the project's\n> conventions decide the shape, the stack's own generator produces the\n> boilerplate, and infra files come from the skills that own those\n> formats. The model's job is composition, not invention.\n\n**Mode:** analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked `[TBD]` or `[VERIFY]`, never filled in.\n\n## When to use\n\n- \"Add a new service\u002Fmodule\u002Fpackage\u002Fhandler like the existing ones.\"\n- A repo with `.polymath\u002F` localization needs a new component that must\n  match house conventions.\n\nNot for authoring Polymath plugins\u002Fskills (`new-plugin`, `new-skill`,\n`new-pack`) — this scaffolds in the *user's* project.\n\n## Inputs\n\n- Component name and kind (service, library, handler, …) — required; ask if absent.\n- Where it lives, if the repo has more than one plausible location.\n\n## Procedure\n\n1. **Load the conventions (convention-driven, not vibes).** Read the\n   project context (`polymath-core:project-context`): `stack`, then the\n   `conventions_docs` roles that govern shape — `knowledge-base`,\n   `backend-stack`\u002F`frontend-stack`, `shared-libraries`, `deployment`.\n   Mirror an existing sibling component's layout when one exists; name\n   per the conventions (treat `[VERIFY: …]` content as unconfirmed).\n   No `.polymath\u002F`? Say so and mirror the closest sibling instead.\n2. **Tool-spec handoff first.** If the stack has a native generator\n   (`dotnet new`, `npm create` \u002F `yarn create`, `cargo new`,\n   `django-admin startapp`, `mvn archetype:generate`, a repo-local\n   generator named in the conventions docs, …), compose the exact\n   command + flags — the spec — and show it with the paths it will\n   write. **Run it only after the user confirms**: generators write many\n   files and many download packages. Use a dry-run flag first when the\n   tool has one. Hand-write only what no tool generates; never\n   reimplement a generator's output by hand.\n3. **Canonical infra bodies.** For infra files the generator doesn't\n   produce, delegate to the skill that owns the format instead of\n   freehanding: Dockerfile → `polymath-devops:dockerize`, CI workflow →\n   `polymath-devops:ci-pipeline-github`, K8s manifests →\n   `polymath-kubernetes:write-manifest` — each already consumes the\n   project's `deployment` conventions.\n4. **Wire the test scaffold** per `stack.testing` (framework, layout\n   mirroring siblings) with one real starter test that runs green through\n   the repo's test command — not an empty file.\n5. **Create, never overwrite; register additively.** New files must not\n   already exist — if a target path exists, stop and show the conflict.\n   Registration (solution file, workspace globs, the knowledge-base\n   component table) edits existing files: make those edits additive only\n   and show each one as a diff.\n6. **Close the loop.** If the component adds tools or env vars, update\n   `setup` in `.polymath\u002Fproject.yaml`, update the matching tools \u002F env-var\n   lines in the root `POLYMATH.md` (show the diff), and regenerate the\n   onboarding checklist: `python3 \"${POLYMATH_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}\u002Fbin\u002Fgen-prerequisites.py\"\n   --out docs\u002Fonboarding\u002Fprerequisites.md`. Run the repo's build\u002Ftest once\n   to prove the component compiles and its starter test passes.\n\n## Output\n\n```text\nscaffold-component: \u003Cname> (\u003Ckind>)\n\nGenerator:   \u003Cexact command run>   (confirmed by user; dry-run first: yes\u002Fno)\nCreated:     \u003Cpath>, \u003Cpath>, …\nRegistered:  \u003Cfile> (+\u003Cn> lines, additive)\nInfra from:  polymath-devops:dockerize, polymath-devops:ci-pipeline-github\nConventions: \u003Croles applied>; [VERIFY] items honored: \u003Cn>\nVerified:    \u003Cbuild\u002Ftest command> → \u003Cpass\u002Ffail>\nFollow-ups:  \u003Copen items>\n```\n\n## Quality bar\n\n- An existing teammate couldn't tell this component from a hand-built\n  one — naming, layout, and registration all match the conventions.\n- Boilerplate came from the native generator; infra bodies from their\n  owning skills; nothing freehanded that had a canonical source.\n- No generator ran without confirmation; nothing overwritten; every\n  created path listed in the summary.\n- The build\u002Ftest run after scaffolding is reported, pass or fail.\n","# scaffold-component\n\n> A new component should look like the team wrote it: the project's\n> conventions decide the shape, the stack's own generator produces the\n> boilerplate, and infra files come from the skills that own those\n> formats. The model's job is composition, not invention.\n\n**Mode:** analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked `[TBD]` or `[VERIFY]`, never filled in.\n\n## When to use\n\n- \"Add a new service\u002Fmodule\u002Fpackage\u002Fhandler like the existing ones.\"\n- A repo with `.polymath\u002F` localization needs a new component that must\n  match house conventions.\n\nNot for authoring Polymath plugins\u002Fskills (`new-plugin`, `new-skill`,\n`new-pack`) — this scaffolds in the *user's* project.\n\n## Inputs\n\n- Component name and kind (service, library, handler, …) — required; ask if absent.\n- Where it lives, if the repo has more than one plausible location.\n\n## Procedure\n\n1. **Load the conventions (convention-driven, not vibes).** Read the\n   project context (`polymath-core:project-context`): `stack`, then the\n   `conventions_docs` roles that govern shape — `knowledge-base`,\n   `backend-stack`\u002F`frontend-stack`, `shared-libraries`, `deployment`.\n   Mirror an existing sibling component's layout when one exists; name\n   per the conventions (treat `[VERIFY: …]` content as unconfirmed).\n   No `.polymath\u002F`? Say so and mirror the closest sibling instead.\n2. **Tool-spec handoff first.** If the stack has a native generator\n   (`dotnet new`, `npm create` \u002F `yarn create`, `cargo new`,\n   `django-admin startapp`, `mvn archetype:generate`, a repo-local\n   generator named in the conventions docs, …), compose the exact\n   command + flags — the spec — and show it with the paths it will\n   write. **Run it only after the user confirms**: generators write many\n   files and many download packages. Use a dry-run flag first when the\n   tool has one. Hand-write only what no tool generates; never\n   reimplement a generator's output by hand.\n3. **Canonical infra bodies.** For infra files the generator doesn't\n   produce, delegate to the skill that owns the format instead of\n   freehanding: Dockerfile → `polymath-devops:dockerize`, CI workflow →\n   `polymath-devops:ci-pipeline-github`, K8s manifests →\n   `polymath-kubernetes:write-manifest` — each already consumes the\n   project's `deployment` conventions.\n4. **Wire the test scaffold** per `stack.testing` (framework, layout\n   mirroring siblings) with one real starter test that runs green through\n   the repo's test command — not an empty file.\n5. **Create, never overwrite; register additively.** New files must not\n   already exist — if a target path exists, stop and show the conflict.\n   Registration (solution file, workspace globs, the knowledge-base\n   component table) edits existing files: make those edits additive only\n   and show each one as a diff.\n6. **Close the loop.** If the component adds tools or env vars, update\n   `setup` in `.polymath\u002Fproject.yaml`, update the matching tools \u002F env-var\n   lines in the root `POLYMATH.md` (show the diff), and regenerate the\n   onboarding checklist: `python3 \"${POLYMATH_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}\u002Fbin\u002Fgen-prerequisites.py\"\n   --out docs\u002Fonboarding\u002Fprerequisites.md`. Run the repo's build\u002Ftest once\n   to prove the component compiles and its starter test passes.\n\n## Output\n\n```text\nscaffold-component: \u003Cname> (\u003Ckind>)\n\nGenerator:   \u003Cexact command run>   (confirmed by user; dry-run first: yes\u002Fno)\nCreated:     \u003Cpath>, \u003Cpath>, …\nRegistered:  \u003Cfile> (+\u003Cn> lines, additive)\nInfra from:  polymath-devops:dockerize, polymath-devops:ci-pipeline-github\nConventions: \u003Croles applied>; [VERIFY] items honored: \u003Cn>\nVerified:    \u003Cbuild\u002Ftest command> → \u003Cpass\u002Ffail>\nFollow-ups:  \u003Copen items>\n```\n\n## Quality bar\n\n- An existing teammate couldn't tell this component from a hand-built\n  one — naming, layout, and registration all match the conventions.\n- Boilerplate came from the native generator; infra bodies from their\n  owning skills; nothing freehanded that had a canonical source.\n- No generator ran without confirmation; nothing overwritten; every\n  created path listed in the summary.\n- The build\u002Ftest run after scaffolding is reported, pass or fail.\n",{"name":5,"description":7},"main","23f6e21841a39580c9da2b5ec941f39dda17cd86","plugins\u002Fpolymath-author\u002Fskills\u002Fscaffold-component","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath","https:\u002F\u002Fgithub.com\u002FMohammadBafkar","2026-10-29 18:34:59",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add MohammadBafkar\u002Fpolymath --skill scaffold-component",{"tool":36,"command":37},"bunx","bunx skills add MohammadBafkar\u002Fpolymath --skill scaffold-component",{"tool":39,"command":40},"pnpm","pnpm dlx skills add MohammadBafkar\u002Fpolymath --skill scaffold-component","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-author\u002Fskills\u002Fscaffold-component\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"routing.yaml","REFERENCE","参考文档",478,"https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-author\u002Fskills\u002Fscaffold-component\u002Frouting.yaml",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M74GN87EBRHM9N87M7AP1HDD","runbook","Write or refresh an operational runbook for an alert\u002Fsymptom; structured as TL;DR + Pre-checks + Steps + Verification + Rollback + Escalation.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Frunbook\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M74GN5GPKEC1JEKP2DFQNEQJ","rfc","Draft a lightweight design RFC to docs\u002Frfcs\u002F\u003Cslug>.md; Summary, Motivation, Detailed design, Drawbacks, Alternatives, Unresolved questions. A proposal to debate, not a recorded decision (adr).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Frfc\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M74GN2F4CWPMV4X09TG4E304","editorial-pass","Review and tighten prose in a Markdown artifact for a target tone (terse, formal, friendly) without dropping information; preserve quotations and load-bearing constraints.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Feditorial-pass\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M74GMZWGYMZ37C4DYGT6P23G","architecture-review-facilitation","Run an architecture review as a process — entry criteria, reviewer checklist, decision log, and follow-up actions — pairing the design artifact with a red-team pass.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Farchitecture-review-facilitation\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M74GMXVX0YX3ETDXS527XDGM","architecture-doc","Write a C4-style architecture document; System Context + Containers (+ Components when interesting) with mermaid diagrams. Describes structure, not a decision (adr) or proposal (rfc).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Farchitecture-doc\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M74GMVG1WSMCK066S3KE6V5K","adr","Write an Architecture Decision Record (Michael Nygard format) to docs\u002Fadrs\u002FNNNN-\u003Cslug>.md; frontmatter validated by the ADR artifact schema. Records a made decision, not a proposal to debate (rfc).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Fadr\u002FSKILL.md",[],[]]