agentleFS
kirubaharan181kirubaharan181/sdlc-agentic-skills/skills/cross-cutting/definition-of-done/SKILL.md

definition-of-done

Skill1 starsChanged 19 days agoMITView on GitHub

Use when work is about to be called done: sets completion criteria and closes on evidence. Do NOT use to plan or do the work.

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tdd.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GoogleSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No external API keys, paid services or network access are required.

    line 29
  2. Distinctive:

    Check acceptance, tests, security/privacy, operations, documentation and ownership appropriate to task.

    line 50

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Task-specific completion criteria

Purpose

Makes completion mean accepted behavior with evidence, not finished activity. It selects the completion profile for the task (code, API, database, infrastructure, security fix, release, incident or documentation), checks the criteria, records exceptions with owners, and refuses to close work with unowned open risk.

When to Use

  • A task is about to be reported done.
  • A new task needs its completion criteria agreed up front.
  • Work is partly done and the remaining gap must be stated.

When NOT to Use

  • Planning or doing the work: use the stage skill.
  • Judging the quality of evidence in depth: use evidence-quality-gates.
  • Approving release: use release-deployment.

Prerequisites and Requirements

  • The task, its acceptance criteria and its owner.
  • Access to the evidence the work produced.
  • Templates in templates/definition-of-done/ for the profile.
  • No external API keys, paid services or network access are required; work uses files and tools already approved in the repository.

Inputs and Outputs

Required inputs:

  • task description
  • acceptance criteria
  • evidence produced

Optional inputs:

  • risk class
  • waivers
  • approver names

Outputs and deliverables:

  • completion profile chosen with reason
  • checklist result per criterion (PASS, FAIL, WAIVED, BLOCKED)
  • list of open items with owners
  • closure statement or a not-done statement

Procedure

  1. Select completion profile for code, API, data, infrastructure, security, release, incident or documentation.
  2. Check acceptance, tests, security/privacy, operations, documentation and ownership appropriate to task.
  3. Record evidence and limitations; verify unresolved risks have explicit owners and disposition.
  4. Close only when required approvals and handoffs are complete.

Shared rules (evidence, approvals, failure, handoff): references/CORE_PROCEDURE.md.

Decision Rules

SituationAction
Criterion has no evidenceMark it BLOCKED, not PASS.
Criterion waivedRecord reason, owner, expiry and approver.
Open risk without ownerDo not close; assign an owner or accept it explicitly.
Work is partly completeReport what is done, what is not, and the next owner; do not call it done.
Task spans profiles (e.g. API and database)Apply both profiles and merge their criteria.

Quality Gates

  • Each acceptance criterion has a result and evidence reference
  • Tests, security, operations and documentation are checked as the profile requires
  • Waivers have owner and expiry
  • Required approvals and handoffs are complete

Examples

Illustrative only: these show expected behavior and were not executed against a real project.

Example 1: Close a bug fix

Request: Is the discount bug fix done?
Context: Fix merged, regression test added, not yet released.
Agent behavior: Apply the bug-fix profile: test fails before and passes after, review done, release pending.
Output: Not done: release and verification in production are open; owner assigned.
Acceptance: Closure is withheld until verification evidence exists.

Example 2: Select a profile

Request: Define done for the new reporting API.
Context: New endpoint and a table.
Agent behavior: Combine the API and database-change profiles and list criteria for contract, tests, migration and rollback.
Output: Merged checklist with evidence required for each line.
Acceptance: No criterion is missing for either profile.

Example 3: Handle a waiver

Request: Accessibility check could not be run before launch.
Context: Launch date fixed.
Agent behavior: Record a WAIVED result with owner, reason and expiry, and add a follow-up.
Output: Waiver record and follow-up task.
Acceptance: Waiver has a named approver and an expiry date.

Limitations

  • Judges completeness against stated criteria; it cannot know criteria nobody wrote.
  • Cannot verify evidence authenticity: that is evidence-quality-gates.
  • A human closes the work; it only reports readiness.

Troubleshooting

ErrorCauseResolution
Acceptance criteria missingTask started without themDraft criteria with the owner before judging completion.
Evidence is a claim onlyNo artifact or command outputMark BLOCKED and request the record.
Profile unclearTask type ambiguousAsk the owner or apply the stricter profile.

Tools

  • task acceptance checklist
  • test/security evidence
  • release/operational handoff
  • risk and waiver register

Stages covered

None. This is a cross-cutting skill applied alongside stage skills.

Handoffs

Hands to:

  • evidence-quality-gates: evidence sets that need deeper evaluation
  • release-deployment: completion statement for release readiness

Receives from:

  • master-orchestration: task completion check

Contract: references/HANDOFF_CONTRACT.md.

Related

  • Selection and handoff guidance: the skill selection guide in the repository documentation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.