An Agent Skill for the last mile of a research or figure-production project: turning a "final execution" specification into files that are actually written, checked and synchronized.
This skill is for the stage where another inventory or status report would be a failure. It encodes a simple contract: recover existing valid work, solve blockers, compute what is missing, render and inspect, overwrite the canonical file atomically, synchronize its records, and report measured completion.
It does not supply data, compute or domain judgment. It supplies the discipline that prevents a finished-looking package from being mistaken for a finished one.
Clone into the skill directory your agent reads:
git clone https://github.com/mingeric/final-submission-executor.git
# place the resulting directory where your client expects project skillsPython 3.9+ standard library is sufficient.
python3 scripts/check_skill.py .
python3 -m unittest discover -s tests -v
python3 scripts/validate_final_submission.py \
--workspace path/to/project \
--ledger path/to/project/TASK_LEDGER.tsv \
--manifest path/to/project/CANONICAL_MANIFEST.tsvThe validator prints a JSON report and exits non-zero if any canonical file is missing, does not decode, has the wrong colour mode, dimensions or DPI, fails its recorded SHA256, or if the ledger has an unexamined pending task. A documented BLOCKED row passes; an unexplained one does not.
- Read the specification once and extract authoritative paths, write scope, deliverable contract and acceptance criteria.
- Copy
templates/TASK_LEDGER.tsvinto the project and create one row per independently verifiable task. - Resolve blockers in order: environment, paths, ownership, readability, stale staging output.
- Use only traceable sources; preserve genuine negative results; prevent leakage and pseudoreplication.
- Render, inspect the whole figure, inspect dense crops, repair and rerender.
- Commit each validated replacement on its own: backup, atomic swap, recompute hashes, update manifest/registry/legend/manuscript.
- Remove only verified redundancy inside the authorized tree.
- Fill
templates/FINAL_ACCEPTANCE.mdfrom measured disk state.
See references/ for the detailed contract, ledger rules, computation gates, visual QA, overwrite protocol and final reporting format.
| Path | Purpose |
|---|---|
SKILL.md |
Main instructions and non-negotiable rules |
references/01–06 |
Execution contract, blockers, science, visual QA, overwrite, acceptance |
scripts/check_skill.py |
Package structure and frontmatter check |
scripts/validate_final_submission.py |
Evidence validator for a project workspace |
templates/ |
Task ledger, canonical manifest, acceptance report |
tests/ |
Offline tests using synthetic fixtures only |
validate_final_submission.py checks evidence fields, not scientific truth. It cannot decide whether an analysis is well designed or whether a figure tells the truth about the data. That judgment stays with the operator, and an unresolved evidence gap must be reported rather than filled with a plausible result.
MIT. See LICENSE.