Skip to content
pskoett avatar

Simplify And Harden

Post-completion self-review pass that runs simplify, harden, and micro-documentation checks on non-trivial code changes.

CCM score
51 of 100
skills.sh installs
527
GitHub stars
343
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a bounded quality and security sweep run by a coding agent after a general session task is complete
  • Includes simplify (dead code, naming, control flow, API surface), harden, re-verification, and micro-documentation passes
  • Enforces a 20% diff-size cap, a 60-second execution limit, and only touches files modified in the task
  • Designed for general agent sessions, with independent review recommended as a separate merge gate; CI runs use simplify-and-harden-ci

Install

$ npx -y skills add pskoett/pskoett-ai-skills --skill simplify-and-harden -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Agent Skill: Simplify & Harden

Install

gh skill install pskoett/pskoett-skills simplify-and-harden

For CI-only execution, use:

gh skill install pskoett/pskoett-skills simplify-and-harden-ci

Fallback using the Agent Skills CLI:

npx skills add pskoett/pskoett-skills/skills/simplify-and-harden
npx skills add pskoett/pskoett-skills/skills/simplify-and-harden-ci

Metadata

FieldValue
Skill IDsimplify-and-harden
Version0.1.0
TriggerPost-completion hook
AuthorPeter Skøtt Pedersen
CategoryCode Quality / Security
PriorityRecommended

Rationale and Philosophy

When a coding agent completes a task, it holds peak contextual understanding of the problem, the solution, and the tradeoffs it made along the way. This context degrades immediately -- the next task wipes the slate. Simplify & Harden exploits that peak context window to perform two focused review passes before the agent moves on.

Details

Repository
github.com/pskoett/pskoett-ai-skills
Categories
Code Review & Quality, Agent Workflow & Planning, Security
First seen
Jun 3, 2026

More from pskoett/pskoett-ai-skills

All 8

Similar to Simplify And Harden

More Code Review & Quality