/fp-enforcer:fp-wirefrom fp-enforcer
Use when asked to install, wire, update, or remove fp-enforcer in a coding project for Cursor, Claude, Codex, or Antigravity.
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.
Wire a project to fp-enforcer: install the runtime from PyPI, then render rules, skills, and hooks into the target project. All per-project artifacts live under .fp-enforcer/.
pipx install fp-enforcer
# or: uv tool install fp-enforcer
If neither is available: python3 -m pip install --user fp-enforcer.
fp-enforcer wire --client {cursor|claude|codex|antigravity|all} --dest /path/to/project
Use --client all to wire every supported agent at once.
fp-enforcer unwire --dest /path/to/project
Removes client-specific wiring and the .fp-enforcer/ directory according to the install manifest.
| Client | Artifacts |
|---|---|
| cursor | .cursor/rules/*.mdc (from canonical rules) + .cursor/hooks.json entries |
| claude | .claude/rules/*.md (always-on core; language rules scoped via paths:) + .claude/skills/ copies + .claude/settings.json hook entries |
| codex | managed <!-- fp-enforcer:begin/end --> rules block in AGENTS.md (other content preserved) + .codex/hooks.json entries |
| antigravity | .agent/rules/*.md copies |
Rules source of truth after wiring: <project>/.fp-enforcer/rules/.
Hook runner: <project>/.fp-enforcer/run_hook.py (self-contained; runs against the vendored copy, no global install needed at hook time).
Wire and unwire are non-destructive and idempotent:
wire updates rules and hook entries without duplicating them.<project>/.fp-enforcer/install_manifest.json.Updates are a two-step remote refresh:
pipx upgrade fp-enforcer
fp-enforcer wire --client all --dest /path/to/project
Everything stays inside the target project; no global agent configuration is modified.
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-assimilateUse 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./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.