$npx -y skills add fusengine/agents --skill apex-methodologySystematic development workflow: Analyze → Plan → Execute → eLicit → eXamine. Use for ANY development task: features, bug fixes, refactoring, hotfixes. Triggers: "implement", "create", "build", "fix", "add feature", "refactor", "develop". Auto-detects project type (Laravel, Next.
| 1 | **Current Task:** $ARGUMENTS |
| 2 | |
| 3 | # APEX Methodology Skill |
| 4 | |
| 5 | **Analyze → Plan → Execute → eLicit → eXamine** |
| 6 | |
| 7 | Complete development workflow for features, fixes, and refactoring. |
| 8 | |
| 9 | --- |
| 10 | |
| 11 | ## Step 0: Initialize Tracking (MANDATORY FIRST ACTION) |
| 12 | |
| 13 | **BEFORE anything else**, initialize APEX tracking — see `references/init-tracking.md` for the exact command. |
| 14 | |
| 15 | This creates `.claude/apex/task.json` (documentation consultation status) and `.claude/apex/docs/` (consulted documentation summaries). **The PreToolUse hooks will BLOCK Write/Edit until documentation is consulted.** |
| 16 | |
| 17 | --- |
| 18 | |
| 19 | ## Workflow Overview |
| 20 | |
| 21 | ```text |
| 22 | ┌─────────────────────────────────────────────────────────────────┐ |
| 23 | │ APEX WORKFLOW │ |
| 24 | ├─────────────────────────────────────────────────────────────────┤ |
| 25 | │ 00-init-branch → Create feature branch │ |
| 26 | │ 00.5-brainstorm → Design-first questioning (B) ← NEW │ |
| 27 | │ 01-analyze-code → Understand codebase (A) │ |
| 28 | │ 02-features-plan → Plan implementation (P) │ |
| 29 | │ 03-execution → Write code with TDD (E) ← UPDATED │ |
| 30 | │ 03.5-elicit → Expert self-review (L) │ |
| 31 | │ 03.7-verification → Functional resolution check (V) ← NEW │ |
| 32 | │ 04-validation → Verify quality (X) │ |
| 33 | │ 05-review → Self-review │ |
| 34 | │ 06-fix-issue → Handle issues │ |
| 35 | │ 07-add-test → Write tests (TDD cycle) │ |
| 36 | │ 08-check-test → Run tests │ |
| 37 | │ 09-create-pr → Create Pull Request │ |
| 38 | └─────────────────────────────────────────────────────────────────┘ |
| 39 | ``` |
| 40 | |
| 41 | ### Skills Integration |
| 42 | |
| 43 | | Phase | Skill | Invocation | |
| 44 | |-------|-------|------------| |
| 45 | | 00.5 | `brainstorming` | Questions → alternatives → design doc → approval | |
| 46 | | 03 | `tdd` | RED (test) → GREEN (code) → REFACTOR cycle | |
| 47 | | 03.7 | `verification` | Re-read request → check criteria → confirm resolution | |
| 48 | |
| 49 | --- |
| 50 | |
| 51 | ## Phase References |
| 52 | |
| 53 | | Phase | File | Purpose | |
| 54 | | --- | --- | --- | |
| 55 | | **00** | `references/00-init-branch.md` | Create feature branch | |
| 56 | | **01** | `references/01-analyze-code.md` | Explore + Research (APEX A) | |
| 57 | | **02** | `references/02-features-plan.md` | TaskCreate planning (APEX P) | |
| 58 | | **03** | `references/03-execution.md` | Implementation (APEX E) | |
| 59 | | **03.5** | `references/03.5-elicit.md` | Expert self-review (APEX L) ← NEW | |
| 60 | | **04** | `references/04-validation.md` | sniper validation (APEX X) | |
| 61 | | **05** | `references/05-review.md` | Self-review checklist | |
| 62 | | **06** | `references/06-fix-issue.md` | Fix validation/review issues | |
| 63 | | **07** | `references/07-add-test.md` | Write unit/integration tests | |
| 64 | | **08** | `references/08-check-test.md` | Run and verify tests | |
| 65 | | **09** | `references/09-create-pr.md` | Create and merge PR | |
| 66 | |
| 67 | --- |
| 68 | |
| 69 | ## Core Rules |
| 70 | |
| 71 | ### File Size (ABSOLUTE) |
| 72 | |
| 73 | ```text |
| 74 | 🚨 STOP at 90 lines → Split immediately |
| 75 | ❌ NEVER exceed 100 lines |
| 76 | 📊 Target: 50-80 lines per file |
| 77 | ``` |
| 78 | |
| 79 | ### Interface Location |
| 80 | |
| 81 | ```text |
| 82 | ✅ src/interfaces/ (global) |
| 83 | ✅ src/types/ (type definitions) |
| 84 | ✅ Contracts/ (PHP/Laravel) |
| 85 | ❌ NEVER in component files |
| 86 | ``` |
| 87 | |
| 88 | ### Agent Usage |
| 89 | |
| 90 | ```text |
| 91 | 01-analyze: explore-codebase + research-expert (PARALLEL) |
| 92 | 04-validate: sniper (MANDATORY after ANY change) |
| 93 | ``` |
| 94 | |
| 95 | --- |
| 96 | |
| 97 | ## NEVER |
| 98 | |
| 99 | ```text |
| 100 | ❌ Skip explore-codebase or research-expert |
| 101 | ❌ Assume API syntax without verification |
| 102 | ❌ Create files >100 lines |
| 103 | ❌ Put interfaces in component files |
| 104 | ❌ Skip sniper after changes |
| 105 | ❌ Merge without tests |
| 106 | ❌ Large PRs (>400 lines) |
| 107 | ``` |
| 108 | |
| 109 | --- |
| 110 | |
| 111 | ## Detailed References (Load on Demand) |
| 112 | |
| 113 | - `references/init-tracking.md` — Load when running Step 0 (the exact tracking-init command) |
| 114 | - `references/phases-explained.md` — Load when you need the full explanation of each APEX phase (A |