SkillsMay 12, 2026·2 min read

agent-scripts — Shared Guardrail Scripts for Agents

Shared guardrail scripts and AGENTS rules you can sync across repos, including skill validation hooks and portable helpers for onboarding.

Agent ready

Ready-to-run agent install

This asset can be installed after the agent chooses its runtime, checks the plan, and runs the matching command.

Native · 98/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Skill
Install
Single
Trust
Trust: Established
Entrypoint
Asset
Direct install command
npx -y tokrepo@latest install 23be0d5b-5898-4967-8d10-cdd8cd210541 --target codex

Run after dry-run confirms the install plan.

Intro

Shared guardrail scripts and AGENTS rules you can sync across repos, including skill validation hooks and portable helpers for onboarding.

  • Best for: teams who want consistent guardrails across many repos: rules, validators, and helper scripts that stay byte-identical
  • Works with: git hooks, Bun/Node tooling (for some helpers), any repo that adopts pointer-style AGENTS
  • Setup time: 20–40 minutes

Practical Notes

  • Quant: track how many repos adopt the pointer-style AGENTS.MD line; the goal is 1 shared source of truth, not copy/paste drift.
  • Quant: run the validator on every commit and measure “skills failing lint” rate over time (it should trend down).

Why pointer-style AGENTS beats copy/paste

Copying guardrails into every repo guarantees divergence. Pointer-style rules give you:

  • One canonical shared rule set.
  • Fast updates across the fleet.
  • Clear “local overrides” when a repo truly needs them.

How to introduce safely

  1. Start with one pilot repo.
  2. Add the pointer line at the top of AGENTS.MD.
  3. Keep repo-specific notes below it.

Maintenance habit

When a guardrail changes, update it once here, then roll it out like any dependency update: changelog + verification run.

FAQ

Q: Is this only useful for one author’s repos? A: The pattern generalizes well: shared scripts + shared rules are valuable in any multi-repo team.

Q: Do I need Bun? A: Only for rebuilding certain compiled helpers; the guardrail text and hooks can still be used without it.

Q: What is the biggest failure mode? A: Breaking changes to shared rules without a rollout plan—treat updates like dependency upgrades.

🙏

Source & Thanks

Source: https://github.com/steipete/agent-scripts > License: MIT > GitHub stars: 2,546 · forks: 253

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets