fsl-design

fsl-design is a skill for Claude Code, Codex from ymm-oss/fsl. It costs 70 tokens per session (1,247 once invoked), scanned A, original, Apache-2.0.

A tool for writing and checking the internal design of software after its requirements have been agreed. FSL is a formal specification language, and the design can be checked against the requirements it is meant to implement.

In plain words
What is it for?
Creating design specifications, refinement mappings, state and action models, typestate checks, and plans for turning scenarios into tests.
Why use it?
It makes design decisions about state, actions, queues, and data flows explicit. Verification can reveal when the implementation design no longer matches the agreed requirements.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ymm-oss/fsl/fsl-design
Any agent
npx skills add ymm-oss/fsl --skill fsl-design
Clone the repo
git clone --depth 1 https://github.com/ymm-oss/fsl

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 fsl-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/ymm-oss/fsl/fsl-design.svg)](https://agentmods.dev/skills/ymm-oss/fsl/fsl-design)
Your own site
<a href="https://agentmods.dev/skills/ymm-oss/fsl/fsl-design"><img src="https://agentmods.dev/badge/skills/ymm-oss/fsl/fsl-design.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,247 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00070 $0.01247
Opus 5 $0.00035 $0.00624
Sonnet 5 $0.00014 $0.00249
Haiku 4.5 $0.00007 $0.00125

Measured 4d ago against content hash 9177dc03b6c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fsl-design 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.

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.

skills/fsl-design/SKILL.md · 91 lines

How it starts

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

FSL Design Layer

Use this skill after a requirements contract exists or the user explicitly asks for engineering design. The design layer is an ordinary kernel spec plus an optional refinement mapping back to the requirements layer. That mapping is the refinement seam, not a plain baton pass: the design must refine the (frozen) requirements contract, and fslc refine verifies the seam. When a seam breaks, repair the design or the mapping — not the upper contract, unless a human revises it.

Before writing syntax, read ../fsl/SKILL.md, then use its reference index to load only the needed language and verifier detail. When working inside this repository, read examples/e2e/3_design.fsl and examples/e2e/3_refines_2.fsl for the main pattern, examples/layers/ for a compact chain, and examples/bank/ or examples/refinement_liveness/ when the task is mostly refinement. Use fsl-design-review instead when the user asks for a design review, SOLID judgment, substitutability, or variant comparison.

Boundary

Produce design-layer artifacts only:

  • A kernel spec for internal design state and actions
  • A refinement mapping from design to requirements when a stable requirement spec exists
  • Verification/refinement commands and result interpretation
  • Optional testgen, replay, or typestate handoff plan

Do not rewrite business policies or PM requirements to make the design pass. If the upper contract is too strict or ambiguous, report the counterexample and ask for a contract decision.

Workflow

  1. Confirm the upper contract:
    • the requirements/business file that must remain stable
    • externally observable state and actions
    • which internal actions correspond to upper actions and which are true stutters
    • open/closed boundaries and human-owned design judgments
  2. Write the design spec as kernel FSL. It may include internal states, queues, outboxes, two-phase operations, retries, and decomposition that are absent from requirements, as long as they map back to the upper contract.
  3. Link every design declaration back to the requirement it serves with the canonical typed annotation, on the line before the declaration: @requirement("REQ-CHECKOUT-001", "one-sentence intent") before invariant PaidLedger { ... } / action submit(...) { ... }. The requirements spec owns the ID (requirement REQ-CHECKOUT-001); the design spec only links to it. Use a MODEL-/ASSUME-prefixed id for a design choice the requirements do not state. Never use the "REQ-1: text" string slotdocs/DESIGN-id-policy.md classifies it as non-canonical migration input and fslc lint reports it as legacy_string_metadata.
  4. Verify the design itself with fslc check, fslc verify, and usually fslc verify --engine induction. Run fslc lint <file> as the tagging gate: it exits 1 on any non-canonical ID form, which --strict-tags accepts silently.
  5. Write the mapping file:
    • map abs_var = expr or map abs_var[x: T] = expr
    • action impl_action(...) -> abs_action(...) for visible effects
    • action impl_action(...) -> stutter only when the action is confirmed not to change abstract observable state
    • preserve progress { respond AbsLeadsTo by impl_action, ... } when an upper leadsTo must be checked through the mapping at refine time
  6. Run fslc refine design.fsl requirements.fsl mapping.fsl. Repair by deciding whether the design is wrong, the mapping is wrong, or the upper contract needs human revision.
  7. If implementation anchoring is required, run fslc testgen and wire the Adapter, or use fslc replay against execution logs.

Read the full file on GitHub · 91 lines

Files

What ships with it

1 file 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 First seen · 91 lines · 70 tokens per session scan A 9177dc03b6c0

Subscribe to this mod's changes

fsl-design is a skill published in the GitHub repository ymm-oss/fsl (23 stars, last pushed today), licensed Apache-2.0. It adds 70 tokens to every session and 1,247 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

x402

Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — "just use it" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing…

browser-use/browser-use · 175 tokens

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work.

browser-use/browser-use · 26 tokens

final-release-review

Perform pre-release planning or a final release-candidate review for openai-agents-python by comparing the target with the previous remote tag, determining the minimum compatible release type, auditing regressions and contract changes, reviewing open documentation PR coverage, drafting minor-release Key Changes, and…

openai/openai-agents-python · 64 tokens

implementation-strategy

Choose compatibility-aware scope for runtime and API changes in openai-agents-python. Use before initial implementation and each review-feedback batch to decide whether to patch, reset the design, preserve compatibility, or reject unsupported cases.

openai/openai-agents-python · 47 tokens

mem0-dream

Consolidates stored memories by merging duplicates, resolving contradictions, and pruning stale entries. Use when memory count is high, search results feel noisy or repetitive, or periodic cleanup is needed to maintain memory quality.

mem0ai/mem0 · 46 tokens

mem0-tour

Browses all stored memories grouped by category with full content display. Use when reviewing all project memories, exploring stored knowledge, onboarding to a project, or getting an overview of captured decisions, conventions, and learnings.

mem0ai/mem0 · 47 tokens