fp-higher-order-functions

fp-higher-order-functions is a skill for Claude Code from pantheon-org/tekhne. It costs 20 tokens per session (3,124 once invoked), scanned A, original, MIT.

A guide to functions that accept other functions or return them, including the map, filter, and reduce patterns for transforming data.

In plain words
What is it for?
Use it to process lists, combine transformations, create configurable behavior, and avoid repeating similar loops.
Why use it?
It helps express repeated data-processing steps clearly and reuse the same logic in different situations.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to process lists, combine transformations, create configurable behavior, and avoid repeating similar loops.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pantheon-org/tekhne/fp-higher-order-functions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pantheon-org/tekhne --skill fp-higher-order-functions
Clone the repo
git clone --depth 1 https://github.com/pantheon-org/tekhne

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fp-higher-order-functions

README.md
[![agentmods](https://agentmods.dev/badge/skills/pantheon-org/tekhne/fp-higher-order-functions/github.svg)](https://agentmods.dev/skills/pantheon-org/tekhne/fp-higher-order-functions)
Your own site
<a href="https://agentmods.dev/skills/pantheon-org/tekhne/fp-higher-order-functions"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/fp-higher-order-functions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fp-higher-order-functions

Your own site · 80×15
<a href="https://agentmods.dev/skills/pantheon-org/tekhne/fp-higher-order-functions"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/fp-higher-order-functions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,124 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.03124
Opus 5 $0.00010 $0.01562
Sonnet 5 $0.00004 $0.00625
Haiku 4.5 $0.00002 $0.00312

Measured 9d ago against content hash 301dffeb560f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

fp-higher-order-functions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/software-engineering/fp-higher-order-functions/SKILL.md · 379 lines

How it starts

The opening of the file, as written. The whole thing — 379 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Higher-Order Functions and Functional Patterns

Higher-order functions are functions that take other functions as arguments or return functions as results. They enable powerful abstractions, code reuse, and declarative programming styles. The classic trio of map, filter, and reduce form the foundation of functional data transformation.

Understanding Higher-Order Functions

A higher-order function is any function that does at least one of the following:

  1. Accepts functions as parameters
  2. Returns a function as its result

This enables composition, abstraction, and powerful declarative patterns.

JavaScript: Basic Higher-Order Functions

// Function that takes a function as argument
function applyOperation(x, y, operation) {
  return operation(x, y);
}

const sum = applyOperation(5, 3, (a, b) => a + b);        // 8
const product = applyOperation(5, 3, (a, b) => a * b);    // 15

// Function that returns a function
function createMultiplier(factor) {
  return function(number) {
    return number * factor;
  };
}

const double = createMultiplier(2);
const triple = createMultiplier(3);

console.log(double(5));   // 10
console.log(triple(5));   // 15

// Practical example: Event handler creator
function createClickHandler(message) {
  return function(event) {
    console.log(message, event.target);
  };
}

const submitHandler = createClickHandler('Form submitted from:');
const cancelHandler = createClickHandler('Cancelled from:');

// Higher-order function for timing
function measureTime(fn) {
  return function(...args) {
    const start = performance.now();
    const result = fn(...args);
    const end = performance.now();
    console.log(`Execution time: ${end - start}ms`);
    return result;
  };
}

function slowCalculation(n) {
  let sum = 0;
  for (let i = 0; i < n; i++) {
    sum += i;
  }
  return sum;
}

const timedCalculation = measureTime(slowCalculation);
timedCalculation(1000000);  // Logs execution time

Map: Transforming Collections

Read the full file on GitHub · 379 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 379 lines · 20 tokens per session scan A 301dffeb560f

Subscribe to this mod's changes

fp-higher-order-functions is a skill published in the GitHub repository pantheon-org/tekhne (10 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 3,124 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

math-olympiad

Solve competition math problems (IMO, Putnam, USAMO, AIME) with adversarial verification that catches the errors self-verification misses. Activates when asked to 'solve this IMO problem', 'prove this olympiad inequality', 'verify this competition proof', 'find a counterexample', 'is this proof correct', or for any…

anthropics/claude-plugins-official · 163 tokens

google-agents-cli-onboarding

Onboarding entrypoint for agents-cli in Agent Platform. It should be used when the user wants to "create a new agent", "develop an agent", "build an agent using ADK", "run the agent locally", "debug agent code", "test an agent", "evaluate an agent", "deploy an agent", "publish an agent", "monitor an agent", or needs…

google/skills · 95 tokens

practice-cognition

A method for testing ideas in practice, learning from the results, and improving the next attempt through repeated cycles.

HughYau/qiushi-skill · 183 tokens

rust-learner

Learn Rust language features and crate updates. Use when user asks about Rust version changelog, what's new in Rust, crate updates, Cargo.toml dependencies, tokio/serde/axum features, or any Rust ecosystem questions.

actionbook/actionbook · 51 tokens

81-pipecat

Create your Pipecat skill from official documentation, then learn to improve it throughout the chapter.

majiayu000/claude-skill-registry · 18 tokens

36-anthropic-agents-kit-development

Create your Claude Agent SDK skill in one prompt, then learn to improve it throughout the chapter.

majiayu000/claude-skill-registry · 18 tokens