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.zipInstalls 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 contractsKey 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
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
| Check | What | Against |
|---|---|---|
| Tool scope | Tool being called | Agent's tools frontmatter list |
| File scope | File path in Write/Edit | R002 file access rules |
| Domain scope | Target file extension | Agent's domain frontmatter |
| Task contract | Operation type | Task 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
| System | How |
|---|---|
| PreToolUse hooks | Optional hook to check tool calls (advisory only) |
| pipeline-guards | Complements pipeline stage gates |
| adversarial-review | Provides 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:
| Field | Values | Effect |
|---|---|---|
safety | normal, low | low triggers confirmation advisory |
parallel | true, false | true allows concurrent scheduling |
approval | auto, needs_approval | Maps 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.
| Mode | Source | Behavior |
|---|---|---|
| Advisory (default) | Prompt-based checks | Emit warnings only |
| Code-verified | harness-synthesizer output | Run harness validation code, emit advisory results |
| Hard-enforce (opt-in) | harness-synthesizer --hard-enforce | Block 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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| action-validator (this skill) | 0 | 14d | No flags | Advanced |
| agent-code-review-swarm | 3 | 5mo | Review | Intermediate |
| engineering-advanced-skills | 3 | 1mo | Review | Advanced |
| audit-project | 0 | 3mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by baekenough
View all by baekenough →You might also like
agent-code-review-swarm
ruvnet
Agent skill for code-review-swarm - invoke with $agent-code-review-swarm
engineering-advanced-skills
alirezarezvani
25 advanced POWERFUL-tier engineering skills covering agent design, RAG architecture, MCP servers, CI/CD pipelines, database design, observability, security auditing, release management, and platform operations. Works with Claude Code, Codex CLI, and OpenClaw.
audit-project
agent-sh
Use when user asks to 'review my code', 'audit the codebase', 'run code review', 'check for issues', 'find bugs', 'security review', 'performance review', or wants multi-agent iterative review. Spawns role-based reviewers (code-quality-reviewer, security-expert, performance-engineer, test-quality-gu
desktop-mac-mcp-host
hushh-labs
Use when implementing or reviewing the local MCP HTTP/SSE host on the Mac, the OpenClaw DataSourceBinding interface, CRT/DAT minting, or the OpenClaw conformance test harness inside the desktop-mac owner family.
colang-gen
ShulkwiSEC
Generates NeMo Guardrails Colang (.co) files and YAML config blocks from a plain-language description of a chatbot's purpose, allowed behaviors, and constraints. Use this skill whenever a user wants to build guardrails for a chatbot, define allowed intents for an LLM, create an AI firewall with NeMo
skills
zhaoxuya520
本目录收录了一系列逆向工程相关的技能模块,每个子目录是一个独立模块,内含 `SKILL.md` 描述其适用场景、工具链和工作流程。