agentleFS
adelrodriguezadelrodriguez/skills/skills/next-task/SKILL.md

next-task

Skill1 starsChanged 19 days agoMITView on GitHub

Use when the user asks what's next, or after a PR merges.

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use build-course, build-language-packs and 7 more.

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.
  • jabbott-iiiSkill

    build-course

    Build a complete course from a short description: syllabus, objectives, Markdown readings, interactive Jupyter labs, LaTeX problem sets, exams, and answer keys.

    Also in 3 projects that use this

  • jabbott-iiiSkill

    build-language-packs

    Translate an app's user-facing text into Mandarin Chinese, Hindi, Spanish, Arabic, French, Bengali, Portuguese, Indonesian, and Urdu, as checked language packs.

    Also in 3 projects that use this

  • paulocsbSkill

    security-sweep

    Comprehensive security audit of the app: RLS coverage, leaked secrets, auth flows, OWASP-style checks. Use periodically (before big releases, before onboarding many new friends, or after sensitive changes to policies/auth).

    Also in 3 projects that use this

  • adrianrosarioprSkill

    simplify-code

    Simplifies complex code to its most minimal form while retaining all functionality. Detects language, identifies anti-patterns and bloat, applies best practices. Use when code feels verbose, over-engineered, or needs cleanup.

    Also in 3 projects that use this

  • +5 more from jabbott-iii

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the repository's tracker and recommend the one unblocked item to work on next.

    line 8
  2. Distinctive:

    Check the repository's AGENTS.md and its issue-tracker documentation for where work is tracked: GitHub issues, a GitHub project, or Linear.

    line 12
  3. Distinctive:

    When the user names a tracker issue, a milestone, or a label, limit the candidates to it.

    line 14
  4. Very specific:

    Read the open items in the tracker, the open PRs, and the last 20 merged PRs.

    line 20
  5. Distinctive:

    When the user asked you to pick and start, start the recommended item.

    line 57

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

Pick the next task

Read the repository's tracker and recommend the one unblocked item to work on next. A task is unblocked when nothing it depends on is still open and nobody is already working on it.

Find the tracker

Check the repository's AGENTS.md and its issue-tracker documentation for where work is tracked: GitHub issues, a GitHub project, or Linear. When neither names a tracker, use the repository's GitHub issues.

When the user names a tracker issue, a milestone, or a label, limit the candidates to it.

The step is done when you know which tracker to read and what limits the candidates.

Read the current state

Read the open items in the tracker, the open PRs, and the last 20 merged PRs. Read each PR's closingIssuesReferences to see which items it closes.

For each candidate, read its blocked-by dependencies:

gh api repos/<owner>/<repo>/issues/<number>/dependencies/blocked_by --jq '.[] | {number, state}'

The step is done when you have the open items, the open PRs, and the recent merges.

Rule out what is not ready

Drop an item when any of these is true:

  • An open PR already closes it, or its branch name refers to it.
  • It has an open blocked-by dependency, or its tracker orders it after an open sibling.
  • Someone other than the user is assigned to it.
  • It is labeled as needing triage, a decision, or more information.
  • A recent merge already did the work. Check the current source before you treat it as open.

The step is done when every candidate is kept or dropped with a reason.

Rank the candidates

Rank what remains, in this order:

  1. The item the last merged PR unblocked, or the next sibling in the same tracker.
  2. Higher priority, from the tracker's priority field or labels.
  3. Items that unblock the most other items.
  4. Smaller items, when the above tie.

The step is done when the candidates are in one ranked list.

Recommend one

Recommend the top item, with one sentence on why it is next and what it unblocks. List the next two as alternatives, one line each.

When the user asked you to pick and start, start the recommended item. Otherwise stop after the recommendation.

The step is done when one item is recommended, or the work on it has started.

Check the pick

  • The recommended item has no open PR and no open blocked-by dependency.
  • The current source shows the work is not already done.
  • The reason names what the item unblocks or why it outranks the alternatives.

Return the result

If you could not read a source, such as the tracker, the open PRs, or the blocked-by dependencies, start with one line that names it, because the recommended item may be blocked. Return the recommended item as a link with its one-sentence reason, then the two alternatives. When nothing is unblocked, say so, and name the item that blocks the most others.

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.