over-edit-measure

Quantify over-edits in Python diffs using Levenshtein distance and cognitive complexity deltas.

1|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/daedalus/skills --skill over-edit-measure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: over-edit-measure
Source: https://github.com/daedalus/skills/tree/main/skills/over-edit-measure
Command: npx skills add https://github.com/daedalus/skills --skill over-edit-measure

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cognitive-complexity, and includes scripts (resource) components.

What problem does it solve?

This Skill quantifies over-edits in Python code diffs, revealing how much a change rewrites intent beyond what was strictly necessary.

Core Features & Use Cases

  • Per-function cognitive complexity delta: compare original vs modified code to see readability impact.
  • Token-level Levenshtein distance: measure how much code was rewritten.
  • Batch and single-diff workflows: generate reports for one or many patches, with optional ground-truth comparison.

Quick Start

Run the script on your original.py and modified.py to produce a per-function CC delta and Levenshtein score.

Frequently Asked Questions about over-edit-measure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I measure code over-editing in Python diffs?

Token-level Levenshtein distance measures the exact number of token changes between original and modified Python code, quantifying how much a diff rewrites intent beyond the minimal required fix.

What is cognitive complexity delta in code review?

Cognitive complexity delta in code review compares the readability impact of original versus modified Python functions, showing exactly how much a code change increases or decreases structural complexity.

How do I calculate a patch score against a ground truth fix?

You calculate a patch score by comparing a submitted Python diff against a ground-truth minimal fix, generating a score that reflects how closely the patch matches the necessary changes.

Can I process batch Python code diffs or only single files?

You can process both single and batch Python code diffs, generating per-function cognitive complexity deltas and Levenshtein scores for one patch or many patches simultaneously.

Do I need the cognitive-complexity dependency to run over-editing analysis?

Yes, you need the cognitive-complexity dependency installed, as the Skill relies on it to compute per-function readability deltas when analyzing Python code diffs.