agentleFS
jabbott-iiijabbott-iii/Doctrina/skills/next-task/SKILL.md

next-task

Skill5 starsChanged 3 days agoMITView on GitHub

Pick the next unblocked task from the roadmap (or the task ID given) and carry it through the project's definition of done, leaving the work ready for the user to review.

14 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If a task ID was given, use it.

    line 19
  2. Distinctive:

    Check the task's gates before you write any code that relies on them:

    line 25
  3. Very specific:

    Decide first: ask each question the line names, unless the Decision log already records the answer.

    line 26
  4. Very specific:

    Read the documents that the Agent guide lists for the areas the task touches, starting with the spec sections its Do lines point to.

    line 41
  5. Distinctive:

    Read the existing code in those areas before you write new code, and follow its patterns and naming.

    line 43
  6. Distinctive:

    If the spec and the code disagree, or the spec is ambiguous in a way that would change a public API, a stored or file format, a protocol, …

    line 45
  7. Very specific:

    Do exactly what the task's Do lines and Accept criteria require, and nothing else: no refactors, renames, or reformatting of code the task …

    line 51
  8. Distinctive:

    A new third-party dependency?: Stop. Follow the project's dependency policy, and don't add it until the user approves.

    line 53
  9. Very specific:

    Write the tests the Accept criteria call for, beside the code.

    line 60
  10. Distinctive:

    If the change spreads well beyond the areas the task names (more than about three modules or packages), pause and tell the user the task …

    line 62
  11. Very specific:

    Run every command in the task's Verify line, then the command that runs every check, as the

    line 67
  12. Distinctive:

    Do everything you can here.

    line 73
  13. Distinctive:

    Leave the box unticked.

    line 74
  14. Very specific:

    Add an indented ⏳ needs <environment>: <the exact check that remains> line under the task.

    line 75
  15. Very specific:

    Add brief, indented Note: lines under the task where they help a later reader: pinned versions, measured numbers, seeds, conventions …

    line 82
  16. Distinctive:

    Update the spec wherever the change altered behavior or design.

    line 85
  17. Distinctive:

    If you edited any of the Checked documents, run their checks.

    line 89
  18. Very specific:

    Follow the Git access level in commits.md.

    line 93

“Common” is measured: kept by at least 6 in 10 of the 11 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

Work the next roadmap task

Requested task: $ARGUMENTS (empty means "pick the next unblocked task").

This skill works on a roadmap kept as roadmap-and-docs.md describes. Bold names such as Definition of done are values from that rule's "Project details", and Git access comes from commits.md. If the repository hasn't adopted those rules, say so and stop.

1. Choose the task

  1. Open the roadmap (roadmap.md in the Docs folder).
  2. If a task ID was given, use it. If any task in its Depends line isn't ticked, stop and tell the user which ones block it.
  3. Otherwise, take the first unticked task whose Depends tasks are all ticked.
    • Skip a task whose remaining work is marked ⏳ needs <environment> when this session can't provide that environment (see the Environments).
    • Tell the user which tasks you skipped, and why.
  4. Check the task's gates before you write any code that relies on them:

    • Decide first: ask each question the line names, unless the Decision log already records the answer. Lay out the options with their costs, and recommend one.
    • A Proposed decision record the task depends on: show its decision in two or three lines, and ask the user to accept, change, or reject it.
    • An unfinished experiment or open decision the task waits on: the task stays blocked until it is done. Say what it waits on.

    Record each answer as roadmap-and-docs.md describes, before writing code: accept a record by changing only its Status line, or write a new record for a changed decision. If the user isn't there to answer, stop after the reading in step 2 and say what is waiting on them.

  5. Tell the user in one or two sentences which task you're starting and how you plan to approach it. Then make a task list whose last item is "Verify and report".

2. Load the context, and only the context you need

  • Read the documents that the Agent guide lists for the areas the task touches, starting with the spec sections its Do lines point to.
  • Read the existing code in those areas before you write new code, and follow its patterns and naming. The language and platform rules for the files you touch load on their own; follow them.
  • If the spec and the code disagree, or the spec is ambiguous in a way that would change a public API, a stored or file format, a protocol, or which parts may depend on which: stop, describe the conflict, propose the safest option, and ask.

3. Make the smallest complete change

  • Do exactly what the task's Do lines and Accept criteria require, and nothing else: no refactors, renames, or reformatting of code the task doesn't touch.
  • A new third-party dependency? Stop. Follow the project's dependency policy, and don't add it until the user approves.
  • A kind of change the project has a skill for (a dependency evaluation, a decision record, a format change)? Read that skill's SKILL.md and follow its steps. A skill only the user can start can still be read and followed.
  • A design decision changed? Record it as roadmap-and-docs.md describes, as Proposed unless the user decided it in this conversation, and update every document that states it.
  • Write the tests the Accept criteria call for, beside the code. For a bug, write the failing test first.
  • If the change spreads well beyond the areas the task names (more than about three modules or packages), pause and tell the user the task may be scoped wrong.

4. Verify honestly

  • Run every command in the task's Verify line, then the command that runs every check, as the Definition of done names it.
  • Fix a failure by fixing the code. Never weaken a lint, delete or skip a test, loosen an expectation or a tolerance, raise a limit, or accept new golden or snapshot output to make a check pass, unless the user explicitly agrees.
  • For a criterion that needs another environment, real hardware, or a person to watch:
    1. Do everything you can here.
    2. Leave the box unticked.
    3. Add an indented ⏳ needs <environment>: <the exact check that remains> line under the task.

5. Update the roadmap and the documents

  • Tick the box only if every Accept criterion is met and every Verify command ran and passed in this session.
  • Add brief, indented Note: lines under the task where they help a later reader: pinned versions, measured numbers, seeds, conventions chosen, and anything left for later. Put a note meant for a later task under that task, as Note (from M2.3): ….
  • Update the spec wherever the change altered behavior or design.
  • Once the box is ticked, bring the Feature list and the Status locations up to date as roadmap-and-docs.md describes. Then run the Feature list's check again, because the full check in step 4 ran before the tick.
  • If you edited any of the Checked documents, run their checks.

6. Commit only as the project allows

Follow the Git access level in commits.md. Unless the user asked for a commit in this conversation and that level allows it, leave every change uncommitted, and never amend, rebase, tag, or push. Either way, end the report with a copy-ready commit message, as commits.md describes.

7. Report

End with a summary that contains:

  • Task: its ID and title, and whether its box is now ticked.
  • Decisions: each question you asked, the user's answer, and where you recorded it.
  • Changes: what changed, and the files affected.
  • Validation: each command you ran, with its real result.
  • Not run: each check that didn't run, and why, including every ⏳ line.
  • Assumptions you made.
  • Open issues and risks that remain.
  • Next: the next unblocked task's ID.
  • Commit message: in a text block, as commits.md describes, with no attribution lines.

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.