nw-code-design-fp

nw-code-design-fp is a skill for Claude Code, Codex from nWave-ai/nWave. It costs 51 tokens per session (3,158 once invoked), scanned A, original, MIT.

A reference guide for designing functional programs before writing code. It covers domain models, types, and separate paths for successful results and errors, with language-specific guidance for several functional languages.

In plain words
What is it for?
Use it to plan functional domain models, define type-based designs, and choose the relevant language guidance before implementation.
Why use it?
It gives architects and implementers a shared description of what the design should contain. This reduces inconsistent models and mixing error handling with normal work.

Skill for Claude CodeCodex

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

Good fit Use it to plan functional domain models, define type-based designs, and choose the relevant language guidance before implementation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nwave-ai/nwave/nw-code-design-fp
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 nWave-ai/nWave --skill nw-code-design-fp
Clone the repo
git clone --depth 1 https://github.com/nWave-ai/nWave

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 nw-code-design-fp

README.md
[![agentmods](https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-code-design-fp/github.svg)](https://agentmods.dev/skills/nwave-ai/nwave/nw-code-design-fp)
Your own site
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-code-design-fp"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-code-design-fp/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 nw-code-design-fp

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-code-design-fp"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-code-design-fp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,158 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.00051 $0.03158
Opus 5.5 $0.00020 $0.01263
Sonnet 5.5 $0.00010 $0.00632
Haiku 4.5 $0.00005 $0.00316

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

Security

Grade A, and why

nw-code-design-fp 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 6d 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.

nWave/skills/nw-code-design-fp/SKILL.md · 267 lines

How it starts

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

FP Code Design

Design-time catalog for functional work. The architect loads this to design the domain algebra, the type-level model, and the error/effect tracks BEFORE DISTILL authors ATs; the functional crafter loads the same SSOT for execution. This is the WHAT-to-design subset — execution mechanics (naive/discover/freeze testing, ORM/persistence mapping, language idioms) stay in nw-fp-algebra-driven-design, nw-fp-domain-modeling, and the language skills below.

FP language skills — resolve by target language, never by default

Language skill Languages PBT sibling (when one exists)
nw-fp-clojure Clojure —
nw-fp-erlang-elixir Erlang, Elixir nw-pbt-erlang-elixir
nw-fp-fsharp F# nw-pbt-dotnet
nw-fp-haskell Haskell nw-pbt-haskell
nw-fp-kotlin Kotlin nw-pbt-jvm
nw-fp-rust Rust nw-pbt-rust
nw-fp-scala Scala nw-pbt-jvm
nw-fp-typescript TypeScript, JavaScript nw-pbt-typescript

Same shape as the Polyglot Adapter Matrix nw-test-design-mandates-layered-mechanics already uses for PBT bindings — one row per target language, resolved from the contract's own target evidence, never guessed. A language NOT in this table has no dedicated FP-idiom skill: load this catalog and nw-fp-domain-modeling alone (both are language-agnostic) rather than silently substituting a listed language's skill — the wrong language's idioms are worse than none.

Functional Core

Inside domain and application code:

  • Pure core, effects at the edge — domain functions take values and return values; I/O, time, randomness and persistence stay in a thin shell that calls the core. No mutation and no shared state in the core.
  • Total functions — every domain outcome is a case of the return type (see Railway, rule 5); no exception or null for a domain outcome.
  • Composition — small single-purpose functions composed through pipelines and the railway; dependencies as leading parameters (see Dependencies).
  • Laws — when the design declares an algebra, preserve each law; use nw-fp-algebra-driven-design to implement it, never to invent a new one.

Read the full file on GitHub · 267 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. 6d ago First seen · 267 lines · 51 tokens per session scan A 8c5337f0172d

Subscribe to this mod's changes

nw-code-design-fp is a skill published in the GitHub repository nWave-ai/nWave (633 stars, last pushed 2d ago), licensed MIT. It adds 51 tokens to every session and 3,158 once invoked, about $0.0002 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-03.

Related

nw-code-design-fp compared with skills from other repositories

nw-code-design-fp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nw-code-design-fpnWave-ai/nWaveSkill6332d agoMITA51Claude Code, Codex
mcore-linting-and-formattingNVIDIA/skillsSkill3.9ktodayApache-2.0A44Claude Code
java-testing-junit-mockitomakifbaysal/tasktrooperSkill12019d agoApache-2.0A46Claude Code, Codex
shared-tooling-eslint-prettieragents-inc/skillsSkill2613d agoMITA46Claude Code, Codex
Test Scaffold (Laravel/PHPUnit)s977043/river-reviewSkill7yesterdayMITA23Claude Code
Unit Test Scaffold (Python/pytest)s977043/river-reviewSkill7yesterdayMITA19Claude Code
Unit Test Scaffold (TypeScript)s977043/river-reviewSkill7yesterdayMITA23Claude Code