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-pure-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-pure-functions)<a href="https://agentmods.dev/skills/pantheon-org/tekhne/fp-pure-functions"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/fp-pure-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-pure-functions"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/fp-pure-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.00018 | $0.02896 |
| Opus 5 | $0.00009 | $0.01448 |
| Sonnet 5 | $0.00004 | $0.00579 |
| Haiku 4.5 | $0.00002 | $0.00290 |
Grade A, and why
fp-pure-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 — 409 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pure Functions and Side Effect Management
Pure functions are the foundation of functional programming. A pure function is a function where the return value is determined only by its input values, without observable side effects. This predictability makes code easier to test, reason about, and parallelize.
Core Characteristics of Pure Functions
A pure function must satisfy two key properties:
- Deterministic: Given the same inputs, it always returns the same output
- No Side Effects: It doesn't modify external state or interact with the outside world
Example: Pure vs Impure Functions (JavaScript)
// IMPURE: Depends on external state
let discount = 0.1;
function calculatePrice(price) {
return price - (price * discount);
}
// PURE: All inputs are parameters
function calculatePriceWithDiscount(price, discount) {
return price - (price * discount);
}
// IMPURE: Modifies external state
let total = 0;
function addToTotal(amount) {
total += amount;
return total;
}
// PURE: Returns new value without mutation
function add(a, b) {
return a + b;
}
// Usage of pure function
const currentTotal = 100;
const newTotal = add(currentTotal, 50); // 150
// currentTotal is still 100
Example: Pure Functions in Python
from datetime import datetime
from typing import List, Dict
# IMPURE: Uses current time (non-deterministic)
def get_greeting():
hour = datetime.now().hour
if hour < 12:
return "Good morning"
return "Good afternoon"
# PURE: Time is passed as parameter
def get_greeting_at_time(hour: int) -> str:
if hour < 12:
return "Good morning"
return "Good afternoon"
# IMPURE: Modifies input list
def add_item_impure(items: List[str], item: str) -> List[str]:
items.append(item)
return items
# PURE: Returns new list
def add_item_pure(items: List[str], item: str) -> List[str]:
return [*items, item]
# IMPURE: Reads from file system
def load_config():
with open('config.json', 'r') as f:
return json.load(f)
# PURE: Config is passed as parameter
def process_config(config: Dict) -> Dict:
return {
**config,
'processed': True,
'timestamp': config.get('timestamp', 0)
}
What ships with it
12 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 1.1 KB
- evals/scenario-1/capability.txt 73 B
- evals/scenario-1/criteria.json 841 B
- evals/scenario-1/task.md 172 B
- evals/scenario-2/capability.txt 67 B
- evals/scenario-2/criteria.json 682 B
- evals/scenario-2/task.md 152 B
- evals/scenario-3/capability.txt 77 B
- evals/scenario-3/criteria.json 559 B
- evals/scenario-3/task.md 133 B
- evals/summary.json 151 B
- references/other-language-examples.md 2.4 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 · 409 lines · 18 tokens per session scan A bdacf225265b
fp-pure-functions is a skill published in the GitHub repository pantheon-org/tekhne (10 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 2,896 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
testing-setup
Analyze and create a testing strategy for native Android apps - install testing libraries, set up test infrastructure, create harnesses for unit tests, UI tests, screenshot tests, and end-to-end tests.
migrate-xunit-to-xunit-v3
Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…
nunit
Write, run, or repair .NET tests that use NUnit. Use when a repo uses NUnit, [Test], [TestCase], [TestFixture], or NUnit3TestAdapter for VSTest or Microsoft.Testing.Platform execution. USE FOR: writing or reviewing NUnit tests; using [Test], [TestCase], [TestFixture], [SetUp], [TearDown] attributes; configuring…
crap-score
Calculates CRAP (Change Risk Anti-Patterns) for a named .NET method, class, or file. USE FOR: explicit CRAP calculation or coverage-and-complexity risk within that named target, including which tests to prioritize. DO NOT USE FOR: project-wide coverage/CRAP, plateaus, or project-wide blockers/priorities…
test-harness
Generates pytest test suites with happy path, edge cases, error conditions, fixture scaffolding, mocks, async patterns. Triggers on: "generate tests", "write tests for", "test this function", "create test suite", "pytest for", "unit tests for", "mock strategy for".
unit-test-caching
Provides patterns for unit testing Spring Cache annotations (@Cacheable, @CachePut, @CacheEvict). Generates test code that mocks cache managers, verifies cache hit/miss behavior, tests cache key generation with SpEL expressions, validates eviction strategies, and checks conditional caching scenarios. Triggers: caching…