Input
- Validation script (required):
scripts/validate.sh - Workflows directory (optional): defaults to
.github/workflows; scopes the ORD-01 map order check and ghalint (actionlint and zizmor always scan the whole repository). Without it, the ORD-01 check covers git-tracked.github/workflows/*.yml|yamland.github/actions/**/action.yml|yaml; untracked new files are not checked until they are added to git. With it, the ORD-01 check covers only YAML files under that directory (relative to the current directory), so composite actions are not checked --verbose/--quiet(optional)
Output Specification
Return structured Markdown in accordance with references/common-output-format.md. That file is the source of truth for the output contract.
Structured validation results from four tools: ORD-01 map order → actionlint → ghalint → zizmor. Attribute evidence to the producing tool.
Execution Scope
- Always use
scripts/validate.shfor comprehensive validation. Do not run individual commands. - Script executes all tools in order and stops at the first failing tool (fail-fast); later tools are reported as
⊘ Skipped. - Individual commands are for debugging only (see references/common-individual-commands.md)
USE FOR:
- validate workflow changes before commit or merge
- rerun CI-equivalent local checks for workflow failures
- verify syntax and security findings from validation tools
DO NOT USE FOR:
- judge workflow architecture or operational policy quality
- edit workflow files automatically
- validate non-workflow YAML files
Reference Files Guide
- common-checklist.md (always read)
- common-output-format.md (always read)
- common-troubleshooting.md (read on failure)
- common-individual-commands.md (read on failure)
- category-security.md (always read)
Workflow
- Run
bash scripts/validate.sh(orbash scripts/validate.sh <workflows-dir>to scope the ORD-01 check and ghalint). - Parse script output and map results to checklist ItemIDs.
- Report per-tool results (pass, fail, skipped) per references/common-output-format.md.
- If checks fail and the user asked for fixes, fix reported issues and rerun the same command; otherwise report the failures.
- Retry at most 2 times after fixes; if checks still fail, return blocking findings and stop.
Error Handling
| Condition | Severity | Action |
| ----------------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------- |
| scripts/validate.sh missing | Fatal | Stop; report missing script |
| No workflow YAML under target path | Info | Report no reviewable workflows; stop |
| python3 / actionlint / ghalint / zizmor missing | Fatal | Stop; report the missing binary; set Status: ❌ FAIL |
| A tool fails | Recoverable | Report earlier tools as passed, the failed tool ❌ Fail with exit status, later tools ⊘ Skipped |
| common-checklist.md unavailable | Fatal | Stop; report missing dependency |
| common-output-format.md unavailable | Recoverable | Note missing file; emit ## Summary, ## Tool Results, and ## Error Details only |
Examples
- Prompt:
Validate workflows and report only failed checks with ItemIDs - Command:
bash scripts/validate.sh ./.github/workflows/ - Result: Structured report per references/common-output-format.md; attribute evidence to ORD-01, actionlint, ghalint, or zizmor.