agentleFS
valkey-iovalkey-io/valkey-admin/.agents/skills/ramda/SKILL.md

ramda

Skill156 starsChanged 7 months agoApache-2.0View on GitHub

Guidance for using Ramda in transformation-heavy TypeScript or JavaScript. Use when editing data pipelines, collection/object transformations, reducers, selectors, or parser code that can benefit from Ramda operators.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when editing transformation-heavy TypeScript or JavaScript in this repo.

    line 8
  2. Distinctive:

    Prefer Ramda when it makes data transformations more declarative and easier to scan.

    line 12
  3. Distinctive:

    Avoid point-free code that hides types, branching, errors, or important domain names.

    line 13
  4. Very specific:

    Prefer R.pipe for readable left-to-right transformations when it avoids noisy intermediate variables.

    line 14
  5. Very specific:

    Prefer a single reduce over filter plus map when one pass remains clear.

    line 16
  6. Very specific:

    Keep undefined and null separate.

    line 30
  7. Distinctive:

    Prefer typed helper functions at transformation boundaries so component and reducer code does not need casts.

    line 31

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

Ramda Skill

Use this skill when editing transformation-heavy TypeScript or JavaScript in this repo.

Principles

  • Prefer Ramda when it makes data transformations more declarative and easier to scan.
  • Avoid point-free code that hides types, branching, errors, or important domain names.
  • Prefer R.pipe for readable left-to-right transformations when it avoids noisy intermediate variables.
  • Plain loops are acceptable for complex branching, early exits, async control flow, or hot paths where Ramda obscures intent.
  • Prefer a single reduce over filter plus map when one pass remains clear.

Preferred Operators

  • Selection and shape: pick, pickBy, omit, props, path, pathOr, assoc, assocPath, evolve.
  • Combining and merging: mergeLeft, mergeRight, mergeDeepRight, union, intersection, difference, symmetricDifference.
  • Collections: groupBy, countBy, uniq, range, indexBy, partition, sortBy, ascend, descend.
  • Predicates: any, all, anyPass, allPass, propEq, pathEq, includes.
  • String/list transforms: split, splitAt, splitEvery, join.
  • Fan-out and composition: juxt, applySpec, converge, pipe.
  • Object utilities: invert, invertObj, toPairs, fromPairs, mapObjIndexed.

Type Discipline

  • Keep undefined and null separate. Do not use R.isNil when absent and explicitly-null states need different behavior.
  • Prefer typed helper functions at transformation boundaries so component and reducer code does not need casts.
  • Reuse domain/API types when the transformation preserves the same shape.

Review Checklist

  • Is the transformation clearer than the equivalent plain TypeScript?
  • Are all intermediate domain concepts still named when naming helps understanding?
  • Does the code preserve undefined versus null semantics when that distinction matters?

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.