aiwg 2026.3.2 → 2026.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/CLAUDE.md +3 -0
  2. package/agentic/code/addons/aiwg-utils/commands/aiwg-regenerate-agents.md +6 -2
  3. package/agentic/code/addons/aiwg-utils/commands/aiwg-regenerate-claude.md +59 -19
  4. package/agentic/code/addons/aiwg-utils/commands/aiwg-regenerate-codex.md +130 -0
  5. package/agentic/code/addons/aiwg-utils/commands/aiwg-regenerate-copilot.md +5 -1
  6. package/agentic/code/addons/aiwg-utils/commands/aiwg-regenerate-cursorrules.md +5 -1
  7. package/agentic/code/addons/aiwg-utils/commands/aiwg-regenerate-factory.md +2 -2
  8. package/agentic/code/addons/aiwg-utils/commands/aiwg-regenerate-opencode.md +130 -0
  9. package/agentic/code/addons/aiwg-utils/commands/aiwg-regenerate-warp.md +5 -1
  10. package/agentic/code/addons/aiwg-utils/commands/aiwg-regenerate-windsurfrules.md +5 -1
  11. package/agentic/code/addons/aiwg-utils/commands/aiwg-regenerate.md +49 -12
  12. package/agentic/code/addons/aiwg-utils/commands/commit-and-push.md +42 -470
  13. package/agentic/code/addons/aiwg-utils/commands/hook-disable.md +154 -0
  14. package/agentic/code/addons/aiwg-utils/commands/hook-enable.md +153 -0
  15. package/agentic/code/addons/aiwg-utils/commands/hook-regenerate.md +204 -0
  16. package/agentic/code/addons/aiwg-utils/commands/hook-status.md +118 -0
  17. package/agentic/code/addons/aiwg-utils/commands/migrate-hook.md +269 -0
  18. package/agentic/code/addons/aiwg-utils/commands/soul-disable.md +162 -0
  19. package/agentic/code/addons/aiwg-utils/commands/soul-enable.md +250 -0
  20. package/agentic/code/addons/aiwg-utils/commands/soul-status.md +171 -0
  21. package/agentic/code/addons/aiwg-utils/commands/soul-to-voice.md +199 -0
  22. package/agentic/code/addons/aiwg-utils/commands/voice-to-soul.md +163 -0
  23. package/agentic/code/addons/aiwg-utils/manifest.json +32 -2
  24. package/agentic/code/addons/aiwg-utils/prompts/agents/design-rules.md +1 -0
  25. package/agentic/code/addons/aiwg-utils/rules/diagram-generation.md +126 -0
  26. package/agentic/code/addons/aiwg-utils/rules/native-ux-tools.md +108 -0
  27. package/agentic/code/addons/aiwg-utils/rules/soul-enforcement.md +17 -0
  28. package/agentic/code/addons/aiwg-utils/skills/artifact-metadata/SKILL.md +4 -0
  29. package/agentic/code/addons/aiwg-utils/skills/claims-validator/SKILL.md +4 -0
  30. package/agentic/code/addons/aiwg-utils/skills/config-validator/SKILL.md +4 -0
  31. package/agentic/code/addons/aiwg-utils/skills/manifest.json +25 -0
  32. package/agentic/code/addons/aiwg-utils/skills/nl-router/SKILL.md +4 -0
  33. package/agentic/code/addons/aiwg-utils/skills/parallel-dispatch/SKILL.md +4 -0
  34. package/agentic/code/addons/aiwg-utils/skills/project-awareness/SKILL.md +4 -0
  35. package/agentic/code/addons/aiwg-utils/skills/soul-apply/SKILL.md +170 -0
  36. package/agentic/code/addons/aiwg-utils/skills/soul-blend/SKILL.md +121 -0
  37. package/agentic/code/addons/aiwg-utils/skills/soul-create/SKILL.md +162 -0
  38. package/agentic/code/addons/aiwg-utils/skills/soul-enhance/SKILL.md +226 -0
  39. package/agentic/code/addons/aiwg-utils/skills/soul-validate/SKILL.md +189 -0
  40. package/agentic/code/addons/aiwg-utils/skills/template-engine/SKILL.md +4 -0
  41. package/agentic/code/addons/aiwg-utils/skills/workspace-health/SKILL.md +4 -0
  42. package/agentic/code/addons/doc-intelligence/skills/doc-scraper/SKILL.md +1 -0
  43. package/agentic/code/addons/doc-intelligence/skills/doc-splitter/SKILL.md +1 -0
  44. package/agentic/code/addons/doc-intelligence/skills/llms-txt-support/SKILL.md +1 -0
  45. package/agentic/code/addons/doc-intelligence/skills/pdf-extractor/SKILL.md +1 -0
  46. package/agentic/code/addons/doc-intelligence/skills/source-unifier/SKILL.md +1 -0
  47. package/agentic/code/addons/guided-implementation/skills/iteration-control/SKILL.md +4 -0
  48. package/agentic/code/addons/ralph/skills/auto-test-execution/SKILL.md +4 -0
  49. package/agentic/code/addons/ralph/skills/cross-task-learner/SKILL.md +1 -0
  50. package/agentic/code/addons/ralph/skills/ralph-loop/SKILL.md +1 -0
  51. package/agentic/code/addons/ralph/skills/reflection-injection/SKILL.md +4 -0
  52. package/agentic/code/addons/rlm/skills/rlm-mode/SKILL.md +1 -0
  53. package/agentic/code/addons/skill-factory/skills/quality-checker/SKILL.md +1 -0
  54. package/agentic/code/addons/skill-factory/skills/skill-builder/SKILL.md +1 -0
  55. package/agentic/code/addons/skill-factory/skills/skill-enhancer/SKILL.md +1 -0
  56. package/agentic/code/addons/skill-factory/skills/skill-packager/SKILL.md +1 -0
  57. package/agentic/code/addons/testing-quality/skills/flaky-detect/SKILL.md +1 -0
  58. package/agentic/code/addons/testing-quality/skills/flaky-fix/SKILL.md +1 -0
  59. package/agentic/code/addons/testing-quality/skills/generate-factory/SKILL.md +1 -0
  60. package/agentic/code/addons/testing-quality/skills/mutation-test/SKILL.md +1 -0
  61. package/agentic/code/addons/testing-quality/skills/tdd-enforce/SKILL.md +1 -0
  62. package/agentic/code/addons/testing-quality/skills/test-sync/SKILL.md +1 -0
  63. package/agentic/code/addons/uat-mcp/skills/uat-mode/SKILL.md +1 -0
  64. package/agentic/code/addons/verbalized-sampling/README.md +69 -0
  65. package/agentic/code/addons/verbalized-sampling/agents/content-diversifier.md +64 -0
  66. package/agentic/code/addons/verbalized-sampling/manifest.json +57 -0
  67. package/agentic/code/addons/verbalized-sampling/prompts/vs-cot.md +47 -0
  68. package/agentic/code/addons/verbalized-sampling/prompts/vs-multi.md +71 -0
  69. package/agentic/code/addons/verbalized-sampling/prompts/vs-standard.md +53 -0
  70. package/agentic/code/addons/verbalized-sampling/rules/diversity-awareness.md +46 -0
  71. package/agentic/code/addons/verbalized-sampling/skills/diversity-tuning/SKILL.md +64 -0
  72. package/agentic/code/addons/voice-framework/skills/voice-analyze/SKILL.md +4 -0
  73. package/agentic/code/addons/voice-framework/skills/voice-apply/SKILL.md +1 -0
  74. package/agentic/code/addons/voice-framework/skills/voice-blend/SKILL.md +4 -0
  75. package/agentic/code/addons/voice-framework/skills/voice-create/SKILL.md +4 -0
  76. package/agentic/code/addons/writing-quality/skills/ai-pattern-detection/SKILL.md +1 -0
  77. package/agentic/code/frameworks/forensics-complete/skills/cloud-forensics/SKILL.md +1 -0
  78. package/agentic/code/frameworks/forensics-complete/skills/container-forensics/SKILL.md +1 -0
  79. package/agentic/code/frameworks/forensics-complete/skills/evidence-preservation/SKILL.md +1 -0
  80. package/agentic/code/frameworks/forensics-complete/skills/ioc-extraction/SKILL.md +1 -0
  81. package/agentic/code/frameworks/forensics-complete/skills/linux-forensics/SKILL.md +1 -0
  82. package/agentic/code/frameworks/forensics-complete/skills/log-analysis/SKILL.md +1 -0
  83. package/agentic/code/frameworks/forensics-complete/skills/memory-forensics/SKILL.md +1 -0
  84. package/agentic/code/frameworks/forensics-complete/skills/sigma-hunting/SKILL.md +1 -0
  85. package/agentic/code/frameworks/forensics-complete/skills/supply-chain-forensics/SKILL.md +1 -0
  86. package/agentic/code/frameworks/forensics-complete/skills/target-profiling/SKILL.md +1 -0
  87. package/agentic/code/frameworks/media-marketing-kit/skills/approval-workflow/SKILL.md +4 -0
  88. package/agentic/code/frameworks/media-marketing-kit/skills/audience-synthesis/SKILL.md +4 -0
  89. package/agentic/code/frameworks/media-marketing-kit/skills/brand-compliance/SKILL.md +4 -0
  90. package/agentic/code/frameworks/media-marketing-kit/skills/competitive-intel/SKILL.md +4 -0
  91. package/agentic/code/frameworks/media-marketing-kit/skills/data-pipeline/SKILL.md +4 -0
  92. package/agentic/code/frameworks/media-marketing-kit/skills/performance-digest/SKILL.md +4 -0
  93. package/agentic/code/frameworks/media-marketing-kit/skills/qa-protocol/SKILL.md +4 -0
  94. package/agentic/code/frameworks/media-marketing-kit/skills/review-synthesis/SKILL.md +4 -0
  95. package/agentic/code/frameworks/sdlc-complete/agents/architecture-designer.soul.md +61 -0
  96. package/agentic/code/frameworks/sdlc-complete/agents/compliance-grounding-agent.md +37 -0
  97. package/agentic/code/frameworks/sdlc-complete/agents/performance-grounding-agent.md +38 -0
  98. package/agentic/code/frameworks/sdlc-complete/agents/requirements-analyst.soul.md +63 -0
  99. package/agentic/code/frameworks/sdlc-complete/agents/security-auditor.soul.md +64 -0
  100. package/agentic/code/frameworks/sdlc-complete/agents/security-grounding-agent.md +51 -0
  101. package/agentic/code/frameworks/sdlc-complete/agents/technology-grounding-agent.md +37 -0
  102. package/agentic/code/frameworks/sdlc-complete/agents/test-engineer.soul.md +61 -0
  103. package/agentic/code/frameworks/sdlc-complete/config/models.json +16 -0
  104. package/agentic/code/frameworks/sdlc-complete/extensions/github/skills/pr-reviewer/SKILL.md +1 -0
  105. package/agentic/code/frameworks/sdlc-complete/extensions/github/skills/repo-analyzer/SKILL.md +1 -0
  106. package/agentic/code/frameworks/sdlc-complete/extensions/javascript/skills/eslint-checker/SKILL.md +1 -0
  107. package/agentic/code/frameworks/sdlc-complete/extensions/javascript/skills/vitest-runner/SKILL.md +1 -0
  108. package/agentic/code/frameworks/sdlc-complete/extensions/python/skills/pytest-runner/SKILL.md +1 -0
  109. package/agentic/code/frameworks/sdlc-complete/extensions/python/skills/venv-manager/SKILL.md +1 -0
  110. package/agentic/code/frameworks/sdlc-complete/manifest.json +6 -1
  111. package/agentic/code/frameworks/sdlc-complete/rules/RULES-INDEX.md +23 -4
  112. package/agentic/code/frameworks/sdlc-complete/rules/hitl-gates.md +37 -0
  113. package/agentic/code/frameworks/sdlc-complete/rules/sdlc-orchestration.md +1 -0
  114. package/agentic/code/frameworks/sdlc-complete/schemas/metalanguage/agent.schema.json +53 -0
  115. package/agentic/code/frameworks/sdlc-complete/schemas/metalanguage/examples/anti-laziness.rule.yaml +32 -0
  116. package/agentic/code/frameworks/sdlc-complete/schemas/metalanguage/examples/code-reviewer.agent.yaml +24 -0
  117. package/agentic/code/frameworks/sdlc-complete/schemas/metalanguage/examples/inception-to-elaboration.flow.yaml +59 -0
  118. package/agentic/code/frameworks/sdlc-complete/schemas/metalanguage/examples/project-awareness.skill.yaml +28 -0
  119. package/agentic/code/frameworks/sdlc-complete/schemas/metalanguage/flow.schema.json +76 -0
  120. package/agentic/code/frameworks/sdlc-complete/schemas/metalanguage/rule.schema.json +27 -0
  121. package/agentic/code/frameworks/sdlc-complete/schemas/metalanguage/skill.schema.json +45 -0
  122. package/agentic/code/frameworks/sdlc-complete/skills/architecture-evolution/SKILL.md +4 -0
  123. package/agentic/code/frameworks/sdlc-complete/skills/artifact-lookup/SKILL.md +4 -0
  124. package/agentic/code/frameworks/sdlc-complete/skills/artifact-orchestration/SKILL.md +4 -0
  125. package/agentic/code/frameworks/sdlc-complete/skills/auto-provenance/SKILL.md +4 -0
  126. package/agentic/code/frameworks/sdlc-complete/skills/citation-guard/SKILL.md +4 -0
  127. package/agentic/code/frameworks/sdlc-complete/skills/cleanup-audit/SKILL.md +4 -0
  128. package/agentic/code/frameworks/sdlc-complete/skills/code-chunker/SKILL.md +4 -0
  129. package/agentic/code/frameworks/sdlc-complete/skills/decision-support/SKILL.md +4 -0
  130. package/agentic/code/frameworks/sdlc-complete/skills/decompose-file/SKILL.md +4 -0
  131. package/agentic/code/frameworks/sdlc-complete/skills/doc-sync/SKILL.md +4 -0
  132. package/agentic/code/frameworks/sdlc-complete/skills/gate-evaluation/SKILL.md +4 -0
  133. package/agentic/code/frameworks/sdlc-complete/skills/grade-on-ingest/SKILL.md +4 -0
  134. package/agentic/code/frameworks/sdlc-complete/skills/incident-triage/SKILL.md +4 -0
  135. package/agentic/code/frameworks/sdlc-complete/skills/issue-auto-sync/SKILL.md +4 -0
  136. package/agentic/code/frameworks/sdlc-complete/skills/issue-driven-ralph/SKILL.md +1 -0
  137. package/agentic/code/frameworks/sdlc-complete/skills/regression-api-contract/SKILL.md +4 -0
  138. package/agentic/code/frameworks/sdlc-complete/skills/regression-auto-baseline/SKILL.md +4 -0
  139. package/agentic/code/frameworks/sdlc-complete/skills/regression-baseline/SKILL.md +4 -0
  140. package/agentic/code/frameworks/sdlc-complete/skills/regression-bisect/SKILL.md +4 -0
  141. package/agentic/code/frameworks/sdlc-complete/skills/regression-cicd-hooks/SKILL.md +4 -0
  142. package/agentic/code/frameworks/sdlc-complete/skills/regression-learning/SKILL.md +4 -0
  143. package/agentic/code/frameworks/sdlc-complete/skills/regression-metrics/SKILL.md +4 -0
  144. package/agentic/code/frameworks/sdlc-complete/skills/regression-performance/SKILL.md +4 -0
  145. package/agentic/code/frameworks/sdlc-complete/skills/regression-report/SKILL.md +4 -0
  146. package/agentic/code/frameworks/sdlc-complete/skills/regression-visual/SKILL.md +4 -0
  147. package/agentic/code/frameworks/sdlc-complete/skills/risk-cycle/SKILL.md +4 -0
  148. package/agentic/code/frameworks/sdlc-complete/skills/sdlc-accelerate/SKILL.md +4 -0
  149. package/agentic/code/frameworks/sdlc-complete/skills/sdlc-reports/SKILL.md +4 -0
  150. package/agentic/code/frameworks/sdlc-complete/skills/security-assessment/SKILL.md +4 -0
  151. package/agentic/code/frameworks/sdlc-complete/skills/test-coverage/SKILL.md +4 -0
  152. package/agentic/code/frameworks/sdlc-complete/skills/tot-exploration/SKILL.md +4 -0
  153. package/agentic/code/frameworks/sdlc-complete/skills/traceability-check/SKILL.md +4 -0
  154. package/agentic/code/frameworks/sdlc-complete/templates/analysis-design/software-architecture-doc-template.md +9 -2
  155. package/agentic/code/frameworks/sdlc-complete/templates/hermes/AGENTS.md.aiwg-template +26 -0
  156. package/agentic/code/frameworks/sdlc-complete/templates/hermes/hermes-config-minimal.yaml +58 -0
  157. package/agentic/code/frameworks/sdlc-complete/templates/hermes/hermes-config-prompts.yaml +35 -0
  158. package/agentic/code/frameworks/sdlc-complete/templates/hermes/skills/aiwg-orchestrate/SKILL.md +69 -0
  159. package/agentic/code/frameworks/sdlc-complete/templates/opencode/opencode-ollama.json.aiwg-template +38 -0
  160. package/agentic/code/frameworks/sdlc-complete/templates/opencode/opencode.json.aiwg-template +6 -12
  161. package/agentic/code/frameworks/sdlc-complete/templates/project/AIWG-codex.md +23 -0
  162. package/agentic/code/frameworks/sdlc-complete/templates/project/AIWG-copilot.md +23 -0
  163. package/agentic/code/frameworks/sdlc-complete/templates/project/AIWG-cursor.md +24 -0
  164. package/agentic/code/frameworks/sdlc-complete/templates/project/AIWG-factory.md +23 -0
  165. package/agentic/code/frameworks/sdlc-complete/templates/project/AIWG-opencode.md +23 -0
  166. package/agentic/code/frameworks/sdlc-complete/templates/project/AIWG-sdlc-fragment.md +99 -0
  167. package/agentic/code/frameworks/sdlc-complete/templates/project/AIWG-warp.md +24 -0
  168. package/agentic/code/frameworks/sdlc-complete/templates/project/AIWG-windsurf.md +23 -0
  169. package/agentic/code/frameworks/sdlc-complete/templates/project/AIWG.md +486 -0
  170. package/agentic/code/frameworks/sdlc-complete/templates/project/CLAUDE.md +2 -472
  171. package/docs/agent-intelligence.md +236 -0
  172. package/docs/contributing/model-testing.md +181 -0
  173. package/docs/development/aiwg-development-guide.md +56 -0
  174. package/docs/hook-file-architecture.md +194 -0
  175. package/docs/hybrid-addressing.md +194 -0
  176. package/docs/integrations/hermes-quickstart.md +384 -0
  177. package/docs/model-evaluation.md +156 -0
  178. package/docs/models/local-models.md +285 -29
  179. package/docs/models/supported-models.md +132 -0
  180. package/docs/quality-metrics.md +281 -0
  181. package/docs/releases/v2026.3.1-social.md +180 -0
  182. package/docs/releases/v2026.3.3-announcement.md +367 -0
  183. package/docs/soul-md-guide.md +377 -0
  184. package/docs/yaml-metalanguage.md +270 -0
  185. package/package.json +1 -1
  186. package/src/agents/grounding/knowledge-base.ts +183 -0
  187. package/src/agents/grounding/types.ts +61 -0
  188. package/src/artifacts/address-parser.ts +112 -0
  189. package/src/artifacts/cli.ts +24 -6
  190. package/src/artifacts/hybrid-query.ts +275 -0
  191. package/src/artifacts/index-builder.ts +4 -1
  192. package/src/artifacts/stats.ts +6 -3
  193. package/src/artifacts/types.ts +89 -6
  194. package/src/catalog/builtin-models.json +132 -4
  195. package/src/cli/handlers/use.ts +73 -9
  196. package/src/extensions/types.ts +65 -2
  197. package/src/metrics/artifact-metrics.ts +291 -0
  198. package/src/metrics/context-budget.ts +279 -0
  199. package/src/metrics/token-counter.ts +186 -0
  200. package/src/quality/feedback-ab.ts +253 -0
  201. package/src/quality/feedback-collector.ts +247 -0
  202. package/src/quality/feedback-tracker.ts +183 -0
  203. package/src/quality/patterns/adr.json +24 -0
  204. package/src/quality/patterns/sad.json +24 -0
  205. package/src/quality/patterns/test-plan.json +24 -0
  206. package/src/quality/patterns/use-case.json +24 -0
  207. package/src/quality/scoring.ts +234 -0
  208. package/tools/agents/deploy-agents.mjs +3 -1
  209. package/tools/agents/providers/base.mjs +30 -6
  210. package/tools/agents/providers/claude.mjs +100 -11
  211. package/tools/agents/providers/codex.mjs +20 -1
  212. package/tools/agents/providers/copilot.mjs +10 -1
  213. package/tools/agents/providers/cursor.mjs +10 -1
  214. package/tools/agents/providers/factory.mjs +19 -3
  215. package/tools/agents/providers/hook-capabilities.mjs +82 -0
  216. package/tools/agents/providers/opencode.mjs +10 -1
  217. package/tools/agents/providers/warp.mjs +10 -1
  218. package/tools/agents/providers/windsurf.mjs +11 -1
  219. package/tools/eval/README.md +65 -0
  220. package/tools/eval/datasets/coding/typescript-function.yaml +25 -0
  221. package/tools/eval/datasets/instruction-following/conventional-commits.yaml +29 -0
  222. package/tools/eval/datasets/instruction-following/no-attribution.yaml +29 -0
  223. package/tools/eval/datasets/reasoning/task-decomposition.yaml +23 -0
  224. package/tools/eval/datasets/structured-output/json-generation.yaml +20 -0
  225. package/tools/eval/datasets/structured-output/yaml-frontmatter.yaml +19 -0
  226. package/tools/eval/datasets/tool-use/basic-edit.yaml +20 -0
  227. package/tools/eval/datasets/tool-use/multi-step-chain.yaml +17 -0
  228. package/tools/eval/datasets/tool-use/search-selection.yaml +18 -0
  229. package/tools/eval/package.json +23 -0
  230. package/tools/eval/src/index.ts +76 -0
  231. package/tools/eval/src/models/ollama.ts +74 -0
  232. package/tools/eval/src/models/types.ts +61 -0
  233. package/tools/eval/src/reporters/json.ts +9 -0
  234. package/tools/eval/src/reporters/markdown.ts +47 -0
  235. package/tools/eval/src/runner.ts +217 -0
  236. package/tools/eval/src/scoring/weights.ts +39 -0
  237. package/tools/eval/tsconfig.json +16 -0
  238. package/tools/install/new-project.mjs +8 -0
package/CLAUDE.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # AIWG
2
2
 
3
+
4
+ @AIWG.md
5
+
3
6
  Framework for improving AI-generated content quality with voice profiles, validation tools, and specialized agents.
4
7
 
5
8
  ## Quick Start
@@ -1,12 +1,16 @@
1
1
  ---
2
2
  name: aiwg-regenerate-agents
3
3
  description: Regenerate AGENTS.md with vendor-neutral content for multi-platform support
4
- args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--interactive] [--guidance "text"]"
4
+ args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--full-inject] [--migrate] [--provider windsurf|factory] [--interactive] [--guidance "text"]"
5
5
  ---
6
6
 
7
7
  # Regenerate AGENTS.md
8
8
 
9
- Regenerate the AGENTS.md file, analyzing current project state while preserving team directives and organizational requirements.
9
+ Regenerate the AGENTS.md file, analyzing current project state while preserving team directives and organizational requirements. Supports Windsurf and Factory AI (both use AGENTS.md as context file).
10
+
11
+ **Hook file approach (default):** Generates `AIWG-windsurf.md` or `AIWG-factory.md` (per `--provider`) and adds directive to AGENTS.md. @-link support unverified — defaults to section-style until confirmed (see #444).
12
+
13
+ **Full inject (`--full-inject`):** Embeds AIWG content inline with AIWG markers.
10
14
 
11
15
  **Used by:** Factory AI, Cursor, OpenCode, Codex, and other platforms that use AGENTS.md for configuration.
12
16
 
@@ -1,12 +1,16 @@
1
1
  ---
2
2
  name: aiwg-regenerate-claude
3
- description: Regenerate CLAUDE.md for Claude Code with vendor-specific content only
4
- args: "[--no-backup] [--dry-run] [--full] [--interactive] [--guidance "text"]"
3
+ description: Regenerate CLAUDE.md for Claude Code with hook file architecture
4
+ args: "[--no-backup] [--dry-run] [--full] [--full-inject] [--migrate] [--interactive] [--guidance "text"]"
5
5
  ---
6
6
 
7
7
  # Regenerate CLAUDE.md
8
8
 
9
- Regenerate the CLAUDE.md file for Claude Code integration. This command performs an **intelligent merge** - analyzing the current project state while preserving team-written content.
9
+ Regenerate the CLAUDE.md file for Claude Code integration. This command performs an **intelligent merge** analyzing the current project state while preserving team-written content.
10
+
11
+ **Hook file architecture (default):** Generates `AIWG.md` with all AIWG context, and adds a single `@AIWG.md` directive to CLAUDE.md. This keeps CLAUDE.md minimal and user-owned.
12
+
13
+ **Full injection (`--full-inject`):** Legacy mode — injects full AIWG content directly into CLAUDE.md (useful for platforms that do not support @-link loading, or user preference).
10
14
 
11
15
  **Vendor-specific filtering:** This command includes ONLY Claude Code slash commands and agents, reducing context pollution. Other vendor content is referenced but not inlined.
12
16
 
@@ -27,6 +31,31 @@ The agent must distinguish between:
27
31
  | `--no-backup` | Skip creating backup file |
28
32
  | `--dry-run` | Preview changes without writing |
29
33
  | `--full` | Full regeneration - replaces everything (destructive) |
34
+ | `--full-inject` | Inject AIWG content directly into CLAUDE.md (legacy/compatibility mode) |
35
+ | `--migrate` | Migrate existing full-injection to hook file approach (runs `/migrate-hook --provider claude`) |
36
+
37
+ ## Hook File Architecture (Default)
38
+
39
+ When running without `--full-inject`:
40
+
41
+ 1. **Generate `AIWG.md`** — assembles AIWG context from installed framework manifests
42
+ 2. **Update `CLAUDE.md`** — minimal: user content + `@AIWG.md` directive
43
+
44
+ ```markdown
45
+ # CLAUDE.md
46
+
47
+ ## Repository Purpose
48
+ [your project description]
49
+
50
+ @AIWG.md
51
+
52
+ ## Project-Specific Notes
53
+ [your team conventions here]
54
+ ```
55
+
56
+ To revert to inline injection: `/aiwg-regenerate-claude --full-inject`
57
+
58
+ To disable context temporarily: `aiwg hook-disable`
30
59
 
31
60
  ## Execution Steps
32
61
 
@@ -388,6 +417,29 @@ Display the generated content, do not write.
388
417
  2. Verify write succeeded
389
418
  3. Report summary
390
419
 
420
+ **Hook file approach (default)**:
421
+ ```
422
+ CLAUDE.md Regenerated
423
+ =====================
424
+
425
+ Backup: CLAUDE.md.backup-20260113-152233
426
+
427
+ Hook File:
428
+ ✓ AIWG.md generated (312 lines)
429
+ - Frameworks: sdlc-complete v2.1.0, aiwg-utils v1.5.0
430
+ - Includes: orchestrator context, RULES-INDEX, 47 commands, 12 agents
431
+
432
+ CLAUDE.md Updated:
433
+ ✓ Team content preserved (46 lines)
434
+ ✓ @AIWG.md directive added
435
+
436
+ Output: CLAUDE.md (49 lines), AIWG.md (312 lines)
437
+
438
+ To disable AIWG context: aiwg hook-disable
439
+ To regenerate hook only: aiwg hook-regenerate
440
+ ```
441
+
442
+ **Full inject mode (`--full-inject`)**:
391
443
  ```
392
444
  CLAUDE.md Regenerated
393
445
  =====================
@@ -404,22 +456,10 @@ AIWG Content Updated:
404
456
  ✓ Tech Stack (TypeScript, Node.js 18+)
405
457
  ✓ Development Commands (12 scripts)
406
458
  ✓ Testing (Vitest)
407
- Project Artifacts (@-mentions)
408
- ✓ AIWG Integration
409
- - Claude Commands (20 listed, 52 total)
410
- - Claude Agents (15 listed, 54 total)
411
- - Full references included
412
-
413
- Vendor-Specific Filtering:
414
- ✓ Only Claude Code content inlined
415
- ✓ Other vendors referenced for multi-vendor setups
416
- ✓ Context size optimized: 387 lines
417
-
418
- Enhancements Added:
419
- ✓ Linked Security Requirements → flow-security-review-cycle
420
- ✓ Linked API Guidelines → architecture docs
421
-
422
- Output: CLAUDE.md (387 lines, 16,428 bytes)
459
+ AIWG Integration (387 lines inline)
460
+
461
+ Output: CLAUDE.md (433 lines, 18,244 bytes)
462
+ Note: Using legacy full-inject mode. Run without --full-inject to use hook file approach.
423
463
  ```
424
464
 
425
465
  ## Content Enhancement
@@ -0,0 +1,130 @@
1
+ ---
2
+ name: aiwg-regenerate-codex
3
+ description: Regenerate Codex context file (CODEX.md or ~/.codex/instructions.md) with AIWG framework content
4
+ category: context-regeneration
5
+ argument-hint: "[--no-backup] [--dry-run] [--user-level] [--migrate]"
6
+ allowed-tools: Read, Write, Edit, Bash, Glob
7
+ model: sonnet
8
+ ---
9
+
10
+ # Regenerate Codex Context
11
+
12
+ Regenerate the Codex context file (`CODEX.md` or `~/.codex/instructions.md`) for OpenAI Codex integration. Performs an **intelligent merge** — preserving team-written content while updating AIWG context.
13
+
14
+ ## Core Principle
15
+
16
+ **Team content is preserved. AIWG content is updated. Full injection used (Codex does not support @-link directives).**
17
+
18
+ ## Important: No @-Link Support
19
+
20
+ Codex context files do not support `@filename` style includes. AIWG content is embedded directly using injection markers:
21
+
22
+ ```markdown
23
+ <!-- BEGIN AIWG -->
24
+ [AIWG content]
25
+ <!-- END AIWG -->
26
+ ```
27
+
28
+ This is different from other providers that use the hook file approach.
29
+
30
+ ## Parameters
31
+
32
+ | Flag | Description |
33
+ |------|-------------|
34
+ | `--no-backup` | Skip creating backup file |
35
+ | `--dry-run` | Preview changes without writing |
36
+ | `--user-level` | Update `~/.codex/instructions.md` instead of project-level `CODEX.md` |
37
+ | `--migrate` | Extract injection to `AIWG-codex.md` and reference from CODEX.md (future-proofing) |
38
+
39
+ ## Context File Locations
40
+
41
+ | Scope | Path | Use case |
42
+ |-------|------|----------|
43
+ | Project-level | `CODEX.md` | Project-specific AIWG context |
44
+ | User-level | `~/.codex/instructions.md` | User-wide context across all projects |
45
+
46
+ Default: project-level `CODEX.md`. Use `--user-level` for user-wide context.
47
+
48
+ ## Execution Steps
49
+
50
+ ### Step 1: Create Backup
51
+
52
+ Unless `--no-backup` specified, create `CODEX.md.backup-{YYYYMMDD-HHMMSS}`.
53
+
54
+ ### Step 2: Analyze Existing Content
55
+
56
+ Read `CODEX.md` if it exists and categorize:
57
+
58
+ - **Team content** (PRESERVE): Project rules, conventions, business logic, above or below AIWG block
59
+ - **AIWG content** (UPDATE): Content between `<!-- BEGIN AIWG -->` and `<!-- END AIWG -->`
60
+
61
+ ### Step 3: Generate AIWG Content
62
+
63
+ Generate AIWG content from installed framework manifests. Same content as other providers' hook files, but embedded inline.
64
+
65
+ Also write `AIWG-codex.md` as a side file for reference and for potential future migration if Codex adds @-link support.
66
+
67
+ ### Step 4: Inject Content
68
+
69
+ **If AIWG markers found**: Replace content between markers with freshly generated content.
70
+
71
+ **If no markers found**: Append AIWG block to end of file (before `<!-- TEAM DIRECTIVES -->` marker if present).
72
+
73
+ ```markdown
74
+ [team content preserved above]
75
+
76
+ <!-- BEGIN AIWG -->
77
+ <!-- Managed by aiwg — regenerate with: aiwg-regenerate-codex -->
78
+ [AIWG content]
79
+ <!-- END AIWG -->
80
+
81
+ <!-- TEAM DIRECTIVES: Add project-specific guidance below -->
82
+ ```
83
+
84
+ ### Step 5: Report
85
+
86
+ ```
87
+ Codex Context Regenerated
88
+ ==========================
89
+
90
+ Backup: CODEX.md.backup-20260322-190000
91
+
92
+ AIWG content: 312 lines (injected between markers)
93
+ Side file: AIWG-codex.md (312 lines, written for reference)
94
+
95
+ Team content preserved: 22 lines
96
+
97
+ Note: Codex does not support @-link directives.
98
+ Content embedded directly with <!-- BEGIN/END AIWG --> markers.
99
+ To update: aiwg-regenerate-codex
100
+ ```
101
+
102
+ ## Examples
103
+
104
+ ```bash
105
+ # Default (project-level CODEX.md)
106
+ /aiwg-regenerate-codex
107
+
108
+ # Update user-level instructions
109
+ /aiwg-regenerate-codex --user-level
110
+
111
+ # Preview without writing
112
+ /aiwg-regenerate-codex --dry-run
113
+
114
+ # Skip backup
115
+ /aiwg-regenerate-codex --no-backup
116
+ ```
117
+
118
+ ## Related Commands
119
+
120
+ | Command | Regenerates |
121
+ |---------|-------------|
122
+ | `/aiwg-regenerate` | Auto-detect and delegate |
123
+ | `/hook-status` | Check hook state (shows "full inject" for Codex) |
124
+ | `/hook-regenerate --provider codex` | Rebuild AIWG-codex.md side file |
125
+
126
+ ## References
127
+
128
+ - #439 — AIWG.md hook file architecture
129
+ - #444 — Multi-provider @-link support research (Codex confirmed no @-link support)
130
+ - #446 — Regenerate command suite update
@@ -1,13 +1,17 @@
1
1
  ---
2
2
  name: aiwg-regenerate-copilot
3
3
  description: Regenerate copilot-instructions.md for GitHub Copilot with vendor-specific content only
4
- args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--interactive] [--guidance "text"]"
4
+ args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--full-inject] [--migrate] [--interactive] [--guidance "text"]"
5
5
  ---
6
6
 
7
7
  # Regenerate copilot-instructions.md
8
8
 
9
9
  Regenerate the `.github/copilot-instructions.md` file for GitHub Copilot integration, analyzing current project state while preserving team directives and organizational requirements.
10
10
 
11
+ **Hook file approach (default):** Generates `AIWG-copilot.md` and adds `@AIWG-copilot.md` directive to copilot-instructions.md if @-link is supported. Note: Copilot @-link support is unverified — defaults to full inject until confirmed (see #444).
12
+
13
+ **Full inject (`--full-inject`):** Embeds AIWG content inline with AIWG markers.
14
+
11
15
  **Vendor-specific filtering:** This command includes ONLY GitHub Copilot patterns and agent references, reducing context pollution. Other vendor content is referenced but not inlined.
12
16
 
13
17
  ## Core Principle
@@ -1,13 +1,17 @@
1
1
  ---
2
2
  name: aiwg-regenerate-cursorrules
3
3
  description: Regenerate .cursorrules for Cursor with preserved team directives
4
- args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--interactive] [--guidance "text"]"
4
+ args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--full-inject] [--migrate] [--interactive] [--guidance "text"]"
5
5
  ---
6
6
 
7
7
  # Regenerate .cursorrules
8
8
 
9
9
  Regenerate the `.cursorrules` file for Cursor IDE integration, analyzing current project state while preserving team directives and organizational requirements.
10
10
 
11
+ **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.
12
+
13
+ **Full inject (`--full-inject`):** Embeds AIWG content inline with AIWG markers (safe fallback).
14
+
11
15
  ## Parameters
12
16
 
13
17
  | Flag | Description |
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: aiwg-regenerate-factory
3
- description: "Alias for /aiwg-regenerate-agents - Regenerate AGENTS.md"
4
- args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--interactive] [--guidance "text"]"
3
+ description: "Regenerate AGENTS.md for Factory AI with hook file architecture"
4
+ args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--full-inject] [--migrate] [--interactive] [--guidance "text"]"
5
5
  ---
6
6
 
7
7
  # Regenerate AGENTS.md (Factory Alias)
@@ -0,0 +1,130 @@
1
+ ---
2
+ name: aiwg-regenerate-opencode
3
+ description: Regenerate OpenCode context file (.opencode/context.md) with AIWG framework content
4
+ category: context-regeneration
5
+ argument-hint: "[--no-backup] [--dry-run] [--full-inject] [--migrate]"
6
+ allowed-tools: Read, Write, Edit, Bash, Glob
7
+ model: sonnet
8
+ ---
9
+
10
+ # Regenerate OpenCode Context
11
+
12
+ Regenerate the `.opencode/context.md` file for OpenCode integration. Performs an **intelligent merge** — preserving team-written content while updating AIWG context.
13
+
14
+ ## Core Principle
15
+
16
+ **Team content is preserved. AIWG content is updated. Hook file approach used when supported.**
17
+
18
+ ## Parameters
19
+
20
+ | Flag | Description |
21
+ |------|-------------|
22
+ | `--no-backup` | Skip creating backup file |
23
+ | `--dry-run` | Preview changes without writing |
24
+ | `--full-inject` | Inject full content directly into context.md (legacy/compatibility mode) |
25
+ | `--migrate` | Migrate existing full-injection to hook file approach |
26
+
27
+ ## Hook File Approach (Default)
28
+
29
+ By default, this command uses the hook file architecture:
30
+
31
+ 1. Generate `AIWG-opencode.md` with AIWG framework content
32
+ 2. Add `@AIWG-opencode.md` directive to `.opencode/context.md`
33
+
34
+ **Note**: OpenCode's support for `@file` directives is not yet confirmed. If the `@` directive is not supported, use `--full-inject` as a fallback. See #444 for status.
35
+
36
+ ## Execution Steps
37
+
38
+ ### Step 1: Create Backup
39
+
40
+ Unless `--no-backup` specified, create `.opencode/context.md.backup-{YYYYMMDD-HHMMSS}`.
41
+
42
+ ### Step 2: Analyze Existing Content
43
+
44
+ Read `.opencode/context.md` if it exists and categorize:
45
+
46
+ - **Team content** (PRESERVE): Project rules, conventions, business logic
47
+ - **AIWG content** (UPDATE): Framework integration sections
48
+
49
+ ### Step 3: Detect Hook File Support
50
+
51
+ Check whether existing `.opencode/context.md` uses a hook file directive:
52
+
53
+ ```bash
54
+ grep -q "@AIWG-opencode.md" .opencode/context.md && echo "hook approach" || echo "full inject or fresh"
55
+ ```
56
+
57
+ ### Step 4: Generate AIWG-opencode.md
58
+
59
+ Generate the hook file content from installed framework manifests (same as `aiwg hook-regenerate --provider opencode`).
60
+
61
+ **If `--full-inject`**: Skip hook file generation, embed content directly.
62
+
63
+ ### Step 5: Write Output
64
+
65
+ **Hook approach** (default):
66
+ 1. Write `AIWG-opencode.md` with generated content
67
+ 2. Update `.opencode/context.md`: preserve team content + add `@AIWG-opencode.md` directive
68
+
69
+ **Full inject** (`--full-inject`):
70
+ 1. Embed full AIWG content in `.opencode/context.md` between markers:
71
+ ```
72
+ <!-- BEGIN AIWG -->
73
+ [content]
74
+ <!-- END AIWG -->
75
+ ```
76
+
77
+ ### Step 6: Report
78
+
79
+ ```
80
+ OpenCode Context Regenerated
81
+ =============================
82
+
83
+ Backup: .opencode/context.md.backup-20260322-190000
84
+
85
+ Hook file: AIWG-opencode.md (312 lines, written)
86
+ Context file: .opencode/context.md updated
87
+ @AIWG-opencode.md directive added
88
+
89
+ Team content preserved: 14 lines
90
+ ```
91
+
92
+ ## Note on OpenCode @-Link Support
93
+
94
+ OpenCode's support for `@file` includes within `.opencode/context.md` is currently unverified (see #444). If you encounter issues with AIWG context not loading:
95
+
96
+ ```bash
97
+ # Fall back to full injection
98
+ /aiwg-regenerate-opencode --full-inject
99
+ ```
100
+
101
+ ## Examples
102
+
103
+ ```bash
104
+ # Default (hook file approach)
105
+ /aiwg-regenerate-opencode
106
+
107
+ # Full injection (compatibility mode)
108
+ /aiwg-regenerate-opencode --full-inject
109
+
110
+ # Preview without writing
111
+ /aiwg-regenerate-opencode --dry-run
112
+
113
+ # Migrate from full inject to hook file
114
+ /aiwg-regenerate-opencode --migrate
115
+ ```
116
+
117
+ ## Related Commands
118
+
119
+ | Command | Regenerates |
120
+ |---------|-------------|
121
+ | `/aiwg-regenerate` | Auto-detect and delegate |
122
+ | `/hook-status` | Check hook state |
123
+ | `/hook-regenerate --provider opencode` | Rebuild hook file only |
124
+ | `/migrate-hook --provider opencode` | Migrate full inject to hook |
125
+
126
+ ## References
127
+
128
+ - #439 — AIWG.md hook file architecture
129
+ - #444 — Multi-provider @-link support research
130
+ - #446 — Regenerate command suite update
@@ -1,13 +1,17 @@
1
1
  ---
2
2
  name: aiwg-regenerate-warp
3
3
  description: Regenerate WARP.md for Warp Terminal with preserved team directives
4
- args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--interactive] [--guidance "text"]"
4
+ args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--full-inject] [--migrate] [--interactive] [--guidance "text"]"
5
5
  ---
6
6
 
7
7
  # Regenerate WARP.md
8
8
 
9
9
  Regenerate the WARP.md file for Warp Terminal integration, analyzing current project state while preserving team directives and organizational requirements.
10
10
 
11
+ **Hook file approach (default):** Generates `AIWG-warp.md` and adds a section or `@AIWG-warp.md` directive to WARP.md. Note: Warp's @-link support is unverified — defaults to section-style toggle until confirmed (see #444).
12
+
13
+ **Full inject (`--full-inject`):** Embeds AIWG content inline in WARP.md with AIWG markers.
14
+
11
15
  ## Parameters
12
16
 
13
17
  | Flag | Description |
@@ -1,13 +1,17 @@
1
1
  ---
2
2
  name: aiwg-regenerate-windsurfrules
3
3
  description: Regenerate .windsurfrules for Windsurf with preserved team directives
4
- args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--interactive] [--guidance "text"]"
4
+ args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--full-inject] [--migrate] [--interactive] [--guidance "text"]"
5
5
  ---
6
6
 
7
7
  # Regenerate .windsurfrules
8
8
 
9
9
  Regenerate the `.windsurfrules` file for Windsurf (Codeium) integration, analyzing current project state while preserving team directives and organizational requirements.
10
10
 
11
+ **Hook file approach (default):** Generates `AIWG-windsurf.md` and adds `@AIWG-windsurf.md` directive. Note: Windsurf @-link support is unverified — defaults to full inject until confirmed (see #444).
12
+
13
+ **Full inject (`--full-inject`):** Embeds AIWG content inline with AIWG markers.
14
+
11
15
  ## Parameters
12
16
 
13
17
  | Flag | Description |
@@ -1,13 +1,15 @@
1
1
  ---
2
2
  name: aiwg-regenerate
3
3
  description: Regenerate platform context file with preserved team directives
4
- args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--interactive] [--guidance "text"]"
4
+ args: "[--no-backup] [--dry-run] [--show-preserved] [--full] [--full-inject] [--all] [--interactive] [--guidance "text"] [--migrate]"
5
5
  ---
6
6
 
7
7
  # Regenerate Platform Context File
8
8
 
9
9
  Analyze current project state and regenerate the platform context file (CLAUDE.md, WARP.md, or AGENTS.md) while preserving team directives and organizational requirements.
10
10
 
11
+ By default, uses the **hook file architecture**: generates `AIWG.md` (or provider equivalent) and adds a single directive to the context file. Use `--full-inject` for the legacy inline approach.
12
+
11
13
  ## Parameters
12
14
 
13
15
  | Flag | Description |
@@ -16,6 +18,9 @@ Analyze current project state and regenerate the platform context file (CLAUDE.m
16
18
  | `--dry-run` | Preview changes without writing |
17
19
  | `--show-preserved` | List all detected preserved content and exit |
18
20
  | `--full` | Full regeneration, preserve nothing (destructive) |
21
+ | `--full-inject` | Inject AIWG content directly into context file (legacy/compatibility mode) |
22
+ | `--all` | Regenerate for ALL installed providers simultaneously |
23
+ | `--migrate` | Migrate existing full-injection to hook file approach |
19
24
 
20
25
  ## Platform Detection
21
26
 
@@ -28,21 +33,40 @@ Detect current platform automatically by checking for existing context files:
28
33
  | 3 | `.cursorrules` exists | Cursor | `/aiwg-regenerate-cursorrules` |
29
34
  | 4 | `.windsurfrules` exists | Windsurf | `/aiwg-regenerate-windsurfrules` |
30
35
  | 5 | `.github/copilot-instructions.md` exists | GitHub Copilot | `/aiwg-regenerate-copilot` |
31
- | 6 | `AGENTS.md` exists | Factory/OpenCode/Codex | `/aiwg-regenerate-agents` |
32
- | 7 | `.factory/` exists | Factory AI | `/aiwg-regenerate-agents` |
33
- | 8 | `.cursor/` exists | Cursor | `/aiwg-regenerate-cursorrules` |
34
- | 9 | `.windsurf/` exists | Windsurf | `/aiwg-regenerate-windsurfrules` |
35
- | 10 | `.github/agents/` exists | GitHub Copilot | `/aiwg-regenerate-copilot` |
36
+ | 6 | `CODEX.md` exists | Codex | `/aiwg-regenerate-codex` |
37
+ | 7 | `.opencode/context.md` exists | OpenCode | `/aiwg-regenerate-opencode` |
38
+ | 8 | `AGENTS.md` exists + `.factory/` | Factory AI | `/aiwg-regenerate-factory` |
39
+ | 9 | `AGENTS.md` exists | Windsurf/generic | `/aiwg-regenerate-agents` |
40
+ | 10 | `.factory/` exists | Factory AI | `/aiwg-regenerate-factory` |
41
+ | 11 | `.cursor/` exists | Cursor | `/aiwg-regenerate-cursorrules` |
42
+ | 12 | `.windsurf/` exists | Windsurf | `/aiwg-regenerate-windsurfrules` |
43
+ | 13 | `.github/agents/` exists | GitHub Copilot | `/aiwg-regenerate-copilot` |
36
44
 
37
45
  If multiple files exist, use priority order. If ambiguous, ask user.
38
46
 
47
+ ### `--all` Mode
48
+
49
+ Regenerate all detected providers simultaneously:
50
+
51
+ ```
52
+ Detected providers: claude, warp, cursor
53
+ Regenerating all...
54
+ ✓ CLAUDE.md → AIWG.md (312 lines)
55
+ ✓ WARP.md → AIWG-warp.md (298 lines)
56
+ ✓ .cursorrules → AIWG-cursor.md (295 lines)
57
+ Regenerated 3 providers.
58
+ ```
59
+
39
60
  For explicit platform targeting, use:
40
- - `/aiwg-regenerate-claude` → CLAUDE.md
41
- - `/aiwg-regenerate-warp` → WARP.md
42
- - `/aiwg-regenerate-agents` → AGENTS.md
43
- - `/aiwg-regenerate-cursorrules` → .cursorrules
44
- - `/aiwg-regenerate-windsurfrules` → .windsurfrules
45
- - `/aiwg-regenerate-copilot` → copilot-instructions.md
61
+ - `/aiwg-regenerate-claude` → CLAUDE.md + AIWG.md
62
+ - `/aiwg-regenerate-warp` → WARP.md + AIWG-warp.md
63
+ - `/aiwg-regenerate-agents` → AGENTS.md + AIWG-agents.md
64
+ - `/aiwg-regenerate-cursorrules` → .cursorrules + AIWG-cursor.md
65
+ - `/aiwg-regenerate-windsurfrules` → .windsurfrules + AIWG-windsurf.md
66
+ - `/aiwg-regenerate-copilot` → copilot-instructions.md + AIWG-copilot.md
67
+ - `/aiwg-regenerate-factory` → AGENTS.md + AIWG-factory.md
68
+ - `/aiwg-regenerate-opencode` → .opencode/context.md + AIWG-opencode.md
69
+ - `/aiwg-regenerate-codex` → CODEX.md (full inject, no @-link support)
46
70
 
47
71
  ## Execution Steps
48
72
 
@@ -357,6 +381,19 @@ This cannot be undone (backup will still be created).
357
381
  Continue with full regeneration? [y/N]
358
382
  ```
359
383
 
384
+ ## Interactive Mode
385
+
386
+ When `--interactive` is specified, ask strategic questions before regenerating:
387
+
388
+ 1. Which provider to regenerate (if multiple detected)
389
+ 2. Whether to use hook file or full-inject approach
390
+ 3. Whether to preserve all detected team directives
391
+ 4. Whether to create a backup
392
+
393
+ **Native UX tool preference**: For each question, use the platform's native interaction tool if available (e.g., `AskUserQuestion` in Claude Code). This provides a proper input UI rather than plain text output. If no native tool is available, fall back to formatted markdown with clear options. Ask one question per interaction turn.
394
+
395
+ See `@agentic/code/addons/aiwg-utils/rules/native-ux-tools.md` for the full pattern.
396
+
360
397
  ## Error Handling
361
398
 
362
399
  | Condition | Action |