Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Apex Workflow Engine

ASecurity

**UTILITY SKILL** — Machine-readable workflow DAG for the multi-step agent pipeline. Defines node types, edge conditions, gates, and fan-out patterns. WHEN: "orchestrator step routing", "resume from graph", "workflow validation", "workflow DAG", "workflow gate", "fan-out pattern". USE FOR: orchestrator step routing, resume-from-graph, workflow validation. DO NOT USE FOR: Azure infrastructure, code generation, troubleshooting.

216 stars
0 votes
0 copies
0 views
Added 9/24/2026
ai-agentsgonodeazureterraformdocumentation

Works with

cli

Security Analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned 9/24/2026

$npx -y skills add jonathan-vella/apex --skill apex-workflow-engine --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Apex Workflow Engine?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Apex Workflow Engine
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jonathan-vella-apex-workflow-engine/badge)](https://www.skillsdirectory.com/skills/jonathan-vella-apex-workflow-engine)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: apex-workflow-engine
user-invocable: false
disable-model-invocation: false
description: '**UTILITY SKILL** — Machine-readable workflow DAG for the multi-step agent pipeline. Defines node types, edge conditions, gates, and fan-out patterns. WHEN: "orchestrator step routing", "resume from graph", "workflow validation", "workflow DAG", "workflow gate", "fan-out pattern". USE FOR: orchestrator step routing, resume-from-graph, workflow validation. DO NOT USE FOR: Azure infrastructure, code generation, troubleshooting.'
---

# Workflow Engine Skill

Provides a declarative, machine-readable workflow graph that the Orchestrator
reads instead of relying on hardcoded step logic.

## When to Use

- Orchestrator determining the next step after a gate
- Resuming a workflow via `apex-recall show <project> --json`
- Validating that all steps have proper dependencies and outputs
- Understanding fan-out (parallel sub-steps) and conditional routing

## Rules

- **Forward DAG** — `edges` must be acyclic; refinement routes are declared separately in `return_edges`.
- **Source of truth is `templates/workflow-graph.json`** — the orchestrator reads this directly; do not encode workflow logic in agent prose
- **Gates are blocking** — a `gate` node halts downstream execution until human approval is recorded in session state
- **IaC routing** — `step-4` is the shared planner; select CodeGen and Deploy nodes using `decisions.iac_tool`.
- **Fan-out is logical work structure**, not permission to invoke main agents or unavailable workers.
   The owning main agent handles its outputs; parallelize only independent, authorized work.
- **Edge conditions** — follow the graph's declared conditions, including refinement returns; the schema allows a string or array.
- **Schema evolution** — bump `metadata.version` and follow `references/schema-evolution.md` rollback rules when changing the graph

## Prerequisites

Use the graph and `apex-recall show <project> --json` together. If the returned
`session` is empty, initialize or recover the project before routing.

## Steps

Orchestrator protocol for routing the next step:

1. **Load** `templates/workflow-graph.json`
2. **Read current state** — use `session.current_step`, `session.steps`, and `session.decisions` in the response.
3. **Resolve the node** — use the per-step status map to distinguish Design (`3`) from Governance (`3_5`);
   use `decisions.iac_tool` for the CodeGen and Deploy tracks. Do not derive a node ID from the numeric pointer alone.
4. **Check node status**:
   - `complete` → follow `on_complete` edges → find next node
   - `in_progress` → resume from `sub_step` checkpoint
   - `pending` → offer the declared human handoff to the owning main agent
   - `skipped` → follow `on_skip` edges
   - failed or blocked → stop and follow the applicable declared recovery or refinement route
5. **Apply edge and node conditions** — honor optional Design selection and the IaC track;
   do not execute every outgoing edge when alternatives are present.
6. **If next is a `gate`** — check its preconditions, present to the user, wait for approval, and record the decision.
7. **If next is a `subagent-fan-out`** — use the owning agent's actual role/tool contract;
   never infer callable workers from graph children. Collect required outputs before continuing.
8. **Repeat** until all nodes are complete or blocked

## Core Concepts

Forward execution and declared refinement returns are distinct. A shared
`step-4` plan feeds `step-5b` / `step-5t`, then `step-6b` / `step-6t`.
Approval gates remain blocking on both tracks.

Full node-type table, edge-condition matrix, and IaC routing rules in
[`references/dag-concepts.md`](references/dag-concepts.md).

## Workflow Graph

The full machine-readable DAG is in:
`templates/workflow-graph.json`

### Reading the Graph (Orchestrator Protocol)

Use [Steps](#steps) as the routing protocol. Response fields are documented in
[`show-schema.md`](../../../tools/apex-recall/docs/show-schema.md).

## Reference Index

Operational Local and Host entrypoints share
[workflow-entry.md](references/workflow-entry.md). For parent-to-worker calls,
read [execution-subagent.md](references/execution-subagent.md).
Manual Host workflow entry uses
[apex-host-workflow-start](../apex-host-workflow-start/SKILL.md), including
`resume [project]`. This skill requires explicit owner selection; it does not bind models/tools.

Other retained Local operations load only their requested procedure:
[imported IaC](references/review-imported-iac.md),
[existing Azure as-built](references/as-built-from-azure.md),
[project review](references/project-wide-review.md).
Published documentation maintenance belongs to the separate `jonathan-vella/apex-docs` repository.
Do not load retired documentation tooling when advancing infrastructure steps.
For their shared execution boundary, read
[operational-safety.md](references/operational-safety.md).

| Reference                | File                                       | Content                                                 |
| ------------------------ | ------------------------------------------ | ------------------------------------------------------- |
| Workflow Graph           | `templates/workflow-graph.json`            | Full DAG for the multi-step workflow                    |
| Orchestrator Handoff     | `references/orchestrator-handoff-guide.md` | Gate templates, IaC routing, delegation rules           |
| Subagent Integration     | `references/subagent-integration.md`       | Subagent matrix, pricing accuracy, review protocols     |
| Handoff Validation Rules | `references/handoff-validation-rules.md`   | B1a–B5 rule reference (`workflow-handoffs` PART)        |
| Track Parity Spec        | `references/track-parity-spec.md`          | B4 normalization spec for Bicep/Terraform parity        |
| Schema Evolution         | `references/schema-evolution.md`           | D1 versioning policy + D2 rollback (`metadata.version`) |

## Validation Surfaces

The workflow graph is enforced at three points:

| Validator                                                    | Rule registry                        | Scope                                         |
| ------------------------------------------------------------ | ------------------------------------ | --------------------------------------------- |
| `tools/scripts/validate-workflow-graph.mjs`                  | inline                               | Graph shape + schema                          |
| `tools/scripts/validate-agents.mjs --only=workflow-handoffs` | `WORKFLOW_HANDOFF_RULES`             | `handoffs[]` UI buttons + `agents[]` dispatch |
| `tools/scripts/validate-artifacts.mjs`                       | `ARTIFACT_HEADINGS["00-handoff.md"]` | Gate-companion file H2 sync                   |

`npm run validate:_node` includes these checks. For focused graph and handoff
checks, use `npm run validate:workflow-graph` and `npm run lint:workflow-handoffs`.
Artifact Markdown validation remains owned by the existing hooks and challenger review.

Attribution

jonathan-vellajonathan-vella
View sourceSee grades on GitHubMore from jonathan-vella →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →