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
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 -yInstalls 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
| Field | Value |
|---|---|
| Skill ID | simplify-and-harden |
| Version | 0.1.0 |
| Trigger | Post-completion hook |
| Author | Peter Skøtt Pedersen |
| Category | Code Quality / Security |
| Priority | Recommended |
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 8Similar to Simplify And Harden
More Code Review & Qualityagent-teams-simplify-and-hardenSkillpskoett/pskoett-ai-skills509 installsImplementation and audit loop that runs parallel agent teams until builds, tests, and auditors all pass.
code-polishSkillpaulrberg/agent-skills2.8K installsPolish changed code on request, simplifying safely and reviewing fixed scope by risk profile.
automatic-code-reviewPluginNTCoding/claude-skillz368 starsAutomatic code review on session stop with configurable rules
code-review-and-qualitySkilladdyosmani/agent-skills94.5K installsMulti-axis code review with quality gates for any change before it enters the main branch.
review-and-simplify-changesSkilldimillian/skills880 installsScoped review of git changes for reuse, quality, efficiency, and clarity, with optional safe automated fixes.
ce-simplify-codeSkilleveryinc/compound-engineering-plugin3.8K installsSimplifies settled code for clarity, reuse, and efficiency while preserving behavior, and prunes low-value tests and comments.