Skip to content
Back to skills

Task Scope

ASecurity

Keeps an agent inside the task. A person commits .chock/task-scope, one glob per line, read from HEAD only; no file means no task and everything is allowed. A shell guard (best effort) and an Edit/Write gate refuse a write, delete, rename or symlink outside the globs; the policy refuses every turn's end, whatever the shell did, but the engine's re-entry cap (REENTRY_CAP = 3, _chock_runtime.py:2007, 2215-2224) turns that into a warning after 3 refused stops in a row or when its stop record can...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsshellgit

Works with

  • cli

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add open-coder-ai/chock-catalog --skill task-scope --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Task Scope?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Task Scope
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/open-coder-ai-task-scope/badge)](https://www.skillsdirectory.com/skills/open-coder-ai-task-scope)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: task-scope
description: "Keeps an agent inside the task. A person commits .chock/task-scope, one glob per line, read from HEAD only; no file means no task and everything is allowed. A shell guard (best effort) and an Edit/Write gate refuse a write, delete, rename or symlink outside the globs; the policy refuses every turn's end, whatever the shell did, but the engine's re-entry cap (REENTRY_CAP = 3, _chock_runtime.py:2007, 2215-2224) turns that into a warning after 3 refused stops in a row or when its stop record cannot be written; at commit it asks. Always writable: .followups.md. Globs: * and ? stay in one segment, ** spans segments, a trailing / is the folder and all under it, case-sensitive; an absolute path outside the repo is not judged. Misses: writes a script makes, a hard link, a file changed and reverted within one turn, a changed binary file at the turn's end, CI (event scripts do not run there)."
metadata:
  chock.artifact: rule
  chock.enforcement: advise
  chock.coverage_without_chock: advisory
---

# Keep an Agent Inside Its Task

Keeps an agent inside the task. A person commits .chock/task-scope, one glob per line, read from HEAD only; no file means no task and everything is allowed. A shell guard (best effort) and an Edit/Write gate refuse a write, delete, rename or symlink outside the globs; the policy refuses every turn's end, whatever the shell did, but the engine's re-entry cap (REENTRY_CAP = 3, _chock_runtime.py:2007, 2215-2224) turns that into a warning after 3 refused stops in a row or when its stop record cannot be written; at commit it asks. Always writable: .followups.md. Globs: * and ? stay in one segment, ** spans segments, a trailing / is the folder and all under it, case-sensitive; an absolute path outside the repo is not judged. Misses: writes a script makes, a hard link, a file changed and reverted within one turn, a changed binary file at the turn's end, CI (event scripts do not run there).

```
scope: .chock/task-scope (globs; HEAD only; person commits it); none: allow all; no glob: .followups.md only; always: .followups.md; * ? in segment, ** spans, trailing / folder, case-sensitive
never(agent): change(outside scope|.chock/task-scope); at(tool_use): refuse; at(turn_end): refuse (engine: warns after 3 in a row); at(commit): ask(person: CHOCK_ALLOW=task-scope); on(refused): revert|record(.followups.md)|ask(person: widen scope)
```

This skill is advisory: the client reading it has no mechanism to enforce it. The same policy compiled by `chock` can refuse an agent's shell command before it runs; blocks at commit, on an agent's file writes and at turn end. See https://github.com/open-coder-ai/chock

Attribution

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

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.