askill
dag-operations

dag-operationsSafety 85Repository

Deterministic DAG infrastructure operations for workflow execution via the hil-dag CLI. Use when assembling DAG passes, validating graph structure, updating node status, or freezing completed passes.

20 stars
1.2k downloads
Updated 2/19/2026

Package Files

Loading files...
SKILL.md

DAG Operations

Deterministic DAG infrastructure operations for workflow execution.

Overview

This skill wraps the hil-dag CLI from the humaninloop_brain package, providing the DAG Assembler and State Analyst agents with deterministic graph operations: assembly (with auto-bootstrap), validation, sorting, status updates, analysis recording, and pass freezing.

Available Operations

OperationScriptPurpose
assembledag-assemble.shAdd a catalog node with edge inference (auto-creates StrategyGraph if missing)
validatedag-validate.shRun structural validation
sortdag-sort.shTopological execution order
statusdag-status.shUpdate node status
recorddag-record.shRecord analysis results (status + evidence + trace)
freezedag-freeze.shFreeze a completed pass (with triggered_by edges and next pass creation)
catalog-validatedag-catalog-validate.shValidate a node catalog

Output Format

All operations produce JSON to stdout following the constitution pattern:

{
  "status": "valid|invalid|success|error",
  "checks": [...],
  "summary": {"total": N, "passed": M, "failed": K}
}

Exit codes: 0=success, 1=validation failure, 2=unexpected error.

Usage

Scripts are invoked by the DAG Assembler agent during workflow execution. The agent passes file paths to the single StrategyGraph JSON file and catalog JSON files.

# Add a node by ID (auto-creates StrategyGraph if file missing; --workflow required for first call)
./scripts/dag-assemble.sh <dag-path> <catalog-path> --node <node-id> [--workflow <workflow-id>]

# Add a node by capability tags (primary resolution — resolves to catalog node via tag matching)
./scripts/dag-assemble.sh <dag-path> <catalog-path> --capability-tags <tag1> [<tag2>...] [--node-type <type>] [--intent "<description>"] [--workflow <workflow-id>]

# Validate
./scripts/dag-validate.sh <dag-path> <catalog-path>

# Sort
./scripts/dag-sort.sh <dag-path>

# Update status (optional --pass to target specific pass)
./scripts/dag-status.sh <dag-path> <node-id> <new-status> [<pass-number>]

# Record analysis results (optional --pass and --verdict for gate nodes)
./scripts/dag-record.sh <dag-path> <node-id> <status> '<evidence-json-array>' '<trace-json-object>' [--pass <pass-number>] [--verdict <verdict>]

# Freeze (optional triggered nodes, trigger source gate, and reason for triggered_by edges)
./scripts/dag-freeze.sh <dag-path> <outcome> <detail> [--triggered-nodes <node>...] [--trigger-source <gate-node>] [--reason <reason>]

# Validate catalog
./scripts/dag-catalog-validate.sh <catalog-path>

Dependencies

Requires the humaninloop_brain package (>= 0.1.0) to be installed. Run from the humaninloop_brain/ directory or ensure hil-dag is on PATH:

cd humaninloop_brain && uv sync

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

65/100Analyzed 2/23/2026

Technical reference skill for DAG operations via hil-dag CLI. Well-structured with clear command examples and operation tables, covering 7 operations (assemble, validate, sort, status, record, freeze, catalog-validate). Provides usage syntax, output format, and dependencies. The skill has clear 'when to use' guidance and structured commands (bonus). However, highly specific to humaninloop_brain package with internal agent usage context, limiting reusability. Path suggests internal-only project. Missing practical details like installation steps and end-to-end examples reduce overall completeness.

85
75
40
65
70

Metadata

Licenseunknown
Version-
Updated2/19/2026
PublisherdeepeshBodh

Tags

ci-cdgithub-actions