/al-agent-harness:definition-of-donefrom al-agent-harness
Mechanically checks every line of DEFINITION-OF-DONE.md with command/tool evidence, reporting done or not done. Use before PRs, after agent handoffs, or when asked 'is it done?'.
Ships in al-agent-harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run every line of the project's DEFINITION-OF-DONE.md (none in the project: the plugin's
templates/DEFINITION-OF-DONE.md, path given at session start) and show the evidence. A line without evidence is
red. You report; you do not fix (fixing is the al-coder agent's job or the developer's).
/done, "is it done?", "ready for a PR?".al-coder agent hands off, and again after every fix.BASE = the base the user gives, else git merge-base HEAD main.git diff --name-only $BASE plus git ls-files --others --exclude-standard.specs/*.md among the changed files. None or
several: D5 is red and says so..al, excluding *.good.al / *.bad.al.Follow al-build-validation on app/ then test/. Green = zero errors in both. Paste its
report line.
^\s*(table|tableextension|page|pageextension|codeunit|report|reportextension|enum|enumextension|query|xmlport|permissionset|permissionsetextension)\s+(\d+)
and field lines ^\s*field\((\d+); that are added since BASE
(git diff $BASE -- <file> for tracked files, the whole file for untracked ones).## Reserved IDs.idRanges of the app.json of the app it lives in.grep -rniE "^\s*<type>\s+<id>\b" <app>/.Evidence: a table with ID, type, file, reserved yes/no, in range yes/no.
grep -niE "\b(Error|Message|Confirm)\s*\(\s*(StrSubstNo\s*\(\s*)?'" <changed AL files>
Zero hits = green. Every hit is listed as file:line.
Every changed file must start with app/ or test/, or be the spec itself, or
specs/README.md (the spec index). List every other path. (Build output and .alpackages/ are git-ignored and never show up.)
The spec file exists, its frontmatter has status: implemented, ## Open questions is empty
(or "none"), and ## Reserved IDs has rows when D2 found new declarations.
Only when changed AL in app/ declares a codeunit, or adds a procedure or event subscriber to
one. Then: a changed file in test/ with Subtype = Test and [Test] methods, and every test
name from the spec's ## Tests table appears as a procedure there. Not applicable = green,
with the reason.
Follow the company-rules skill in checking mode on the changed AL. Every rule file in
rules/ gets its own line: PASS, FAIL or N/A. Any FAIL makes D7 red. A rule added a minute
ago shows up here without any other change.
.al file
(for example the final GREEN of the al-sdd agent) counts: quote its result.app/ then test/ to the sandbox
in .vscode/launch.json (al_publish), then run the codeunit with the first runner the
session exposes: the built-in runTests tool (VS Code), al_run_tests (AL MCP server),
or al runtests <id> --project test --environmentname <name> --environmenttype Sandbox.## Tests ran and passed. A test that did not run
is red, not skipped.No sandbox configured or no runner: D8 is red with the reason. Never mark it green on a build alone.
Definition of Done - specs/<feature>.md base <short sha> files <n>
[x] D1 build green app 0 errors / test 0 errors (al_build)
[x] D2 IDs reserved 5 of 5 in Reserved IDs, all in range, no duplicates
[ ] D3 no literal UI text app/src/DIRCarrierCheck.Codeunit.al:14 Error('No carrier')
[x] D4 scope 9 files, all under app/ test/ specs/preferred-carrier.md
[x] D5 spec implemented, 0 open questions
[x] D6 tests DIRCarrierTests.Codeunit.al: 3 of 3 spec tests present
[x] D7 company rules 5 rules: 4 PASS, 1 N/A
PASS tableextension-pte-suffix DIRCustomer.TableExt.al:5
...
[x] D8 tests ran 3 of 3 passed, al_run_tests on codeunit 80100 after publish
Verdict: NOT DONE (1 red: D3)
Every line carries its evidence. The verdict is one word, DONE or NOT DONE, and lists the red lines. Nothing is "mostly done".
al-build-validation - D1.al-object-id-assignment - fills the ## Reserved IDs table D2 compares against.company-rules - D7.al-reviewer agent - the judgment calls this checklist deliberately leaves out.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/al-build-validationBuild, diagnose and fix AL code until the build is green. Use when: you created or changed any .al file or app.json, before saying a task is done, before a review or a PR, and when the user asks "does it compile". Provides the build -> diagnostics -> fix -> rebuild loop and a fixed report. Code is not finished until this is green. Does not run tests./al-knowledgeFind sourced Business Central / AL guidance instead of answering from memory. Use when: asked "how should I ..." about AL or BC, choosing a pattern (events, error handling, labels, permissions, performance, upgrade, testing), checking what an object, field, event or procedure is or does in this BC version, finding the base-app event to subscribe to, asking what changed between BC versions, or reviewing AL against best practice. Routes to the BC Observatory plugin, BCQuality or the symbols, and cites the source./al-object-id-assignmentReserve object, field and enum-value IDs with AL Object ID Ninja BEFORE writing the AL artifact, and release IDs that end up unused. Use when: creating any new AL object (table, tableextension, page, pageextension, codeunit, report, enum, enumextension, query, xmlport, permissionset, ...), adding a field through a tableextension, adding an enum value through an enumextension, or deleting/reverting an object whose ID you reserved. Never pick an ID yourself./chat-exportExport an agent session and turn it into a short diagnose report for whoever maintains the harness: which skills, agents and MCP servers were available versus actually used, which tools failed, where the agent looped. Use when: "export this chat", "why did it not use the skill", "send this session to the devlead", the developer says the tooling (not the code) is failing them. Never runs unasked./company-rulesLoad and apply the company AL rules in rules/ as mandatory constraints, and report PASS / FAIL per rule. Use BEFORE writing or designing any AL code, when reviewing AL, and for /done line D7. Enumerates the folder every time: a new rule file applies without editing this skill.npx claudepluginhub waldo1001/directionsemea.alagentharness --plugin al-agent-harnessOther plugins' skills for the same job