---
name: done
description: Final checklist before declaring any task complete. Auto-invoke before saying "done", "ready", "complete", or asking to commit/push.
user-invocable: true
title: done
canonical_url: https://skilld.dev/gh/fubits1/ronin-skills/done
last_updated: 2026-11-12T04:06:23.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install fubits1/ronin-skills/done`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/done`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/fubits1/ronin-skills/done) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/done`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/done --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/done --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Definition of Done

Complete every gate below, in order, before declaring done. Skipping a gate is how silent regressions ship. Show proof (exit codes, screenshots, measurements), not summaries.

## 0. Aim the check at the failure mode, not a proxy

- Name the exact property the task must prove and the symptom of failure, then pick a check that observes THAT symptom directly. A check that would still pass with the failure present proves nothing.
- A green lint, valid-markdown parse, passing build, autofixer run, row/file count, or mid-flight `ls` measure a different property than content correctness, "on latest version", "bug fixed", or "data landed". Instead observe the real outcome: query the installed version vs upstream; diff actual output against expected; reproduce the user's reported symptom and watch it disappear. Done only if the check would have gone RED on the failure you were asked to prevent.
- **Don't cite a green eval, especially one you wrote, to refuse or skip work.** A test that can't fail is not evidence the work is unneeded; force it RED on the real defect first (delete the code, feed wrong input, or flip the expected value).
- **The acceptance target (threshold, unit, criterion) is itself a fact: read the source that defines it, never invent it** ("under 500 words" when the spec says "500 lines"). Quote it verbatim in your report.
- **A subagent's "PASS" / "all green" is an unverified claim, not proof.** Re-derive it yourself: open the files it judged, diff before/after, or re-run the failing check.
- **Verify in the SETTLED state, never a transient.** A mid-HMR/hydration/extraction/recompile snapshot or a frozen output is not a verdict. Never declare broken OR done from an in-flight snapshot. Wait for the process to finish, then read THAT; if a read looks wrong right after a rebuild-triggering change, wait and read once more before concluding.

## 1. Run validation

- Run the project's full validation chain to exit 0. If the stack ships a validation or browser-verification skill, invoke it and follow every rule.
- Otherwise run lint + tests + typecheck + build (concurrently if supported), fixing every new error in files you touched, test files included.
- Use any per-file lint command (e.g. `lint:file` chaining eslint + typecheck + dead-code) on touched files, not only the full lint.
- Never skip because "the change was small". Small changes break things too.
- CSS-only exception: verify visually in the browser instead of building, but still run lint + typecheck.

## 2. Verify UI in the browser (your job, never the user's)

- Navigate to every affected page via Playwright MCP.
- For behavior changes, reproduce the exact user flow via Playwright; automate multi-step flows: no ad-hoc evaluate with unreliable timeouts.
- For CSS/layout, take BEFORE and AFTER screenshots (location: `frontend:playwright`); visually confirm. Report screenshot paths (Gate 7).

## 3. Re-run flaky suites

- Flaky suites (browser/e2e/MSW) vary between runs. Prefer project cleanup scripts (e.g. `pnpm run test:kill-ports`); otherwise free the test-server port: `lsof -ti :<port>`, then confirm it's the test server (`ps -p <pid> -o comm=`), then, if you did not start it, ask before `kill <pid>` (`agent:dev-server`) (SIGTERM), using `kill -9` only if it stays bound after a short wait. Clear stale caches (e.g. `rm -rf node_modules/.vite node_modules/.cache/storybook`), then run the affected command 3x consecutively.
- Test counts must match exactly (±0) and setup time within ~±30%; any divergence is NOT done. Investigate the flake.
- A green run is evidence only for the exact machine and connection it ran on. If the user's run is red while yours is green, theirs wins. Get their log and conditions and reproduce their failure before claiming anything.

## 4. Run framework autofixers

- If the stack has them (Svelte `mcp__svelte__svelte-autofixer` for `.svelte` / `.svelte.ts` / `.svelte.js`; ruff/black for Python; rustfmt for Rust), run the matching one on every file you touched.

## 5. Remove your own debug instrumentation

- Any debugging instrumentation you added (`console.log`, `dbg!`, `print(...)`, temp constants, commented-out experiments) must be gone. Grep touched files for the markers you added and confirm zero remain. Don't trust memory.
- Delete scratch files you created too. (Background servers: `agent:dev-server`. Screenshot location: `frontend:playwright`.)

## 6. Lint edited CI workflows

- If any `.yml` workflow file was edited, run `pnpx node-actionlint <file>` to exit 0.

## 7. Report with proof

- State what was verified with evidence (exit codes, screenshots, measurements). Not summaries. Proof.
