agentleFS
SaehwanParkSaehwanPark/agent-skills-archive/skills/preferred-workflow/SKILL.md

preferred-workflow

Skill1 starsChanged 5 months agoMITView on GitHub

Use when resuming development, implementing a feature, or refactoring in a git repository that needs disciplined context recovery, branch setup, bounded implementation, verification, optional PR review, and push/PR handoff.

  • Commits and pushes

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 14 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    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 repository instructions and inspect the working tree, current branch, relevant source, tests, docs, checkpoints, and open PR context.

    line 13
  2. Distinctive:

    Run proportional tests and checks.

    line 20
  3. Distinctive:

    Commit, push, and open a PR only when the user or task authorizes that handoff.

    line 22
  4. Distinctive:

    Run the review loop when required by the user, repository, or default below.

    line 23
  5. Distinctive:

    Read task-specific guidance for continuations, features, bug fixes, and refactors.

    line 26
  6. Distinctive:

    Do not switch branches over unrelated work or implement on the base branch unless the user explicitly requests it.

    line 35
  7. Distinctive:

    Stop when a dirty tree, checkpoint, or open PR indicates the work belongs elsewhere.

    line 37
  8. Distinctive:

    Treat commits, pushes, PR creation, merges, external comments, and deployments as separate actions governed by user and repository …

    line 41
  9. Distinctive:

    When PR handoff is authorized and implementation checks pass:

    line 44
  10. Distinctive:

    Commit coherent changes using the repository's message style.

    line 46
  11. Distinctive:

    If remote or PR tooling is unavailable, check the expected CLI path, report the exact blocker, and provide the push command and prepared PR …

    line 51
  12. Distinctive:

    Use the repository's review policy when one exists.

    line 56
  13. Distinctive:

    Update existing specifications, architecture notes, changelogs, checkpoint files, or task trackers only when the slice changes the state …

    line 65
  14. Distinctive:

    Stop and report before claiming completion when:

    line 71
  15. Very specific:

    Commit/push/PR status and URL when applicable.

    line 86

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

Preferred Workflow

Move a coherent development slice from repository truth to a verifiable handoff without broadening scope.

Core workflow

  1. Read repository instructions and inspect the working tree, current branch, relevant source, tests, docs, checkpoints, and open PR context.
  2. Classify the task as continuation, feature, bug fix, or behavior-preserving refactor.
  3. Define the smallest useful slice and its observable acceptance criteria.
  4. Confirm or create a working branch from the repository's base branch.
  5. Protect behavior with focused tests or characterization coverage when appropriate.
  6. Implement the complete slice without placeholders or unrelated cleanup.
  7. Run proportional tests and checks; update existing project-state documentation when the change affects it.
  8. Commit, push, and open a PR only when the user or task authorizes that handoff.
  9. Run the review loop when required by the user, repository, or default below.
  10. Report branch, changes, validation, handoff, review disposition, and remaining risks.

Read task-specific guidance for continuations, features, bug fixes, and refactors.

Branch safety

  • Record the base branch, normally the remote default.
  • Reuse a non-default branch only when it matches the active task or PR.
  • Otherwise update the clean base branch and create a short-lived branch with an appropriate feat/, fix/, or refactor/ prefix.
  • Do not switch branches over unrelated work or implement on the base branch unless the user explicitly requests it.
  • Stop when a dirty tree, checkpoint, or open PR indicates the work belongs elsewhere.

Approval gates and handoff

Treat commits, pushes, PR creation, merges, external comments, and deployments as separate actions governed by user and repository authorization.

When PR handoff is authorized and implementation checks pass:

  1. Commit coherent changes using the repository's message style.
  2. Push the branch with git push -u origin HEAD.
  3. Open a PR against the recorded base branch with a concise summary and test plan.
  4. Return the PR URL.

If remote or PR tooling is unavailable, check the expected CLI path, report the exact blocker, and provide the push command and prepared PR body. Do not claim that a PR exists.

Review policy

Use the repository's review policy when one exists. Otherwise, after opening a PR, default to the independent review procedure in the review loop.

Skip that procedure when the user explicitly says review is unnecessary or requests only local implementation. Record the opt-out in the final handoff; still run implementation tests and a basic author verification of scope and diff integrity.

Documentation

Update existing specifications, architecture notes, changelogs, checkpoint files, or task trackers only when the slice changes the state they describe. Do not create a heavyweight documentation system solely to satisfy this workflow.

Stop conditions

Stop and report before claiming completion when:

  • Branch identity conflicts with a checkpoint or open PR.
  • The required change exceeds the agreed slice or changes a public contract unexpectedly.
  • Relevant tests cannot be run or expose unrelated failures that block validation.
  • An authorized PR handoff has no PR URL and tooling was not genuinely unavailable.
  • A required review has unresolved blocking findings.

Completion report

Include:

  • Task type, selected slice, base branch, and working branch.
  • Files or behaviors changed and relevant project-state updates.
  • Tests and checks, including failures.
  • Commit/push/PR status and URL when applicable.
  • Review pass count or the explicit reason review was skipped.
  • Deviations, deferred work, and unresolved risks.

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.