agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Initialize AIWG configuration for an existing project by creating .aiwg/aiwg.config with provider and script entries
$ npx -y skills add jmagly/aiwg --skill aiwg-init --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/aiwg-initContext preview
The summary Claude sees to decide when to auto-load this skill.
Initialize AIWG configuration for an existing project by creating .aiwg/aiwg.config with provider and script entries
name: aiwg-init namespace: aiwg platforms: [all] description: Initialize AIWG configuration for an existing project by creating .aiwg/aiwg.config with provider and script entries
You initialise AIWG configuration for an existing project by creating `.aiwg/aiwg.config` with provider registry entries and custom script definitions.
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
| Pattern | Example | Action | |---------|---------|--------| | Default init | "aiwg init" | Run `aiwg init` with defaults | | Interactive | "init aiwg interactively" | Run `aiwg init --interactive` | | Provider flag | "init aiwg for copilot" | Run `aiwg init --provider copilot` | | Config check | "do I have an aiwg config?" | Read `.aiwg/aiwg.config` |
When triggered:
1. **Distinguish from `new`**:
2. **Extract arguments**:
3. **Run the appropriate command**:
# Default: write minimal config, auto-detect provider aiwg init # Interactive: guided wizard for providers and scripts aiwg init --interactive # Pre-configure a specific provider aiwg init --provider copilot
4. **What the command creates** — `.aiwg/aiwg.config` with:
5. **Report the result** — confirm path written and show the generated config summary.
**User**: "aiwg init"
**Extraction**: No flags, auto-detect provider (claude-code)
**Action**:
aiwg init
**Response**: "Created `.aiwg/aiwg.config` with provider `claude-code` pre-configured. No scripts registered yet. Use `aiwg init --interactive` to add providers or scripts, or edit the file directly."
**User**: "Set up AIWG config interactively"
**Extraction**: Interactive flag required
**Action**:
aiwg init --interactive
**Response**: Wizard prompts for providers to enable and scripts to register, then writes `.aiwg/aiwg.config`. Confirms: "Configured 2 providers (claude-code, copilot) and 3 scripts (test, lint, deploy). Config written to `.aiwg/aiwg.config`."
**User**: "Init aiwg config for GitHub Copilot"
**Extraction**: Provider `copilot` specified
**Action**:
aiwg init --provider copilot
**Response**: "Created `.aiwg/aiwg.config` with provider `copilot` configured (deploy path: `.github/`). Run `aiwg use sdlc --provider copilot` to deploy frameworks."
**User**: "aiwg init"
**Extraction**: `.aiwg/aiwg.config` already present
**Action**: Read existing config, report what is configured, and offer `--interactive` to update rather than overwriting.
**Response**: "`.aiwg/aiwg.config` already exists (providers: claude-code; scripts: test, deploy). Run `aiwg init --interactive` to update the configuration."
If the user's intent is ambiguous:
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