prune-tests
Prune Tests That Do Not Protect Behavior
Redundant and implementation-focused tests increase maintenance without reliably protecting intended behavior. This skill guides test removal and rewrites around observable outcomes.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "prune-tests" from https://skillstore.io/skills/caldoai-prune-tests.md and its manifest at https://skillstore.io/api/skills/caldoai-prune-tests/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "prune-tests". Review a discount test whose expected result repeats the discount calculation.
Expected outcome:
- Decision: Rewrite the assertion rather than delete the test.
- Behavior: A price of 100 with a 20 percent discount should produce 80.
- Reason: An explicit expected result avoids reproducing the same calculation mistake.
Using "prune-tests". Review a cart test that checks the private item array after adding a book.
Expected outcome:
- Decision: Replace the private-state assertion with an observable outcome.
- Proposed assertion: For an initially empty cart, adding one book makes the total equal its price.
- Review note: Confirm that this outcome matches the documented cart behavior.
Security Audit
SafeBoth static findings are false positives caused by Markdown backticks, not shell execution. No evidence found of prompt injection, credential access, or data exfiltration. The skill directs test and production-code deletion, so users should review proposed removals against behavioral requirements.
Risk Factors
⚙️ External commands (2)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/caldoai-prune-tests/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/caldoai-prune-tests?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/caldoai-prune-tests?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/caldoai-prune-tests/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/caldoai-prune-tests.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA · BibTeX · CFF)
APA citation
caldoai. (2026). prune-tests security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/caldoai-prune-tests/audits/1BibTeX citation
@techreport{caldoai-caldoai-prune-tests-2026,
author = {caldoai},
title = {prune-tests security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/caldoai-prune-tests/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "prune-tests security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "caldoai"
date-released: "2026-11-17"
url: "https://skillstore.io/skills/caldoai-prune-tests/audits/1"
identifiers:
- type: other
value: "skillstore:caldoai-prune-tests:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Reduce maintenance after feature removal
Review tests for removed features and distinguish obsolete assertions from remaining behavioral requirements.
Improve assertion quality
Find assertions that repeat implementation logic or inspect private state, then propose behavior-focused replacements.
Review duplicate coverage
Compare overlapping tests and identify removals while checking whether distinct contracts or edge cases remain protected.
Try These Prompts
Review [test file] using prune-tests. List each test, its intended behavior, and whether to keep, rewrite, or remove it without editing files.
Review [test file] for private-state assertions and expected values copied from implementation logic. Rewrite them around documented behavior while preserving meaningful cases.
Compare tests under [path] for duplicate behavioral coverage. Explain equivalent inputs, outcomes, and contracts before proposing removals; keep distinct edge cases.
Apply prune-tests within [path] against [requirements]. Rewrite meaningful assertions, justify deletions, verify production-helper callers, and report test results or unavailable validation.
Best Practices
- Document the intended behavior and remaining coverage before deleting a test.
- Check callers before removing production helpers, and keep changes within the requested scope.
- Run relevant tests after edits and review the diff for lost behavioral or security coverage.
Avoid
- Deleting tests solely because their names, setup, or assertions look similar.
- Assuming negative tests or removed-feature checks cannot protect current requirements.
- Removing production helpers without checking callers outside the tests being pruned.
Frequently Asked Questions
What does prune-tests do?
Which tools are supported?
Does it include a test runner?
Can I limit the review to one directory?
Can it delete production code?
Should I remove every negative or duplicate-looking test?
Developer Details
Author
caldoaiLicense
Unknown
Skillstore revision
r1
Version notice
The author did not declare a version.
Repository
https://github.com/caldoai/skills/tree/bd73b2ea5eb854ab8f0553fb41f77c8786f28f82/skills/prune-testsRef
a444d45970539515f6b14195dd58263f254d75a9
Maintenance freshness
11/17/2026
Usage
0 downloads · 0 views
File structure
📄 SKILL.md