agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Regenerate WARP.md for Warp Terminal with preserved team directives
$ npx -y skills add jmagly/aiwg --skill aiwg-regenerate-warp --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/aiwg-regenerate-warpContext preview
The summary Claude sees to decide when to auto-load this skill.
Regenerate WARP.md for Warp Terminal with preserved team directives
namespace: aiwg name: aiwg-regenerate-warp platforms: [all] description: Regenerate WARP.md for Warp Terminal with preserved team directives
Regenerate the WARP.md file for Warp Terminal integration, analyzing current project state while preserving team directives and organizational requirements.
**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).
**Full inject (`--full-inject`):** Embeds AIWG content inline in WARP.md with AIWG markers.
| Flag | Description | |------|-------------| | `--no-backup` | Skip creating backup file | | `--dry-run` | Preview changes without writing | | `--show-preserved` | List all detected preserved content and exit | | `--full` | Full regeneration, preserve nothing (destructive) |
WARP.md follows Warp Terminal formatting conventions:
Unless `--no-backup` specified:
1. Check if `WARP.md` exists 2. If exists, copy to `WARP.md.backup-{YYYYMMDD-HHMMSS}` 3. Report backup location
Same preservation patterns as CLAUDE.md:
1. **Explicit Preserve Blocks**: `<!-- PRESERVE -->` ... `<!-- /PRESERVE -->` 2. **Preserved Section Headings**: Team *, Org *, Definition of Done, etc. 3. **Inline Directives**: Lines with directive keywords
Same project analysis as CLAUDE.md:
Check installed frameworks and deployed assets:
**Document Structure (Warp Format):**
# WARP.md
Project guidance for Warp Terminal AI assistance.
## Project Overview
{Brief project description from README.md}
**Tech Stack**: {languages} | **Package Manager**: {npm/pip/etc} | **Test Framework**: {framework}
## Quick Commands
Copy-paste ready commands for common tasks:
```bash
# Install dependencies
{install command}
# Run development server
{dev command}
# Run tests
{test command}
# Build for production
{build command}
# Lint code
{lint command}{directory tree with descriptions}---
<!-- PRESERVED SECTION -->
{ALL PRESERVED CONTENT}
<!-- /PRESERVED SECTION -->
---
{If .aiwg/ exists, list available project docs:}
| Category | Location | |----------|----------| | Requirements | @.aiwg/requirements/ | | Architecture | @.aiwg/architecture/ | | Planning | @.aiwg/planning/ |
{Only include rows for directories that exist}
---
{List deployed agents with brief descriptions}
{List deployed commands organized by category}
| You Say | Executes | |---------|----------| | "transition to elaboration" | flow-inception-to-elaboration | | "run security review" | flow-security-review-cycle | | "check status" | project-status |
| Topic | Reference | |-------|-----------| | Orchestration | @~/.local/share/ai-writing-guide/agentic/code/addons/aiwg-utils/prompts/core/orchestrator.md | | Agent Design | @~/.local/share/ai-writing-guide/agentic/code/addons/aiwg-utils/prompts/agents/design-rules.md | | Error Recovery | @~/.local/share/ai-writing-guide/agentic/code/addons/aiwg-utils/prompts/reliability/resilience.md |
{If SDLC framework installed:}
| Topic | Reference | |-------|-----------| | Natural Language | @~/.local/share/ai-writing-guide/agentic/code/frameworks/sdlc-complete/docs/simple-language-translations.md | | Orchestration | @~/.local/share/ai-writing-guide/agentic/code/frameworks/sdlc-complete/docs/orchestrator-architecture.md |
---
<!-- Add team-specific notes below. Content in preserved sections survives regeneration. -->
### Step 6: Write Output **If `--dry-run`:** Display content, do not write. **Otherwise:** 1. Write to `WARP.md` 2. Report summary
WARP.md Regenerated ===================
Backup: WARP.md.backup-20251206-153045
Preserved: 3 sections, 34 lines Regenerated: Project info, commands, AIWG integration
Output: WARP.md (312 lines)
## Warp-Specific Formatting Notes ### Agent Format ```markdown ### Agent Name Brief description of what the agent does. **Tools**: Tool1, Tool2, Tool3
- `/command-name` - Brief description
Formatted for easy terminal copy-paste:
# Description of command actual_command --with-flags
# Regenerate WARP.md /aiwg-regenerate-warp # Preview changes /aiwg-regenerate-warp --dry-run # Check preserved content /aiwg-regenerate-warp --show-preserved # Full regeneration /aiwg-regenerate-warp --full
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