findlee/mobile-apps-production-skills/clean-ai-code-artifacts
Claude Code and agent skill by findlee/mobile-apps-production-skills
- community
Checking that the SKILL.md file is still in the repository.
Review and remove accidental residue from AI-assisted code changes, including assistant-facing prose, explicit AI-generation comments, tutorial narration, temporary scaffolding, fake placeholders, debug output, and redundant comments that merely restate code. Use when asked to clean AI markers, generated-code noise, copied chat text, or suspicious boilerplate after implementation or before review. Preserve licenses, copyright, required attribution, generated-file warnings, code-generation metad…
Install
npx vskill@latest install findlee/mobile-apps-production-skills/clean-ai-code-artifactsSKILL.md
The same SKILL.md was published earlier as findlee/mobile-apps-production-skills/clean-ai-code-artifacts.
Clean AI Code Artifacts
Remove accidental generation residue without erasing required provenance or changing behavior. Treat every candidate as a code-quality decision, not as proof that AI wrote the code.
Establish the contract
- Identify the files and change set in scope. Prefer the current task diff over a repository-wide cleanup.
- Determine whether the user requested review only or authorized edits.
- Record the required checks, repository conventions, generated-file boundaries, and protected notices.
- Separate residue cleanup from behavior changes and broad refactoring.
Do not claim to detect AI authorship from style. Inspect only observable artifacts and their value to maintainers.
Preserve a safety baseline
- Inspect repository instructions, licenses, generators, lint configuration, and nearby conventions.
- Run the smallest relevant tests, type checks, or lint checks before editing when practical.
- Avoid hand-editing generated files when a source template or generator owns them.
- Preserve unrelated user changes and record anything that cannot be verified.
Classify every candidate
Read artifact-classification.md before a substantial cleanup. Classify each candidate as:
- Remove - accidental assistant prose, explicit AI chatter, temporary debug residue, valueless narration, or abandoned scaffolding;
- Rewrite - a useful idea expressed as verbose tutorial commentary or an unclear placeholder;
- Preserve - required provenance, tooling metadata, rationale, contract documentation, or a useful maintenance warning;
- Investigate - ownership or purpose is uncertain.
Never delete an Investigate item merely because it resembles generated text.
Clean the smallest coherent scope
- Delete unmistakable assistant-facing text and temporary generation residue.
- Replace comments that narrate syntax with names or structure that make the code self-explanatory.
- Keep comments that explain constraints, intent, trade-offs, non-obvious behavior, security, compatibility, or external contracts.
- Remove placeholder branches, fake data, debug logging, unused imports, or dead helpers only after confirming they are not required by tests, examples, build tooling, or incomplete authorized work.
- Avoid broad formatting, speculative redesign, or unrelated cleanup.
Use $refactor-safely when cleanup requires structural changes. Use $qa-write-maintainable-tests when the residue is concentrated in tests. Read protected-provenance.md whenever licenses, generated files, external code, attribution, or compliance may be involved.
Verify behavior and provenance
- Inspect the final diff for accidental semantic changes and lost notices.
- Run formatting, lint, type checks, and the smallest relevant tests, widening verification with risk.
- Search the changed files again for the targeted residue.
- Confirm that protected comments, generated-file boundaries, and attribution remain intact.
- Report checks not run and residual uncertainty instead of claiming a clean result without evidence.
Deliver the result
Report:
- scope reviewed;
- artifacts removed, rewritten, preserved, and left for investigation;
- any structural simplification performed through a separate refactoring step;
- verification commands and observed results;
- remaining risks or decisions.
Do not produce an "AI-free" certification. State only what observable residue was reviewed and changed.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/clean-ai-code-artifacts/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/findlee/mobile-apps-production-skills/clean-ai-code-artifacts)