/fp-enforcer:fp-assimilatefrom fp-enforcer
Use when asked to assimilate FP libraries or language features of a project into enforcement — activates curated pattern packs so validation and hooks understand library-specific anti-patterns.
Ships in fp-enforcer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn detected FP libraries and language features into active enforcement.
Assimilation has two channels: knowledge profiles (advisory, via fp-learn)
and pattern packs (enforced, via this skill).
fp-enforcer learn --dest /path/to/project
fp-enforcer assimilate --dest /path/to/project
learn writes agent-facing profiles to .fp-enforcer/knowledge/.
assimilate detects FP libraries (pubspec.yaml, package.json) and
language features (SDK constraints), then activates curated packs from the
canonical rules/patterns/libraries/ into:
<project>/.fp-enforcer/rules/patterns/learned/
Curated packs today: dart3 (Dart 3 language features), rxjs, and fp-ts
(deprecated monoid APIs → current names).
Activation is fail-closed: every curated pack carries a self_test payload
and is only installed when its violation strings produce violations and its
clean strings produce none. Gate failures are printed to stderr and exit 1.
fp-enforcer validate --patterns-dir <project>/.fp-enforcer/rules/patterns <project>/lib
Confirm activated packs fire on real code without flooding false positives.
If a pack is too noisy, remove it from learned/ or suppress individual
sites with // fp-allow: <pattern-id>.
When detection reports a library with no matching pack, author one at
rules/patterns/libraries/<library>.json in the fp-enforcer source repo:
language, suffixes,
exclude_suffixes consistent with the language.fp-learn), not the scanner.self_test with at least two violations strings (each must be
flagged) and two clean strings (each must not be flagged, suppression
directives allowed).python3 -m unittest tests.test_assimilate.CuratedPackTests -v
assimilate in the target project and verify with validate.Watch suppression density after activation: repeated fp-allow directives
for the same pattern id across a project mean the pattern is wrong, not the
code — fix or retract the pack.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub theocarranza/fp-enforcer --plugin fp-enforcer5 skills in this plugin
/fp-learnUse when asked to assimilate or learn the FP libraries present in a project so enforcement and repair understand their operators and types./fp-repairUse when a validation report or hook feedback lists functional-programming violations that need to be fixed in source code./fp-validateUse when asked to lint, validate, or check code blocks, diffs, pull requests, or an entire codebase for functional-programming compliance./fp-wireUse when asked to install, wire, update, or remove fp-enforcer in a coding project for Cursor, Claude, Codex, or Antigravity.