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 design-patternsgit 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/design-patterns)<a href="https://agentmods.dev/skills/pantheon-org/tekhne/design-patterns"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/design-patterns/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/design-patterns"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/design-patterns.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.00067 | $0.01833 |
| Opus 5 | $0.00034 | $0.00916 |
| Sonnet 5 | $0.00013 | $0.00367 |
| Haiku 4.5 | $0.00007 | $0.00183 |
Grade A, and why
design-patterns 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 — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Design Patterns
Structural design patterns for solving recurring design problems with proven solutions.
When to Use
- Eliminating complex conditional logic (if/else chains, switch statements)
- Designing plugin/extension systems
- Integrating external APIs or legacy systems
- Separating concerns with clear interfaces
- Evaluating whether a pattern solves a concrete problem
When Not to Use
- Class-level SOLID violations (use solid-principles)
- Architectural boundary decisions (use clean-architecture)
- Testing strategy configuration (use testable-design)
- NEVER apply patterns preemptively for imagined future needs
Pattern Selection Workflow
Step 1: Identify the Design Problem
Output: Concrete problem statement without pattern jargon.
Ask:
- What conditional logic or coupling exists?
- What needs to vary independently?
- What external system needs integration?
Example:
Problem: Payment processing logic uses if/else chains to select processors.
Adding new processors requires editing existing code (OCP violation).
Step 2: Evaluate Pattern Fit
Output: Pattern choice with explicit win condition.
Ask before choosing a pattern:
- Does this pattern solve the concrete problem?
- What complexity does it remove vs. add?
- Can the team maintain it?
Example:
Pattern: Strategy (not Factory).
Win condition: Eliminates if/else chains for payment processor selection.
Cost: One interface + implementations. Benefit: Easy to add new processors.
Step 3: Document Pattern Application
Output: Pattern applied with before/after comparison.
Template:
Pattern: Strategy
Problem: if/else chain for payment processor selection
Solution: PaymentProcessor interface + implementations (Stripe, PayPal, etc.)
Validation: New processors added without editing existing code
Common Patterns
Strategy Pattern
Use when: Conditional logic selects between algorithms.
Example:
// Before: if/else chain
if (type === 'stripe') {
// Stripe logic
} else if (type === 'paypal') {
// PayPal logic
}
// After: Strategy pattern
interface PaymentProcessor {
process(amount: number): Promise<Receipt>
}
class StripeProcessor implements PaymentProcessor { /* ... */ }
class PayPalProcessor implements PaymentProcessor { /* ... */ }
// Select strategy
const processor = processors[type]
await processor.process(amount)
What ships with it
20 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.
- .audits/2026-03-04/analysis.md 1.1 KB
- .audits/2026-03-04/audit.json 477 B
- .audits/2026-03-04/remediation-plan.md 3.6 KB
- .audits/latest 10 B
- evals/scenario-01.md 3.5 KB
- evals/scenario-02.md 3.5 KB
- evals/scenario-03.md 3.8 KB
- evals/scenario-04.md 3.8 KB
- evals/scenario-05.md 3.4 KB
- references/adapt-anti-corruption-layer.md 3.7 KB
- references/anti-patterns-and-frameworks.md 8.9 KB
- references/bound-humble-object.md 3.2 KB
- references/bound-main-component.md 3.0 KB
- references/bound-partial-boundaries.md 3.0 KB
- references/comp-common-closure.md 2.1 KB
- references/comp-reuse-release-equivalence.md 2.2 KB
- references/dep-interface-ownership.md 1.9 KB
- references/dep-stable-abstractions.md 2.1 KB
- references/detailed-examples.md 12 KB
- references/frame-logging-abstraction.md 3.2 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 · 299 lines · 67 tokens per session scan A 748726ba589a
design-patterns is a skill published in the GitHub repository pantheon-org/tekhne (10 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 1,833 once invoked, about $0.0003 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
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
visual-plan
Turn ordinary text plans into rich interactive visual plans with diagrams, file maps, annotated code, open questions, and UI/prototype review when useful.
visual-edit
Open a running local app in Design overview mode as URL-backed iframe screens for visual editing, flow review, duplication, and route-state exploration. Use when the user asks to inspect, compare, or edit a real local app visually in Design.
muapi-ui-design
Generate high-fidelity UI/UX mockups for mobile and web apps using Atomic Design principles — creates wireframes and design systems via muapi.ai.
display-glasses-with-jetpack-compose-glimmer
Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. This skill covers foundational Glimmer design principles, workflows for implementing Jetpack Compose Glimmer, and interaction models for the glasses form factor. Use this skill to build an…
baseline-ui
Quickly deslop UI code by fixing spacing, hierarchy, typography, and small layout issues. Use when the interface needs a fast cleanup or polish pass.