agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Set up personal AIWG customization mode from a local clone or fork — makes your clone the live global AIWG instance so edits go live immediately
$ npx -y skills add jmagly/aiwg --skill customize-setup --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/customize-setupContext preview
The summary Claude sees to decide when to auto-load this skill.
Set up personal AIWG customization mode from a local clone or fork — makes your clone the live global AIWG instance so edits go live immediately
namespace: aiwg name: customize-setup platforms: [all] description: Set up personal AIWG customization mode from a local clone or fork — makes your clone the live global AIWG instance so edits go live immediately
You set up AIWG in **personal customization mode** — where a local clone or fork of the AIWG repo becomes the user's global AIWG instance. Any edits they make to that clone go live on next rebuild.
This is the **ownership** story, not the developer/contributor story. Frame everything around "make it yours," not "build for the repo."
| Pattern | Example | Action | |---------|---------|--------| | Fork path | "set up AIWG with my own fork" | gh fork + clone + dev mode | | Clone path | "clone AIWG so I can customize it" | git clone + dev mode | | From existing clone | "I already cloned AIWG, set it up" | Just run dev mode + deploy | | Vague customization | "I want to tweak my AIWG setup" | Ask fork or clone, then proceed |
When triggered:
1. **Ask one question** (if not already clear from context): > "Do you want to fork AIWG on GitHub first (recommended — keeps your changes safe when upstream releases), or just clone it locally to get started?"
2. **Determine target path** — ask where to put the clone (default: `~/my-aiwg`): > "Where should I clone it? (default: ~/my-aiwg)"
3. **Execute the appropriate path:**
Requires `gh` CLI logged into GitHub.
# Fork jmagly/aiwg to user's GitHub account + clone + set upstream remote gh repo fork jmagly/aiwg --clone --remote --clone-dir ~/my-aiwg # Switch AIWG to use this fork as the global source aiwg --use-dev ~/my-aiwg # Build (compiles TypeScript + web app) npm --prefix ~/my-aiwg run build # Deploy from local source aiwg --prefix ~/my-aiwg use all
Verify remotes after fork:
cd ~/my-aiwg && git remote -v # origin https://github.com/USER/aiwg.git (their fork) # upstream https://github.com/jmagly/aiwg.git (canonical)
git clone https://github.com/jmagly/aiwg.git ~/my-aiwg aiwg --use-dev ~/my-aiwg npm --prefix ~/my-aiwg run build aiwg --prefix ~/my-aiwg use all
No upstream remote is set — note to user that "sync my AIWG" won't work until they add one.
If user says they already have a clone at a specific path:
# Skip clone step, just activate dev mode and deploy aiwg --use-dev <their-path> npm --prefix <their-path> run build aiwg --prefix <their-path> use all
4. **Confirm success** — run `aiwg version` to show `[dev]` mode is active, then report:
Your AIWG is now running from ~/my-aiwg. Any changes you make there go live when you say "apply my changes." What you can customize: agentic/code/addons/aiwg-utils/rules/ — rules (how Claude behaves) agentic/code/addons/aiwg-utils/agents/ — agents (specialized personas) agentic/code/addons/aiwg-utils/skills/ — skills (slash commands) Try it: ask me to "add a rule that [something personal to you]" and then "apply my changes."
Do NOT mention manifest.json, npm build internals, or addon taxonomy unless the user specifically asks.
**User**: "Set up AIWG so I can customize it with my own fork"
**Action**: Ask where to clone → `gh repo fork jmagly/aiwg --clone --remote --clone-dir ~/my-aiwg` → `aiwg --use-dev ~/my-aiwg` → `npm run build` → `aiwg use all` → verify `aiwg version`
**Response**: "Your fork is now your global AIWG. Edit anything in ~/my-aiwg and tell me 'apply my changes' when ready."
**User**: "I just want to tweak my AIWG setup, don't need a fork"
**Action**: `git clone` → `aiwg --use-dev` → `npm run build` → `aiwg use all`
**Response**: "AIWG is now running from ~/my-aiwg. No upstream sync (you cloned without forking), but you can customize freely. Say 'apply my changes' after any edit."
**User**: "I already cloned AIWG to ~/dev/aiwg, can I use that?"
**Action**: Confirm path → `aiwg --use-dev ~/dev/aiwg` → `npm run build` → `aiwg use all`
**Response**: "Done — AIWG is now running from ~/dev/aiwg."
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