agentleFS
wendevlinwendevlin/agent-skills/skills/work-on-task/SKILL.md

work-on-task

Skill0 starsChanged 30 days agoMITView on GitHub

Workflow for carrying out a coding task in a git repository. Work on a fresh branch named `<agent-name>/<meaningful-name>`, never open a pull request, and finish with an extra self-review round before reporting back. Use whenever asked to implement, fix, change or add something in a repo ("work on this", "implement X", "fix the bug", "add a feature").

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. antithesishq/antithesis-plugin★ 25same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check git status first. If there are uncommitted changes that are not yours, stop and ask what to do with them.

    line 12
  2. Distinctive:

    If you are continuing a task that already has its own branch, stay on that branch instead of creating a new one.

    line 13
  3. Very specific:

    No ticket-only names (claude/task-123) and no vague ones (claude/changes, claude/fix).

    line 19
  4. Distinctive:

    If the branch name already exists, pick a more specific name instead of reusing or overwriting it.

    line 20
  5. Very specific:

    Read the repo's own guidance before changing anything: AGENTS.md, CLAUDE.md, CONTRIBUTING.md, .github/copilot-instructions.md, and the …

    line 24
  6. Distinctive:

    Run the project's checks (tests, linters, type checks, build) for what you touched, and fix what you broke.

    line 26
  7. Distinctive:

    Commit in logical steps with messages that say why, following the repo's commit style.

    line 27
  8. Distinctive:

    Never open, draft or comment on a pull request, and don't push unless the user asks.

    line 31
  9. Distinctive:

    If the user asks for PR text, draft it in the reply for them to copy.

    line 32
  10. Distinctive:

    When the task feels done, do one more full review round before reporting.

    line 36
  11. Distinctive:

    Keep the report short, in this order:

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Work on a Task

Carry the task from a clean start to a reviewed, committed result on its own branch. The user decides what happens to the branch afterwards.

1. Start on a new branch

  • Check git status first. If there are uncommitted changes that are not yours, stop and ask what to do with them; never stash, reset or discard them on your own.
  • If you are continuing a task that already has its own branch, stay on that branch instead of creating a new one.
  • Otherwise branch from the up-to-date default branch, not from whatever happens to be checked out: git fetch origin, then git switch -c <branch> origin/<default>. Find the default with git symbolic-ref refs/remotes/origin/HEAD if unsure; without a remote, branch from the local default branch. If the task builds on another unmerged branch, branch from that one instead and say so.
  • Remember the branch you started from: it is the <base> for the review in section 4.
  • Name the branch <agent-name>/<meaningful-name>:
    • <agent-name> is your own name in lowercase, for example claude, copilot or codex.
    • <meaningful-name> is a short kebab-case summary of the change, starting with a verb where it reads naturally: claude/add-csv-export, copilot/fix-login-redirect, codex/remove-legacy-config.
    • No ticket-only names (claude/task-123) and no vague ones (claude/changes, claude/fix). Add the issue number at the end if there is one: claude/fix-login-redirect-4821.
  • If the branch name already exists, pick a more specific name instead of reusing or overwriting it.

2. Do the work

  • Read the repo's own guidance before changing anything: AGENTS.md, CLAUDE.md, CONTRIBUTING.md, .github/copilot-instructions.md, and the README. Follow its conventions over your defaults.
  • Stay in scope. Note unrelated problems you find for the final report instead of fixing them in the same branch.
  • Run the project's checks (tests, linters, type checks, build) for what you touched, and fix what you broke.
  • Commit in logical steps with messages that say why, following the repo's commit style. Don't leave the work uncommitted.

3. Don't open a pull request

  • Never open, draft or comment on a pull request, and don't push unless the user asks. The user reviews the branch and opens the PR themselves.
  • If the user asks for PR text, draft it in the reply for them to copy.

4. Review your own work

When the task feels done, do one more full review round before reporting. Review the complete change as a reviewer seeing it for the first time, not from memory:

git diff <base>...HEAD
git log --oneline <base>..HEAD

Check for:

  • Correctness: does it do what was asked, including edge cases and error paths?
  • Scope: unrelated edits, drive-by reformatting, files that shouldn't be there.
  • Leftovers: debug output, commented-out code, TODOs you added, temporary files.
  • Tests and docs: new behaviour covered by tests; README, docs and changelogs updated where the repo keeps them.
  • Consistency: naming and structure match the surrounding code.
  • Checks: re-run them on the final state.

Fix what you find in new commits, then review the fixes the same way. Only stop when a round finds nothing worth changing.

5. Report back

Keep the report short, in this order:

  • What changed and why, in a few bullets.
  • Which checks you ran and their results. Say plainly if something failed or was skipped.
  • What the review round found and how you fixed it.
  • Open questions and out-of-scope issues you noticed.
  • That no PR was opened.

End the report with the branch name alone in a text code block, so it is the last thing in the reply and can be copied with one click:

claude/fix-login-redirect-4821

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.