agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Apply a SOUL.md identity to content generation, incorporating worldview, opinions, and character
$ npx -y skills add jmagly/aiwg --skill soul-apply --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/soul-applyContext preview
The summary Claude sees to decide when to auto-load this skill.
Apply a SOUL.md identity to content generation, incorporating worldview, opinions, and character
namespace: aiwg name: soul-apply platforms: [all] description: Apply a SOUL.md identity to content generation, incorporating worldview, opinions, and character
Apply a SOUL.md identity to content generation — deeper than voice-apply, incorporating worldview, opinions, and character.
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
When triggered, this skill applies the loaded SOUL.md to any content generation task. Unlike `/voice-apply` which adjusts writing style (tone, formality, sentence structure), `/soul-apply` incorporates the agent's identity — worldview shapes arguments, opinions influence recommendations, vocabulary infuses the text, and boundaries constrain what gets said.
| Layer | What Changes | Source Section | |-------|-------------|----------------| | **Worldview** | How arguments are framed, what's treated as axiomatic | Worldview | | **Opinions** | Which positions are taken on debatable topics | Opinions | | **Vocabulary** | Which terms are used and their specific meanings | Vocabulary | | **Boundaries** | What the agent won't say or recommend | Boundaries | | **Tensions** | Where the agent acknowledges complexity | Tensions | | **Tone** | How confident, direct, or warm the output feels | Who I Am + Pet Peeves |
1. **Load soul file** — `./SOUL.md`, `./.aiwg/SOUL.md`, or specified path 2. **Load per-agent soul** if active agent has a companion `.soul.md` 3. **Internalize identity** — not as rules to follow, but as character to inhabit 4. **Generate content** with soul actively shaping:
5. **Verify output** against soul — would this person actually write this?
User invokes `/soul-apply` with specific content:
/soul-apply "Write a recommendation for our database migration strategy"
The soul shapes the recommendation — e.g., if the soul values simplicity, it might recommend PostgreSQL over a microservices data mesh.
When soul enforcement is enabled via `/soul-enable`, the soul is passively applied to all content generation. `/soul-apply` is the explicit version of what the enforcement rule does implicitly.
Apply soul to existing content:
/soul-apply --revise ./docs/architecture-decision.md
Rewrites the document to reflect the soul's worldview, opinions, and voice while preserving the factual content.
**Without soul** (generic):
We should consider using microservices for this project. There are several approaches to consider, each with trade-offs. The team should evaluate what works best for their specific situation.
**With soul** (engineer who values simplicity):
Start with a monolith. Most teams split too early, and you'll spend more time on service boundaries than on the actual problem. If you hit a genuine scaling bottleneck — not a hypothetical one — extract that specific piece. A well-structured monolith beats a distributed monolith with network latency every time.
**Without soul** (generic code review):
This function could benefit from some refactoring. Consider breaking it into smaller pieces for better readability and testability.
**With soul** (skeptical engineer):
This function is 40 lines and does one thing. That's fine. Don't split it into three functions that each need the same context passed through parameters. The current version is readable at 3 AM — splitting it would make it harder to follow, not easier.
| Flag | Description | |------|-------------| | `--soul <path>` | Use a specific soul file (default: auto-detect) | | `--revise <path>` | Revise existing content through the soul | | `--compare` | Show before/after comparison | | `--intensity <low\|medium\|high>` | How strongly the soul shapes output (default: medium) |
| Level | Behavior | |-------|----------| | `low` | Subtle influence — vocabulary and tone shift, opinions only when directly relevant | | `medium` | Clear character — worldview shapes framing, opinions stated naturally, vocabulary consistent | | `high` | Full character — strong opinions, distinctive voice, boundaries enforced, contradictions surfaced |
When both soul and voice profile are active:
When enforcement is active, `/soul-apply` is redundant for new content — the soul is already being applied. Use `/soul-apply` for:
After application, the output should pass the soul prediction test: > "Would someone who read the SOUL.md predict this output came from this persona?"
If not, the soul may be too vague — recommend `/soul-enhance`.
# Apply soul to a content generation task /soul-apply "Write a post about why we chose PostgreSQL" # Revise existing content through the soul /soul-apply --revise docs/architecture-decision.md # Apply with high intensity (strong character) /soul-apply --intensity high "Review this PR's architectural approach" # Use a specific soul file /soul-apply --soul .clau
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