Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Cursor, and other Agent Skills clients.
|---|---|---|---|
| [secleak-check](skills/security/secleak-check/README.md) | Scan for secrets and repository risks. | `★★★☆☆` · 24 sessions | `npx skills add instructa/agent-skills --skill secleak-check` |
| [package-security-check](skills/security/package-security-check/README.md) | Audit JavaScript supply-chain risks. | `★★★☆☆` · 20 sessions | `npx skills add instructa/agent-skills --skill package-security-check` |
| [hol-guard](skills/security/hol-guard/README.md) | Protect local coding-agent runtime workflows with HOL Guard. | `★☆☆☆☆` · 0 sessions | `npx skills add instructa/agent-skills --skill hol-guard` |

### Git

Expand Down
11 changes: 11 additions & 0 deletions skills/security/hol-guard/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# HOL Guard

Protect a supported local coding-agent harness with HOL Guard before state-changing commands and tool calls.

## Install

```bash
npx skills add instructa/agent-skills --skill hol-guard
```

Use `-g` for a global install. See [SKILL.md](SKILL.md) for the fail-closed setup, dry-run, launch, and verification workflow.
75 changes: 75 additions & 0 deletions skills/security/hol-guard/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
name: hol-guard
description: Protect local coding-agent harnesses with the HOL Guard runtime before state-changing commands and tool calls. Use when a supported agent may edit files, execute commands, call external tools or MCP servers, or perform destructive work that must fail closed when protection is unavailable.
---

# HOL Guard

Use HOL Guard as a local runtime boundary around a supported coding-agent harness. It complements repository permissions, human review, tests, and service-side controls; it does not replace them.

## Workflow

1. Preserve the current workspace and native approval gates. Never read `.env` files to set this up.
2. Probe the real CLI:

```bash
hol-guard --version
```

If it is missing and the user asked for runtime setup, prefer an isolated install:

```bash
pipx install hol-guard
```

If `pipx` is unavailable, stop instead of silently changing the user's Python environment.

3. Discover the supported harness and use only the exact identifier returned by HOL Guard:

```bash
hol-guard status
hol-guard detect --json
```

Do not maintain a hard-coded harness list. If no supported harness is detected, stop before mutation-bearing work.

4. Let Guard own setup and prove the protected launch path:

```bash
hol-guard bootstrap
hol-guard install <harness>
hol-guard run <harness> --dry-run
```

If setup or dry-run fails, reports an unexpected mutation, or cannot prove protection, stop. Never fall back to launching the agent unprotected.

5. Launch through Guard, then verify current protection:

```bash
hol-guard run <harness>
hol-guard doctor <harness> --json
hol-guard status
```

Only claim protection when current command output proves it.

6. Continue the original task with the project's own approvals, tests, and deployment controls still enabled. If Guard queues work, inspect it rather than bypassing it:

```bash
hol-guard approvals
hol-guard approvals open
```

Approve or deny only after understanding the requested scope and risk.

## Stop Conditions

Stop before side-effecting work when:
- `hol-guard --version` is unavailable and installation is not authorized.
- `hol-guard detect --json` finds no supported harness.
- bootstrap, install, dry-run, doctor, or status cannot prove the protected path.
- the proposed workaround is a direct unprotected harness launch.

## Verification

Before reporting success, show evidence that the CLI is available, the harness came from runtime detection, dry-run succeeded, the real launch used `hol-guard run`, and doctor/status prove current protection. Keep native project and provider controls in force.