agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Improve an existing SOUL.md by identifying vague sections, suggesting missing content, and generating calibration examples
$ npx -y skills add jmagly/aiwg --skill soul-enhance --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/soul-enhanceContext preview
The summary Claude sees to decide when to auto-load this skill.
Improve an existing SOUL.md by identifying vague sections, suggesting missing content, and generating calibration examples
namespace: aiwg name: soul-enhance platforms: [all] description: Improve an existing SOUL.md by identifying vague sections, suggesting missing content, and generating calibration examples
Improve an existing SOUL.md by identifying vague sections, suggesting missing content, and generating calibration examples.
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
When triggered, this skill analyzes an existing SOUL.md and makes targeted improvements. It does not rewrite the file from scratch — it preserves the author's intent while strengthening weak areas.
1. **Load and validate** the existing SOUL.md (runs soul-validate internally) 2. **Identify improvement targets** from the validation report 3. **Apply enhancements** category by category 4. **Generate companion files** if missing 5. **Report changes** with before/after comparisons
Scans for language patterns that are too generic to be useful:
| Vague Pattern | Enhancement Approach | |--------------|---------------------| | "I have nuanced views on X" | Ask: "What specifically do you believe about X?" | | "I value quality" | Ask: "What does quality mean to you? What would you sacrifice for it?" | | "I'm experienced with Y" | Ask: "How many years? What specifically have you built?" | | "I believe in best practices" | Ask: "Which practices? Which 'best practices' do you think are wrong?" | | "I'm passionate about Z" | Replace with concrete opinions about Z |
For each vague statement:
For each missing recommended section, generate a draft:
| Missing Section | Generation Strategy | |----------------|-------------------| | Standards | Propose a bar-for-completion paragraph + dangling-thread examples + complete-vs-fast resolution. Infer from opinions and pet peeves about quality, shipping, and "good enough." Surface as a draft for the author to confirm. | | Boundaries | Infer from opinions — strong opinions imply boundaries | | Tensions | Find contradictions between stated opinions | | Vocabulary | Extract signature terms from existing text | | Pet Peeves | Infer from boundaries and strong opinions | | Influences | Ask user or leave as TODO |
Opinions must be specific enough to be falsifiable:
Before: "I think testing is important"
After: "Integration tests catch more real bugs than unit tests.
80% coverage with real calls beats 95% with mocked everything."For each opinion:
If the vocabulary section is empty or category-level:
1. Scan the entire SOUL.md for terms used in specific ways 2. Identify jargon, metaphors, and signature phrases 3. Add definitions that show personal meaning, not dictionary meaning
Before: ## Vocabulary - Technical terms After: ## Vocabulary - **Blast radius**: How many things break when this thing breaks — my primary metric for evaluating changes - **Yak shaving**: Work that's 3+ steps removed from the actual goal — I kill yak-shaving sessions aggressively - **Accidental complexity**: Complexity from our tools and choices, not the problem domain — most complexity I encounter is accidental
Generate `examples/good-outputs.md` and `examples/bad-outputs.md` from the soul definition:
**good-outputs.md**: 3-5 examples of text that correctly embodies the soul
**bad-outputs.md**: 3-5 anti-examples showing what the soul would NOT produce
If the soul file exceeds recommended limits:
| Flag | Description | |------|-------------| | `--interactive` | Ask sharpening questions for each vague statement | | `--sections <list>` | Only enhance specific sections: `--sections "opinions,vocabulary"` | | `--generate-examples` | Force generation of calibration examples | | `--dry-run` | Show proposed changes without applying them |
Enhancing SOUL.md...
Found 3 vague statements:
1. Line 14: "I value clean code"
→ What does "clean" mean to you specifically?
→ What would you sacrifice for clean code? What wouldn't you?
User: "Clean means I can read it at 3 AM. I'll sacrifice DRY for readability."
✓ Updated: "Clean code is code I can read at 3 AM during an incident.
I'll sacrifice DRY for readability — duplicated clarity beats obscure abstractions."
2. Line 31: "I have experience with many frameworks"
→ Which frameworks? What did each teach you?
User: "Rails taught me convention, React taught me composition, Django taught me batteries-included"
✓ Updated: "I've built production systems in Rails (conventions),
React (composition), and Django (batteries-included)."
3. Line 45: "I'm interested in distributed systems"
→ What specifically? Consensus? Networking? Data replication?
User: "Consensus algorithms and failure modes"
✓ Updated: "I've spent a dReusable 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