[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CASWMV06PHHWRQNAR0WGJA":3,"skill-same:01M6CASWMV06PHHWRQNAR0WGJA":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},"01M6CASWMV06PHHWRQNAR0WGJA","aiwg-regenerate-cursorrules","Cursor 规则文件重新生成","Regenerate .cursorrules for Cursor with preserved team directives","为 Cursor 重新生成 .cursorrules，并保留原有的团队指令。","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\u002Faiwg-regenerate-cursorrules\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38],"aiwg regenerate cursorrules","aiwg regenerate","cursorrules","team","cursor","with","for","directives","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: aiwg-regenerate-cursorrules\nplatforms: [all]\ndescription: Regenerate .cursorrules for Cursor with preserved team directives\n---\n\n# Regenerate .cursorrules\n\nRegenerate the `.cursorrules` file for Cursor IDE integration, analyzing current project state while preserving team directives and organizational requirements.\n\n**Hook file approach (default):** Generates `AIWG-cursor.md` and adds `@AIWG-cursor.md` directive to `.cursorrules`. Note: Cursor's @-link support in `.cursorrules` is partially confirmed — see #444.\n\n**Full inject (`--full-inject`):** Embeds AIWG content inline with AIWG markers (safe fallback).\n\n## Parameters\n\n| Flag | Description |\n|------|-------------|\n| `--no-backup` | Skip creating backup file |\n| `--dry-run` | Preview changes without writing |\n| `--show-preserved` | List all detected preserved content and exit |\n| `--full` | Full regeneration, preserve nothing (destructive) |\n\n## Execution Steps\n\n### Step 1: Create Backup\n\nUnless `--no-backup` specified:\n\n1. Check if `.cursorrules` exists\n2. If exists, copy to `.cursorrules.backup-{YYYYMMDD-HHMMSS}`\n3. Report backup location\n\n### Step 2: Extract Preserved Content\n\nSame preservation patterns as other platforms:\n\n1. **Explicit Preserve Blocks**: `\u003C!-- PRESERVE -->` ... `\u003C!-- \u002FPRESERVE -->`\n2. **Preserved Section Headings**: Team *, Org *, Definition of Done, etc.\n3. **Inline Directives**: Lines with directive keywords\n\n### Step 3: Analyze Project\n\n- Languages and package managers\n- Development commands\n- Test framework\n- CI\u002FCD configuration\n- Directory structure\n- Cursor-specific configuration in `.cursor\u002F`\n\n### Step 4: Detect AIWG State\n\nCheck installed frameworks by scanning:\n- `.cursor\u002Fagents\u002F` for deployed agents\n- `.cursor\u002Frules\u002F` for MDC rules\n- `.cursor\u002Fcommands\u002F` for commands\n\nRead registry for framework versions.\n\n### Step 5: Generate .cursorrules\n\n**Document Structure:**\n\n```markdown\n# .cursorrules\n\nProject rules for Cursor AI assistance.\n\n## Project Overview\n\n{Description from README.md or package.json}\n\n## Tech Stack\n\n- **Language**: {detected languages}\n- **Framework**: {detected frameworks}\n- **Package Manager**: {npm\u002Fyarn\u002Fpnpm\u002Fetc.}\n\n## Development Commands\n\n| Command | Description |\n|---------|-------------|\n| `npm install` | Install dependencies |\n| `npm run build` | Build project |\n| `npm test` | Run tests |\n\n## Project Structure\n\n```\nsrc\u002F           → Source code\ntest\u002F          → Test files\ndocs\u002F          → Documentation\n```\n\n## Code Conventions\n\n{Project-specific conventions}\n\n---\n\n## Team Directives\n\n\u003C!-- PRESERVED SECTION -->\n\n{ALL PRESERVED CONTENT}\n\n\u003C!-- \u002FPRESERVED SECTION -->\n\n---\n\n## AIWG Framework Integration\n\nThis project uses AIWG SDLC framework with Cursor.\n\n### Installed Frameworks\n\n| Framework | Agents | Commands |\n|-----------|--------|----------|\n| sdlc-complete | 54 | 42 |\n\n### Using Agents\n\nInvoke agents via @-mention in Cursor:\n\n```text\n@security-architect Review the authentication implementation\n@test-engineer Generate unit tests for the user service\n```\n\n### Natural Language Mappings\n\n| Request | Maps To |\n|---------|---------|\n| \"run security review\" | flow-security-review-cycle |\n| \"check status\" | project-status |\n| \"start iteration N\" | flow-iteration-dual-track |\n\n## Project Artifacts\n\n{If .aiwg\u002F exists:}\n\n| Category | Location |\n|----------|----------|\n| Requirements | @.aiwg\u002Frequirements\u002F |\n| Architecture | @.aiwg\u002Farchitecture\u002F |\n\n## Core References\n\n| Topic | Reference |\n|-------|-----------|\n| Orchestration | @~\u002F.local\u002Fshare\u002Fai-writing-guide\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fprompts\u002Fcore\u002Forchestrator.md |\n| Agent Design | @~\u002F.local\u002Fshare\u002Fai-writing-guide\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fprompts\u002Fagents\u002Fdesign-rules.md |\n\n{If SDLC framework installed:}\n\n## SDLC References\n\n| Topic | Reference |\n|-------|-----------|\n| Natural Language | @~\u002F.local\u002Fshare\u002Fai-writing-guide\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fdocs\u002Fsimple-language-translations.md |\n\n## Resources\n\n- **AIWG Installation**: `~\u002F.local\u002Fshare\u002Fai-writing-guide`\n\n---\n\n\u003C!--\n  Add team-specific notes below.\n  Content in preserved sections survives regeneration.\n-->\n```\n\n### Step 6: Write Output\n\n**If `--dry-run`:** Display content, do not write.\n\n**Otherwise:**\n1. Write to `.cursorrules`\n2. Report summary\n\n```\n.cursorrules Regenerated\n========================\n\nBackup: .cursorrules.backup-20251206-153512\n\nPreserved: 2 sections, 15 lines\nRegenerated: Project overview, structure, AIWG integration\n\nOutput: .cursorrules (187 lines)\n```\n\n## Examples\n\n```bash\n# Regenerate .cursorrules\n\u002Faiwg-regenerate-cursorrules\n\n# Preview changes\n\u002Faiwg-regenerate-cursorrules --dry-run\n\n# Check preserved content\n\u002Faiwg-regenerate-cursorrules --show-preserved\n\n# Full regeneration\n\u002Faiwg-regenerate-cursorrules --full\n```\n\n## Related Commands\n\n| Command | Regenerates |\n|---------|-------------|\n| `\u002Faiwg-regenerate-claude` | CLAUDE.md |\n| `\u002Faiwg-regenerate-warp` | WARP.md |\n| `\u002Faiwg-regenerate-agents` | AGENTS.md |\n| `\u002Faiwg-regenerate-cursorrules` | .cursorrules |\n| `\u002Faiwg-regenerate-windsurfrules` | .windsurfrules |\n| `\u002Faiwg-regenerate-copilot` | copilot-instructions.md |\n| `\u002Faiwg-regenerate` | Auto-detect |\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002FREADME.md — aiwg-utils addon overview\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fnative-ux-tools.md — Platform capability matrix including Cursor support\n- @$AIWG_ROOT\u002Fdocs\u002Fcli-reference.md — CLI reference for aiwg sync and regenerate commands\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002FREADME.md — SDLC framework integration referenced in generated .cursorrules\n","# Regenerate .cursorrules\n\nRegenerate the `.cursorrules` file for Cursor IDE integration, analyzing current project state while preserving team directives and organizational requirements.\n\n**Hook file approach (default):** Generates `AIWG-cursor.md` and adds `@AIWG-cursor.md` directive to `.cursorrules`. Note: Cursor's @-link support in `.cursorrules` is partially confirmed — see #444.\n\n**Full inject (`--full-inject`):** Embeds AIWG content inline with AIWG markers (safe fallback).\n\n## Parameters\n\n| Flag | Description |\n|------|-------------|\n| `--no-backup` | Skip creating backup file |\n| `--dry-run` | Preview changes without writing |\n| `--show-preserved` | List all detected preserved content and exit |\n| `--full` | Full regeneration, preserve nothing (destructive) |\n\n## Execution Steps\n\n### Step 1: Create Backup\n\nUnless `--no-backup` specified:\n\n1. Check if `.cursorrules` exists\n2. If exists, copy to `.cursorrules.backup-{YYYYMMDD-HHMMSS}`\n3. Report backup location\n\n### Step 2: Extract Preserved Content\n\nSame preservation patterns as other platforms:\n\n1. **Explicit Preserve Blocks**: `\u003C!-- PRESERVE -->` ... `\u003C!-- \u002FPRESERVE -->`\n2. **Preserved Section Headings**: Team *, Org *, Definition of Done, etc.\n3. **Inline Directives**: Lines with directive keywords\n\n### Step 3: Analyze Project\n\n- Languages and package managers\n- Development commands\n- Test framework\n- CI\u002FCD configuration\n- Directory structure\n- Cursor-specific configuration in `.cursor\u002F`\n\n### Step 4: Detect AIWG State\n\nCheck installed frameworks by scanning:\n- `.cursor\u002Fagents\u002F` for deployed agents\n- `.cursor\u002Frules\u002F` for MDC rules\n- `.cursor\u002Fcommands\u002F` for commands\n\nRead registry for framework versions.\n\n### Step 5: Generate .cursorrules\n\n**Document Structure:**\n\n```markdown\n# .cursorrules\n\nProject rules for Cursor AI assistance.\n\n## Project Overview\n\n{Description from README.md or package.json}\n\n## Tech Stack\n\n- **Language**: {detected languages}\n- **Framework**: {detected frameworks}\n- **Package Manager**: {npm\u002Fyarn\u002Fpnpm\u002Fetc.}\n\n## Development Commands\n\n| Command | Description |\n|---------|-------------|\n| `npm install` | Install dependencies |\n| `npm run build` | Build project |\n| `npm test` | Run tests |\n\n## Project Structure\n\n```\nsrc\u002F           → Source code\ntest\u002F          → Test files\ndocs\u002F          → Documentation\n```\n\n## Code Conventions\n\n{Project-specific conventions}\n\n---\n\n## Team Directives\n\n\u003C!-- PRESERVED SECTION -->\n\n{ALL PRESERVED CONTENT}\n\n\u003C!-- \u002FPRESERVED SECTION -->\n\n---\n\n## AIWG Framework Integration\n\nThis project uses AIWG SDLC framework with Cursor.\n\n### Installed Frameworks\n\n| Framework | Agents | Commands |\n|-----------|--------|----------|\n| sdlc-complete | 54 | 42 |\n\n### Using Agents\n\nInvoke agents via @-mention in Cursor:\n\n```text\n@security-architect Review the authentication implementation\n@test-engineer Generate unit tests for the user service\n```\n\n### Natural Language Mappings\n\n| Request | Maps To |\n|---------|---------|\n| \"run security review\" | flow-security-review-cycle |\n| \"check status\" | project-status |\n| \"start iteration N\" | flow-iteration-dual-track |\n\n## Project Artifacts\n\n{If .aiwg\u002F exists:}\n\n| Category | Location |\n|----------|----------|\n| Requirements | @.aiwg\u002Frequirements\u002F |\n| Architecture | @.aiwg\u002Farchitecture\u002F |\n\n## Core References\n\n| Topic | Reference |\n|-------|-----------|\n| Orchestration | @~\u002F.local\u002Fshare\u002Fai-writing-guide\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fprompts\u002Fcore\u002Forchestrator.md |\n| Agent Design | @~\u002F.local\u002Fshare\u002Fai-writing-guide\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fprompts\u002Fagents\u002Fdesign-rules.md |\n\n{If SDLC framework installed:}\n\n## SDLC References\n\n| Topic | Reference |\n|-------|-----------|\n| Natural Language | @~\u002F.local\u002Fshare\u002Fai-writing-guide\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fdocs\u002Fsimple-language-translations.md |\n\n## Resources\n\n- **AIWG Installation**: `~\u002F.local\u002Fshare\u002Fai-writing-guide`\n\n---\n\n\u003C!--\n  Add team-specific notes below.\n  Content in preserved sections survives regeneration.\n-->\n```\n\n### Step 6: Write Output\n\n**If `--dry-run`:** Display content, do not write.\n\n**Otherwise:**\n1. Write to `.cursorrules`\n2. Report summary\n\n```\n.cursorrules Regenerated\n========================\n\nBackup: .cursorrules.backup-20251206-153512\n\nPreserved: 2 sections, 15 lines\nRegenerated: Project overview, structure, AIWG integration\n\nOutput: .cursorrules (187 lines)\n```\n\n## Examples\n\n```bash\n# Regenerate .cursorrules\n\u002Faiwg-regenerate-cursorrules\n\n# Preview changes\n\u002Faiwg-regenerate-cursorrules --dry-run\n\n# Check preserved content\n\u002Faiwg-regenerate-cursorrules --show-preserved\n\n# Full regeneration\n\u002Faiwg-regenerate-cursorrules --full\n```\n\n## Related Commands\n\n| Command | Regenerates |\n|---------|-------------|\n| `\u002Faiwg-regenerate-claude` | CLAUDE.md |\n| `\u002Faiwg-regenerate-warp` | WARP.md |\n| `\u002Faiwg-regenerate-agents` | AGENTS.md |\n| `\u002Faiwg-regenerate-cursorrules` | .cursorrules |\n| `\u002Faiwg-regenerate-windsurfrules` | .windsurfrules |\n| `\u002Faiwg-regenerate-copilot` | copilot-instructions.md |\n| `\u002Faiwg-regenerate` | Auto-detect |\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002FREADME.md — aiwg-utils addon overview\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fnative-ux-tools.md — Platform capability matrix including Cursor support\n- @$AIWG_ROOT\u002Fdocs\u002Fcli-reference.md — CLI reference for aiwg sync and regenerate commands\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002FREADME.md — SDLC framework integration referenced in generated .cursorrules\n",{"name":5,"namespace":44,"platforms":45,"description":7},"aiwg",[46],"all","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Faiwg-regenerate-cursorrules",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 aiwg-regenerate-cursorrules",{"tool":63,"command":64},"bunx","bunx skills add jmagly\u002Faiwg --skill aiwg-regenerate-cursorrules",{"tool":66,"command":67},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill aiwg-regenerate-cursorrules","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Faiwg-regenerate-cursorrules\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]]