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
- Distinctive: line 8
Use this skill when editing transformation-heavy TypeScript or JavaScript in this repo.
- Distinctive: line 12
Prefer Ramda when it makes data transformations more declarative and easier to scan.
- Distinctive: line 13
Avoid point-free code that hides types, branching, errors, or important domain names.
- Very specific: line 14
Prefer R.pipe for readable left-to-right transformations when it avoids noisy intermediate variables.
- Very specific: line 16
Prefer a single reduce over filter plus map when one pass remains clear.
- Very specific: line 30
Keep undefined and null separate.
- Distinctive: line 31
Prefer typed helper functions at transformation boundaries so component and reducer code does not need casts.
≈ “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
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.pipefor 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
reduceoverfilterplusmapwhen 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
undefinedandnullseparate. Do not useR.isNilwhen 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
undefinedversusnullsemantics when that distinction matters?
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.

