/flc-skills:design-workflow-graphsfrom flc-skills
Designs and reviews graph-based workflows with explicit control flow, state, failure, and termination semantics. Useful for deciding if graph orchestration fits a process or auditing existing DAGs.
Ships in flc-skills. 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; scripts run unread.
Design workflow graphs as explicit engineering contracts rather than decorative diagrams. Make control flow, state mutation, termination, failure behavior, and side effects reviewable before choosing an execution framework.
Load only what the request needs:
python3 scripts/validate_graph_spec.py --strict path/to/graph.json.Choose one primary mode and state it when the distinction affects the deliverable:
design: Create a new workflow graph from goals and constraints.transform: Convert a linear process, implicit agent loop, or prose procedure into an explicit graph.review: Find structural, state, concurrency, recovery, termination, and side-effect defects in an existing graph.evolve: Revise a graph using observed failures, traces, evaluation results, or changed requirements.Do not force the full design workflow onto a narrow request. For example, review only the supplied graph when the user asks for an audit.
Establish:
Separate known facts, bounded assumptions, and decisions. Ask only when a missing decision would materially change topology or safety.
Use a graph when at least one material requirement needs explicit topology:
Recommend a simpler pipeline or loop when the graph adds ceremony without improving control, recovery, or understanding.
List every shared state field and define:
Keep large artifacts outside shared state when a reference is sufficient. Do not use conversation history as an implicit state schema.
In a Graph Spec, declare state.writers as the complete authorization set. It must exactly match the nodes that list the field under writes. Mark fields available before entry with initial: true; every node read must be available on every normal or recovery path into that node.
Give every node one primary responsibility. Specify:
Split a node when its outputs need different retry, permission, evaluation, or ownership semantics. Merge nodes when separation creates no meaningful control boundary.
Classify each non-terminal node's exhausted failure as retryable, correctable, rejectable, or terminal, and route it to an explicit on_failure node.
For every edge, define its source, destination, and reason for selection.
reads.Use distinct positive priorities whenever multiple guarded edges leave the same node. Treat the validator as a structural check: arbitrary guard expressions still need runtime-specific tests for meaning, overlap, and boundary behavior.
For parallel work, define the fan-out source, exact direct branch entries, join policy, timeout behavior, partial-result policy, and state merge semantics. Require every node with multiple unconditional outgoing edges to have exactly one matching parallel group; never model guarded or default alternatives as parallel branches. Reject normal or recovery entries from outside a branch, normal exits that bypass the group join, branch-local exceptional exits that bypass on_partial_failure, non-branch inputs to the join, and reuse of one join by multiple groups. Keep graph-wide cancellation and unhandled-error recovery separate.
Do not allow concurrent branches to write the same replace or reject-conflict field. Use independently owned fields, or an explicit append or reduce contract when concurrent aggregation is intentional.
For every loop, define:
Require the declared loop members to match the actual cyclic component exactly. Do not add downstream nodes merely to make an exit condition appear available.
Represent human approval as an explicit resumable boundary. Persist the decision input, approver identity when required, decision, and continuation state.
Make approval rejection, expiry, loop exhaustion, partial failure, unhandled failure, and cancellation resolve to explicit nodes rather than free-form outcomes.
Include these implicit failure and recovery transitions when checking reachability and cycles. Re-entering normal work from recovery requires its own measurable loop boundary.
Classify failures as retryable, correctable, rejectable, or terminal. Prefer local recovery over restarting the entire graph.
Capture at least node start, node end, selected edge, state delta, latency, retry, and error events. Redact sensitive values.
Define evaluation at the smallest useful level:
Read references/review-checklist.md. When producing a Graph Spec, run the bundled validator in strict mode and fix errors and warnings before handoff.
The validator checks structural contracts and reference integrity. It does not interpret arbitrary guard languages or prove runtime behavior; add execution tests for route boundaries, recovery, resume, and side-effect semantics.
Match the output to the request. A complete design should normally include:
For reviews, lead with findings ordered by severity and cite the affected nodes, edges, or state fields. Do not redesign unaffected areas unless needed to demonstrate a fix.
Before finishing, verify that:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
workflow-graphs, graph-design, orchestration, state-machines, dag-audit
npx claudepluginhub flc1125/skills --plugin flc-skills31 skills in this plugin
/asyncLaunch and coordinate Codex subagents as deferred tasks. Use when the user wants to start bounded subagent work now, keep the main thread moving without waiting by default, then later join, collect, or redirect that work through a stable task reference./code-reviewRequest or perform a git-backed code review for a defined diff or SHA range using implementation context and requirements. Use when finishing a task, completing a major feature, preparing to merge, or when you need a fresh review before proceeding./create-planCreate and maintain repository-aware technical plans, implementation plans, refactor proposals, design drafts, and migration plans. Use when Codex is asked to investigate a codebase and propose a solution before implementation; write or update a durable plan file; produce a 方案、实施计划或重构计划; split engineering work into phases or pull requests; document scope, non-goals, API and behavior decisions, breaking changes, migrations, risks, testing, or validation; or transition a plan through draft, planned, in-progress, blocked, and completed states.Other plugins' skills for the same job