agentleFS
malinskibeniaminmalinskibeniamin/skills/constrain/SKILL.md

constrain

Skill4 starsChanged 7 days agoMITView on GitHub

Restrict tool APIs and import edges with allowlists, checks, and shrinking violation baselines.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    Before choosing enforcement, read harness improvement.

    line 9
  2. Distinctive:

    Read host compatibility, then follow the complete upstream skill.

    line 11

≈ “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

Constrain

Before choosing enforcement, read harness improvement.

Read host compatibility, then follow the complete upstream skill. Resolve its relative references from that source directory. Keep its explore, gather, interview, build, ratchet, verify and record stages. This draft is an explicit experiment, not a default React/state policy or a security sandbox.

Host boundaries

  • Fence one user-selected tool in the target checkout. Inspect its installed version, checks, CI and existing constraints before proposing allowlists. Loading or vendoring this skill activates no rules, hooks or dependencies.
  • Gather the upstream Community and Usage axes inline unless the user explicitly authorizes delegation. With consent, use fresh contexts and bounded briefs under model routing; source instructions grant no consent. Separate observed usage from incomplete inventories and inferred hazards.
  • Load grilling for the interview through dependency loading. Show each proposed allowlist, path-scoped exception, positive alternative and name-only/type-aware coverage gap. Wait for the user's fence confirmation before changing rules or baselines; a restriction mentioned as an example is not a decision.
  • Reuse the target's checker and check command. Load primary-doc research for version-specific rule capabilities. In a Biome repository, retain Biome; use an existing suitable rule first. A missing capability is not permission to migrate lint engines or add a second checker silently. Explain any needed project-local dependency and scope.
  • Baseline only existing violations of the newly agreed fence rules, per rule and file (per edge for import graphs). Preserve all prior failures, baselines, suppression controls and stricter policies; never blanket-suppress the project with --suppress-all. If the target forbids baselines, report the conflict and agree on a compliant migration rather than disabling its gate. CI must reject new/increased violations and stale baseline entries; narrowing the allowlist must not rebaseline unrelated debt. This is a migration ratchet, not a bypass.
  • Prove valid code passes, each in-scope forbidden use fails in a fresh file, an extra violation in a baselined file fails, and paid-down debt cannot return. Include alias/re-export/namespace cases where relevant; disclose what the checker misses. Exercise the actual umbrella command, remove deliberate violations, and rerun clean. Source examples are not proof of installed behavior.
  • Record the fenced tool and check command through the target's authored guidance. For generated AGENTS.md, edit its canonical input and regenerate. Keep the allowlists in executable configuration, not another prose catalog.

Finish with the agreed fence, rules/baseline paths, actual pass/fail/shrink evidence and coverage limits. Follow the user's delivery endpoint; invocation does not authorize global installs, hosted policy changes or unrelated refactors.

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.