Action Validator Skill

SkillProductivity

action-validator adds a check that runs before your AI takes any action. It compares each step your AI is about to take against what it is allowed to do and what the task calls for, so out-of-bounds actions are caught before they happen.

Available today. Use it from your connected AI after setup.

Add the skill and it will begin checking your AI's actions before they run. Each action is measured against the declared capabilities and task contract already in place.

Then ask your AI: use the Action Validator Skill skill

What your AI can do with it

  • Check each action before it runs
  • Allow only actions that match the AI's declared capabilities
  • Stop steps that fall outside the current task's contract
  • Verify every action against what the task requires
  • Flag boundary violations early, before anything is carried out

What this skill tells your AI

The instructions your AI receives, as published by baekenough/oh-my-customcode in .claude/skills/action-validator/SKILL.md and read by ahel’s review.

Purpose

Advisory pre-action validation layer that checks agent tool calls against declared capabilities, file access scope (R002), and task contracts before execution. Inspired by AutoHarness (Google DeepMind) — enforcing action-space legality at agent boundaries.

This skill does NOT block actions (R021 advisory-first model). It emits warnings when agents attempt operations outside their declared scope.

Validation Checks

CheckWhatAgainst
Tool scopeTool being calledAgent's tools frontmatter list
File scopeFile path in Write/EditR002 file access rules
Domain scopeTarget file extensionAgent's domain frontmatter
Task contractOperation typeTask description constraints

Advisory Format

--- [Action Validator] Scope warning ---
  Agent: {agent-name}
  Tool: {tool-name}
  Target: {file-path}
  Issue: {description}
  Declared scope: {agent's declared tools/domain}
  💡 Suggestion: {recommended action}
---

Integration Points

SystemHow
PreToolUse hooksOptional hook to check tool calls (advisory only)
pipeline-guardsComplements pipeline stage gates
adversarial-reviewProvides action-space-legality criterion
R002 (Permissions)Validates against declared file access rules
R010 (Orchestrator)Orchestrator validates subagent scope claims

Policy Cache Pattern

For high-repetition agents (e.g., mgr-gitnerd commit workflows), capture validated decision paths as reusable policies:

policy_cache:
  agent: mgr-gitnerd
  action: git-commit
  validated_steps:
    - tool: Bash
      pattern: "git add *"
      verdict: allow
      hints: { safety: normal, parallel: false, approval: auto }
    - tool: Bash
      pattern: "git commit *"
      verdict: allow
      hints: { safety: normal, parallel: false, approval: auto }
    - tool: Bash
      pattern: "git push *"
      verdict: warn_confirm
      hints: { safety: low, parallel: false, approval: needs_approval }

Policy caching reduces redundant LLM calls for well-understood workflows. Policies are advisory — the orchestrator may override.

Capability Hints (Opus 4.8+)

When agents target Opus 4.8 (opus48 model alias), tool capability hints improve batched tool-call planning. Declare per-tool metadata in policy cache entries:

FieldValuesEffect
safetynormal, lowlow triggers confirmation advisory
paralleltrue, falsetrue allows concurrent scheduling
approvalauto, needs_approvalMaps to R002 permission tier

Example: Enhanced Policy Cache with Capability Hints

policy_cache:
  agent: mgr-gitnerd
  action: git-commit
  validated_steps:
    - tool: Bash
      pattern: "git add *"
      verdict: allow
      hints: { safety: normal, parallel: false, approval: auto }
    - tool: Bash
      pattern: "git push *"
      verdict: warn_confirm
      hints: { safety: low, parallel: false, approval: needs_approval }
    - tool: Read
      pattern: "*"
      verdict: allow
      hints: { safety: normal, parallel: true, approval: auto }

Hints are advisory — they inform model scheduling but do not enforce. Inspired by ouroboros PR #353 capability graph pattern.

Code Harness Integration (AutoHarness)

When a synthesized harness exists for an agent (.claude/outputs/harnesses/{agent-name}-*.yaml), action-validator can use it for enhanced validation:

Tool: Writing artifacts under .claude/outputs/

Under mode: "bypassPermissions", direct Write/Edit/Bash on .claude/** paths is permitted (CC v2.1.121+, #1101) — no /tmp/*.sh wrapping is needed.

To write action-validator results under .claude/outputs/sessions/:

  1. Write the artifact body directly to .claude/outputs/sessions/$(date +%Y-%m-%d)/action-validator-$(date +%H%M%S).md with the Write tool (every Agent tool call includes mode: "bypassPermissions", R010)
  2. Read-only Bash on .claude/outputs/ (e.g., cat, head, wc) is allowed for verification

Reference: R006/R010 sensitive-path handling (CC v2.1.121+), #1101.

ModeSourceBehavior
Advisory (default)Prompt-based checksEmit warnings only
Code-verifiedharness-synthesizer outputRun harness validation code, emit advisory results
Hard-enforce (opt-in)harness-synthesizer --hard-enforceBlock invalid actions (requires explicit opt-in, see R021)

To generate a harness for an agent: /harness-synthesizer --agent {name} --mode verifier

Code harness validation is additive — it supplements prompt-based checks, not replaces them.

Scope

This skill is an advisory layer, not a hard enforcement mechanism:

  • Does: Emit warnings, log scope violations, suggest corrections
  • Does NOT: Block tool execution, modify agent behavior, override R021
  • Future: May integrate with PreToolUse hooks for automated checking (see R021 promotion criteria)

Related Guide

  • guides/harness-engineering/ — 하네스 엔지니어링 통합 가이드 (Behavior Control Layer 관점에서 action-validator 위치)

Signals

GitHub stars
34
Forks
6
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
action-validator
Source
github.com/baekenough/oh-my-customcode