gated-tool-preflight

gated-tool-preflight is a skill for Claude Code from infinitule/apple-design-toolkit. It costs 67 tokens per session (831 once invoked), scanned C, original, no licence file.

A set of procedures for passing policy checks before using tools such as Bash, Write, or Edit. These checks may require an explanation, confirmation for destructive commands, or a declaration before the first call.

In plain words
What is it for?
Use it when a policy hook blocks a tool call or when tool usage requires a preflight explanation, confirmation, or first-call declaration.
Why use it?
It helps avoid failed tool attempts caused by missing policy-required information and distinguishes checks that can be satisfied from those that cannot.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the apple-design-toolkit plugin — 4 skills shipped together

Good fit Use it when a policy hook blocks a tool call or when tool usage requires a preflight explanation, confirmation, or first-call declaration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/infinitule/apple-design-toolkit/gated-tool-preflight
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add infinitule/apple-design-toolkit --skill gated-tool-preflight
Clone the repo
git clone --depth 1 https://github.com/infinitule/apple-design-toolkit

Made for: Claude Code.

Or install apple-design-toolkit, the plugin that ships this one along with the rest of its 4 skills.

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 gated-tool-preflight

README.md
[![agentmods](https://agentmods.dev/badge/skills/infinitule/apple-design-toolkit/gated-tool-preflight.svg)](https://agentmods.dev/skills/infinitule/apple-design-toolkit/gated-tool-preflight)
Your own site
<a href="https://agentmods.dev/skills/infinitule/apple-design-toolkit/gated-tool-preflight"><img src="https://agentmods.dev/badge/skills/infinitule/apple-design-toolkit/gated-tool-preflight.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 831 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00067 $0.00831
Opus 5 $0.00034 $0.00415
Sonnet 5 $0.00013 $0.00166
Haiku 4.5 $0.00007 $0.00083

Measured 7d ago against content hash c576240dd91b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade C, and why

gated-tool-preflight scanned grade C 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 7d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Avoid destructive syntax** when an equivalent exists: `OUT=$(mktemp -d)` trips nothing, `rm -rf /tmp/x && mkdir` trips the destructive gate every time.
apple-design-toolkit/skills/gated-tool-preflight/SKILL.md · 52 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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. 7d ago First seen · 52 lines · 67 tokens per session scan C c576240dd91b

Subscribe to this mod's changes

gated-tool-preflight is a skill published in the GitHub repository infinitule/apple-design-toolkit (3 stars, last pushed 1mo ago), with no licence file. It adds 67 tokens to every session and 831 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

design-dna

Extract, define, and apply design DNA across three dimensions: design system (tokens), design style (qualitative feel), and visual effects (Canvas, WebGL, 3D, particles, shaders, scroll effects, etc.). Use this skill when: (1) a user wants to see the full 3-dimension design structure/schema, (2) a user provides…

zanwei/design-dna · 192 tokens

image-crop-rotate

Image processing skill for cropping images to 50% from center and rotating them 90 degrees clockwise. This skill should be used when users request image cropping to center, image rotation, or both operations combined on image files.

instavm/coderunner · 50 tokens

pdf-text-replace

Replace text in fillable PDF forms by updating form field values. This skill should be used when users need to update names, addresses, dates, or other text in PDF form fields.

instavm/coderunner · 42 tokens

system-pitch

Write a design system investment pitch with a business case and ROI framing. Trigger when someone says: pitch the design system, make the case for the system, sell this to leadership, justify the investment, business case for design systems, why should we invest in a design system, or anything about building an…

murphytrueman/design-system-ops · 72 tokens

ai-component-description

Generate AI-optimised text descriptions for components, formatted for Figma's MCP server and LLM consumption. This produces prose descriptions in a six-section format (purpose, props, anti-patterns, composition, accessibility, examples), NOT JSON schemas or structured data files. Trigger when someone says: write…

murphytrueman/design-system-ops · 132 tokens

stakeholder-brief

Write a one-page stakeholder brief translating design system health or status into business language. Trigger when someone says: stakeholder update, exec brief, leadership summary, status report for leadership, system status for non-designers, write a brief for the business, or anything about communicating design…

murphytrueman/design-system-ops · 73 tokens