agentleFS
tanbopptanbopp/ai-development-framework/.agents/skills/boundary-guard/SKILL.md

boundary-guard

Skill1 starsChanged 20 days agoMITView on GitHub

Restricts Phase 6 file modifications strictly to paths listed in the active task's files_allowed field in docs/tasks/TASKS.md, halting on missing scopes or unauthorized edits.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the active task in docs/tasks/TASKS.md and locate its files_allowed field.

    line 14
  2. Very specific:

    Before creating, modifying, or deleting any file, normalize its workspace-relative path and check whether it appears explicitly in the …

    line 19
  3. Very specific:

    If the target file is NOT listed in files_allowed, STOP immediately.

    line 21
  4. Very specific:

    Ask the user for permission to expand the task scope, explaining why the extra file needs changes, and update files_allowed in …

    line 22
  5. Very specific:

    Every file touched during Phase 6 is explicitly authorized in the active task's files_allowed field (or approved for scope expansion by the …

    line 25
  6. Very specific:

    Never modify files outside the active task's files_allowed scope.

    line 33
  7. Very specific:

    Never silently expand files_allowed without user confirmation.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Boundary Guard

Trigger

Mandatory before any file creation, edit, or deletion during Phase 6 (Implementation).

Process

  1. Read the active task in docs/tasks/TASKS.md and locate its files_allowed field.
  2. If files_allowed is missing or empty:
    • HALT immediately without editing any source file.
    • Request updating docs/tasks/TASKS.md so the task explicitly defines its files_allowed paths before implementation continues.
  3. Check Target File Path:
    • Before creating, modifying, or deleting any file, normalize its workspace-relative path and check whether it appears explicitly in the active task's files_allowed list.
  4. Halt on Out-of-Scope File:
    • If the target file is NOT listed in files_allowed, STOP immediately.
    • Ask the user for permission to expand the task scope, explaining why the extra file needs changes, and update files_allowed in docs/tasks/TASKS.md only after approval.

Output Contract

Every file touched during Phase 6 is explicitly authorized in the active task's files_allowed field (or approved for scope expansion by the user).

Checklist

  • Active task in docs/tasks/TASKS.md defines files_allowed
  • Every target file path verified against files_allowed prior to editing
  • Out-of-scope edits halted for explicit user permission

Prohibitions

  • Never modify files outside the active task's files_allowed scope.
  • Never silently expand files_allowed without user confirmation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.