write-maintainable-code

write-maintainable-code is a skill for Claude Code from Ezra144israel/governed-agent-skills. It costs 67 tokens per session (751 once invoked), scanned A, original, MIT.

A coding guide for choosing the smallest maintainable implementation that meets an already approved result. It compares possible approaches and checks that the chosen code remains understandable and within its assigned responsibility.

In plain words
What is it for?
Use it after the goal and acceptance checks are fixed to compare implementation routes, choose the right ownership boundary, and verify the resulting code.
Why use it?
It helps avoid unnecessary abstractions and keeps code easier to read and maintain over time.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the governed plugin — 6 skills shipped together

Good fit Use it after the goal and acceptance checks are fixed to compare implementation routes, choose the right ownership boundary, and verify the resulting code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ezra144israel/governed-agent-skills/write-maintainable-code
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.

Any agent
npx skills add Ezra144israel/governed-agent-skills --skill write-maintainable-code
Clone the repo
git clone --depth 1 https://github.com/Ezra144israel/governed-agent-skills

Made for: Claude Code.

Or install governed, the plugin that ships this one along with the rest of its 6 skills.

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 write-maintainable-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/ezra144israel/governed-agent-skills/write-maintainable-code/github.svg)](https://agentmods.dev/skills/ezra144israel/governed-agent-skills/write-maintainable-code)
Your own site
<a href="https://agentmods.dev/skills/ezra144israel/governed-agent-skills/write-maintainable-code"><img src="https://agentmods.dev/badge/skills/ezra144israel/governed-agent-skills/write-maintainable-code/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 write-maintainable-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/ezra144israel/governed-agent-skills/write-maintainable-code"><img src="https://agentmods.dev/badge/skills/ezra144israel/governed-agent-skills/write-maintainable-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 751 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00067 $0.00751
Opus 5 $0.00034 $0.00376
Sonnet 5 $0.00013 $0.00150
Haiku 4.5 $0.00007 $0.00075

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

Security

Grade A, and why

write-maintainable-code 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 4d 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.

skills/write-maintainable-code/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Write maintainable code

Use the fewest concepts that satisfy the approved result and its acceptance evidence. Minimize maintenance burden, not raw line count.

Keep the ownership boundary

  • reasoning-doctrine owns the stage, outcome, scope, evidence, route recommendation, hard stops, and the transition to execution.
  • governed-operator owns authority, seats, formal contracts, verdicts, publication, and Done.
  • This skill owns route comparison, ownership seams, concept control, readability, and implementation verification.

If outcome, acceptance evidence, or authority is unresolved, return to its owner. Apply this lens only to the selected route and safe slice. A finished change needs independent review.

Compare routes before adding code

  1. Restate the fixed result and acceptance evidence without reopening them.
  2. Inspect current behavior, configuration, reuse, deletion, documentation, and no-code routes. If the current evidence already passes, make no change.
  3. Choose a route only when the fixed acceptance evidence can prove it.
  4. Name the smallest ownership seam and the concepts the selected route needs. Name tempting concepts the result does not need.

When routes satisfy different checks and the current evidence does not identify the applicable check, return that gap to whoever owns the outcome and acceptance evidence. Do not create a second implementation brief or return schema.

Bound the implementation

Decline a dependency, layer, abstraction, state, endpoint, migration, generic helper, or compatibility path whose only reason is hypothetical reuse or an unselected future. Prefer readable, explicit, testable code over dense code. A longer implementation is smaller when it carries fewer concepts or less maintenance risk.

Treat file size as a signal, not a diagnosis. Extract a bounded seam only when the extraction lowers verified current risk. Remove only code made obsolete by the selected change. Report unrelated cleanup instead of doing it.

Read the full file on GitHub · 78 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. 4d ago Changed · +6 lines 982b078511ae
  2. 9d ago First seen · 72 lines · 67 tokens per session scan A e179eb30806b

Subscribe to this mod's changes

write-maintainable-code is a skill published in the GitHub repository Ezra144israel/governed-agent-skills (21 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 751 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-08-30.

Related

Other skills, from other repositories

hinge-profile-optimizer

Improve a Hinge dating profile through research-backed screenshot audits, photo selection and ordering, conversational discovery, prompt and caption writing, settings review, or post-launch troubleshooting. Use for a full profile rebuild or a focused request about photos, copy, positioning, match quality, or profile…

b1rdmania/hinge-profile-optimizer · 63 tokens

sanctifai

Human-in-the-loop skill for AI agents. Use when your agent needs humans to review, approve, or complete a task. Provides REST API and MCP (Model Context Protocol) integration with long-polling and webhooks. No server required — agents self-register and get responses back asynchronously.

sanctifai/skills · 63 tokens

proof-of-human

Use this whenever an agent must prove a qualified human participated — bind points, approvals, regulated actions, or sending work outside the session. Obtains cryptographic Proof of Human (WebAuthn-backed attestation + portable certificateurl) on demand. When WebAuthn cannot run in-card, mint via this Chat bridge…

sanctifai/skills · 83 tokens

update-llms

Updates the llms.txt file to reflect changes in documentation. Use when editing repository details or specifications. For creating from scratch, see create-llms.

tuliosousapro/SaaS-blueprint · 36 tokens

sapcc-skill

SAP Commerce Cloud skill for querying, administrating and operating a SAP CC (Hybris / CCv2) instance, including Cloud Portal DevOps operations. Use this skill when the user asks to query, inspect, modify or administrate SAP Commerce Cloud data (products, orders, customers, cronjobs, business logic) via HAC, or to…

eljoujat/sapcc-skill · 123 tokens

competitor-analysis

Structured competitor teardown skill. Use when scraping competitor sites, extracting pricing/features/positioning, or analyzing strategic gaps. For general research, see market-research.

tuliosousapro/SaaS-blueprint · 36 tokens