Skip to content
Back to skills

Minimal Correct Implementation

ASecurity

`analysis-agent`/`task-agent`/`review-agent`: use when added code, dependency, abstraction, configuration, or shortcut may exceed current need; skip when minimality is proven.

  • 7 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
code-qualitygorefactoringapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 22, 2026

npx -y skills add machenjie/rd-skills --skill minimal-correct-implementation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Minimal Correct Implementation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Minimal Correct Implementation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/machenjie-minimal-correct-implementation/badge)](https://www.skillsdirectory.com/skills/machenjie-minimal-correct-implementation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: minimal-correct-implementation
description: "`analysis-agent`/`task-agent`/`review-agent`: use when added code, dependency, abstraction, configuration, or shortcut may exceed current need; skip when minimality is proven."
---

# minimal-correct-implementation

## Registry Trigger

**Use when**

- Accepted behavior may be met by deletion, reuse, standard or native behavior, an installed dependency, or direct local code.
- A diff adds a wrapper, interface, registry, dependency, file, configuration branch, speculative variant, or deliberate shortcut.

**Do not use when**

- Current requirements and owner boundaries already select one structure with no unresolved existence or minimality decision.
- The open question is placement, pattern fit, package policy, public contract, clarity, or performance rather than whether added structure is needed.

## Skill Role

Decide whether structure exists. Compare delete or omit, repository behavior, standard or native behavior, an installed dependency, direct local code, and new structure in that order. Preserve accepted behavior, invariants, safety, testability, and recovery. Leave placement, pattern relationships, dependency governance, public contracts, and language rules to their owners.

## High-Value Rules

- Define present need from current acceptance, non-goals, reachable consumers, and owner boundaries.
- Reject speculative variant, scale, or reuse stories as present requirements.
- Use the simplicity ladder for candidate comparison without trading ownership, effects, contracts, safety, compatibility, rollback, or proof for fewer lines.

## Anti-Patterns

- Local success substituted for evidence of the minimal correct implementation contract.

## Stop Conditions

- After existence is accepted, route owner-internal placement to `implementation-structure-design`.
- Route a real variation, lifecycle, protocol, concurrency, or extension relationship to `design-pattern-selection`.
- Route dependency governance to `package-dependency-management`.
- Route behavior-preserving movement to `refactoring` after the destination is fixed.
- Route public compatibility to the API owner, clarity to `code-clarity-maintainability`, runtime cost to `language-performance-safety`, and cleanup lifecycle to `cleanup-deletion-governance`.

## Output Contract

- minimality decision with retained or removed structure candidate comparison current force rejected nearer alternatives behavior-preservation proof specialist routes evidence limits and residual risk

## Targeted References

| Path | Type | Load when | Do not load when | Required by | Required output |
|---|---|---|---|---|---|
| [simplicity ladder](references/simplicity-ladder.md) | benchmark-pattern | Multiple minimal-correct candidates differ in ownership safety compatibility recovery or deletion behavior | One repository-conforming candidate already satisfies acceptance and protected obligations with no added structure | analysis-agent, task-agent, review-agent | option-comparison, selected-approach, residual-risk |

Files in this skill

  • SKILL.md4.4 KB
  • references/simplicity-ladder.md2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…