Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By theocarranzav0.3.3MITIn 1 marketplace
Functional programming enforcement: rules, violation scanning, and skills to validate, repair, learn, assimilate, and wire fp-enforcer into a project.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Functional programming enforcement for AI coding harnesses: portable Agent Skills, curated pattern packs, a stdlib-only Python CLI, and per-project hooks for Cursor, Claude Code, Codex, and Antigravity.
Vendor-neutral Open Plugins root + Agent Skills. Host adapters build installable marketplaces; the Python package on PyPI remains the runtime used by fp-enforcer wire.
One curl one-liner per host. Plain install upgrades in place (replaces any prior managed install). Uninstall is a separate script — there is no --uninstall on install.
By default the installer bootstraps the latest release (newest v* tag). Pin a version with
--ref v0.3.3, or track unreleased work with --ref main.
Install:
curl -fsSL https://raw.githubusercontent.com/theocarranza/fp-enforcer/main/adapters/claude/install.sh \
| bash -s -- --repo theocarranza/fp-enforcer
Then:
/plugin install fp-enforcer@fp-enforcer-local
Uninstall:
curl -fsSL https://raw.githubusercontent.com/theocarranza/fp-enforcer/main/adapters/claude/uninstall.sh \
| bash -s -- --repo theocarranza/fp-enforcer
Install (curl → ~/.cursor/plugins/local):
curl -fsSL https://raw.githubusercontent.com/theocarranza/fp-enforcer/main/adapters/cursor/install.sh \
| bash -s -- --repo theocarranza/fp-enforcer
Uninstall:
curl -fsSL https://raw.githubusercontent.com/theocarranza/fp-enforcer/main/adapters/cursor/uninstall.sh \
| bash -s -- --repo theocarranza/fp-enforcer
Install:
curl -fsSL https://raw.githubusercontent.com/theocarranza/fp-enforcer/main/adapters/codex/install.sh \
| bash -s -- --repo theocarranza/fp-enforcer
Codex marketplace manifests use .agents/plugins/marketplace.json (and mirrored accepted paths).
Uninstall:
curl -fsSL https://raw.githubusercontent.com/theocarranza/fp-enforcer/main/adapters/codex/uninstall.sh \
| bash -s -- --repo theocarranza/fp-enforcer
From a clone: ./adapters/<host>/install.sh or ./adapters/<host>/uninstall.sh. Dry-run: add --dry-run.
Per-project wiring still uses the CLI:
pipx install fp-enforcer
# or: uv tool install fp-enforcer
fp-enforcer wire --client all --dest /path/to/project
# or one host: --client {cursor|claude|codex|antigravity}
fp-enforcer assimilate --dest /path/to/project # activate curated library packs
Rules (fp_enforcer/rules/*.md, listed in manifest.json) are loaded into each agent's context:
| Host | Where the rules land |
|---|---|
| Cursor | .cursor/rules/*.mdc — core always, language rules by glob |
| Claude Code | .claude/rules/*.md — core always, language rules scoped with paths: |
| Codex | managed <!-- fp-enforcer:begin/end --> block in AGENTS.md (your content is preserved; unwire strips only the block) |
| Antigravity | .agent/rules/*.md |
fp-core is the language-agnostic mandate: purity and effects, errors as values, branching,
immutable data, and Algebra — every aggregation is a lawful monoid (associativity, identity,
derived record monoids, explicit first/last/applicative semantics for absence). fp-typescript
gives the TypeScript shape in plain TypeScript, no library required: seams, monoids, effects as
injected capabilities (one program, a production Task interpreter and a pure State test
interpreter), recursion instead of loops, and parse-don't-validate.
References ship with the rules and are vendored to <project>/.fp-enforcer/rules/:
examples/typescript/ — runnable, strictly typed, library-free (monoids.ts,
effects-as-capabilities.ts, lookup-tables.ts; run with node <file>, Node ≥ 22.6).libraries/<library>/ — the same programs written against a specific library (currently fp-ts).Hooks scan every edit and gate completion (Stop) with the pattern packs in
rules/patterns/. TypeScript checks include no-let, no-else, no-or-fallback,
no-for-loop, no-non-null-assertion, no-ambient-effect (Math.random, Date.now,
console.*, process.* outside edge interpreters) and no-seedless-reduce. assimilate
adds curated library packs (dart3, rxjs, fp-ts). Justified edge cases are waived per
line with // fp-allow: <pattern-id> — <reason>.
Skills:
| Skill | Purpose |
|---|---|
fp-validate | Scan paths/diffs for FP violations |
fp-repair | Fix violations from a report |
fp-learn | Detect FP libraries; write knowledge profiles |
fp-assimilate | Activate curated pattern packs |
fp-wire | Install runtime + wire per-project hooks/rules |
./scripts/validate.sh
./scripts/build_all.sh
Version lockstep is enforced across VERSION, .plugin/plugin.json, host manifests, adapter templates, and pyproject.toml. Do not hand-edit dist/.
npx claudepluginhub theocarranza/fp-enforcer --plugin fp-enforcerBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground