Craft lasting quality

From AIDDbot/AIDDbot · View interactive version

Craft lasting quality is an AI agent skill from the GitHub repository AIDDbot/AIDDbot. Reduce existing quality debt.

How to use this skill

Skill file

craft-lasting-quality

Your goal is to reduce existing quality debt, from high to low, each item with the smallest repair that proves it.

Roles

Upgrade request

When the human asks for a dependency upgrade, skip the debt. Execute build-requested-spec with a chore for the named projects, or all projects. Repair all that the upgrade breaks. Stop after this spec.

Select

Read node .agents/aidd/aidd.mjs debt list. Select an open item by priority: high, then medium, then low. First check the current code. Remove items that no longer exist with node .agents/aidd/aidd.mjs debt remove <id>. Journal the choice with node .agents/aidd/aidd.mjs log select "<D ID>: <why>".

The priority sets the repair, not the size. The evidence of the item limits the scope of a spec. Leave findings from later checks for the next scan.

High and medium debt

Run node .agents/aidd/aidd.mjs spec debt <D ID>. The core makes and approves a minimal spec: a fix for high, a refactor for medium. The spec also repairs the other open items of the same priority and project. Execute build-requested-spec with it: it sets the steps of each type.

Low debt: patch

Low debt comes from crap: complexity and test coverage. A patch has no spec or release. It does not count toward the limit of five specs. When you select a low item, read references/patch.md and follow it.

Check

When no debt is open, run node .agents/aidd/aidd.mjs run layers and node .agents/aidd/aidd.mjs run crap. For a red project check, have the Craftsman execute scan-quality for that project and mode only: layers → medium, crap → low. Then select again. Never scan a green check.

Stop

Select again while debt remains, also after a scan. Stop after five shipped specs or when a spec ships with a failure recorded as debt. Also stop when all project checks are green or a scan records nothing. A request that names one item gets only its repair. When you stop, return the summary of debt list.

The result is each selected debt item repaired, and the debt register that remains.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.