fsl-from-code

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

A skill for deriving an FSL design specification from existing source code. It records states, actions, conditions, effects, and possible invariants based on evidence in the code.

In plain words
What is it for?
Use it to scope a stateful subsystem, document its behavior with source-line evidence, ask about uncertain invariants, verify the specification, and test whether it matches the code.
Why use it?
It turns an implementation into a checked behavioral description without inventing rules that the source does not support.

Skill for Claude CodeCodex

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

Good fit Use it to scope a stateful subsystem, document its behavior with source-line evidence, ask about uncertain invariants, verify the specification, and test whether it matches the code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ymm-oss/fsl/fsl-from-code
View source ↗ ymm-oss/fsl
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 ymm-oss/fsl --skill fsl-from-code
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-from-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/ymm-oss/fsl/fsl-from-code/github.svg)](https://agentmods.dev/skills/ymm-oss/fsl/fsl-from-code)
Your own site
<a href="https://agentmods.dev/skills/ymm-oss/fsl/fsl-from-code"><img src="https://agentmods.dev/badge/skills/ymm-oss/fsl/fsl-from-code/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 fsl-from-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/ymm-oss/fsl/fsl-from-code"><img src="https://agentmods.dev/badge/skills/ymm-oss/fsl/fsl-from-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,680 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00090 $0.01680
Opus 5.5 $0.00036 $0.00672
Sonnet 5.5 $0.00018 $0.00336
Haiku 4.5 $0.00009 $0.00168

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

Security

Grade A, and why

fsl-from-code 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 24d 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-from-code/SKILL.md · 125 lines

How it starts

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

FSL From Code — implementation → witnessed design model

A headerless document is FSL 4; to migrate it, see the migration guide in docs/manual/LANGUAGE.md ("FSL 4 to FSL 5 migration").

The seam points downward: code → source-witnessed kernel spec → real-code conformance tests. There is no inferred upper requirements contract. If one is later agreed, building the upward refinement seam belongs to design, not automatic reverse-engineering.

Before syntax read core, its relevant references and verify. Produce:

  • A kernel spec headed fsl 5, with // SRC: file:line witnesses for state/actions/guards/effects and any source-grounded invariants.
  • Human-confirmed cross-action safety/history/progress intent, carried in // ASSUME-n: comments and typed requirement/model/assumption tags.
  • A testgen Adapter wired to real code, plus executed random-walk/replay evidence.

Do not invent states/guards/invariants to reach green, create a business or requirements layer, or claim conformance from model verification alone. A kernel spec cannot acquire requirements-only scenario/forbidden blocks. Express confirmed negative intent as supported invariant/trans/history/progress properties and real implementation rejection tests; route separately to requirements authoring only when the user asks for that contract.

Three zones

Zone Evidence and boundary
A: harvest Read member state/types, externally callable actions, leading guards and assignments from code; attach exact source witnesses.
B: discover intent Cross-action conservation, ordering, forbidden interaction sequences and responses are questions, not fabricated facts. A rule absent from any single line needs human confirmation.
C: truth-check Model mutation asks whether properties have teeth; executed conformance asks whether modeled behavior matches real code. Neither proves source intent by itself.

A code mirror can pass conformance while checking no independent rule. Do not mistake that hollow quadrant for completion, but do not invent rules to escape it.

Read the full file on GitHub · 125 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. 24d ago Changed · +2 lines 48fa8ce8bd60
  2. 1mo ago Changed · -42 lines · -22 tokens per session e1d85ff77ce4
  3. 1mo ago Changed · +2 lines 3f465480ea34
  4. 3mo ago First seen · 163 lines · 112 tokens per session scan A 86372d597fd2

Subscribe to this mod's changes

fsl-from-code is a skill published in the GitHub repository ymm-oss/fsl (41 stars, last pushed 8d ago), licensed Apache-2.0. It adds 90 tokens to every session and 1,680 once invoked, about $0.0004 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-08-30.

Related

fsl-from-code compared with skills from other repositories

fsl-from-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fsl-from-codeymm-oss/fslSkill418d agoApache-2.0A90Claude Code, Codex
fastapi-patternsaffaan-m/ECCSkill315ktodayMITA35Claude Code, Kiro
open-sourcebrowser-use/browser-useSkill123ktodayMITA101Claude Code
mem0-vercel-ai-sdkmem0ai/mem0Skill70k4d agoApache-2.0A146Claude Code, Codex
mem0-tourmem0ai/mem0Skill70k4d agoApache-2.0A47Claude Code, Codex
statusmem0ai/mem0Skill70k4d agoApache-2.0A54Claude Code
pausemem0ai/mem0Skill70k4d agoApache-2.0A30Claude Code