fx-cli-shape

fx-cli-shape is a skill for Claude Code, Codex from vercel-labs/fx. It costs 175 tokens per session (3,528 once invoked), scanned A, original, Apache-2.0.

A set of rules for designing user controls in the fx command-line tool, including commands, flags, settings, environment variables, slash commands, output and exit codes.

In plain words
What is it for?
Use it when adding or renaming an fx command, argument, flag, setting or other user-facing control, and when checking a change against the project's agreed conventions.
Why use it?
It prevents the same action from being exposed in inconsistent ways or with confusing names. It also distinguishes current behavior from planned behavior so users are not told to run commands that do not exist.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it when adding or renaming an fx command, argument, flag, setting or other user-facing control, and when checking a change against the project's agreed conventions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vercel-labs/fx/fx-cli-shape
About the project

fx is a command-line coding agent written in Zig, designed to run like a Unix tool and to be embedded in larger systems. Developers use it to work with language models through local or cloud inference providers. The catalogue instruction extends its coding-agent workflow.

vercel-labs/fx · 3,762 stars · on GitHub · fx.sh

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 vercel-labs/fx --skill fx-cli-shape
Clone the repo
git clone --depth 1 https://github.com/vercel-labs/fx

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 fx-cli-shape

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel-labs/fx/fx-cli-shape/github.svg)](https://agentmods.dev/skills/vercel-labs/fx/fx-cli-shape)
Your own site
<a href="https://agentmods.dev/skills/vercel-labs/fx/fx-cli-shape"><img src="https://agentmods.dev/badge/skills/vercel-labs/fx/fx-cli-shape/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 fx-cli-shape

Your own site · 80×15
<a href="https://agentmods.dev/skills/vercel-labs/fx/fx-cli-shape"><img src="https://agentmods.dev/badge/skills/vercel-labs/fx/fx-cli-shape.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 175 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,528 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00175 $0.03528
Opus 5.5 $0.00070 $0.01411
Sonnet 5.5 $0.00035 $0.00706
Haiku 4.5 $0.00017 $0.00353

Measured 4d ago against content hash 298ab403cd0a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fx-cli-shape scanned grade A with 0 findings 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/surface_diff.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.fx/skills/fx-cli-shape/SKILL.md · 104 lines

How it starts

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

fx CLI shape

fx follows git and Unix conventions for how people and scripts control it. Each concept gets one mechanism and one name, so anyone who knows git can guess the command, flag, or setting. Use this skill to pick the mechanism for a new control, name it on every surface, and check a change before it lands. The maintainers agreed on these rules; follow them unless a maintainer says otherwise in the conversation.

Current versus target

One piece the rules rely on isn't built yet: the Experimental section of /settings. Design new work toward them, but never tell a user to run something that doesn't exist yet. Check ./zig-out/bin/fx help and ./zig-out/bin/fx <command> --help when unsure. When a target piece is missing, use the nearest current pattern and say what's missing.

Decision order

Ask in order and stop at the first yes:

  1. Is it an action? Use a subcommand, named as a verb or a noun plus a verb. Inside a session, a slash command with the same name.
  2. Is it what the action works on? Use an argument.
  3. Is it a secret? Use the credential store, with an env var only for CI. Never a flag, which shows up in ps and shell history, and never .fx.json.
  4. Does it matter for this run only? Use a flag.
  5. Should it persist? Use a setting, plus a flag with the same name for one-off overrides.
  6. Is it safe for an untrusted repo to set, and useful for a team to share? It may also be project-safe in .fx.json, with a maintainer's approval.
  7. Is it set by CI, a wrapper, a terminal, debugging, or tests? Use an env var in the right namespace.
  8. Is it unfinished? Use an experimental.<name> setting.

Core rules

These are the rules agents most often get wrong. references/rules.md has the full set, with what's built today.

Extend before adding. Before adding a command, flag, setting, or env var, check whether extending an existing command or control covers the need, for example a scope flag on fx usage instead of a new fx stats. Every new control is a promise that costs a deprecation to take back. When a new one is still the right call, say why the existing one can't be extended.

Read the full file on GitHub · 104 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago Changed 298ab403cd0a
  2. 6d ago First seen · 104 lines · 175 tokens per session scan A dafff6b1a52f

Subscribe to this mod's changes

fx-cli-shape is a skill published in the GitHub repository vercel-labs/fx (3,762 stars, last pushed yesterday), licensed Apache-2.0. It adds 175 tokens to every session and 3,528 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.

Related

fx-cli-shape compared with skills from other repositories

fx-cli-shape next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fx-cli-shapevercel-labs/fxSkill3.8kyesterdayApache-2.0A175Claude Code, Codex
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code