ansible-automation-eng…
Ansible automation: playbooks, roles, collections, Molecule testing, Vault security.
Reduce complexity and improve code clarity while preserving exact functionality. Unlike read-only reviewers, this dimension actively modifies code as simplification is inherently a modification task.
$ npx -y skills add notque/vexjoy-agent --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Reduce complexity and improve code clarity while preserving exact functionality. Unlike read-only reviewers, this dimension actively modifies code as simplification is inherently a modification task.
Reduce complexity and improve code clarity while preserving exact functionality. Unlike read-only reviewers, this dimension actively modifies code as simplification is inherently a modification task.
1. **Preserve Behavior** - Exact same functionality after simplification 2. **Reduce Cognitive Load** - Lower nesting, clearer flow, better names 3. **Follow Conventions** - CLAUDE.md and language idioms guide structure 4. **Verify** - Run tests after each simplification to confirm correctness
## Code Simplification: [Scope Description] ### Scope - **Source**: [git diff / specific files] - **Files Analyzed**: [count] ### Simplifications Applied #### 1. [Simplification Name] - `file.go:42-58` **Before**: [code] **After**: [code] **Why**: [Explanation of clarity improvement] **Complexity Change**: [metric] ### Summary | Metric | Before | After | |--------|--------|-------| | Files Modified | - | N | | Simplifications Applied | - | N | | Max Nesting Depth | N | M | ### Verification - **Tests Run**: [yes/no] - **Tests Passed**: [yes/no] - **Behavior Changed**: NO (verified)
| Rationalization | Why It's Wrong | Required Action | |-----------------|----------------|-----------------| | "Shorter is simpler" | Brevity != clarity | Optimize for readability | | "Tests still pass" | Tests may not cover changed behavior | Verify test coverage of modified paths | | "It's just a refactor" | Refactors can change behavior | Run tests after every change | | "The original was bad" | Bad doesn't justify risky changes | Incremental improvement with verification |
Patterns where unnecessary complexity can be removed while preserving behavior. See `skills/engineering/go-patterns/references/preferred-patterns/code-examples.md` AP-8 for full before/after examples.
| Signal | Grep / Structural Check | Simplification | |--------|------------------------|----------------| | Defensive copy on fresh slice | `make([]T, len(x)+N)` + `copy(result, x)` where x is freshly allocated | Replace with `append(x, element)` | | Coupling comment | `grep -rn "must be called after\|must always follow\|INVARIANT.*call" --include="*.go"` | Merge the "always follows" logic into the prerequisite function | | Same-pair call pattern | `helperB(result)` appears after every `result := functionA()` call site | Move `helperB` logic inside `functionA` |
When a comment says "must be called after X", the fix is to move that logic inside X. The comment documents a coupling that code structure should eliminate.
// Before: Comment documents what code should enforce labelKey, vals := scopeToLabel(req, ks) vals = appendSentinel(vals) // forget this = silent bug // After: Coupling eliminated — impossible to forget labelKey, vals := scopeToLabel(req, ks) // sentinel included automatically
**Origin**: PR #220 — Stefan Majewsky.
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.
Repo: notque/vexjoy-agent
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 **Version range**:…
**Scope**: Molecule test scenarios, ansible-lint rules, idempotency validation, and check-mode patterns **Version range**: Molecule 6.0+ / ansible-lint 6.0+ /…
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 to detect and how to fix…
Zero-dependency combat visual upgrades: CSS particle replacement, Framer Motion combat juice, CSS 3D card transforms.