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-immutabilitygit 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-immutability)<a href="https://agentmods.dev/skills/pantheon-org/tekhne/fp-immutability"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/fp-immutability/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-immutability"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/fp-immutability.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.02297 |
| Opus 5 | $0.00009 | $0.01149 |
| Sonnet 5 | $0.00004 | $0.00459 |
| Haiku 4.5 | $0.00002 | $0.00230 |
Grade A, and why
fp-immutability 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 — 292 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Immutability Principles
Immutability is a cornerstone of functional programming where data cannot be modified after creation. Instead of changing existing values, you create new values. This approach eliminates entire classes of bugs related to shared mutable state, makes code easier to reason about, and enables safe concurrent programming.
Core Concepts of Immutability
Immutable data has several key benefits:
- Predictability: Data doesn't change unexpectedly
- Thread Safety: No race conditions with immutable data
- Easier Debugging: State changes are explicit and traceable
- Temporal Logic: Can keep historical versions of data
- Caching: Safe to cache references to immutable data
JavaScript: Immutability Patterns
// MUTABLE APPROACH (avoid)
const user = {
name: 'Alice',
email: '[email protected]',
addresses: []
};
function addAddress(user, address) {
user.addresses.push(address); // Mutation!
return user;
}
// IMMUTABLE APPROACH (prefer)
const userImmutable = {
name: 'Alice',
email: '[email protected]',
addresses: []
};
function addAddressImmutable(user, address) {
return {
...user,
addresses: [...user.addresses, address]
};
}
// Usage
const user1 = { name: 'Bob', addresses: [] };
const user2 = addAddressImmutable(user1, '123 Main St');
console.log(user1.addresses.length); // 0 - unchanged
console.log(user2.addresses.length); // 1 - new object
// Updating nested structures
const state = {
user: {
profile: {
name: 'Charlie',
settings: {
theme: 'dark',
notifications: true
}
}
}
};
// MUTABLE (avoid)
function toggleNotificationsMutable(state) {
state.user.profile.settings.notifications = !state.user.profile.settings.notifications;
return state;
}
// IMMUTABLE (prefer)
function toggleNotificationsImmutable(state) {
return {
...state,
user: {
...state.user,
profile: {
...state.user.profile,
settings: {
...state.user.profile.settings,
notifications: !state.user.profile.settings.notifications
}
}
}
};
}
// Using Immer library for simpler deep updates
import { produce } from 'immer';
function toggleNotificationsImmer(state) {
return produce(state, draft => {
draft.user.profile.settings.notifications = !draft.user.profile.settings.notifications;
});
}
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 1004 B
- evals/scenario-1/capability.txt 71 B
- evals/scenario-1/criteria.json 676 B
- evals/scenario-1/task.md 133 B
- evals/scenario-2/capability.txt 37 B
- evals/scenario-2/criteria.json 602 B
- evals/scenario-2/task.md 109 B
- evals/scenario-3/capability.txt 69 B
- evals/scenario-3/criteria.json 698 B
- evals/scenario-3/task.md 136 B
- evals/summary.json 151 B
- references/language-examples.md 12 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 · 292 lines · 18 tokens per session scan A cdb22cf86497
fp-immutability 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,297 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…