/eou-foundry:eou-diagnose INCIDENT_OR_AUDIT_PATHfrom eou-foundry
Classifies EOU failures using F-code taxonomy and recommends the smallest-blast-radius repair, producing a diagnosis report or no-change record.
Ships in eou-foundry. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Diagnose the failure described in $target and recommend the minimum repair path.
$target (required) — path to an incident report or audit finding. Accepted paths: foundry/audits/incidents/{id}.yml, foundry/audits/eou-audits/{id}.audit.yml, or any structured YAML file containing an observable failure symptom.${CLAUDE_PLUGIN_ROOT}/engine/failure-taxonomy.yml (plus the app's foundry/overrides/failure-taxonomy.yml, if present) — F1–F12 class definitions and repair heuristicsfoundry/constitution.yml — invariants that constrain repair options${CLAUDE_PLUGIN_ROOT}/schemas/incident.schema.yml — validate the input incident report against this schema if it is a structured YAML fileHalt and request clarification if:
$target does not identify an EOU ID and one cannot be inferred from the content.${CLAUDE_PLUGIN_ROOT}/engine/failure-taxonomy.yml does not exist — failure classification cannot proceed without it.$target (incident report or audit finding) and extract the observable failure symptom.Every diagnosis produces one of two outcomes:
$ecp-propose to open an ECP.foundry/audits/incidents/{incident_id}.no-change.yml with fields: incident_id, eou_id, diagnosis_summary, decision: no_change, rationale, reviewed_by, reviewed_at, reopen_condition.A no-change record is not a failure of the diagnosis process. It is evidence that the system reviewed and rejected a change rather than silently ignoring the incident.
Write the diagnosis report to foundry/audits/incidents/{incident_id}.diagnosis.yml with the following structure:
incident_id: # from $target or generated
eou_id: # EOU under diagnosis
failure_classes: # list of F-codes with confidence (high/medium/low)
symptoms: # observable signals that led to each classification
repair_options: # ordered list, smallest blast radius first
- repair_type: # schema_field | validator | stop_condition | regression_case | context_manifest | ecp | human_gate | eou_lifecycle
description: # one sentence — what changes
blast_radius: # narrow | medium | wide
requires_ecp: # true | false
recommended: # index into repair_options of the recommended minimum fix
rationale: # why that fix and not the next one up
incident_id — use the one from $target or generate from {eou_id}-{YYYYMMDD} if absent.high/medium/low) for failure class matches must be grounded in observable signals, not subjective judgment.Upstream: receives incident reports (foundry/incidents/) or audit failures (foundry/audits/eou-audits/).
Downstream: dual outcome — decision: change produces a diagnosis fed to $ecp-propose; decision: no_change produces a no-change record under foundry/audits/incidents/.
Related: $eou-refactor (sibling — also a path to ECP from audit findings, but produces structural options rather than F-code classification); $generate-regression-cases (sibling — converts incidents to durable test memory).
Pipeline: incident | audit failure → eou-diagnose → (change) ecp-propose | (no_change) no-change record
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub xiaolai/eou-foundry --plugin eou-foundry13 skills in this plugin
/audit-candidate-eou-setAudit a generated candidate EOU set for boundary quality, minimality, overlap, authority, operational value, and governance risk before any candidate advances to specification./audit-judgmentAudit value_invocations in run traces for EOUs with classification.judgment_authorized:true. Verifies invocations against the captured_workflow's declared priority (no F15), checks for drift over multiple runs (no F16), detects hallucinated value ids (no F17), catches silent decisions on contested cases (F14), and runs counterfactual-swap audit as the V1 anti-theater defense./ecp-proposeCreate a formal EOU Change Proposal from a diagnosed failure or refactor option, capturing simulation, regression case, audit, and approval requirements per rule 92.Other plugins' skills for the same job