fp-developer
Skill1 starsChanged 5 months agoMITView on GitHub
Use when designing, implementing, refactoring, or reviewing Python, Rust, Swift, Kotlin, or Mojo code that benefits from explicit state, a pure functional core, typed boundaries, controlled effects, and tests as behavioral specifications.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-skills-archive-orchestratorSkill
- call-r-lib-in-pythonSkill
- code-commenterSkill
- code-reviewerSkill
- end-user-xp-improverSkill
- lesson-documenterSkill
- plan-designerSkill
- preferred-workflowSkill
- release-preparerSkill
- scientific-prose-editorSkill
- simple-code-writerSkill
- spec-driven-developerSkill
- wayback-link-fallbackSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use functional techniques where they reduce hidden state and make behavior easier to reason about.
- Distinctive: line 20
Keep pure functions small enough to test directly.
- Distinctive: line 21
Verify behavior, types, failure paths, and the repository's standard checks.
- Distinctive: line 23
Prefer this shape when it fits the domain:
- Distinctive: line 31
Keep effects at explicit boundaries.
- Distinctive: line 33
Prefer returned state over hidden mutation, but allow localized mutation when it is clearer or materially more efficient.
- Distinctive: line 37
Use types to encode stable domain concepts and prevent invalid states when the added structure pays for itself.
- Distinctive: line 39
Prefer readable named transformations over dense chains or custom combinator libraries.
- Distinctive: line 41
Add dependencies or abstractions only for a current, demonstrated requirement.
- Distinctive: line 45
Read only the language guide relevant to the changed code:
- Distinctive: line 56
Use the implementation checklist before finalizing substantial work.
- Distinctive: line 64
Stop and report when:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Functional-First Developer
Use functional techniques where they reduce hidden state and make behavior easier to reason about. Do not force immutability, monadic abstractions, or pipelines when direct imperative code is clearer and equally safe.
Core workflow
- Identify inputs, outputs, state, effects, failure, absence, and important invariants.
- Establish the existing public contract from types, callers, tests, and documentation.
- Separate domain transformations from I/O, time, randomness, storage, UI, and network adapters where that creates a real testable boundary.
- Make state transitions explicit in arguments and return values when practical.
- Model meaningful domain states and failures with the language's native type system.
- Keep pure functions small enough to test directly; test effectful adapters separately.
- Verify behavior, types, failure paths, and the repository's standard checks.
Prefer this shape when it fits the domain:
config + state + input -> state + outputDesign rules
- Keep effects at explicit boundaries; inject time, randomness, configuration, and clients when deterministic behavior matters.
- Prefer returned state over hidden mutation, but allow localized mutation when it is clearer or materially more efficient.
- Represent absence and recoverable failure explicitly using the language's established
Option/Optional,Result, sealed type, exception, or equivalent convention. - Use types to encode stable domain concepts and prevent invalid states when the added structure pays for itself.
- Prefer readable named transformations over dense chains or custom combinator libraries.
- Preserve public APIs during refactors unless change is explicitly requested.
- Add dependencies or abstractions only for a current, demonstrated requirement.
Reference routing
Read only the language guide relevant to the changed code:
- Python
- Rust
- Swift
- Kotlin
- Mojo
For Mojo, verify current syntax, ownership, package, test, and tool behavior against the current official documentation before relying on memory.
Use the implementation checklist before finalizing substantial work. Use the review protocol and review summary template only for an explicit functional-first review. Consult source notes only when maintaining the guidance itself.
Stop conditions
Stop and report when:
- Functional restructuring would change a public contract or performance characteristic outside the agreed scope.
- The repository's established architecture uses a different sound state/effect boundary.
- A proposed type, abstraction, or dependency adds more complexity than the failure mode it prevents.
- Required language or tool behavior cannot be verified.
Expected output
Report the state or effects made explicit, tests and checks run, public behavior preserved or intentionally changed, and any remaining non-functional compromises.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

