# Done-Check: Tests, Leftovers & Junk Files

> Stops "done" without evidence: runs the tests and flags debug prints, skipped tests and junk files in one call.

Done-Check: Tests, Leftovers & Junk Files is a free AI agent skill on Agensi by Kushagar garg, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Kushagar garg](https://www.agensi.io/creators/kushagar-garg-1)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/done-check-tests-leftovers-junk-files
- Tags: code-review, testing, python, ci-cd, quality-assurance

## About this skill

Code quality often suffers from "ready to ship" assumptions that ignore side effects. This skill forces a systematic pre-flight check to ensure the work actually meets the original requirements without leaving behind technical debt. It stops the common habit of reporting success before verifying the entire suite or cleaning up the workspace.

### What it does
- **Automated Scanning** Identifies debug prints, breakpoints, and merge conflict markers in the diff.
- **Requirement Mapping** Has the agent re-read the request and point each requirement to a file or test.
- **Environment Cleanup** Detects junk files like `.orig` or scratch files that shouldn't be committed.
- **Test Run** Runs the detected test command and summarizes failures and asserts.
- **CLI Validation** Has the agent run the commands the request mentions and compare the output.

### How it works
1. Run `scripts/verify.py` to scan for leftovers and execute the project's test command.
2. Address every FAIL item in the generated checklist, including skipped tests and junk files.
3. Map every requirement from the original prompt to a line of code or a specific test case.
4. Execute any CLI examples provided in the request to ensure the output matches expected results exactly.

### Frameworks & tools
This tool uses Python 3 standard library scripts for environment-agnostic verification. It integrates with existing test runners like `pytest` or `unittest`.

### Why this beats prompting it yourself
Generic prompts often fail to catch "invisible" issues like `.orig` files or leftover `print()` statements. This skill provides a structured Python-backed checklist that ensures every claim of success is backed by empirical evidence rather than a guess.

### Use cases
- Preventing debug code from reaching production branches.
- Ensuring refactored code doesn't break existing features in the suite.
- Verifying CLI tool outputs against strict formatting requirements.
- Catching `.orig`, backup and scratch files before a commit.

### Known limitations
Requires a local Python 3 environment. Test commands must be provided manually if the project uses non-standard test runners.

Free and open source (Apache-2.0), by the author of [rosetta-js](https://github.com/Dreamstick9/rosetta-js), a terminal coding agent for open-weight models.

## Requires

- Python 3
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Done-Check: Tests, Leftovers & Junk Files skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent 'technical debt' during the delivery phase?

This skill acts as an automated "pre-flight" gatekeeper, scanning your diffs for forgotten debug prints and temporary files while mapping original requirements directly to passing test cases to prevent premature completion reports.

### Which AI agents or development environments are compatible with this skill?

Any agent that supports SKILL.md and can run shell commands, for example Claude Code, Codex CLI, Cursor or Gemini CLI. It needs Python 3 and git.

### What's included in this skill?

The SKILL.md workflow, two Python 3 standard-library scripts (verify.py and test_summary.py), a smoke test that checks them, and the Apache-2.0 license. It's free.

### Can this skill verify that CLI tool outputs match my exact formatting requirements?

Yes. The workflow has the agent run the exact commands the request mentions and compare the output with what was asked. The comparison is done by the agent; the scripts cover tests, leftovers and junk files.

### Does this require complex configuration to start catching debug prints and junk files?

No configuration. verify.py picks the test command itself (pytest or unittest, npm test, go test, cargo test). Pass --test "CMD" only for anything else. It needs a git repository because it scans the diff.

### Are there any specific limitations regarding the types of test runners it supports?

The skill currently requires a local Python 3 environment and performs best with standard test runners; if you use a proprietary or highly non-standard testing tool, you will need to provide the execution command manually.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
