[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CAZT73T2Z4RDBXTKWD6KMB":3,"skill-same:01M6CAZT73T2Z4RDBXTKWD6KMB":72},{"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":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M6CAZT73T2Z4RDBXTKWD6KMB","rollback-workspace","工作区备份回滚恢复","Restore the .aiwg\u002F directory from a migrate-workspace backup, listing available backups when none is specified","从 migrate-workspace 备份中恢复 .aiwg\u002F 目录；当未指定备份时，列出可用备份。","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\u002Frollback-workspace\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39],"rollback","workspace","rollback workspace","directory","backup","migrate","restore","when","listing","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: rollback-workspace\nplatforms: [all]\ndescription: Restore the .aiwg\u002F directory from a migrate-workspace backup, listing available backups when none is specified\n---\n\n# Rollback Workspace\n\nYou restore the `.aiwg\u002F` directory from a backup created by `migrate-workspace`. Lists available backups when no specific backup is named. The restore is safe — it will not overwrite artifacts that were created after the migration.\n\n## Triggers\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"undo the migration\" → rollback to most recent backup\n- \"restore my workspace\" → rollback to most recent backup\n- \"what backups do I have?\" → list available backups\n- \"revert aiwg directory\" → rollback to most recent backup\n\n## Trigger Patterns Reference\n\n| Pattern | Example | Action |\n|---------|---------|--------|\n| Rollback latest | \"roll back the workspace migration\" | Run `aiwg rollback-workspace` |\n| List backups | \"what workspace backups exist?\" | Run `aiwg rollback-workspace --list` |\n| Specific backup | \"restore from the backup made on April 1st\" | Run `aiwg rollback-workspace --from .aiwg\u002F.backup-20260401-1423` |\n| Dry run | \"preview the rollback\" | Run `aiwg rollback-workspace --dry-run` |\n| Force | \"rollback workspace, skip confirmation\" | Run `aiwg rollback-workspace --yes` |\n\n## Behavior\n\nWhen triggered:\n\n1. **List backups before restoring** unless a specific backup is named or the user has already confirmed:\n   - Run `aiwg rollback-workspace --list` to show what is available.\n   - If only one backup exists, propose it directly.\n   - If multiple backups exist, ask which one to restore.\n\n2. **Extract arguments**:\n   - Is `--list` requested? Show backups and stop.\n   - Is a specific `--from \u003Cpath>` given? Use that backup.\n   - Is `--dry-run` requested? Show what would be restored, no changes.\n   - Has the user confirmed? Use `--yes` to skip the interactive prompt.\n\n3. **Run the appropriate command**:\n\n   ```bash\n   # List available backups\n   aiwg rollback-workspace --list\n\n   # Preview rollback (no changes)\n   aiwg rollback-workspace --dry-run\n\n   # Rollback to most recent backup (prompts for confirmation)\n   aiwg rollback-workspace\n\n   # Rollback to specific backup\n   aiwg rollback-workspace --from .aiwg\u002F.backup-20260401-1423\n\n   # Rollback, skip prompt\n   aiwg rollback-workspace --yes\n   ```\n\n4. **Safety behaviour**:\n   - Will not overwrite files that were created **after** the backup timestamp (new artifacts added post-migration are preserved).\n   - Conflicting files (same path, newer mtime) are reported rather than silently overwritten — the user decides.\n   - If no backup exists, reports clearly and suggests contacting support.\n\n5. **Report the result** — confirm what was restored, list any skipped conflicts, and remind the user to run `aiwg status` to verify.\n\n## Examples\n\n### Example 1: List backups first\n\n**User**: \"Roll back my workspace migration\"\n\n**Extraction**: Rollback requested — list backups before applying\n\n**Action** (step 1):\n```bash\naiwg rollback-workspace --list\n```\n\n**Response**:\n```\nAvailable workspace backups:\n\n  1. .aiwg\u002F.backup-20260401-1423   (created 2026-04-01 14:23 UTC — before migration)\n  2. .aiwg\u002F.backup-20260320-0900   (created 2026-03-20 09:00 UTC — before migration)\n\nWhich backup would you like to restore from? (default: 1 — most recent)\n```\n\nAfter user selects → run `aiwg rollback-workspace --from .aiwg\u002F.backup-20260401-1423`.\n\n### Example 2: Single backup, confirm and restore\n\n**User**: \"Undo the migration\"\n\n**Extraction**: One backup found, propose it\n\n**Action**:\n```bash\naiwg rollback-workspace --list\n# One result → propose it\naiwg rollback-workspace --dry-run\n```\n\n**Preview response**:\n```\nRollback Preview (from .aiwg\u002F.backup-20260401-1423)\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nWould restore:\n  .aiwg\u002Fframeworks\u002Fsdlc-complete\u002Frequirements\u002F → .aiwg\u002Frequirements\u002F\n  .aiwg\u002Fframeworks\u002Fsdlc-complete\u002Farchitecture\u002F → .aiwg\u002Farchitecture\u002F\n  (+ 6 more directories)\n\nFiles added after migration (will NOT be overwritten):\n  .aiwg\u002Frequirements\u002FUC-015.md  (newer than backup)\n\nProceed? [y\u002FN]\n```\n\nAfter user confirms → `aiwg rollback-workspace --yes`.\n\n### Example 3: Dry run only\n\n**User**: \"Preview a workspace rollback\"\n\n**Extraction**: Dry-run only\n\n**Action**:\n```bash\naiwg rollback-workspace --dry-run\n```\n\n**Response**: Shows the planned restore table (as above) and stops. Does not prompt for confirmation.\n\n### Example 4: No backups available\n\n**User**: \"Roll back my workspace\"\n\n**Extraction**: No backups found\n\n**Action**:\n```bash\naiwg rollback-workspace --list\n```\n\n**Response**: \"No workspace backups found in `.aiwg\u002F`. Backups are created automatically when you run `aiwg migrate-workspace`. If you have a manual backup, specify its path with `aiwg rollback-workspace --from \u003Cpath>`.\"\n\n### Example 5: Specific backup path\n\n**User**: \"Restore from the backup at .aiwg\u002F.backup-20260320-0900\"\n\n**Extraction**: Explicit backup path given\n\n**Action**:\n```bash\naiwg rollback-workspace --from .aiwg\u002F.backup-20260320-0900\n```\n\n**Response**: Runs the restore, reports what was moved back and any skipped conflicts. Confirms with `aiwg status` recommendation.\n\n## Clarification Prompts\n\nIf the user's intent is ambiguous:\n\n- \"Which backup would you like to restore from? I found: `.backup-20260401-1423`, `.backup-20260320-0900`.\"\n- \"Would you like me to preview the rollback first before applying it?\"\n- \"Files created after the migration will not be overwritten — is that OK, or do you need to handle those manually?\"\n\n## References\n\n- @$AIWG_ROOT\u002Fsrc\u002Fcli\u002Fhandlers\u002Fworkspace.ts — `rollback-workspace` command handler\n- @$AIWG_ROOT\u002Fdocs\u002Fcli-reference.md — CLI reference\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fmigrate-workspace\u002FSKILL.md — The migration this reverses\n","# Rollback Workspace\n\nYou restore the `.aiwg\u002F` directory from a backup created by `migrate-workspace`. Lists available backups when no specific backup is named. The restore is safe — it will not overwrite artifacts that were created after the migration.\n\n## Triggers\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"undo the migration\" → rollback to most recent backup\n- \"restore my workspace\" → rollback to most recent backup\n- \"what backups do I have?\" → list available backups\n- \"revert aiwg directory\" → rollback to most recent backup\n\n## Trigger Patterns Reference\n\n| Pattern | Example | Action |\n|---------|---------|--------|\n| Rollback latest | \"roll back the workspace migration\" | Run `aiwg rollback-workspace` |\n| List backups | \"what workspace backups exist?\" | Run `aiwg rollback-workspace --list` |\n| Specific backup | \"restore from the backup made on April 1st\" | Run `aiwg rollback-workspace --from .aiwg\u002F.backup-20260401-1423` |\n| Dry run | \"preview the rollback\" | Run `aiwg rollback-workspace --dry-run` |\n| Force | \"rollback workspace, skip confirmation\" | Run `aiwg rollback-workspace --yes` |\n\n## Behavior\n\nWhen triggered:\n\n1. **List backups before restoring** unless a specific backup is named or the user has already confirmed:\n   - Run `aiwg rollback-workspace --list` to show what is available.\n   - If only one backup exists, propose it directly.\n   - If multiple backups exist, ask which one to restore.\n\n2. **Extract arguments**:\n   - Is `--list` requested? Show backups and stop.\n   - Is a specific `--from \u003Cpath>` given? Use that backup.\n   - Is `--dry-run` requested? Show what would be restored, no changes.\n   - Has the user confirmed? Use `--yes` to skip the interactive prompt.\n\n3. **Run the appropriate command**:\n\n   ```bash\n   # List available backups\n   aiwg rollback-workspace --list\n\n   # Preview rollback (no changes)\n   aiwg rollback-workspace --dry-run\n\n   # Rollback to most recent backup (prompts for confirmation)\n   aiwg rollback-workspace\n\n   # Rollback to specific backup\n   aiwg rollback-workspace --from .aiwg\u002F.backup-20260401-1423\n\n   # Rollback, skip prompt\n   aiwg rollback-workspace --yes\n   ```\n\n4. **Safety behaviour**:\n   - Will not overwrite files that were created **after** the backup timestamp (new artifacts added post-migration are preserved).\n   - Conflicting files (same path, newer mtime) are reported rather than silently overwritten — the user decides.\n   - If no backup exists, reports clearly and suggests contacting support.\n\n5. **Report the result** — confirm what was restored, list any skipped conflicts, and remind the user to run `aiwg status` to verify.\n\n## Examples\n\n### Example 1: List backups first\n\n**User**: \"Roll back my workspace migration\"\n\n**Extraction**: Rollback requested — list backups before applying\n\n**Action** (step 1):\n```bash\naiwg rollback-workspace --list\n```\n\n**Response**:\n```\nAvailable workspace backups:\n\n  1. .aiwg\u002F.backup-20260401-1423   (created 2026-04-01 14:23 UTC — before migration)\n  2. .aiwg\u002F.backup-20260320-0900   (created 2026-03-20 09:00 UTC — before migration)\n\nWhich backup would you like to restore from? (default: 1 — most recent)\n```\n\nAfter user selects → run `aiwg rollback-workspace --from .aiwg\u002F.backup-20260401-1423`.\n\n### Example 2: Single backup, confirm and restore\n\n**User**: \"Undo the migration\"\n\n**Extraction**: One backup found, propose it\n\n**Action**:\n```bash\naiwg rollback-workspace --list\n# One result → propose it\naiwg rollback-workspace --dry-run\n```\n\n**Preview response**:\n```\nRollback Preview (from .aiwg\u002F.backup-20260401-1423)\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nWould restore:\n  .aiwg\u002Fframeworks\u002Fsdlc-complete\u002Frequirements\u002F → .aiwg\u002Frequirements\u002F\n  .aiwg\u002Fframeworks\u002Fsdlc-complete\u002Farchitecture\u002F → .aiwg\u002Farchitecture\u002F\n  (+ 6 more directories)\n\nFiles added after migration (will NOT be overwritten):\n  .aiwg\u002Frequirements\u002FUC-015.md  (newer than backup)\n\nProceed? [y\u002FN]\n```\n\nAfter user confirms → `aiwg rollback-workspace --yes`.\n\n### Example 3: Dry run only\n\n**User**: \"Preview a workspace rollback\"\n\n**Extraction**: Dry-run only\n\n**Action**:\n```bash\naiwg rollback-workspace --dry-run\n```\n\n**Response**: Shows the planned restore table (as above) and stops. Does not prompt for confirmation.\n\n### Example 4: No backups available\n\n**User**: \"Roll back my workspace\"\n\n**Extraction**: No backups found\n\n**Action**:\n```bash\naiwg rollback-workspace --list\n```\n\n**Response**: \"No workspace backups found in `.aiwg\u002F`. Backups are created automatically when you run `aiwg migrate-workspace`. If you have a manual backup, specify its path with `aiwg rollback-workspace --from \u003Cpath>`.\"\n\n### Example 5: Specific backup path\n\n**User**: \"Restore from the backup at .aiwg\u002F.backup-20260320-0900\"\n\n**Extraction**: Explicit backup path given\n\n**Action**:\n```bash\naiwg rollback-workspace --from .aiwg\u002F.backup-20260320-0900\n```\n\n**Response**: Runs the restore, reports what was moved back and any skipped conflicts. Confirms with `aiwg status` recommendation.\n\n## Clarification Prompts\n\nIf the user's intent is ambiguous:\n\n- \"Which backup would you like to restore from? I found: `.backup-20260401-1423`, `.backup-20260320-0900`.\"\n- \"Would you like me to preview the rollback first before applying it?\"\n- \"Files created after the migration will not be overwritten — is that OK, or do you need to handle those manually?\"\n\n## References\n\n- @$AIWG_ROOT\u002Fsrc\u002Fcli\u002Fhandlers\u002Fworkspace.ts — `rollback-workspace` command handler\n- @$AIWG_ROOT\u002Fdocs\u002Fcli-reference.md — CLI reference\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fmigrate-workspace\u002FSKILL.md — The migration this reverses\n",{"name":5,"namespace":45,"platforms":46,"description":7},"aiwg",[47],"all","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Frollback-workspace",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":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add jmagly\u002Faiwg --skill rollback-workspace",{"tool":64,"command":65},"bunx","bunx skills add jmagly\u002Faiwg --skill rollback-workspace",{"tool":67,"command":68},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill rollback-workspace","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Frollback-workspace\u002FSKILL.md",true,[],[73,81,86,113,133,138],{"skillNo":74,"name":75,"nameZh":17,"description":76,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":80},"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":82,"name":75,"nameZh":17,"description":76,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":80},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":17,"description":89,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":40},"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",[],[93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],"hardening","host","host hardening","verification","secrets","read","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":114,"name":115,"nameZh":17,"description":116,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":40},"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",[],[120,121,122,123,124,125,98,126,104,111,106,127,94,128,108,129,130,112,131,132],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":134,"name":88,"nameZh":17,"description":89,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":40},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[93,94,95,110,111,112,105,109,101,97,98,99,100,102,103,104,96,106,107,108],{"skillNo":139,"name":115,"nameZh":17,"description":116,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":40},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[120,121,132,131,124,130,129,108,123,125,98,126,104,122,106,127,94,112,111,128]]