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.
npx skills add pantheon-org/tekhne --skill fp-higher-order-functionsgit clone --depth 1 https://github.com/pantheon-org/tekhneWrote 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.
[](https://agentmods.dev/skills/pantheon-org/tekhne/fp-higher-order-functions)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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:
- Accepts functions as parameters
- 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
What ships with it
13 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- evals/instructions.json 1022 B
- evals/scenario-1/capability.txt 50 B
- evals/scenario-1/criteria.json 633 B
- evals/scenario-1/task.md 117 B
- evals/scenario-2/capability.txt 54 B
- evals/scenario-2/criteria.json 597 B
- evals/scenario-2/task.md 150 B
- evals/scenario-3/capability.txt 65 B
- evals/scenario-3/criteria.json 684 B
- evals/scenario-3/task.md 136 B
- evals/summary.json 151 B
- references/advanced-patterns.md 3.5 KB
- references/language-examples.md 8.5 KB
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.
- 9d ago First seen · 379 lines · 20 tokens per session scan A 301dffeb560f
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.
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…
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…
practice-cognition
A method for testing ideas in practice, learning from the results, and improving the next attempt through repeated cycles.
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.
81-pipecat
Create your Pipecat skill from official documentation, then learn to improve it throughout the chapter.
36-anthropic-agents-kit-development
Create your Claude Agent SDK skill in one prompt, then learn to improve it throughout the chapter.