[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CAREQDT5TWD03QJP5NCBSZ":3,"skill-same:01M6CAREQDT5TWD03QJP5NCBSZ":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},"01M6CAREQDT5TWD03QJP5NCBSZ","add-command","命令定义文件搭建","Scaffold a new command definition inside an existing addon or framework","在现有插件或框架中搭建新的命令定义","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-command\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38],"add command","command","add","scaffold","framework","Existing","definition","new","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: add-command\nplatforms: [all]\ndescription: Scaffold a new command definition inside an existing addon or framework\n---\n\n# Add Command\n\nScaffold a new command definition 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 command\" → scaffold command in specified target\n- \"build a slash command\" → scaffold with slash-command template\n- \"add a flow command\" → scaffold with orchestration template\n- \"new CLI command for X\" → derive name, prompt for target\n\n## Trigger Patterns Reference\n\n| Pattern | Example | Action |\n|---------|---------|--------|\n| Named add | \"add command lint-fix --to aiwg-utils\" | Scaffold directly |\n| Template specified | \"add command deploy-all --template orchestration\" | Use named template |\n| Interactive | \"add command --interactive --to sdlc-complete\" | Guided mode |\n| Target omitted | \"add command my-command\" | Ask which addon or framework |\n\n## Process\n\n### 1. Parse Arguments\n\nExtract from `$ARGUMENTS`:\n- `\u003Cname>` — kebab-case command name (required)\n- `--to \u003Ctarget>` — addon or framework directory name (required)\n- `--template \u003Ctype>` — one of `utility` (default), `transformation`, `orchestration`\n- `--interactive` — enable guided design questions\n\nIf either `\u003Cname>` or `--to` is missing, ask before proceeding.\n\n### 2. Understand the Command Model\n\nCommands in AIWG are generated from skills at deploy time. The primary source of truth is the skill definition; the command file is the deployable artifact. This skill scaffolds the command `.md` file directly inside the target's `commands\u002F` directory.\n\nCommands differ from skills:\n- **Commands**: Invoked explicitly via `\u002Fcommand-name $ARGUMENTS`\n- **Skills**: Invoked by natural language pattern matching\n\nUse a command when the user needs explicit control over invocation.\n\n### 3. Validate Target\n\nConfirm the target exists:\n\n```bash\n# Check addons\nls agentic\u002Fcode\u002Faddons\u002F\u003Ctarget>\u002F\n\n# Check frameworks\nls agentic\u002Fcode\u002Fframeworks\u002F\u003Ctarget>\u002F\n```\n\n### 4. Select Template\n\n| Template | Use When | Structure |\n|----------|----------|-----------|\n| `utility` | Single action, quick operation | Arguments, Steps, Output |\n| `transformation` | Input → processed output pipeline | Input, Pipeline stages, Output format |\n| `orchestration` | Multi-agent workflow, phase transitions | Phases, Agent assignments, Gate criteria |\n\n### 5. Interactive Design (if --interactive)\n\nAsk before generating:\n\n1. **Purpose**: What does this command do in one sentence?\n2. **Arguments**: What positional inputs does it accept?\n3. **Options**: What `--flag` options should it support?\n4. **Steps**: What are the 3-7 execution steps?\n5. **Output**: What should the success output look like?\n6. **Error handling**: What should happen when inputs are invalid?\n\n### 6. Run Scaffolding\n\n```bash\naiwg add-command \u003Cname> --to \u003Ctarget> --template \u003Ctype>\n```\n\n### 7. Customize the Generated File\n\n```markdown\n---\nname: \u003Cname>\ndescription: \u003Cone-sentence purpose>\nargs: [\u003Carg>] [--option value]\n---\n\n# Command Title\n\n[Description]\n\n## Usage\n\n\\`\\`\\`\n\u002F\u003Cname> \u003Carg> [--option value]\n\\`\\`\\`\n\n## Arguments\n\n| Argument | Required | Description |\n|----------|----------|-------------|\n| \u003Carg> | Yes | What it controls |\n\n## Options\n\n| Option | Default | Description |\n|--------|---------|-------------|\n| --option | value | What it controls |\n\n## Execution\n\n1. Validate inputs\n2. [Step 2]\n3. [Step 3]\n\n## Output\n\n[What success looks like]\n```\n\n### 8. Update Manifest\n\nThe CLI tool updates `\u003Ctarget>\u002Fmanifest.json`. Verify:\n\n```json\n{\n  \"commands\": [\"existing-command\", \"\u003Cname>\"]\n}\n```\n\n## Generated Structure\n\n```\n\u003Ctarget>\u002Fcommands\u002F\u003Cname>.md\n```\n\nManifest updated: `\u003Ctarget>\u002Fmanifest.json`\n\n## Output Format\n\n```\nCommand Created: \u003Cname>\n───────────────────────\nLocation: \u003Ctarget>\u002Fcommands\u002F\u003Cname>.md\nTemplate:  \u003Ctype>\n\nCreated:\n  ✓ \u003Ctarget>\u002Fcommands\u002F\u003Cname>.md\n  ✓ manifest.json updated\n\nNext Steps:\n  1. Define arguments and options\n  2. Write execution steps\n  3. Specify output format\n  4. Deploy: aiwg use \u003Ctarget>\n  5. Test: \u002F\u003Cname> --help\n```\n\n## Examples\n\n### Example 1: Utility command\n\n**User**: \"add command validate-intake --to sdlc-complete\"\n\n**Action**:\n```bash\naiwg add-command validate-intake --to sdlc-complete\n```\n\n**Result**: `agentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fcommands\u002Fvalidate-intake.md` scaffolded with utility template.\n\n### Example 2: Orchestration workflow command\n\n**User**: \"create an orchestration command for running the security review cycle in aiwg-utils\"\n\n**Extraction**: name=`security-review-cycle`, target=`aiwg-utils`, template=`orchestration`\n\n**Action**:\n```bash\naiwg add-command security-review-cycle --to aiwg-utils --template orchestration\n```\n\n### Example 3: Transformation command\n\n**User**: \"scaffold a command called convert-voice --to voice-framework --template transformation --interactive\"\n\n**Process**: Guided questions clarify input format, transformation pipeline, and output shape before scaffolding.\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fdevkit-create-command\u002FSKILL.md — Devkit equivalent (interactive design)\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\u002Fcommands\u002F — Example command definitions\n","# Add Command\n\nScaffold a new command definition 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 command\" → scaffold command in specified target\n- \"build a slash command\" → scaffold with slash-command template\n- \"add a flow command\" → scaffold with orchestration template\n- \"new CLI command for X\" → derive name, prompt for target\n\n## Trigger Patterns Reference\n\n| Pattern | Example | Action |\n|---------|---------|--------|\n| Named add | \"add command lint-fix --to aiwg-utils\" | Scaffold directly |\n| Template specified | \"add command deploy-all --template orchestration\" | Use named template |\n| Interactive | \"add command --interactive --to sdlc-complete\" | Guided mode |\n| Target omitted | \"add command my-command\" | Ask which addon or framework |\n\n## Process\n\n### 1. Parse Arguments\n\nExtract from `$ARGUMENTS`:\n- `\u003Cname>` — kebab-case command name (required)\n- `--to \u003Ctarget>` — addon or framework directory name (required)\n- `--template \u003Ctype>` — one of `utility` (default), `transformation`, `orchestration`\n- `--interactive` — enable guided design questions\n\nIf either `\u003Cname>` or `--to` is missing, ask before proceeding.\n\n### 2. Understand the Command Model\n\nCommands in AIWG are generated from skills at deploy time. The primary source of truth is the skill definition; the command file is the deployable artifact. This skill scaffolds the command `.md` file directly inside the target's `commands\u002F` directory.\n\nCommands differ from skills:\n- **Commands**: Invoked explicitly via `\u002Fcommand-name $ARGUMENTS`\n- **Skills**: Invoked by natural language pattern matching\n\nUse a command when the user needs explicit control over invocation.\n\n### 3. Validate Target\n\nConfirm the target exists:\n\n```bash\n# Check addons\nls agentic\u002Fcode\u002Faddons\u002F\u003Ctarget>\u002F\n\n# Check frameworks\nls agentic\u002Fcode\u002Fframeworks\u002F\u003Ctarget>\u002F\n```\n\n### 4. Select Template\n\n| Template | Use When | Structure |\n|----------|----------|-----------|\n| `utility` | Single action, quick operation | Arguments, Steps, Output |\n| `transformation` | Input → processed output pipeline | Input, Pipeline stages, Output format |\n| `orchestration` | Multi-agent workflow, phase transitions | Phases, Agent assignments, Gate criteria |\n\n### 5. Interactive Design (if --interactive)\n\nAsk before generating:\n\n1. **Purpose**: What does this command do in one sentence?\n2. **Arguments**: What positional inputs does it accept?\n3. **Options**: What `--flag` options should it support?\n4. **Steps**: What are the 3-7 execution steps?\n5. **Output**: What should the success output look like?\n6. **Error handling**: What should happen when inputs are invalid?\n\n### 6. Run Scaffolding\n\n```bash\naiwg add-command \u003Cname> --to \u003Ctarget> --template \u003Ctype>\n```\n\n### 7. Customize the Generated File\n\n```markdown\n---\nname: \u003Cname>\ndescription: \u003Cone-sentence purpose>\nargs: [\u003Carg>] [--option value]\n---\n\n# Command Title\n\n[Description]\n\n## Usage\n\n\\`\\`\\`\n\u002F\u003Cname> \u003Carg> [--option value]\n\\`\\`\\`\n\n## Arguments\n\n| Argument | Required | Description |\n|----------|----------|-------------|\n| \u003Carg> | Yes | What it controls |\n\n## Options\n\n| Option | Default | Description |\n|--------|---------|-------------|\n| --option | value | What it controls |\n\n## Execution\n\n1. Validate inputs\n2. [Step 2]\n3. [Step 3]\n\n## Output\n\n[What success looks like]\n```\n\n### 8. Update Manifest\n\nThe CLI tool updates `\u003Ctarget>\u002Fmanifest.json`. Verify:\n\n```json\n{\n  \"commands\": [\"existing-command\", \"\u003Cname>\"]\n}\n```\n\n## Generated Structure\n\n```\n\u003Ctarget>\u002Fcommands\u002F\u003Cname>.md\n```\n\nManifest updated: `\u003Ctarget>\u002Fmanifest.json`\n\n## Output Format\n\n```\nCommand Created: \u003Cname>\n───────────────────────\nLocation: \u003Ctarget>\u002Fcommands\u002F\u003Cname>.md\nTemplate:  \u003Ctype>\n\nCreated:\n  ✓ \u003Ctarget>\u002Fcommands\u002F\u003Cname>.md\n  ✓ manifest.json updated\n\nNext Steps:\n  1. Define arguments and options\n  2. Write execution steps\n  3. Specify output format\n  4. Deploy: aiwg use \u003Ctarget>\n  5. Test: \u002F\u003Cname> --help\n```\n\n## Examples\n\n### Example 1: Utility command\n\n**User**: \"add command validate-intake --to sdlc-complete\"\n\n**Action**:\n```bash\naiwg add-command validate-intake --to sdlc-complete\n```\n\n**Result**: `agentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fcommands\u002Fvalidate-intake.md` scaffolded with utility template.\n\n### Example 2: Orchestration workflow command\n\n**User**: \"create an orchestration command for running the security review cycle in aiwg-utils\"\n\n**Extraction**: name=`security-review-cycle`, target=`aiwg-utils`, template=`orchestration`\n\n**Action**:\n```bash\naiwg add-command security-review-cycle --to aiwg-utils --template orchestration\n```\n\n### Example 3: Transformation command\n\n**User**: \"scaffold a command called convert-voice --to voice-framework --template transformation --interactive\"\n\n**Process**: Guided questions clarify input format, transformation pipeline, and output shape before scaffolding.\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fdevkit-create-command\u002FSKILL.md — Devkit equivalent (interactive design)\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\u002Fcommands\u002F — Example command definitions\n",{"name":5,"namespace":44,"platforms":45,"description":7},"aiwg",[46],"all","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fadd-command",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-command",{"tool":63,"command":64},"bunx","bunx skills add jmagly\u002Faiwg --skill add-command",{"tool":66,"command":67},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill add-command","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fadd-command\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]]