Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 12, 2026·2 min de lecture

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.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Asset
Commande d'installation directe
npx -y tokrepo@latest install 23be0d5b-5898-4967-8d10-cdd8cd210541 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

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 et remerciements

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

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires