agentleFS
GitHubKnown publishergithub/gh-aw/.github/skills/review-agentic-workflows/SKILL.md

review-agentic-workflows

Skill5.3k starsChanged 6 months agoMITView on GitHub

Review agentic workflow changes for correctness, security posture, and optimization opportunities with compile, validation, and audit evidence.

Trending

Quiet since March.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the github/gh-aw repository that our weekly crawl found: only 3 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when asked to review .github/workflows/*.md agentic workflows or their generated .lock.yml outputs.

    line 8
  2. Very specific:

    Use run history (logs/audit) when available to find optimization opportunities.

    line 16
  3. Distinctive:

    Run from the repository root:

    line 22
  4. Distinctive:

    Run this scope check in the review step:

    line 44
  5. Very specific:

    If source .md files changed, treat generated .lock.yml drift as part of the review.

    line 55
  6. Very specific:

    If gh aw extension is unavailable but local binary exists:

    line 65
  7. Distinctive:

    no broadening of network/tool access without justification

    line 81
  8. Very specific:

    no integrity downgrades (for example lower min-integrity)

    line 82
  9. Distinctive:

    Treat these as suspicious until proven safe:

    line 86
  10. Distinctive:

    Use targeted diffs and call out before/after impact.

    line 95
  11. Distinctive:

    If workflow run IDs/URLs are available, audit them:

    line 99
  12. Distinctive:

    Look for optimization opportunities:

    line 106

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Review Agentic Workflows

Use this skill when asked to review .github/workflows/*.md agentic workflows or their generated .lock.yml outputs. Reference workflow authoring skill guidance at: https://raw.githubusercontent.com/github/gh-aw/main/.github/skills/agentic-workflows/SKILL.md

Goals

  1. Produce a security-first review of workflow changes.
  2. Compile workflows with validation and security scanners.
  3. Flag suspicious changes that weaken protections.
  4. Use run history (logs/audit) when available to find optimization opportunities.

Self-contained setup (do not assume environment is ready)

Step 0) Verify CLI availability

Run from the repository root:

if gh aw --help >/dev/null 2>&1; then
  echo "gh aw is installed"
else
  if [ -f ./install-gh-aw.sh ]; then
    echo "gh aw is missing. Run the install step before continuing:"
    echo "  bash ./install-gh-aw.sh"
    echo "Then verify:"
    echo "  gh aw --help"
  else
    echo "gh aw is missing and ./install-gh-aw.sh is not present in this checkout."
  fi
  return 1 2>/dev/null || exit 1
fi

Review workflow

1) Scope the review

Run this scope check in the review step:

BASE_REF="${BASE_REF:-origin/main}"
if git rev-parse --verify "$BASE_REF" >/dev/null 2>&1; then
  git diff --name-only "$BASE_REF...HEAD" -- .github/workflows/
else
  git diff --name-only -- .github/workflows/
fi

If source .md files changed, treat generated .lock.yml drift as part of the review.

2) Compile with validation + security tools

For changed workflows, run strict compilation with validators:

gh aw compile --strict --actionlint --zizmor --poutine --runner-guard --yamllint --shellcheck

If gh aw extension is unavailable but local binary exists:

./gh-aw compile --strict --actionlint --zizmor --poutine --runner-guard --yamllint --shellcheck

Fail review on compilation errors or High/Critical security findings unless explicitly justified.

3) Enforce security best practices

Require and verify:

  • least-privilege permissions: (no write-all without explicit rationale)
  • pinned third-party actions by full commit SHA
  • safe handling of untrusted GitHub event data (no direct template injection into shell)
  • explicit safe-outputs limits (max, constrained event/action sets)
  • no broadening of network/tool access without justification
  • no integrity downgrades (for example lower min-integrity)

4) Detect suspicious weakening changes

Treat these as suspicious until proven safe:

  • permission expansion (especially new write scopes or global writes)
  • relaxed security controls (strict: false, reduced guardrails, disabled scans)
  • larger write blast radius (safe-outputs limits removed or sharply increased)
  • reduced provenance controls (unpinning actions, mutable refs)
  • wider external access (new unrestricted network domains/ecosystems)
  • prompt or script edits that reintroduce command/template injection risk

Use targeted diffs and call out before/after impact.

5) Audit history and optimize (when run data exists)

If workflow run IDs/URLs are available, audit them:

gh aw audit <run-id-or-url>
gh aw logs --start-date -14d --workflow-name <workflow-name>

Look for optimization opportunities:

  • high token/cost usage
  • repeated retries/tool failures
  • long-running steps or bottleneck jobs
  • unnecessary MCP/tool invocations
  • firewall denials causing retries or wasted turns

Recommend minimal, safe optimizations that keep or improve security posture.

Review output contract

Return findings in three sections:

  1. Security regressions (must-fix) — high-confidence weakening changes.
  2. Validation/scanner results — compile and tool outcomes.
  3. Optimization opportunities — optional improvements backed by logs/audit evidence.

Each finding should include severity, file(s), rationale, and a concrete remediation direction.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.