agentleFS
e-dule-dul/opencl-lab/.claude/skills/validate-dod/SKILL.md

validate-dod

Skill0 starsChanged 8 months agoMITView on GitHub

Builds, runs, and validates the implementation against the task's Definition of Done, then fills in the Execution Report.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the task file to extract: build directory, binary name, and every DoD checkbox.

    line 13
  2. Very specific:

    Read the task's ## Relevant Files to locate the module root.

    line 14
  3. Distinctive:

    Run each DoD item that requires execution.

    line 24
  4. Very specific:

    Update the ## Execution Report section of the task file only.

    line 39
  5. Very specific:

    Check each - [ ] DoD checkbox that passed → - [x]

    line 43
  6. Very specific:

    Leave failed checkboxes as - [ ] and append a note explaining the failure

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

DoD Validation Skill

You are executing the Validation phase. Your job is to confirm the implementation works correctly at runtime and record the results. You MUST NOT modify any source files (.cpp, .cl, CMakeLists.txt).

Instructions

1. Read Context

  • Read the task file to extract: build directory, binary name, and every DoD checkbox.
  • Read the task's ## Relevant Files to locate the module root.

2. Build

  • cd into the module directory and run:
    cmake -B build && cmake --build build 2>&1
  • Capture full output. If the build fails, record the error in the Execution Report and stop — do not proceed to runtime checks.

3. Runtime Validation

Run each DoD item that requires execution. For each check:

DoD patternCommand / assertion
Binary runs without arguments./build/<binary> — exit code must be 0
output.bmp producedls -lh output.bmp after run
Timing table printedgrep for the required row labels in stdout
All kernel times non-zerogrep rows, assert values are not 0.000
--help flag works./build/<binary> --help — exit code 0, flags visible
Pixel verification passes silentlyno [ERROR] lines in stdout
GPU env var respectedGPU=<vendor> ./build/<binary> — no crash

Capture stdout and stderr for each run.

4. Fill Execution Report

Update the ## Execution Report section of the task file only. Use FileEdit. Set:

  • **Status:** → COMPLETE (all DoD pass) or FAILED (any DoD fails)
  • **Session:** → today's date (YYYY-MM-DD)
  • ### Validation code block → trimmed stdout of the main run (≤ 40 lines)
  • Check each - [ ] DoD checkbox that passed → - [x]
  • Leave failed checkboxes as - [ ] and append a note explaining the failure

5. Communication Rules

  • Terse. No filler.
  • Report only: Status, which DoD items passed/failed, and the trimmed validation output.

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.