[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C14FH2DHM5GEDVYMCFZFTW":3,"skill-same:01M6C14FH2DHM5GEDVYMCFZFTW":64},{"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":23,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":45,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M6C14FH2DHM5GEDVYMCFZFTW","add-template",null,"Scaffold a new document template inside an existing addon or framework","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fadd-template\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31],"template","add template","add","scaffold","framework","document","Existing","new","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: add-template\nplatforms: [all]\ndescription: Scaffold a new document template inside an existing addon or framework\n---\n\n# Add Template\n\nScaffold a new document template inside an existing addon or framework.\n\n## Triggers\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"I need a new template\" → scaffold template in specified target\n- \"add a document template\" → prompt for name, category, and target\n- \"create a template for X documents\" → derive name from X, prompt for target\n- \"template for use cases\" → name=`use-case`, prompt for target and category\n\n## Trigger Patterns Reference\n\n| Pattern | Example | Action |\n|---------|---------|--------|\n| Named add | \"add template adr --to sdlc-complete\" | Scaffold directly |\n| Category specified | \"add template threat-model --to sdlc-complete --category security\" | Place in category subdir |\n| Interactive | \"add template --interactive --to sdlc-complete\" | Guided design mode |\n| Target omitted | \"add template risk-register\" | Ask which addon or framework |\n\n## Process\n\n### 1. Parse Arguments\n\nExtract from `$ARGUMENTS`:\n- `\u003Cname>` — kebab-case template name (required)\n- `--to \u003Ctarget>` — addon or framework directory name (required)\n- `--category \u003Ccategory>` — subdirectory within `templates\u002F` (optional; e.g., `requirements`, `architecture`, `security`)\n- `--interactive` — enable guided design questions\n\nIf either `\u003Cname>` or `--to` is missing, ask before proceeding.\n\n### 2. Validate Target\n\nConfirm the target exists:\n\n```bash\n# Check addons\nls agentic\u002Fcode\u002Faddons\u002F\u003Ctarget>\u002Ftemplates\u002F\n\n# Check frameworks\nls agentic\u002Fcode\u002Fframeworks\u002F\u003Ctarget>\u002Ftemplates\u002F\n```\n\n### 3. Determine Category\n\nIf `--category` is not provided and the target has existing category subdirectories, list them and ask. Common categories in sdlc-complete:\n\n| Category | Contents |\n|----------|----------|\n| `requirements` | Use cases, user stories, NFRs |\n| `architecture` | SAD, ADRs, C4 diagrams |\n| `security` | Threat models, security gates |\n| `testing` | Test plans, test cases, test reports |\n| `deployment` | Deployment plans, runbooks |\n| `planning` | Phase plans, iteration plans, risk registers |\n| `analysis-design` | Domain models, sequence diagrams |\n\nIf no category is appropriate, place directly in `templates\u002F`.\n\n### 4. Interactive Design (if --interactive)\n\nAsk before generating:\n\n1. **Purpose**: What SDLC artifact does this template produce?\n2. **Audience**: Who fills in this template? (developer, architect, project manager)\n3. **Required sections**: What sections must every instance include?\n4. **Optional sections**: What sections depend on the specific project?\n5. **Variables**: What `{{placeholder}}` variables should be pre-populated by tooling?\n6. **Examples**: Should the template include inline examples?\n\n### 5. Run Scaffolding\n\n```bash\naiwg add-template \u003Cname> --to \u003Ctarget> [--category \u003Ccategory>]\n```\n\n### 6. Customize the Generated Template\n\nTemplates use Markdown with YAML frontmatter and `{{variable}}` placeholders:\n\n```markdown\n---\ntemplate: \u003Cname>\nversion: 1.0.0\ncategory: \u003Ccategory>\ndescription: \u003Cone-sentence purpose>\nvariables:\n  - project_name\n  - author\n  - date\n---\n\n# \u003CTemplate Title>\n\n**Project**: {{project_name}}\n**Author**: {{author}}\n**Date**: {{date}}\n**Version**: 1.0\n\n---\n\n## Purpose\n\n[What this document is for and when to create it]\n\n## Section 1: \u003CRequired Section>\n\n[Instructions for completing this section]\n\n> **Guidance**: [What a good answer looks like]\n\n## Section 2: \u003CRequired Section>\n\n[Instructions]\n\n## Section 3: \u003COptional Section> *(if applicable)*\n\n[Instructions]\n\n---\n\n## Review Checklist\n\nBefore finalizing this document:\n\n- [ ] All required sections completed\n- [ ] Variables replaced with actual values\n- [ ] Reviewed by [role]\n- [ ] Approved by [role]\n```\n\n### 7. Register in Templates Manifest\n\nThe CLI tool updates the templates manifest. Verify:\n\n```json\n{\n  \"templates\": {\n    \"\u003Ccategory>\": [\"existing-template\", \"\u003Cname>\"]\n  }\n}\n```\n\n## Generated Structure\n\n```\n\u003Ctarget>\u002Ftemplates\u002F\u003Ccategory>\u002F\u003Cname>-template.md\n```\n\nOr at root if no category:\n\n```\n\u003Ctarget>\u002Ftemplates\u002F\u003Cname>-template.md\n```\n\nManifest updated: `\u003Ctarget>\u002Fmanifest.json` (or `\u003Ctarget>\u002Ftemplates\u002Fmanifest.json` if present)\n\n## Output Format\n\n```\nTemplate Created: \u003Cname>\n────────────────────────\nLocation: \u003Ctarget>\u002Ftemplates\u002F\u003Ccategory>\u002F\u003Cname>-template.md\nCategory:  \u003Ccategory>\n\nCreated:\n  ✓ \u003Cname>-template.md\n\nManifest updated: \u003Ctarget>\u002Fmanifest.json\n\nNext Steps:\n  1. Define required sections and guidance text\n  2. Add {{variable}} placeholders for automation\n  3. Include review checklist\n  4. Test: aiwg template-engine apply \u003Cname> --to .aiwg\u002F\u003Ccategory>\u002F\n```\n\n## Examples\n\n### Example 1: Architecture decision record\n\n**User**: \"add template adr --to sdlc-complete --category governance\"\n\n**Action**:\n```bash\naiwg add-template adr --to sdlc-complete --category governance\n```\n\n**Result**: `agentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Fgovernance\u002Fadr-template.md` scaffolded with standard ADR sections (Context, Decision, Consequences, Alternatives).\n\n### Example 2: Security threat model\n\n**User**: \"create a threat model template for sdlc-complete\"\n\n**Extraction**: name=`threat-model`, target=`sdlc-complete`, category=`security`\n\n**Action**:\n```bash\naiwg add-template threat-model --to sdlc-complete --category security\n```\n\n### Example 3: Interactive template design\n\n**User**: \"add template --interactive --to sdlc-complete\"\n\n**Process**: Guided questions establish the artifact type, required sections, variables, and whether examples should be embedded.\n\n## References\n\n- @$AIWG_ROOT\u002Fsrc\u002Fcli\u002Fhandlers\u002Fscaffolding.ts — CLI handler implementation\n- @$AIWG_ROOT\u002Fdocs\u002Fcli-reference.md — Full CLI reference\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002F — Example templates\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fdevkit-create-skill\u002FSKILL.md — Related scaffolding pattern\n","# Add Template\n\nScaffold a new document template inside an existing addon or framework.\n\n## Triggers\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"I need a new template\" → scaffold template in specified target\n- \"add a document template\" → prompt for name, category, and target\n- \"create a template for X documents\" → derive name from X, prompt for target\n- \"template for use cases\" → name=`use-case`, prompt for target and category\n\n## Trigger Patterns Reference\n\n| Pattern | Example | Action |\n|---------|---------|--------|\n| Named add | \"add template adr --to sdlc-complete\" | Scaffold directly |\n| Category specified | \"add template threat-model --to sdlc-complete --category security\" | Place in category subdir |\n| Interactive | \"add template --interactive --to sdlc-complete\" | Guided design mode |\n| Target omitted | \"add template risk-register\" | Ask which addon or framework |\n\n## Process\n\n### 1. Parse Arguments\n\nExtract from `$ARGUMENTS`:\n- `\u003Cname>` — kebab-case template name (required)\n- `--to \u003Ctarget>` — addon or framework directory name (required)\n- `--category \u003Ccategory>` — subdirectory within `templates\u002F` (optional; e.g., `requirements`, `architecture`, `security`)\n- `--interactive` — enable guided design questions\n\nIf either `\u003Cname>` or `--to` is missing, ask before proceeding.\n\n### 2. Validate Target\n\nConfirm the target exists:\n\n```bash\n# Check addons\nls agentic\u002Fcode\u002Faddons\u002F\u003Ctarget>\u002Ftemplates\u002F\n\n# Check frameworks\nls agentic\u002Fcode\u002Fframeworks\u002F\u003Ctarget>\u002Ftemplates\u002F\n```\n\n### 3. Determine Category\n\nIf `--category` is not provided and the target has existing category subdirectories, list them and ask. Common categories in sdlc-complete:\n\n| Category | Contents |\n|----------|----------|\n| `requirements` | Use cases, user stories, NFRs |\n| `architecture` | SAD, ADRs, C4 diagrams |\n| `security` | Threat models, security gates |\n| `testing` | Test plans, test cases, test reports |\n| `deployment` | Deployment plans, runbooks |\n| `planning` | Phase plans, iteration plans, risk registers |\n| `analysis-design` | Domain models, sequence diagrams |\n\nIf no category is appropriate, place directly in `templates\u002F`.\n\n### 4. Interactive Design (if --interactive)\n\nAsk before generating:\n\n1. **Purpose**: What SDLC artifact does this template produce?\n2. **Audience**: Who fills in this template? (developer, architect, project manager)\n3. **Required sections**: What sections must every instance include?\n4. **Optional sections**: What sections depend on the specific project?\n5. **Variables**: What `{{placeholder}}` variables should be pre-populated by tooling?\n6. **Examples**: Should the template include inline examples?\n\n### 5. Run Scaffolding\n\n```bash\naiwg add-template \u003Cname> --to \u003Ctarget> [--category \u003Ccategory>]\n```\n\n### 6. Customize the Generated Template\n\nTemplates use Markdown with YAML frontmatter and `{{variable}}` placeholders:\n\n```markdown\n---\ntemplate: \u003Cname>\nversion: 1.0.0\ncategory: \u003Ccategory>\ndescription: \u003Cone-sentence purpose>\nvariables:\n  - project_name\n  - author\n  - date\n---\n\n# \u003CTemplate Title>\n\n**Project**: {{project_name}}\n**Author**: {{author}}\n**Date**: {{date}}\n**Version**: 1.0\n\n---\n\n## Purpose\n\n[What this document is for and when to create it]\n\n## Section 1: \u003CRequired Section>\n\n[Instructions for completing this section]\n\n> **Guidance**: [What a good answer looks like]\n\n## Section 2: \u003CRequired Section>\n\n[Instructions]\n\n## Section 3: \u003COptional Section> *(if applicable)*\n\n[Instructions]\n\n---\n\n## Review Checklist\n\nBefore finalizing this document:\n\n- [ ] All required sections completed\n- [ ] Variables replaced with actual values\n- [ ] Reviewed by [role]\n- [ ] Approved by [role]\n```\n\n### 7. Register in Templates Manifest\n\nThe CLI tool updates the templates manifest. Verify:\n\n```json\n{\n  \"templates\": {\n    \"\u003Ccategory>\": [\"existing-template\", \"\u003Cname>\"]\n  }\n}\n```\n\n## Generated Structure\n\n```\n\u003Ctarget>\u002Ftemplates\u002F\u003Ccategory>\u002F\u003Cname>-template.md\n```\n\nOr at root if no category:\n\n```\n\u003Ctarget>\u002Ftemplates\u002F\u003Cname>-template.md\n```\n\nManifest updated: `\u003Ctarget>\u002Fmanifest.json` (or `\u003Ctarget>\u002Ftemplates\u002Fmanifest.json` if present)\n\n## Output Format\n\n```\nTemplate Created: \u003Cname>\n────────────────────────\nLocation: \u003Ctarget>\u002Ftemplates\u002F\u003Ccategory>\u002F\u003Cname>-template.md\nCategory:  \u003Ccategory>\n\nCreated:\n  ✓ \u003Cname>-template.md\n\nManifest updated: \u003Ctarget>\u002Fmanifest.json\n\nNext Steps:\n  1. Define required sections and guidance text\n  2. Add {{variable}} placeholders for automation\n  3. Include review checklist\n  4. Test: aiwg template-engine apply \u003Cname> --to .aiwg\u002F\u003Ccategory>\u002F\n```\n\n## Examples\n\n### Example 1: Architecture decision record\n\n**User**: \"add template adr --to sdlc-complete --category governance\"\n\n**Action**:\n```bash\naiwg add-template adr --to sdlc-complete --category governance\n```\n\n**Result**: `agentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Fgovernance\u002Fadr-template.md` scaffolded with standard ADR sections (Context, Decision, Consequences, Alternatives).\n\n### Example 2: Security threat model\n\n**User**: \"create a threat model template for sdlc-complete\"\n\n**Extraction**: name=`threat-model`, target=`sdlc-complete`, category=`security`\n\n**Action**:\n```bash\naiwg add-template threat-model --to sdlc-complete --category security\n```\n\n### Example 3: Interactive template design\n\n**User**: \"add template --interactive --to sdlc-complete\"\n\n**Process**: Guided questions establish the artifact type, required sections, variables, and whether examples should be embedded.\n\n## References\n\n- @$AIWG_ROOT\u002Fsrc\u002Fcli\u002Fhandlers\u002Fscaffolding.ts — CLI handler implementation\n- @$AIWG_ROOT\u002Fdocs\u002Fcli-reference.md — Full CLI reference\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002F — Example templates\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fdevkit-create-skill\u002FSKILL.md — Related scaffolding pattern\n",{"name":5,"namespace":37,"platforms":38,"description":7},"aiwg",[39],"all","main","a602706fc62ff1cfcb18001358ac39647b08acf5","agentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fadd-template",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add jmagly\u002Faiwg --skill add-template",{"tool":56,"command":57},"bunx","bunx skills add jmagly\u002Faiwg --skill add-template",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill add-template","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fadd-template\u002FSKILL.md",true,[],[65,73,78,106,130,136],{"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":72},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":74,"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":75,"categories":76,"keywords":77,"publishedAt":72},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":85,"publishedAt":32},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[84],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],"hardening","host","host hardening","verification","secrets","read","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":116,"publishedAt":32},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[112,115],{"categoryNo":113,"categoryName":114,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[117,118,119,120,121,122,91,123,97,104,99,124,87,125,101,126,127,105,128,129],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":131,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":135,"publishedAt":32},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[134],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[86,87,88,103,104,105,98,102,94,90,91,92,93,95,96,97,89,99,100,101],{"skillNo":137,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":142,"publishedAt":32},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[140,141],{"categoryNo":113,"categoryName":114,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[117,118,129,128,121,127,126,101,120,122,91,123,97,119,99,124,87,105,104,125]]