agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Update AIWG through its install-aware updater and re-deploy all installed frameworks from the registry
$ npx -y skills add jmagly/aiwg --skill update --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/updateContext preview
The summary Claude sees to decide when to auto-load this skill.
Update AIWG through its install-aware updater and re-deploy all installed frameworks from the registry
namespace: aiwg name: update platforms: [all] description: Update AIWG through its install-aware updater and re-deploy all installed frameworks from the registry
You update AIWG through its canonical install-aware command and re-deploy all installed frameworks from the registry.
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
| Pattern | Example | Action | |---------|---------|--------| | Update request | "update aiwg" / "upgrade aiwg" | Run `aiwg update` | | Refresh request | "refresh frameworks" | Run `aiwg update` | | Full redeploy | "redeploy everything" | Run `aiwg update --all` | | Dry run | "what would update change" | Run `aiwg update --dry-run` | | Provider-scoped | "update for copilot" | Run `aiwg update --provider copilot` | | Skip version check | "just redeploy my frameworks" | Run `aiwg update --skip-check` |
When triggered:
1. **Extract intent**:
2. **Run the appropriate command**:
# Default: check for updates + re-deploy installed frameworks aiwg update # Re-deploy all frameworks (equivalent to `aiwg use all`) aiwg update --all # Preview what would be updated (no changes) aiwg update --dry-run # Re-deploy to a specific provider aiwg update --provider copilot # Skip version check, only re-deploy aiwg update --skip-check # Combine flags aiwg update --all --provider cursor
Execution sequence: 1. Detect the active distribution and update safely (unless `--skip-check`)
2. Read `.aiwg/frameworks/registry.json` to find installed frameworks 3. Re-deploy each installed framework via `aiwg use <framework> [--provider <name>]` 4. Print update summary with per-framework pass/fail status
3. **Report the result** — state which frameworks were updated and whether the package version changed. Flag any deployment failures with remediation (usually `aiwg doctor`).
`aiwg update` and `aiwg sync` overlap but serve different intents:
| | `aiwg update` | `aiwg sync` | |---|---|---| | Target channel | Preserves configured channel | Preserves or explicitly switches configured channel | | Scope | Installed frameworks only (default) | All deployed frameworks | | Typical use | "Get the latest stable release" | "Keep this session current" |
Use `aiwg update` when bumping to a new stable release. Use `aiwg sync` during active development sessions to stay current with the configured channel.
**User**: "Update AIWG"
**Extraction**: Standard update, no flags
**Action**:
aiwg update
**Response**: "Updated AIWG 2026.3.12 → 2026.3.15. Re-deployed sdlc-complete and media-marketing-kit to claude-code. Both frameworks updated successfully."
**User**: "What would `aiwg update` change?"
**Extraction**: Preview requested, no changes
**Action**:
aiwg update --dry-run
**Response**: "Dry run: would update from v2026.3.12 to v2026.3.15 and re-deploy the following frameworks: sdlc-complete, media-marketing-kit."
**User**: "Redeploy all frameworks to Cursor"
**Extraction**: Full redeploy (`--all`), provider = cursor
**Action**:
aiwg update --all --provider cursor
**Response**: "Re-deployed all frameworks to cursor: sdlc-complete, media-marketing-kit, research-complete. Artifacts written to `.cursor/agents/`, `.cursor/commands/`, `.cursor/rules/`."
**User**: "Just reinstall my frameworks — don't check for updates"
**Extraction**: Skip npm check, only redeploy installed frameworks
**Action**:
aiwg update --skip-check
**Response**: "Skipped version check. Re-deployed sdlc-complete to claude-code. 1/1 frameworks updated."
**User**: "Update AIWG"
**Extraction**: Standard update, but registry is empty or missing
**Action**:
aiwg update
**Response**: "No frameworks found in `.aiwg/frameworks/registry.json`. To deploy a framework first, run `aiwg use sdlc` or `aiwg use all`."
If the request is ambiguous between update and sync:
Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.
Repo: jmagly/aiwg
Crash-resilient external agent loop with state persistence and CI/CD integration
Detect requests for iterative autonomous agent loops and route to the appropriate loop executor
Automatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern
Enable agent loops to learn from similar past tasks and share patterns across loops
Query and manage the executable feedback debug memory
Execute tests on generated code and iterate until passing