# verify-approval-guard

The verify-approval-guard Claude Code skill tests approval-guard behavior. It runs property tests after changes to code that gates actions on human approval.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 342 repo stars
- Author: hridaya423
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/hridaya423/phonedriver/tree/HEAD/.claude/skills/verify-approval-guard/SKILL.md
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/verify-approval-guard

## What it does

The skill runs property tests to check whether a guarded action, such as a payment or deletion, can reach the device before a person answers. Generated cases cover batches, answers, request categories, and protocol versions.

Tests exercise the actual daemon, MCP server, and FakeDevice log rather than a separate implementation. The `proptest` dev-dependency must be present in `crates/cli`; run the check with `cargo test -p phonedriver --test guard_property`.

It applies to edits in `guard.rs`, guard functions in `actor.rs`, guarded calls in `mcp.rs`, `run_batch` in `commands.rs`, or the `guard_rig.rs` test harness. The command requires the `phonedriver` project.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add hridaya423/phonedriver --skill verify-approval-guard -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/verify-approval-guard/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/verify-approval-guard/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add hridaya423/phonedriver --skill verify-approval-guard -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/verify-approval-guard/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add hridaya423/phonedriver --skill verify-approval-guard -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/verify-approval-guard/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install hridaya423/phonedriver .claude/skills/verify-approval-guard
```

2. **Manually: put the files in place**
- File: `.github/skills/verify-approval-guard/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add hridaya423/phonedriver --skill verify-approval-guard -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/hridaya423/phonedriver --path .claude/skills/verify-approval-guard
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/verify-approval-guard/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/hridaya423/phonedriver/tree/HEAD/.claude/skills/verify-approval-guard/SKILL.md

## When to use it
- check that a payment tap waits for a human answer
- catch a batch step that runs twice before a held action
- test whether a retry can bypass the approval guard

## Example prompts
- Check my changes to `guard.rs` and run the approval guard tests.
- Test whether a retry in `mcp.rs` can submit a payment without a human answer.
- I changed `run_batch`; verify the approval guard.

## Similar
- [extension-user-approval](https://affpapa.org/en/nevibecode/skills/extension-user-approval.md) — skill · 32200 installs
- [deal-desk-approval](https://affpapa.org/en/nevibecode/skills/deal-desk-approval.md) — skill · 26800 installs
- [planetscale-change-gates-and-approval-contract](https://affpapa.org/en/nevibecode/skills/planetscale-change-gates-and-approval-contract.md) — skill · 1900 installs
- [tool-approval](https://affpapa.org/en/nevibecode/agents/tool-approval.md) — subagent · ★ 521 repo stars
- [Approval gate for databases](https://affpapa.org/en/nevibecode/mcp/approval-gate-for-databases.md) — MCP server
- [convex-deploy-guard](https://affpapa.org/en/nevibecode/skills/convex-deploy-guard.md) — skill · 44000 installs

From the same set: [hridaya423/phonedriver](https://affpapa.org/en/nevibecode/by/hridaya423/phonedriver.md) — 4 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
