aiwg 2024.12.2 → 2024.12.4
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.
- package/CLAUDE.md +5 -1
- package/README.md +91 -75
- package/agentic/code/addons/aiwg-utils/README.md +21 -0
- package/agentic/code/addons/aiwg-utils/commands/aiwg-refresh.md +307 -0
- package/agentic/code/addons/aiwg-utils/manifest.json +1 -0
- package/agentic/code/addons/testing-quality/README.md +142 -0
- package/agentic/code/addons/testing-quality/manifest.json +37 -0
- package/agentic/code/addons/testing-quality/skills/flaky-detect/SKILL.md +287 -0
- package/agentic/code/addons/testing-quality/skills/flaky-fix/SKILL.md +313 -0
- package/agentic/code/addons/testing-quality/skills/generate-factory/SKILL.md +331 -0
- package/agentic/code/addons/testing-quality/skills/mutation-test/SKILL.md +299 -0
- package/agentic/code/addons/testing-quality/skills/tdd-enforce/SKILL.md +261 -0
- package/agentic/code/addons/testing-quality/skills/tdd-enforce/scripts/tdd_setup.py +433 -0
- package/agentic/code/addons/testing-quality/skills/test-sync/SKILL.md +312 -0
- package/agentic/code/frameworks/sdlc-complete/agents/README.md +13 -4
- package/agentic/code/frameworks/sdlc-complete/agents/mutation-analyst.md +231 -0
- package/agentic/code/frameworks/sdlc-complete/agents/security-architect.md +10 -0
- package/agentic/code/frameworks/sdlc-complete/agents/software-implementer.md +115 -22
- package/agentic/code/frameworks/sdlc-complete/agents/test-architect.md +144 -22
- package/agentic/code/frameworks/sdlc-complete/agents/test-engineer.md +199 -379
- package/agentic/code/frameworks/sdlc-complete/commands/setup-tdd.md +254 -0
- package/agentic/code/frameworks/sdlc-complete/templates/codex/AGENTS.md.aiwg-template +93 -0
- package/agentic/code/frameworks/sdlc-complete/templates/codex/ci-cd/aiwg-codex-review.yml +87 -0
- package/agentic/code/frameworks/sdlc-complete/templates/codex/ci-cd/aiwg-codex-security.yml +164 -0
- package/agentic/code/frameworks/sdlc-complete/templates/codex/ci-cd/aiwg-codex-tests.yml +126 -0
- package/agentic/code/frameworks/sdlc-complete/templates/codex/config.toml.aiwg-template +121 -0
- package/agentic/code/frameworks/sdlc-complete/templates/copilot/copilot-instructions.md.aiwg-template +71 -0
- package/agentic/code/frameworks/sdlc-complete/templates/cursor/AGENTS.md.aiwg-template +114 -0
- package/agentic/code/frameworks/sdlc-complete/templates/cursor/ci-cd/aiwg-cursor-review.yml +70 -0
- package/agentic/code/frameworks/sdlc-complete/templates/cursor/ci-cd/aiwg-cursor-security.yml +101 -0
- package/agentic/code/frameworks/sdlc-complete/templates/cursor/ci-cd/aiwg-cursor-tests.yml +140 -0
- package/agentic/code/frameworks/sdlc-complete/templates/cursor/cli.json.aiwg-template +27 -0
- package/agentic/code/frameworks/sdlc-complete/templates/cursor/worktrees.json.aiwg-template +15 -0
- package/agentic/code/frameworks/sdlc-complete/templates/governance/adr-template.md +8 -0
- package/agentic/code/frameworks/sdlc-complete/templates/intake/project-intake-template.md +47 -0
- package/agentic/code/frameworks/sdlc-complete/templates/opencode/AGENTS.md.aiwg-template +73 -0
- package/agentic/code/frameworks/sdlc-complete/templates/opencode/ci-cd/opencode-aiwg.yml +73 -0
- package/agentic/code/frameworks/sdlc-complete/templates/opencode/instructions.md.aiwg-template +83 -0
- package/agentic/code/frameworks/sdlc-complete/templates/opencode/opencode.json.aiwg-template +24 -0
- package/agentic/code/frameworks/sdlc-complete/templates/opencode/plugin/aiwg-hooks.ts.aiwg-template +121 -0
- package/agentic/code/frameworks/sdlc-complete/templates/opencode/themes/aiwg.json.aiwg-template +221 -0
- package/agentic/code/frameworks/sdlc-complete/templates/opencode/tool/aiwg-workflow.ts.aiwg-template +176 -0
- package/agentic/code/frameworks/sdlc-complete/templates/requirements/use-case-spec-template.md +5 -1
- package/agentic/code/frameworks/sdlc-complete/templates/test/master-test-plan-template.md +11 -0
- package/agentic/code/frameworks/sdlc-complete/test/unit/security/security-validator.test.ts +2 -1
- package/bin/postinstall.mjs +61 -0
- package/docs/CLI_USAGE.md +145 -45
- package/docs/_config.yml +5 -0
- package/docs/commands/development-commands-examples.md +724 -0
- package/docs/contributing/testing-requirements.md +142 -0
- package/docs/development/file-placement-guide.md +168 -0
- package/docs/development/subagents-guide.md +515 -0
- package/docs/examples/codex-sdk-examples.ts +321 -0
- package/docs/index.md +102 -0
- package/docs/integrations/codex-quickstart.md +229 -0
- package/docs/integrations/copilot-quickstart.md +232 -0
- package/docs/integrations/cross-platform-config.md +18 -0
- package/docs/integrations/cursor-quickstart.md +253 -0
- package/docs/integrations/opencode-quickstart.md +303 -0
- package/docs/quickstart.md +8 -0
- package/package.json +17 -12
- package/src/agents/agent-deployer.ts +8 -0
- package/src/cli/index.mjs +11 -2
- package/src/cli/watch-service.ts +2 -1
- package/src/cli/workflow-orchestrator.ts +9 -0
- package/src/intake/git-history-analyzer.ts +5 -0
- package/src/mcp/cli.mjs +152 -4
- package/src/mcp/server.mjs +38 -4
- package/src/plugin/plugin-installer.ts +7 -0
- package/src/plugin/registry-validator.ts +7 -2
- package/src/testing/generators/test-case-generator.ts +6 -0
- package/src/writing/validation-engine.ts +8 -0
- package/tools/agents/deploy-agents.mjs +767 -20
- package/tools/cli/doctor.mjs +155 -0
- package/tools/commands/deploy-prompts-codex.mjs +302 -0
- package/tools/contrib/start-contribution.mjs +2 -2
- package/tools/install/install.sh +4 -0
- package/tools/rules/deploy-rules-cursor.mjs +332 -0
- package/tools/skills/deploy-skills-codex.mjs +319 -0
- package/agentic/code/addons/voice-framework/skills/voice-apply/scripts/__pycache__/voice_loader.cpython-312.pyc +0 -0
package/CLAUDE.md
CHANGED
|
@@ -56,9 +56,12 @@ Use `@path/to/file.md` in your message to load specific documentation:
|
|
|
56
56
|
| Platform | Agent Location | Command |
|
|
57
57
|
|----------|----------------|---------|
|
|
58
58
|
| Claude Code | `.claude/agents/` | `aiwg -deploy-agents` |
|
|
59
|
+
| GitHub Copilot | `.github/agents/` | `aiwg -deploy-agents --provider copilot` |
|
|
59
60
|
| Warp Terminal | `WARP.md` | Symlinked to CLAUDE.md |
|
|
60
61
|
| Factory AI | `.factory/droids/` | `aiwg -deploy-agents --provider factory` |
|
|
61
|
-
|
|
|
62
|
+
| OpenCode | `.opencode/agent/` | `aiwg -deploy-agents --provider opencode` |
|
|
63
|
+
| Cursor | `.cursor/rules/` | `aiwg -deploy-agents --provider cursor` |
|
|
64
|
+
| OpenAI/Codex | `~/.codex/skills/` | `aiwg -deploy-agents --provider codex` |
|
|
62
65
|
|
|
63
66
|
## Writing Principles
|
|
64
67
|
|
|
@@ -134,3 +137,4 @@ npm exec markdownlint-cli2 "**/*.md"
|
|
|
134
137
|
---
|
|
135
138
|
|
|
136
139
|
<!-- TEAM DIRECTIVES: Add project-specific guidance below this line -->
|
|
140
|
+
|
package/README.md
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# AIWG – Agentic AI Workflow Guide
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Modular toolkit for AI-powered SDLC, marketing, and content workflows.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```bash
|
|
8
|
+
npm i -g aiwg # install globally
|
|
9
|
+
aiwg use sdlc # deploy SDLC framework
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
[](https://www.npmjs.com/package/aiwg)
|
|
13
|
+
[](https://www.npmjs.com/package/aiwg)
|
|
14
|
+
[](LICENSE)
|
|
15
|
+
[](https://github.com/jmagly/ai-writing-guide/stargazers)
|
|
8
16
|
|
|
9
|
-
[
|
|
10
|
-
[](https://nodejs.org)
|
|
11
|
-
[](https://github.com/jmagly/ai-writing-guide/stargazers)
|
|
17
|
+
[**Get Started**](#-quick-start) · [**Documentation**](#-documentation) · [**Examples**](examples/) · [**Contributing**](#-contributing) · [**Community**](#-community--support)
|
|
12
18
|
|
|
13
|
-
[
|
|
19
|
+
[](https://discord.gg/BuAusFMxdA)
|
|
20
|
+
[](https://t.me/+oJg9w2lE6A5lOGFh)
|
|
14
21
|
|
|
15
|
-
[
|
|
16
|
-
[](https://t.me/+oJg9w2lE6A5lOGFh)
|
|
22
|
+
🌐 **Live demo & docs:** [https://jmagly.github.io/ai-writing-guide](https://jmagly.github.io/ai-writing-guide)
|
|
17
23
|
|
|
18
24
|
</div>
|
|
19
25
|
|
|
@@ -21,38 +27,37 @@
|
|
|
21
27
|
|
|
22
28
|
## 🚀 Quick Start
|
|
23
29
|
|
|
24
|
-
>
|
|
25
|
-
|
|
26
|
-
### Option 1: npm (Recommended)
|
|
30
|
+
> **Prerequisites:** Node.js ≥18.0.0 and an AI platform (Claude Code, GitHub Copilot, Warp Terminal, or others)
|
|
27
31
|
|
|
28
32
|
```bash
|
|
33
|
+
# Install
|
|
29
34
|
npm install -g aiwg
|
|
30
|
-
```
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
# Activate on your project
|
|
37
|
+
cd your-project
|
|
38
|
+
aiwg use sdlc
|
|
33
39
|
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
# Or scaffold a new project with everything set up
|
|
41
|
+
aiwg -new my-project
|
|
36
42
|
```
|
|
37
43
|
|
|
38
44
|
<details>
|
|
39
|
-
<summary><strong>
|
|
40
|
-
|
|
41
|
-
After installing via npm, you can switch to bleeding edge (latest from main branch):
|
|
45
|
+
<summary><strong>More installation options</strong></summary>
|
|
42
46
|
|
|
47
|
+
**Bash Script (Legacy):**
|
|
43
48
|
```bash
|
|
44
|
-
|
|
45
|
-
aiwg --use-main
|
|
46
|
-
|
|
47
|
-
# Switch back to stable (npm releases)
|
|
48
|
-
aiwg --use-stable
|
|
49
|
+
curl -fsSL https://raw.githubusercontent.com/jmagly/ai-writing-guide/main/tools/install/install.sh | bash
|
|
49
50
|
```
|
|
50
51
|
|
|
51
|
-
Edge
|
|
52
|
+
**Bleeding Edge Mode:**
|
|
53
|
+
```bash
|
|
54
|
+
aiwg --use-main # Track main branch
|
|
55
|
+
aiwg --use-stable # Back to npm releases
|
|
56
|
+
```
|
|
52
57
|
|
|
53
58
|
</details>
|
|
54
59
|
|
|
55
|
-
**
|
|
60
|
+
**Choose your framework:**
|
|
56
61
|
|
|
57
62
|
```bash
|
|
58
63
|
cd your-project
|
|
@@ -77,6 +82,15 @@ aiwg use sdlc --provider warp
|
|
|
77
82
|
# Factory AI (creates .factory/droids/ + AGENTS.md)
|
|
78
83
|
aiwg use sdlc --provider factory
|
|
79
84
|
|
|
85
|
+
# OpenCode (creates .opencode/agent/ + AGENTS.md)
|
|
86
|
+
aiwg use sdlc --provider opencode
|
|
87
|
+
|
|
88
|
+
# Cursor (creates .cursor/rules/ + AGENTS.md)
|
|
89
|
+
aiwg use sdlc --provider cursor
|
|
90
|
+
|
|
91
|
+
# GitHub Copilot (creates .github/agents/*.yaml + copilot-instructions.md)
|
|
92
|
+
aiwg use sdlc --provider copilot
|
|
93
|
+
|
|
80
94
|
# OpenAI/Codex (experimental)
|
|
81
95
|
aiwg use sdlc --provider openai
|
|
82
96
|
```
|
|
@@ -137,9 +151,9 @@ cd my-awesome-project
|
|
|
137
151
|
</tr>
|
|
138
152
|
</table>
|
|
139
153
|
|
|
140
|
-
### 🔧 **
|
|
154
|
+
### 🔧 **Reliability Patterns**
|
|
141
155
|
|
|
142
|
-
**Research-backed patterns for
|
|
156
|
+
**Research-backed patterns for robust AI workflows.**
|
|
143
157
|
|
|
144
158
|
<table>
|
|
145
159
|
<tr>
|
|
@@ -153,7 +167,7 @@ cd my-awesome-project
|
|
|
153
167
|
<td width="50%">
|
|
154
168
|
|
|
155
169
|
- ✅ **Failure Mode Mitigations** — Address 4 LLM failure archetypes
|
|
156
|
-
- ✅ **Deploy Generators** —
|
|
170
|
+
- ✅ **Deploy Generators** — Docker/K8s config generation
|
|
157
171
|
- ✅ **Evals Framework** — Automated agent behavior testing
|
|
158
172
|
|
|
159
173
|
</td>
|
|
@@ -183,6 +197,31 @@ cd my-awesome-project
|
|
|
183
197
|
</tr>
|
|
184
198
|
</table>
|
|
185
199
|
|
|
200
|
+
### 🧪 **Testing Quality Addon**
|
|
201
|
+
|
|
202
|
+
**Enforce TDD. Validate quality.** Research-backed testing enforcement, quality metrics, and automation.
|
|
203
|
+
|
|
204
|
+
<table>
|
|
205
|
+
<tr>
|
|
206
|
+
<td width="50%">
|
|
207
|
+
|
|
208
|
+
- ✅ **TDD Enforcement** — Pre-commit hooks + CI coverage gates (80%+ target)
|
|
209
|
+
- ✅ **Mutation Testing** — Validate tests beyond coverage (Stryker/PITest/mutmut)
|
|
210
|
+
- ✅ **Flaky Test Detection** — Identify unreliable tests from CI history
|
|
211
|
+
|
|
212
|
+
</td>
|
|
213
|
+
<td width="50%">
|
|
214
|
+
|
|
215
|
+
- ✅ **Flaky Test Fixes** — Pattern-based auto-repair (timing, async, state)
|
|
216
|
+
- ✅ **Test Data Factories** — Auto-generate factories from schemas (Faker.js)
|
|
217
|
+
- ✅ **Test Sync** — Detect orphaned tests, missing tests, code misalignment
|
|
218
|
+
|
|
219
|
+
</td>
|
|
220
|
+
</tr>
|
|
221
|
+
</table>
|
|
222
|
+
|
|
223
|
+
**Research Foundation:** Kent Beck (TDD), Google Testing Blog (80% coverage), FlaKat (flaky detection), UTRefactor (test maintenance)
|
|
224
|
+
|
|
186
225
|
---
|
|
187
226
|
|
|
188
227
|
## 🎬 See It In Action
|
|
@@ -282,9 +321,13 @@ aiwg/
|
|
|
282
321
|
│ │ ├── examples/ → Before/after rewrites
|
|
283
322
|
│ │ └── context/ → Quick-reference for different voices
|
|
284
323
|
│ │
|
|
285
|
-
│
|
|
286
|
-
│
|
|
287
|
-
│
|
|
324
|
+
│ ├── voice-framework/ → Voice profiles for consistent, natural writing
|
|
325
|
+
│ │ ├── skills/ (4) → voice-apply, voice-create, voice-blend, voice-analyze
|
|
326
|
+
│ │ └── voices/templates/ → Built-in profiles (technical, friendly, executive, casual)
|
|
327
|
+
│ │
|
|
328
|
+
│ └── testing-quality/ → Research-backed testing enforcement
|
|
329
|
+
│ ├── skills/ (6) → tdd-enforce, mutation-test, flaky-detect, flaky-fix, generate-factory, test-sync
|
|
330
|
+
│ └── scripts/ → TDD setup automation
|
|
288
331
|
│
|
|
289
332
|
├── 🗂️ Workspace Management
|
|
290
333
|
│ ├── Framework isolation → Run SDLC + MMK + addons simultaneously
|
|
@@ -903,12 +946,16 @@ Get the best of all platforms:
|
|
|
903
946
|
- **Claude Code:** Multi-agent orchestration, artifact generation
|
|
904
947
|
- **Warp Terminal:** Command-line workflows, terminal-native AI
|
|
905
948
|
- **Factory AI:** Custom droid workflows, native Factory format
|
|
949
|
+
- **Cursor:** IDE-native rules, native AGENTS.md support
|
|
950
|
+
- **Codex:** OpenAI's code assistant, prompts format
|
|
906
951
|
|
|
907
952
|
```bash
|
|
908
953
|
# Deploy to all platforms
|
|
909
954
|
aiwg use sdlc # Claude Code (default)
|
|
910
955
|
aiwg use sdlc --provider warp # Warp Terminal
|
|
911
956
|
aiwg use sdlc --provider factory # Factory AI
|
|
957
|
+
aiwg use sdlc --provider cursor # Cursor IDE
|
|
958
|
+
aiwg use sdlc --provider openai # OpenAI Codex
|
|
912
959
|
```
|
|
913
960
|
|
|
914
961
|
---
|
|
@@ -920,8 +967,8 @@ aiwg use sdlc --provider factory # Factory AI
|
|
|
920
967
|
| **Claude Code** | ✅ **Tested & Validated** | Multi-file (.claude/agents/*.md) | Multi-agent orchestration |
|
|
921
968
|
| **Warp Terminal** | ✅ **Tested & Validated** | Single-file (WARP.md) | Terminal-native workflows |
|
|
922
969
|
| **Factory AI** | ✅ **Tested & Validated** | Custom droids (.factory/droids/*.md) | Native droid format, AGENTS.md |
|
|
923
|
-
| **
|
|
924
|
-
| **
|
|
970
|
+
| **Cursor** | ✅ **Tested & Validated** | MDC rules (.cursor/rules/*.mdc) | Native rules format, AGENTS.md |
|
|
971
|
+
| **OpenAI/Codex** | ✅ **Tested & Validated** | `--provider openai` | Native prompts format, AGENTS.md |
|
|
925
972
|
| **Windsurf** | 🟡 Experimental | Claude-compatible | Should work, not validated |
|
|
926
973
|
| **Zed** | 🟡 Experimental | Claude-compatible | Should work, not validated |
|
|
927
974
|
|
|
@@ -1003,6 +1050,8 @@ git --version && echo "✅ Git installed" || echo "ℹ️ Git optional (needed f
|
|
|
1003
1050
|
- [**Warp Terminal Quick Start**](docs/integrations/warp-terminal-quickstart.md) — 3-5 minute setup for Warp Terminal
|
|
1004
1051
|
- [**Warp Terminal Integration Guide**](docs/integrations/warp-terminal.md) — Comprehensive Warp documentation
|
|
1005
1052
|
- [**Factory AI Quick Start**](docs/integrations/factory-quickstart.md) — 5-10 minute setup for Factory AI
|
|
1053
|
+
- [**Cursor Quick Start**](docs/integrations/cursor-quickstart.md) — 5-10 minute setup for Cursor IDE
|
|
1054
|
+
- [**Codex Quick Start**](docs/integrations/codex-quickstart.md) — 5-10 minute setup for OpenAI Codex
|
|
1006
1055
|
- [**Cross-Platform Configuration**](docs/integrations/cross-platform-config.md) — Understanding the WARP.md → CLAUDE.md symlink
|
|
1007
1056
|
|
|
1008
1057
|
### Writing Quality
|
|
@@ -1172,50 +1221,17 @@ Closes #123
|
|
|
1172
1221
|
|
|
1173
1222
|
---
|
|
1174
1223
|
|
|
1175
|
-
##
|
|
1176
|
-
|
|
1177
|
-
**IMPORTANT:** This framework generates extensive AI interactions. Understand your costs before deploying.
|
|
1178
|
-
|
|
1179
|
-
### Usage Characteristics
|
|
1180
|
-
|
|
1181
|
-
**Document Generation Volume:**
|
|
1182
|
-
- Single workflow: 5,000-15,000 words (intake, SAD, reviews, synthesis)
|
|
1183
|
-
- Multi-agent pattern: 3-5x token multiplier (parallel reviews)
|
|
1184
|
-
- Full Inception phase: ~50,000-100,000 words total output
|
|
1185
|
-
- Iteration cycles: 10,000-30,000 words per iteration
|
|
1186
|
-
|
|
1187
|
-
**Typical Monthly Usage** (varies widely):
|
|
1188
|
-
- **Light** (1-2 workflows/week): 40,000-120,000 words → ~$10-20/month
|
|
1189
|
-
- **Moderate** (10-20 workflows/month): 150,000-300,000 words → **$20-50/month**
|
|
1190
|
-
- **Heavy** (daily workflows, full SDLC): 500,000+ words → **$50-150+/month**
|
|
1191
|
-
|
|
1192
|
-
### Account Requirements
|
|
1193
|
-
|
|
1194
|
-
| Account Type | Suitability | Notes |
|
|
1195
|
-
|--------------|-------------|-------|
|
|
1196
|
-
| **Claude Free** | ❌ Not Suitable | Daily message limits hit quickly (5-10 messages) |
|
|
1197
|
-
| **Claude Pro** | ✅ **Recommended** | Higher limits, suitable for moderate usage |
|
|
1198
|
-
| **Claude Team/Enterprise** | ✅ Best | Highest limits, team collaboration, no rate throttling |
|
|
1199
|
-
| **API Pay-as-you-go** | ⚠️ Use with Caution | Can be expensive without cost controls ($50-200+/month) |
|
|
1200
|
-
|
|
1201
|
-
### Cost Mitigation Strategies
|
|
1202
|
-
|
|
1203
|
-
1. **Start Small:** Test with 1-2 use cases before full deployment
|
|
1204
|
-
2. **Use Selectively:** Not every project needs full SDLC artifacts
|
|
1205
|
-
3. **Manual Review:** Edit generated drafts instead of regenerating
|
|
1206
|
-
4. **Monitor Usage:** Track costs weekly, set budget alerts if using API
|
|
1207
|
-
5. **Skip Optional Workflows:** Only run required artifacts for your profile
|
|
1224
|
+
## 💡 Usage Notes
|
|
1208
1225
|
|
|
1209
|
-
|
|
1226
|
+
AIWG is optimized for token efficiency through modular context loading and path-scoped rules. Most users on **Claude Pro** or similar plans will have no issues with normal usage.
|
|
1210
1227
|
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
-
|
|
1215
|
-
|
|
1216
|
-
- Whether you hit rate limits (retry costs)
|
|
1228
|
+
| Account Type | Suitability |
|
|
1229
|
+
|--------------|-------------|
|
|
1230
|
+
| **Claude Pro / Team** | ✅ Recommended |
|
|
1231
|
+
| **API Pay-as-you-go** | ✅ Works well with cost monitoring |
|
|
1232
|
+
| **Free tiers** | ⚠️ May hit rate limits on heavy workflows |
|
|
1217
1233
|
|
|
1218
|
-
**
|
|
1234
|
+
**Tips:** Start with individual workflows before running full SDLC phases. Use `--interactive` mode to control generation scope.
|
|
1219
1235
|
|
|
1220
1236
|
---
|
|
1221
1237
|
|
|
@@ -4,6 +4,27 @@ Core meta-utilities for AIWG management. This addon is automatically installed w
|
|
|
4
4
|
|
|
5
5
|
## Commands
|
|
6
6
|
|
|
7
|
+
### Deployment Management
|
|
8
|
+
|
|
9
|
+
#### `/aiwg-refresh`
|
|
10
|
+
|
|
11
|
+
Update AIWG CLI and redeploy frameworks/tools to current project without leaving the session.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
/aiwg-refresh # Check status only
|
|
15
|
+
/aiwg-refresh --update-cli --all # Update CLI and redeploy everything
|
|
16
|
+
/aiwg-refresh --sdlc # Redeploy SDLC framework only
|
|
17
|
+
/aiwg-refresh --provider factory # Switch to Factory AI deployment
|
|
18
|
+
/aiwg-refresh --dry-run # Preview without executing
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
**Use cases:**
|
|
22
|
+
|
|
23
|
+
- Get latest features after AIWG updates
|
|
24
|
+
- Restore canonical content after manual edits
|
|
25
|
+
- Switch deployment platform (Claude → Factory)
|
|
26
|
+
- Ensure consistency after branch switches
|
|
27
|
+
|
|
7
28
|
### Context Regeneration
|
|
8
29
|
|
|
9
30
|
#### `/aiwg-regenerate`
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aiwg-refresh
|
|
3
|
+
description: Update AIWG CLI and redeploy frameworks/tools to current project without leaving the session
|
|
4
|
+
args: "[--update-cli] [--all] [--sdlc] [--marketing] [--utils] [--provider <name>] [--force] [--dry-run]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Refresh AIWG Deployment
|
|
8
|
+
|
|
9
|
+
Update the AIWG CLI and/or redeploy frameworks, agents, commands, and tools to the current
|
|
10
|
+
project without leaving the agentic session.
|
|
11
|
+
|
|
12
|
+
## Use Cases
|
|
13
|
+
|
|
14
|
+
- **After AIWG updates**: Get latest framework features without restarting
|
|
15
|
+
- **After switching branches**: Ensure deployed content matches expectations
|
|
16
|
+
- **After manual edits**: Restore canonical AIWG content
|
|
17
|
+
- **Provider switch**: Redeploy for different platform (Claude → Factory)
|
|
18
|
+
|
|
19
|
+
## Parameters
|
|
20
|
+
|
|
21
|
+
| Flag | Description |
|
|
22
|
+
|------|-------------|
|
|
23
|
+
| `--update-cli` | Update AIWG CLI to latest version before redeploying |
|
|
24
|
+
| `--all` | Redeploy all installed frameworks |
|
|
25
|
+
| `--sdlc` | Redeploy SDLC framework only |
|
|
26
|
+
| `--marketing` | Redeploy Marketing framework only |
|
|
27
|
+
| `--utils` | Redeploy aiwg-utils addon only |
|
|
28
|
+
| `--provider <name>` | Target platform: claude, factory, openai, cursor, warp (default: auto-detect) |
|
|
29
|
+
| `--force` | Force redeploy even if already up-to-date |
|
|
30
|
+
| `--dry-run` | Show what would be done without executing |
|
|
31
|
+
|
|
32
|
+
## Execution Steps
|
|
33
|
+
|
|
34
|
+
### Step 1: Show Current Status
|
|
35
|
+
|
|
36
|
+
Run status check and report current state:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
aiwg -status
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Report:
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
AIWG Refresh - Current Status
|
|
46
|
+
==============================
|
|
47
|
+
|
|
48
|
+
CLI Version: 1.2.3 (stable channel)
|
|
49
|
+
Workspace: /path/to/project/.aiwg
|
|
50
|
+
|
|
51
|
+
Installed Frameworks:
|
|
52
|
+
- sdlc-complete v1.0.0 (58 agents, 48 commands)
|
|
53
|
+
- aiwg-utils v1.0.0 (3 agents, 25 commands)
|
|
54
|
+
|
|
55
|
+
Platform: Claude Code (.claude/)
|
|
56
|
+
- Agents: 61 deployed
|
|
57
|
+
- Commands: 73 deployed
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Step 2: Update CLI (if --update-cli)
|
|
61
|
+
|
|
62
|
+
If `--update-cli` flag is set:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
aiwg -update
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Report update status:
|
|
69
|
+
|
|
70
|
+
```text
|
|
71
|
+
Checking for updates...
|
|
72
|
+
Current: 1.2.3
|
|
73
|
+
Latest: 1.2.5
|
|
74
|
+
|
|
75
|
+
Updating AIWG CLI...
|
|
76
|
+
✓ Updated to v1.2.5
|
|
77
|
+
|
|
78
|
+
Changes in v1.2.5:
|
|
79
|
+
- New mutation-analyst agent
|
|
80
|
+
- Testing-quality addon
|
|
81
|
+
- Bug fixes
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
If already up-to-date:
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
AIWG CLI is up-to-date (v1.2.3)
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Step 3: Determine What to Redeploy
|
|
91
|
+
|
|
92
|
+
Based on flags, determine scope:
|
|
93
|
+
|
|
94
|
+
| Flags | Action |
|
|
95
|
+
|-------|--------|
|
|
96
|
+
| No flags | Show status only, prompt for action |
|
|
97
|
+
| `--all` | Redeploy all installed frameworks |
|
|
98
|
+
| `--sdlc` | Redeploy sdlc-complete only |
|
|
99
|
+
| `--marketing` | Redeploy media-marketing-kit only |
|
|
100
|
+
| `--utils` | Redeploy aiwg-utils addon only |
|
|
101
|
+
| Multiple | Redeploy specified frameworks |
|
|
102
|
+
|
|
103
|
+
If no framework flags and not `--dry-run`, ask user:
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
What would you like to refresh?
|
|
107
|
+
|
|
108
|
+
[1] All frameworks (sdlc-complete, aiwg-utils)
|
|
109
|
+
[2] SDLC framework only
|
|
110
|
+
[3] Utils addon only
|
|
111
|
+
[4] Just show status (no changes)
|
|
112
|
+
|
|
113
|
+
Choice:
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Step 4: Detect Target Platform
|
|
117
|
+
|
|
118
|
+
If `--provider` not specified, auto-detect:
|
|
119
|
+
|
|
120
|
+
1. Check existing deployments:
|
|
121
|
+
- `.claude/agents/` exists → claude
|
|
122
|
+
- `.factory/droids/` exists → factory
|
|
123
|
+
- `.codex/agents/` exists → openai
|
|
124
|
+
- `.cursor/rules/` exists → cursor
|
|
125
|
+
|
|
126
|
+
2. If multiple detected, ask user:
|
|
127
|
+
|
|
128
|
+
```text
|
|
129
|
+
Multiple platforms detected:
|
|
130
|
+
[1] Claude Code (.claude/)
|
|
131
|
+
[2] Factory AI (.factory/)
|
|
132
|
+
|
|
133
|
+
Which platform to refresh?
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
3. If none detected, default to claude
|
|
137
|
+
|
|
138
|
+
Report:
|
|
139
|
+
|
|
140
|
+
```text
|
|
141
|
+
Target platform: Claude Code
|
|
142
|
+
Deployment paths:
|
|
143
|
+
- Agents: .claude/agents/
|
|
144
|
+
- Commands: .claude/commands/
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Step 5: Execute Redeploy
|
|
148
|
+
|
|
149
|
+
For each framework to deploy:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
# SDLC Framework
|
|
153
|
+
aiwg use sdlc --provider <platform> --force
|
|
154
|
+
|
|
155
|
+
# Marketing Framework
|
|
156
|
+
aiwg use marketing --provider <platform> --force
|
|
157
|
+
|
|
158
|
+
# Utils (included with sdlc)
|
|
159
|
+
# No separate command needed
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**If `--dry-run`:**
|
|
163
|
+
Show commands without executing:
|
|
164
|
+
|
|
165
|
+
```text
|
|
166
|
+
Dry Run - Would execute:
|
|
167
|
+
========================
|
|
168
|
+
|
|
169
|
+
1. aiwg use sdlc --provider claude --force
|
|
170
|
+
→ Deploy 58 agents to .claude/agents/
|
|
171
|
+
→ Deploy 48 commands to .claude/commands/
|
|
172
|
+
|
|
173
|
+
2. aiwg use marketing --provider claude --force
|
|
174
|
+
→ Deploy 37 agents to .claude/agents/
|
|
175
|
+
→ Deploy 20 commands to .claude/commands/
|
|
176
|
+
|
|
177
|
+
No changes made (dry run mode)
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**Progress Reporting:**
|
|
181
|
+
|
|
182
|
+
```text
|
|
183
|
+
Refreshing AIWG Deployment
|
|
184
|
+
==========================
|
|
185
|
+
|
|
186
|
+
[1/2] Deploying sdlc-complete...
|
|
187
|
+
→ Copying 58 agents...
|
|
188
|
+
→ Copying 48 commands...
|
|
189
|
+
→ Copying 12 templates...
|
|
190
|
+
✓ sdlc-complete deployed
|
|
191
|
+
|
|
192
|
+
[2/2] Deploying aiwg-utils...
|
|
193
|
+
→ Copying 3 agents...
|
|
194
|
+
→ Copying 25 commands...
|
|
195
|
+
✓ aiwg-utils deployed
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Step 6: Verify Deployment
|
|
199
|
+
|
|
200
|
+
After deployment, verify:
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
# Count deployed assets
|
|
204
|
+
ls .claude/agents/*.md 2>/dev/null | wc -l
|
|
205
|
+
ls .claude/commands/*.md 2>/dev/null | wc -l
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
Report:
|
|
209
|
+
|
|
210
|
+
```text
|
|
211
|
+
Verification
|
|
212
|
+
============
|
|
213
|
+
|
|
214
|
+
Deployed Assets:
|
|
215
|
+
- Agents: 95 files
|
|
216
|
+
- Commands: 93 files
|
|
217
|
+
|
|
218
|
+
Platform Files:
|
|
219
|
+
- CLAUDE.md: Present
|
|
220
|
+
- .claude/settings.local.json: Present
|
|
221
|
+
|
|
222
|
+
All assets deployed successfully!
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### Step 7: Summary Report
|
|
226
|
+
|
|
227
|
+
```text
|
|
228
|
+
AIWG Refresh Complete
|
|
229
|
+
=====================
|
|
230
|
+
|
|
231
|
+
CLI:
|
|
232
|
+
Version: 1.2.5 (updated from 1.2.3)
|
|
233
|
+
|
|
234
|
+
Frameworks Deployed:
|
|
235
|
+
✓ sdlc-complete v1.0.0 (58 agents, 48 commands)
|
|
236
|
+
✓ aiwg-utils v1.0.0 (3 agents, 25 commands)
|
|
237
|
+
|
|
238
|
+
Platform: Claude Code
|
|
239
|
+
- .claude/agents/: 61 files
|
|
240
|
+
- .claude/commands/: 73 files
|
|
241
|
+
|
|
242
|
+
New capabilities available:
|
|
243
|
+
- /setup-tdd - TDD enforcement setup
|
|
244
|
+
- /flow-test-strategy-execution - Test execution workflow
|
|
245
|
+
- mutation-analyst agent - Test quality analysis
|
|
246
|
+
|
|
247
|
+
Session ready - new features are now available!
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
## Examples
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
# Check status only
|
|
254
|
+
/aiwg-refresh
|
|
255
|
+
|
|
256
|
+
# Update CLI and redeploy everything
|
|
257
|
+
/aiwg-refresh --update-cli --all
|
|
258
|
+
|
|
259
|
+
# Just redeploy SDLC framework
|
|
260
|
+
/aiwg-refresh --sdlc
|
|
261
|
+
|
|
262
|
+
# Switch to Factory AI deployment
|
|
263
|
+
/aiwg-refresh --all --provider factory
|
|
264
|
+
|
|
265
|
+
# Preview what would happen
|
|
266
|
+
/aiwg-refresh --all --dry-run
|
|
267
|
+
|
|
268
|
+
# Force refresh even if up-to-date
|
|
269
|
+
/aiwg-refresh --all --force
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
## Natural Language Triggers
|
|
273
|
+
|
|
274
|
+
This command should activate when user says:
|
|
275
|
+
|
|
276
|
+
- "refresh aiwg" / "update aiwg"
|
|
277
|
+
- "redeploy frameworks" / "redeploy agents"
|
|
278
|
+
- "get latest aiwg features"
|
|
279
|
+
- "update my aiwg tools"
|
|
280
|
+
- "sync aiwg deployment"
|
|
281
|
+
|
|
282
|
+
## Error Handling
|
|
283
|
+
|
|
284
|
+
| Condition | Action |
|
|
285
|
+
|-----------|--------|
|
|
286
|
+
| AIWG CLI not found | Error: "AIWG CLI not installed. Run: curl -fsSL ... \| bash" |
|
|
287
|
+
| Network error on update | Warn and continue with existing version |
|
|
288
|
+
| Framework not installed | Offer to install: "SDLC not installed. Install now? [y/N]" |
|
|
289
|
+
| Permission denied | Error with specific file/directory that failed |
|
|
290
|
+
| Invalid provider | Error listing valid providers |
|
|
291
|
+
|
|
292
|
+
## Post-Refresh Recommendations
|
|
293
|
+
|
|
294
|
+
After refresh, suggest:
|
|
295
|
+
|
|
296
|
+
```text
|
|
297
|
+
Recommended next steps:
|
|
298
|
+
1. Review new features: aiwg -help
|
|
299
|
+
2. Check framework docs: /aiwg-kb sdlc
|
|
300
|
+
3. Run health check: aiwg doctor
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
## References
|
|
304
|
+
|
|
305
|
+
- @docs/development/file-placement-guide.md - Correct file placement workflow
|
|
306
|
+
- @agentic/code/addons/aiwg-utils/commands/aiwg-regenerate.md - Context file regeneration
|
|
307
|
+
- @docs/CLI_USAGE.md - Full CLI documentation
|