agentleFS
PolakiniOPolakiniO/AI-Engineering-Playbook/skills/scope-safety-guard/SKILL.md

scope-safety-guard

Skill2 starsChanged 8 months agoMITView on GitHub

Review or plan changes that affect permissions, security boundaries, sensitive operations, external effects, or safety constraints.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill as a mandatory safety review layer whenever a change can affect permissions, security boundaries, external effects, …

    line 12

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

scope-safety-guard

Purpose During Development

Use this skill as a mandatory safety review layer whenever a change can affect permissions, security boundaries, external effects, sensitive operations, or generated guidance that could drive unsafe behavior.

This is a reusable development-time reasoning framework. It is not runtime code and must not be coupled into the product being reviewed.

When To Apply

  • changes to auth, authorization, policy, permissions, or safety checks
  • changes that add or alter network access, file writes, execution, or other side effects
  • changes that generate recommended actions for users or downstream agents
  • PR review for any security-sensitive path

What To Inspect

  • repository safety and compliance guidance in AGENTS.md
  • the policy or guard modules touched by the change
  • integration points that can bypass safety checks
  • fallback paths and error paths
  • tests for denied, out-of-scope, or unsafe scenarios

Rules To Enforce

  • safety checks must be explicit and consistently applied
  • side effects must respect repository boundaries and permissions
  • fallback behavior must not weaken safety guarantees
  • generated action guidance must remain conservative and bounded
  • convenience must not override policy

Common Anti-Patterns To Catch

  • adding a new side-effect path without the standard guardrails
  • validating safety in the happy path but not in fallback or retry paths
  • loosening scope or permission checks during refactors
  • generated recommendations that exceed the repository’s safety model
  • performance-driven shortcuts that skip security or safety controls

Expected Output From The Agent

  • mandatory safety findings
  • guardrail gaps
  • risk analysis
  • required fixes before merge
  • targeted tests for denied and boundary scenarios

Output Structure

  • Summary
  • Key Findings
  • Risks
  • Affected Files
  • Affected Areas
  • Suggested Improvements
  • Suggested Tests
  • Skills applied

Example Usage

"Review this PR for permission, safety, and side-effect regressions."

"Use this skill to verify that a new automated action path stays within repo policy."

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.