Stage N3. Deep structural analysis of skill against real usage. Verifies gaps, prunes cruft, measures baseline health. Produces structural audit that feeds REM. Front-loaded in early cycles.
From morpheusnpx claudepluginhub johnhenry/clapplications --plugin morpheusThis skill is limited to using the following tools:
Deep slow-wave analysis. ~25% of cycle time, concentrated in early cycles. Verifies that the skill's documented facts match reality, identifies structural drift, and optionally prunes accumulated cruft.
Also establishes the baseline measurement for REM's eval loop. Without N3's audit, REM can't measure whether patches improve anything.
From orchestrator: sorted_manifest (from N2), target_skill (path),
prune_mode (bool, default false), cycle_number.
Read the entire SKILL.md. Build a structural inventory:
For each surviving fragment and theme:
Coverage verification (GAP fragments): Confirm the gap is real.
Sometimes coverage exists in a non-obvious section. If confirmed,
document precisely where coverage should exist.
Accuracy verification (FRIC fragments): Are the skill's
instructions actually correct? Friction sometimes means wrong
instructions, not just incomplete ones.
Assumption verification (EDGE fragments): Which documented
assumptions break in this scenario?
Output per fragment:
verification:
fragment_id: f001
result: confirmed_gap | false_gap | partial_coverage | inaccurate
evidence: "Sections 3.1-3.7 cover formatting but never mention RTL"
severity: minor | moderate | major
Identify accumulated complexity that no longer serves a purpose:
Only suggest removal when confident. A false prune is worse than no prune — you're removing institutional knowledge.
Produce health scores that REM uses as the "before" measurement:
health_baseline:
coverage_score: 0.75 # Fraction of real usage covered
complexity_score: 0.65 # How complex the skill is
drift_score: 0.3 # Usage vs documented scope divergence
cruft_score: 0.2 # Unnecessary complexity
gap_count: 2 # Verified gaps
friction_count: 1 # Verified friction points
These scores let REM measure whether a patch actually improved things.
structural_audit:
target_skill: /path/to/SKILL.md
cycle_number: 1
health_baseline: {coverage_score, complexity_score, drift_score, cruft_score}
verified_gaps: [{fragment_id, gap, severity, affected_sections, recommended_location}]
verified_friction: [{fragment_id, issue, severity}]
assumption_failures: [{fragment_id, assumption, failure_scenario, severity}]
prune_suggestions: []
drift_analysis: {scope_expansions, scope_contractions, priority_mismatches}
fragments_for_rem: [{id, reason}]
| Cycle | Depth | Prune | Focus |
|---|---|---|---|
| 1 | Full | Yes (deep sleep) | Complete structural audit |
| 2 | Moderate | No | Verify new fragments only |
| 3 | Light | No | Quick delta check |
| 4+ | Skip | N/A | N3 absent in late cycles |
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.