ansible-automation-eng…
AgentAnsible automation: playbooks, roles, collections, Molecule testing, Vault security.
**Scope**: Dispatching parallel sub-agents, collecting outputs, enforcing phase gates. Orchestrator role only.
Claude Code
$ npx -y skills add notque/vexjoy-agent --agent claude-code
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
> **Scope**: Dispatching parallel sub-agents, collecting outputs, enforcing phase gates. Orchestrator role only.
---
| Pattern | When | Avoid When | |---------|------|------------| | Fan-out by creator type | 3+ independent components | Single component | | Context package pre-flight | Every sub-agent dispatch | Never skip | | Hard gate before fan-in | Phase 3→4 transition | Never skip | | ADR hash embed | Domain pipelines (full 7-phase) | Simple single-skill pipelines | | Sequential within sub-agent | One component depends on another | Same-type components (parallel) |
---
Group components by creator, dispatch one sub-agent per type in parallel.
Orchestrator ├── toolkit (all new agents + skills) ← parallel ├── hook-development-engineer (all hooks) ← parallel └── Direct (Python scripts) ← parallel Gate: wait for ALL three before Phase 4 INTEGRATE
---
Every sub-agent dispatch must include all four fields:
Agent(
description="Create {N} skills for {domain}",
prompt=f"""
## Context Package
### Components to Create
{component_list}
### Discovery Report
{discovery_report}
### Inter-Component Relationships
{relationships}
### Template Reference
Follow skills/meta/toolkit/references/skill-creator/agent-template.md for agents. Standard frontmatter + operator context for skills.
### Architecture Rules
See skills/process/workflow/references/pipeline-scaffolder/references/architecture-rules.md.
Critical: Rule 12 (parallel research), Rule 18 (ADR hash), role-matched allowed-tools (advisory; Claude Code ignores it for agents).
"""
)Sub-agents start with no shared context. Without discovery report → duplicates. Without relationships → orphaned files. Without template → non-compliant output.
---
# Gate: Phase 3 → Phase 4
for component in "${expected_components[@]}"; do
if [[ ! -f "$component" ]]; then
echo "GATE FAIL: $component missing"
exit 1
fi
done
python3 scripts/validate-references.py --agent {name}
for hook in hooks/{pipeline-name}*.py; do
python3 -c "import ast; ast.parse(open('$hook').read())" || echo "Syntax error: $hook"
done---
adr_context=$(python3 ~/.claude/scripts/adr-query.py context \
--adr adr/{pipeline-name}.md --role toolkit)Manual injection only needed when sub-agent needs full role-targeted ADR context beyond session-level auto-injection.
---
Single skill/agent with one clear purpose?
YES → Simple: Phase 0 → Phase 1 (legacy discover) → Phase 3 → Phase 4
NO / broad domain →
Domain: Full 7-phase flow with subdomain decomposition,
validate-chain, ADR hash gate, test-runner, retro.---
**Signal**: Starting Phase 4 after only 2 of 3 sub-agents complete. **Fix**: Hard gate — wait for ALL dispatched agents before any integration step. No acceptable partial state.
**Signal**: Starting Phase 1 without `adr/pipeline-{name}.md`. **Fix**: Phase 0 is always first. Create ADR, register session: `python3 ~/.claude/scripts/adr-query.py register --adr adr/{pipeline-name}.md`
**Signal**: Creating 4 sub-agents, a hook, and 3 scripts for a one-skill request. **Fix**: Apply 80% rule — if existing agent covers 80%+, bind new skills to it.
---
| Error | Root Cause | Fix | |-------|------------|-----| | `Agent tool: unknown subagent_type` | New agent not available until session restart | Restart Claude Code | | Hook import fails | Syntax error or wrong path | `python3 -m py_compile hooks/X.py` | | `toolkit: no triggers` | Missing `routing.triggers` in frontmatter | Add triggers to frontmatter | | Orphaned component | Wrong output path | Check actual vs expected path; rename | | `validate-chain: unknown step type` | Step not in step-menu.md | Pick a step from `skills/process/workflow/references/pipeline-scaffolder/references/step-menu.md` |
---
# Verify components created after Phase 3
for f in agents/{name}.md skills/*/{name}/SKILL.md hooks/{name}*.py; do
[[ -f "$f" ]] && echo "OK: $f" || echo "MISSING: $f"
done
# Find unindexed agents
comm -23 \
<(ls agents/*.md | xargs -I{} basename {} .md | sort) \
<(python3 -c "import json; [print(a['name']) for a in json.load(open('agents/INDEX.json'))['agents']]" | sort)
# Check ADR session registered
ls -la .adr-session.json 2>/dev/null || echo "ADR session not registered"---
---
| Creator | Components | Template | |---------|-----------|----------| | `toolkit` | Agent manifests + skill SKILL.md + references | `skills/meta/toolkit/references/skill-creator/agent-template.md` / standard skill format | | `hook-development-engineer` | Python hooks | `hooks/lib/hook_utils.py` conventions | | Direct (orchestrator) | Python scripts | `scripts/` conventions |
Each sub-agent receives: component list, Discovery Report/Pipeline Spec, bound skills/agents, architecture patterns, inter-component relationships.
---
# ADR: Pipeline {Name}
## Status
PROPOSED | ACCEPTED | IMPLEMENTED | DEPRECATED
## Context
[Why needed, what triggered creation]
## Decision
[Pipeline design: components, flow, triggers]
##Essays and writing behind this toolkit live at vexjoy.com. VexJoy Agent connects plain-English requests to specialist agents, skills, and workflows. /do selects the knowledge and tools needed for your task.
Ansible automation: playbooks, roles, collections, Molecule testing, Vault security.
**Scope**: Module selection patterns, builtin vs command/shell decisions, collection modules, and version-specific module changes…
**Scope**: Molecule test scenarios, ansible-lint rules, idempotency validation, and check-mode patterns **Version range**:…
Universal rules injected by /do at dispatch. Each agent's .md file supplies domain rules.
**Scope**: Failure modes in agent output style — over-reporting, self-congratulation, verbose narration, and hedging. Covers what…
Zero-dependency combat visual upgrades: CSS particle replacement, Framer Motion combat juice, CSS 3D card transforms.
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…