No slash command · from aasystem
Remove or rewrite tests that guard no intended behavior, and prove nothing still needed lost its coverage. Use when explicitly asked to prune or clean up a test suite, or when Refactoring assigns test pruning.
Ships in aasystem. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before starting, read the execution contract and the approved-principle index, unless already in context.
Prune within the caller's scope or the supplied path; with neither, ask for the scope before editing. Verification clarity defines a needed test. This skill owns the decision for each test, the edits and the proof.
Name the behavior each test guards, then:
Keep an absence test a current contract requires, such as a removed endpoint returning 404; rewrite it against public behavior instead of a file check. Tests of one rule at different entry points, such as unit and API, are not duplicates. Keep type-guarantee tests at runtime boundaries such as parsed input or untyped callers. Prune only passing tests: classify a failing test as a defect or a stale expectation first, and report a defect to the caller instead of deleting the test.
Return deletions, rewrites and kept exceptions with reasons, the before and after runs, the regression checks and their limits, and any production code removed. The caller owns independent verification and delivery; when invoked directly, obtain it under independent implementation verification.
--- a/pricing.test.ts
+++ b/pricing.test.ts
@@ rewritten: the expected value repeated the code's logic @@
test("applies the discount", () => {
- const price = 100;
- expect(applyDiscount(price, 0.2)).toBe(price - price * 0.2);
+ expect(applyDiscount(100, 0.2)).toBe(80);
});
--- a/cart.test.ts
+++ b/cart.test.ts
@@ rewritten against what callers see: it asserted private state @@
test("adds an item to the cart", () => {
const cart = new Cart();
cart.add(book);
- expect(cart._items.length).toBe(1);
+ expect(cart.total()).toBe(book.price);
});
@@ deleted: checkout.test.ts already guards the same total through the same entry point @@
-test("total includes tax", () => {
- expect(cartTotal([book], { tax: 0.1 })).toBe(11);
-});
--- a/export.test.ts
+++ b/export.test.ts
@@ deleted: no current contract requires the old file to stay absent @@
-test("legacy exporter is gone", () => {
- expect(existsSync("src/export/legacy.ts")).toBe(false);
-});
--- a/session.test.ts
+++ b/session.test.ts
@@ deleted, with the production code that only existed for it @@
-test("clears the cache", () => {
- _resetCacheForTests();
- expect(_getCacheSize()).toBe(0);
-});
--- a/session.ts
+++ b/session.ts
@@ @@
-export function _resetCacheForTests() { cache.clear(); }
-export function _getCacheSize() { return cache.size; }
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
aasystem@ahmadabdalla-plugins is listed by ahmadabdalla/plugins — review the source before installing
npx claudepluginhub ahmadabdalla/plugins --plugin aasystem31 skills in this plugin
/10xAssess a decision or design under plausible growth, exposing its first constraints, tradeoffs, verification needs, and reconsideration triggers. Use within domain design or as a bounded independent challenge./architectDesign caller usage, types, module boundaries and a verification plan without building. Use solution first if the direction is still open./arenaHave separate agents attempt the same design or artifact, judge them, and combine the best into one checked result. Use when an early wrong shape would be costly to undo.