/graph-engineering:graph-engineeringfrom Graph Engineering
Select, design, compile, audit, diagnose, optimize, or evolve executable AI workflow and agent graphs. Use for explicit prompt/workflow topology, typed state, runtime and recovery semantics, coordination, protected actions, trace analysis, or controlled graph changes; not for knowledge graphs, graph databases, GraphRAG, graph ML prompting, or model-internal reasoning diagrams.
Ships in Graph Engineering. 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.
Read when SKILL.md points to them.
Graph engineering treats a graph as an explicit, executable, versioned engineering artifact. A first-class graph has all four properties: explicit structure; prompt content separated from topology; defined execution semantics; and an artifact that can be validated, compared, and evolved.
An ordinary program, trace, diagram, or multi-agent chat is not automatically a graph artifact. RAG can be a tool node, but knowledge-graph construction, graph databases, GraphRAG, graph-ML prompting, and model-internal Graph-of-Thought reasoning are out of scope. State this boundary instead of forcing those requests into this skill.
Choose exactly one mode from the request. Do not redesign during an audit or optimize topology when the requested surface is frozen.
| Mode | Use when | Return only |
|---|---|---|
select | Decide between deterministic code, direct call, bounded loop, or graph | GraphDecision |
design | Specify a framework-neutral executable graph | GraphSpec |
compile | Map a GraphSpec to a named framework or code harness | ImplementationMapping |
audit | Inspect an existing artifact or implementation | GraphAudit |
diagnose | Localize a failure from a trace or state history | RunDiagnosis |
optimize | Improve prompts, models, examples, thresholds, or fixed-topology parameters | OptimizationPlan |
evolve | Change nodes, edges, topology, coordination, or capabilities as a new version | EvolutionProposal |
A run trace or state history that identifies the graph it came from (graph id and version) routes to diagnose; the four-condition graph-artifact test applies to that graph, not to the trace. Return no_graph_artifact only when the request asks whether supplied material is itself a graph artifact, or when the material carries no graph identity at all.
The returned artifact must be complete even when terse:
GraphDecision: include exactly these required semantic fields even when a list is empty: artifact, schema_version, mode, objective, decision, selected_approach, rationale, alternatives_considered, required_controls, bounds, evidence, and unknowns. decision answers whether graph engineering applies; selected_approach names the implementation.GraphSpec: canonical GraphSpec 1.0 JSON.ImplementationMapping: source graph identity/digest, target and verification date, semantic mappings, application-owned controls, gaps, conformance tests, and residual risks.GraphAudit: scope, verdict, severity-ranked findings with exact locations/evidence, invariant coverage, unknowns, and smallest repairs.RunDiagnosis: run/graph identity, symptom, first invalid transition, root-cause evidence, propagation/failure frontier, recovery status, unknowns, and next diagnostic action.OptimizationPlan: frozen graph surfaces, mutable parameters, baseline, data splits/trials, objectives, method, budgets, graders, promotion gates, and rollback.EvolutionProposal: baseline/candidate identities, structural hypothesis and diff, risk/migration, credit assignment/ablations, held-out gate, budgets, rollout, rollback, and archival disposition.Use standard unless consequence requires more:
standard: typed contracts, bounded execution, governed state, traceability, and evaluation.protected_action: also requires bound approval, least privilege, idempotency analysis, authoritative post-state verification, and compensation policy.high_assurance: also requires immutable evidence records, integrity hashes, strict provenance and retention, independent adjudication, and release controls.Profiles are cumulative. Do not impose high-assurance ceremony on lower-risk work.
Start with the least complex option that meets success criteria and mandatory controls:
Return decision: "no_graph" when a graph adds no measured or policy-required value. A loop is not a failed graph design. Read philosophy.md when the boundary or graph-versus-loop choice is disputed.
For every designed, compiled, or evolved graph:
schema_version: "1.0"; Markdown tables, Mermaid, and DOT are generated views.$control sentinel. Every node with conditional outgoing edges must also have a default: true or error edge. Every directed cycle must cross at least one edge with a finite iteration_guard; every data fan-in declares join_behavior. Conditions may use only all, any, not, eq, ne, exists, in, gt, gte, lt, and lte; never evaluate graph-provided code.runtime.cancellation.cancel_route; all other terminal reachability must be explicit in the graph.ApprovalBinding: action digest, exact scope, approver identity, expiry, nonce, and revocation state. Recheck it immediately before execution and verify authoritative post-state.controls.compensations declares whether recovery requires a separately approved side effect.Run python scripts/graph_tool.py validate <graph.json> before presenting a GraphSpec as executable. For an exact machine contract, select the matching file in schemas/ and run python scripts/graph_tool.py validate-artifact <artifact.json>. In Codex automation, pass that same schema through codex exec --output-schema; skill prose guides semantic choices but does not enforce JSON keys. The tool validates and renders artifacts; it never executes workflows, model calls, or network calls.
Load only the references needed for the selected mode and profile.
agents/openai.yaml (opens in a new tab)evals/behavior-results.json (opens in a new tab)evals/regression-record.json (opens in a new tab)evals/routing.schema.json (opens in a new tab)evals/rubric.json (opens in a new tab)evals/run_behavior_suite.py (opens in a new tab)evals/scenarios.json (opens in a new tab)references/coordination-and-context.md (opens in a new tab)references/evaluation.md (opens in a new tab)references/framework-mappings.md (opens in a new tab)references/graph-artifact.md (opens in a new tab)references/high-assurance-profile.md (opens in a new tab)references/optimization-and-evolution.md (opens in a new tab)references/philosophy.md (opens in a new tab)references/playbook.md (opens in a new tab)references/runtime-state-and-recovery.md (opens in a new tab)references/security-and-governance.md (opens in a new tab)references/topologies-and-prompts.md (opens in a new tab)schemas/evolution-proposal.schema.json (opens in a new tab)schemas/graph-audit.schema.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mtent/special-skills --plugin graph-engineering2 plugins ship this exact skill · first indexed Sep 6, 2026