[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CARKZ013FM1W7JSAEMBVJ4":3,"skill-same:01M6CARKZ013FM1W7JSAEMBVJ4":71},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6CARKZ013FM1W7JSAEMBVJ4","add-template","文档模板搭建","Scaffold a new document template inside an existing addon or framework","在现有插件（addon）或框架中搭建新的文档模板。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fadd-template\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TK1MPB82068236GSXDE","文档处理","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38],"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":44,"platforms":45,"description":7},"aiwg",[46],"all","main","a602706fc62ff1cfcb18001358ac39647b08acf5","agentic\u002Fcode\u002Fplugins\u002Futils\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":9,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add jmagly\u002Faiwg --skill add-template",{"tool":63,"command":64},"bunx","bunx skills add jmagly\u002Faiwg --skill add-template",{"tool":66,"command":67},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill add-template","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fadd-template\u002FSKILL.md",true,[],[72,80,85,112,132,137],{"skillNo":73,"name":74,"nameZh":17,"description":75,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":79},"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":81,"name":74,"nameZh":17,"description":75,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":79},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":17,"description":88,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":39},"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",[],[92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111],"hardening","host","host hardening","verification","secrets","read","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":113,"name":114,"nameZh":17,"description":115,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":39},"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",[],[119,120,121,122,123,124,97,125,103,110,105,126,93,127,107,128,129,111,130,131],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":133,"name":87,"nameZh":17,"description":88,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":39},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[92,93,94,109,110,111,104,108,100,96,97,98,99,101,102,103,95,105,106,107],{"skillNo":138,"name":114,"nameZh":17,"description":115,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":39},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[119,120,131,130,123,129,128,107,122,124,97,125,103,121,105,126,93,111,110,127]]