squad: Skill for Claude Code

.copilot/skills/protected-files/SKILL.md

protected-files is a skill for Claude Code, Codex from bradygaster/squad. It costs 17 tokens per session (695 once invoked), scanned A, original, MIT.

A set of rules for bootstrap files that run before a command-line tool loads its main software libraries. These files must use no npm packages or SDK code.

In plain words
What is it for?
It identifies protected files, blocks unsafe imports and refactors, and guides developers toward zero-dependency implementations.
Why use it?
It prevents startup crashes caused by early utility files importing code that is not available until later initialization.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is bradygaster/squad's own configuration. It tells Claude Code and Codex how to work on squad itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything squad configures →

About the project

bradygaster/squad is a tool that creates a human-directed team of AI development agents inside a project repository through GitHub Copilot. Developers use it to delegate work among persistent specialists such as frontend, backend, testing, and lead agents while retaining responsibility for decisions and review. The catalogue entries are the skills, agents, and instructions that define and coordinate those team members.

bradygaster/squad · 3,300 stars · on GitHub · bradygaster.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to bradygaster/squad. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bradygaster/squad/dev/.copilot/skills/protected-files/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bradygaster/squad

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for protected-files

README.md
[![agentmods](https://agentmods.dev/badge/skills/bradygaster/squad/protected-files/github.svg)](https://agentmods.dev/skills/bradygaster/squad/protected-files)
Your own site
<a href="https://agentmods.dev/skills/bradygaster/squad/protected-files"><img src="https://agentmods.dev/badge/skills/bradygaster/squad/protected-files/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for protected-files

Your own site · 80×15
<a href="https://agentmods.dev/skills/bradygaster/squad/protected-files"><img src="https://agentmods.dev/badge/skills/bradygaster/squad/protected-files.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 695 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 42
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.00695
Opus 5.5 $0.00007 $0.00278
Sonnet 5.5 $0.00003 $0.00139
Haiku 4.5 $0.00002 $0.00069

Measured 1mo ago against content hash f0029a535d72, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

protected-files scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

| `packages/squad-cli/src/cli/core/gh-cli.ts` | GitHub CLI wrapper — uses only `node:child_process` and `node:util` |
.copilot/skills/protected-files/SKILL.md · 54 lines

How it starts

The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context

The CLI (squad-cli) has bootstrap utilities that run before the Squad SDK is loaded. If these files import SDK code (e.g., FSStorageProvider, anything from squad-sdk), the CLI breaks at startup — no helpful error, just a crash.

This skill applies when:

  • Touching any file in packages/squad-cli/src/cli/core/
  • Running sweeping refactors (e.g., "convert all fs calls to StorageProvider")
  • Adding new bootstrap utilities

Protected File List

File Purpose
packages/squad-cli/src/cli/core/detect-squad-dir.ts Finds .squad/ directory at startup — runs before SDK init
packages/squad-cli/src/cli/core/errors.ts Error classes (SquadError, fatal()) — used by all CLI entry points
packages/squad-cli/src/cli/core/gh-cli.ts GitHub CLI wrapper — uses only node:child_process and node:util
packages/squad-cli/src/cli/core/output.ts Color/emoji console output — pure ANSI codes, zero imports
packages/squad-cli/src/cli/core/history-split.ts Separates portable knowledge from project data — pure string logic

Rules

  • ❌ NEVER convert these files to use FSStorageProvider, StorageProvider, or any SDK abstraction
  • ❌ NEVER add import or require statements referencing packages outside node:* built-ins
  • ✅ ONLY use node:fs, node:path, node:child_process, node:util, and other Node.js built-in modules
  • ✅ DO check this list before sweeping refactors
  • ✅ LOOK for — zero dependencies markers in file headers as a signal

SDK/CLI Package Boundary

The packages/squad-cli/src/cli/core/ directory contains a mix of early-startup bootstrap utilities and later SDK-dependent modules. The protected list above is the authoritative set of zero-dependency bootstrap files. If you need to add SDK imports to another core/ file, verify it is not in the protected list and confirm the SDK is loaded at that point in the startup sequence.

Anti-Patterns

  • Converting all fs calls to StorageProvider without checking this list first
  • Adding import { X } from '@bradygaster/squad-sdk' to a bootstrap file
  • Assuming every file in core/ can safely import SDK code

Read the full file on GitHub · 54 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 54 lines · 17 tokens per session scan A f0029a535d72

Subscribe to this mod's changes

protected-files is a skill published in the GitHub repository bradygaster/squad (3,300 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 695 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories