AC

action-validator

Validates agent tool actions. Use this to ensure operations stay within defined boundaries.

Install

mkdir -p .claude/skills/action-validator && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18844" && unzip -o skill.zip -d .claude/skills/action-validator && rm skill.zip

Installs to .claude/skills/action-validator

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Pre-action boundary checking — validates agent tool calls against declared capabilities and task contracts
106 charsno explicit “when” trigger
Advanced

Key capabilities

  • Check tool calls against agent's declared capabilities
  • Validate file paths against R002 file access rules
  • Verify target file extensions against agent's declared domain
  • Check operation types against task description constraints
  • Emit warnings for scope violations

How it works

This skill acts as an advisory pre-action validation layer, checking agent tool calls against declared capabilities and task contracts before execution.

Inputs & outputs

You give it
Agent tool calls with tool name, target file path, and operation type
You get back
Advisory warnings for scope violations or policy cache entries

When to use action-validator

  • Validate tool usage policy
  • Check agent file access
  • Verify action space legality

About this skill

Action Validator Skill

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

For high-effort frontier roles, tool capability hints improve batched tool-call planning. Declare per-tool metadata in policy cache entries without coupling the policy to a concrete model ID or provider alias:

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 (.codex/outputs/harnesses/{agent-name}-*.yaml), action-validator can use it for enhanced validation:

Compatibility artifact protocol

Sensitive-path compatibility note: when delegated work touches .claude/outputs/, .claude/**, or templates/.claude/**, keep .codex/** artifacts on the normal file-write path. On Claude Code v2.1.121+ with bypassPermissions, direct compatibility writes are allowed for .claude/skills/, .claude/agents/, and .claude/commands/; on v2.1.126+ broader protected paths are covered. Use /tmp/<skill>-<timestamp>.md only as a legacy fallback when the runtime is older or still prompts.

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)

When not to use it

  • When the user asks to block actions
  • When the user asks to modify agent behavior
  • When the user asks to override R021 policies

Limitations

  • Does not block actions; only emits warnings
  • Does not modify agent behavior
  • Does not override R021 policies

How it compares

This skill provides an automated advisory check for tool call legality, preventing potential scope violations before they occur, unlike manual review or hard enforcement.

Compared to similar skills

action-validator side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
action-validator (this skill)014dNo flagsAdvanced
agent-code-review-swarm35moReviewIntermediate
engineering-advanced-skills31moReviewAdvanced
audit-project03moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

Search skills

Search the agent skills registry