Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

leash

ASecurity

Budget the coding agent's working set from the call graph, refuse out-of-radius Edit/Write/Bash, and keep the session inside a token budget. Use when starting a coding task, before applying a patch, when the agent is about to read the whole repo, or when a change might touch auth, billing, webhooks, or other high-radius code.

2 stars
0 votes
0 copies
0 views
Added 9/22/2026
ai-agentsrustbashsqlgit

Works with

claude codecursorcli

Security Analysis

A100/100

Scanned 9/22/2026

Install to Claude Code

$npx -y skills add getArbor-dev/leash --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of leash?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for leash
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/getarbor-dev-leash/badge)](https://www.skillsdirectory.com/skills/getarbor-dev-leash)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: leash
description: >
  Budget the coding agent's working set from the call graph, refuse
  out-of-radius Edit/Write/Bash, and keep the session inside a token
  budget. Use when starting a coding task, before applying a patch,
  when the agent is about to read the whole repo, or when a change
  might touch auth, billing, webhooks, or other high-radius code.
license: MIT
compatibility: >
  Claude Code, Codex, Cursor, OpenCode, Gemini CLI. Requires a
  PreToolUse hook that can deny Edit, Write, and mutating Bash.
metadata:
  author: getArbor-dev
  version: 0.3.0
  status: v2
---

# Leash

You are running under Leash. Leash is not a suggestion. It is a
budget and a deny list.

## Hard rules

1. Do not read files outside the current working set unless Leash
   expands the set and records why.
2. Do not Edit, Write, or run mutating Bash on paths outside the
   working set. If a hook is present, it will deny you. If a hook is
   missing, stop and tell the user Leash is not enforcing.
3. Do not dump the repository into context. If you need more files,
   ask Leash to expand the budget with a reason tied to a symbol or
   path already in the set.
4. If a proposed hunk matches a blocked agent-failure pattern
   (secrets, `eval`/`exec` on untrusted input, SQL/XSS in the changed
   hunk, new dependency with no lockfile change), do not apply it.
   Report the rule id and the file:line.
5. Never claim you “stopped a CVE.” Report rule ids, paths, and
   whether the deny was radius or ruleset.

## Working set

The working set is a ranked list of paths plus a token budget.

```text
leash.working_set:
  task: <one sentence>
  budget_tokens: <int>
  used_tokens: <int>
  paths:
    - path: <posix path>
      reason: <changed | caller | callee | test | config | expanded>
      symbols: [<name>]
  denials: []
```

`leash session` always reads `git diff --name-only HEAD`. If `arbor`
is on `PATH`, it also runs `arbor diff --json` plus one-hop
callers/callees and records `engine: arbor`. If Arbor is missing or
fails, it records `engine: diff` and an audit tag. Do not pretend
you walked a graph.

```bash
leash session --task "<one sentence>"
leash status
```

## When this skill activates

- Session start on a repo that has `leash.yml` or this skill installed
- User mentions blast radius, tokens, or “don’t touch that”
- Before the first Edit/Write of a session
- After a deny, to replan inside the set

## Commands

- `leash session --task TEXT [--path PATH]...`
- `leash hook` — PreToolUse stdin JSON, stdout Claude Code JSON
- `leash expand --path PATH --reason TEXT`
- `leash expand --symbol SYM --because TEXT`
- `leash status` — `enforcing` or `NOT ENFORCING`
- `leash install` — write `.claude/settings.json` if missing
- `leash ci --base REF` — same pack and ruleset on a PR range;
  CI door, not a session command

## Output

Lead with the answer. Then the working set summary (paths, tokens
used / budget). Then denials, if any, as a table: rule, path, action.

Do not bury the patch behind a lecture.

Attribution

getArbor-devgetArbor-dev
View sourceMore from getArbor-dev →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1066601 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

651 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →