Borrowing it
Nothing to install: this file belongs to terrene-foundation/metis. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/terrene-foundation/metis/main/.claude/commands/i-harden.mdgit clone --depth 1 https://github.com/terrene-foundation/metisWrote 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/commands/terrene-foundation/metis/i-harden)<a href="https://agentmods.dev/commands/terrene-foundation/metis/i-harden"><img src="https://agentmods.dev/badge/commands/terrene-foundation/metis/i-harden/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/commands/terrene-foundation/metis/i-harden"><img src="https://agentmods.dev/badge/commands/terrene-foundation/metis/i-harden.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00000 | $0.00762 |
| Opus 5 | $0.00000 | $0.00381 |
| Sonnet 5 | $0.00000 | $0.00152 |
| Haiku 4.5 | $0.00000 | $0.00076 |
Grade A, and why
i-harden 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 10d 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.
This is a copy
88% identical to i-harden — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/i-harden - Production Hardening for Frontend
Purpose
Prepare frontend interfaces for real-world usage by stress-testing against imperfect conditions: long text, missing data, slow networks, diverse languages, and unconventional inputs.
Adapted from Impeccable (Apache 2.0), enhanced for enterprise contexts.
Usage
| Command | Action |
|---|---|
/i-harden |
Full production hardening audit of current file/component |
/i-harden $ARGUMENTS |
Focused hardening on a specific area (e.g., text, i18n, errors, edge-cases) |
Philosophy
"Designs that only work with perfect data aren't production-ready."
Enterprise users have long names, mixed-language content, slow connections, and unexpected input. Hardened interfaces handle all of it gracefully.
Workflow
Step 1: Load Hardening Checklist
Read skills/23-uiux-design-principles/production-hardening.md for the full 6-category checklist covering:
- Text & Content Resilience -- overflow, length extremes, dynamic content
- Internationalization -- text expansion, formatting, character encoding
- Error States & Recovery -- network errors, HTTP status handling, form errors
- Edge Cases & Boundary -- empty states, loading states, data volume, concurrency
- Accessibility Resilience -- zoom, keyboard nav, screen reader, touch targets
- Performance Under Stress -- lazy loading, virtual scrolling, debouncing
If $ARGUMENTS specifies a focus area, evaluate only that category. Otherwise, evaluate all six.
Step 2: Evaluate Current Code
For each category in scope:
- Read the target component/page files
- Check each item against the detailed checklist
- Note PASS, FAIL, or N/A for each item
- For FAILs, draft a concrete fix with code direction
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.
- 10d ago First seen · 94 lines · 0 tokens per session scan A 07d2636d49e8
i-harden is a command published in the GitHub repository terrene-foundation/metis (2 stars, last pushed 4mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 762 tokens. A static security scan graded it A with 0 findings. It is 88% identical to i-harden, differing in 5 lines, and is treated as a copy.
Other commands, from other repositories
ui-flow-review
Review menus, HUD, navigation, and player flow from a UX perspective.
responsive-design-specialist
Use when a layout breaks between sizes. Arbitrary breakpoints, type that does not scale, images that blow out the grid, or a desktop design retrofitted onto mobile.
design-form
Design a form with the fewest fields that works, clear labels, and errors that help.
frontend-3d
You are an expert in 3D web development using Three.js, React Three Fiber, WebGL, and WebGPU. You create immersive 3D experiences for the web.
frontend-design
Read and follow the instructions in agents/frontend-design/design-all.md. Also read all referenced files in agents/frontend-design/reference/ as needed for the task.
get-component-source
The full TSX source of a component (append " demo" for its usage example).