agentleFS
SaehwanParkSaehwanPark/agent-skills-archive/skills/fp-developer/SKILL.md

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.

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
  1. Distinctive:

    Use functional techniques where they reduce hidden state and make behavior easier to reason about.

    line 8
  2. Distinctive:

    Keep pure functions small enough to test directly.

    line 20
  3. Distinctive:

    Verify behavior, types, failure paths, and the repository's standard checks.

    line 21
  4. Distinctive:

    Prefer this shape when it fits the domain:

    line 23
  5. Distinctive:

    Keep effects at explicit boundaries.

    line 31
  6. Distinctive:

    Prefer returned state over hidden mutation, but allow localized mutation when it is clearer or materially more efficient.

    line 33
  7. Distinctive:

    Use types to encode stable domain concepts and prevent invalid states when the added structure pays for itself.

    line 37
  8. Distinctive:

    Prefer readable named transformations over dense chains or custom combinator libraries.

    line 39
  9. Distinctive:

    Add dependencies or abstractions only for a current, demonstrated requirement.

    line 41
  10. Distinctive:

    Read only the language guide relevant to the changed code:

    line 45
  11. Distinctive:

    Use the implementation checklist before finalizing substantial work.

    line 56
  12. Distinctive:

    Stop and report when:

    line 64

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Identify inputs, outputs, state, effects, failure, absence, and important invariants.
  2. Establish the existing public contract from types, callers, tests, and documentation.
  3. Separate domain transformations from I/O, time, randomness, storage, UI, and network adapters where that creates a real testable boundary.
  4. Make state transitions explicit in arguments and return values when practical.
  5. Model meaningful domain states and failures with the language's native type system.
  6. Keep pure functions small enough to test directly; test effectful adapters separately.
  7. Verify behavior, types, failure paths, and the repository's standard checks.

Prefer this shape when it fits the domain:

config + state + input -> state + output

Design 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.