i-harden

i-harden is a command for Claude Code from terrene-foundation/kailash-coc-claude-py. It costs 17 tokens per session (786 once invoked), scanned A, original, Apache-2.0.

A production-readiness review for frontend interfaces. It checks how they handle long text, missing data, slow networks, multiple languages, errors, and unusual input.

In plain words
What is it for?
Use it to review text overflow, internationalization, network errors, form errors, and other edge cases in a frontend component or page.
Why use it?
It finds failures that may stay hidden when an interface is tested only with ideal data and fast connections.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to review text overflow, internationalization, network errors, form errors, and other edge cases in a frontend component or page.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/terrene-foundation/kailash-coc-claude-py/i-harden
Install

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.

Clone the repo
git clone --depth 1 https://github.com/terrene-foundation/kailash-coc-claude-py

Made for: Claude Code.

Wrote 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.

agentmods badge for i-harden

README.md
[![agentmods](https://agentmods.dev/badge/commands/terrene-foundation/kailash-coc-claude-py/i-harden/github.svg)](https://agentmods.dev/commands/terrene-foundation/kailash-coc-claude-py/i-harden)
Your own site
<a href="https://agentmods.dev/commands/terrene-foundation/kailash-coc-claude-py/i-harden"><img src="https://agentmods.dev/badge/commands/terrene-foundation/kailash-coc-claude-py/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.

agentmods 80×15 button for i-harden

Your own site · 80×15
<a href="https://agentmods.dev/commands/terrene-foundation/kailash-coc-claude-py/i-harden"><img src="https://agentmods.dev/badge/commands/terrene-foundation/kailash-coc-claude-py/i-harden.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 786 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.00786
Opus 5 $0.00009 $0.00393
Sonnet 5 $0.00003 $0.00157
Haiku 4.5 $0.00002 $0.00079

Measured 8d ago against content hash d3692aac26d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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 8d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • i-harden — 88% identical, 5 lines differ
.claude/commands/i-harden.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 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:

  1. Text & Content Resilience -- overflow, length extremes, dynamic content
  2. Internationalization -- text expansion, formatting, character encoding
  3. Error States & Recovery -- network errors, HTTP status handling, form errors
  4. Edge Cases & Boundary -- empty states, loading states, data volume, concurrency
  5. Accessibility Resilience -- zoom, keyboard nav, screen reader, touch targets
  6. 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:

  1. Read the target component/page files
  2. Check each item against the detailed checklist
  3. Note PASS, FAIL, or N/A for each item
  4. For FAILs, draft a concrete fix with code direction

Read the full file on GitHub · 99 lines

Changes

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.

  1. 8d ago First seen · 99 lines · 17 tokens per session scan A d3692aac26d7

Subscribe to this mod's changes

i-harden is a command published in the GitHub repository terrene-foundation/kailash-coc-claude-py (12 stars, last pushed 23d ago), licensed Apache-2.0. It adds 17 tokens to every session and 786 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.