monoids

Recognize and apply the monoid abstraction (binary associative operation + neutral element) in TypeScript and Clojure/ClojureScript code. Use whenever the user is combining, aggregating, merging, or reducing data — shopping carts, permissions/roles, metrics and counters, event logs, config objects, or any reduce/fold/merge-with over a collection — even if they don't use the word "monoid". Also use when reviewing code that special-cases empty lists/collections, when discussing Map-Reduce or parallel aggregation (including pmap-based reduction), or when designing a generic combine/merge/empty API instead of ad hoc merge logic. Trigger this for "how do I merge these two X" or "what's a clean way to aggregate Y" style questions in either language, not just explicit monoid/algebra questions.

bsene/skills5 installsSynced Aug 26

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI

This skill's source license couldn't be confirmed as safe to mirror here, so it isn't inlined. View the full skill directly on its source repository.

View on GitHub

More General & Other skills

← All General & Other skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY