agentleFS
jhonatan-oliveiradevjhonatan-oliveiradev/agent-skills/skills/managing-implementation-slices/SKILL.md

managing-implementation-slices

Skill1 starsChanged 3 months agoMITView on GitHub

Use when an implementation is growing across multiple concerns, branches, or pull requests and needs to be decomposed into small changes that can be verified and integrated safely.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep engineering work in small batches that can be understood, reviewed, verified, and integrated without waiting for the entire initiative …

    line 8
  2. Distinctive:

    When possible, cut through the smallest set of layers needed to demonstrate a useful behavior.

    line 22
  3. Distinctive:

    Use compatibility techniques when needed:

    line 29
  4. Distinctive:

    Do not split so aggressively that reviewers cannot understand the purpose or validate the slice in isolation.

    line 43
  5. Distinctive:

    If slice B depends on slice A, say so.

    line 46
  6. Distinctive:

    When new work appears, classify it:

    line 49
  7. Distinctive:

    Do not expand a slice because the nearby code “could also be cleaned up.”

    line 54
  8. Distinctive:

    Before requesting review, confirm:

    line 57

≈ “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

Managing Implementation Slices

Keep engineering work in small batches that can be understood, reviewed, verified, and integrated without waiting for the entire initiative to finish.

Define a slice

A good implementation slice:

  • serves one coherent purpose;
  • leaves the repository in a working state after it lands;
  • includes the tests or verification needed for its behavior;
  • has a reviewable diff with minimal unrelated churn;
  • makes dependencies on earlier or later slices explicit;
  • has a clear rollback or containment story when the change is risky.

Small means conceptually focused, not an arbitrary line count.

Prefer vertical progress

When possible, cut through the smallest set of layers needed to demonstrate a useful behavior. A vertical slice is usually easier to validate than separate “frontend”, “backend”, and “tests” branches that are individually incomplete.

Horizontal enabling slices are appropriate when they create a stable seam, compatibility layer, schema expansion, test harness, or shared contract that later work can safely build on.

Keep changes independently safe

Each merged slice should preserve system correctness. Do not rely on a later pull request to repair a deliberately broken intermediate state.

Use compatibility techniques when needed:

  • additive schema or contract changes before removals;
  • feature flags or dormant code paths for incomplete rollout;
  • adapters/seams before replacing implementations;
  • tests before high-risk refactors when behavior is not already protected.

Separate concerns that review differently

Split work when combining concerns makes evidence harder to interpret. Common candidates:

  • mechanical refactor vs. behavior change;
  • dependency upgrade vs. feature adoption;
  • schema expansion vs. data migration vs. contract cleanup;
  • generated output vs. hand-authored logic;
  • infrastructure enablement vs. product behavior.

Do not split so aggressively that reviewers cannot understand the purpose or validate the slice in isolation.

Handle dependencies explicitly

If slice B depends on slice A, say so. Prefer merging A first. When continued work must proceed before A merges, use stacked pull requests or another explicit dependency mechanism rather than hiding both changes inside one oversized branch.

Control scope creep

When new work appears, classify it:

  • required for this slice — without it the accepted behavior is incorrect or unverifiable;
  • follow-up — useful, but the current slice can safely land without it;
  • unrelated — move it out immediately.

Do not expand a slice because the nearby code “could also be cleaned up.”

Completion check

Before requesting review, confirm:

  • the slice has one explainable purpose;
  • the diff contains no accidental neighboring work;
  • relevant tests/checks pass;
  • the system remains usable after this slice alone;
  • dependencies and follow-ups are documented;
  • the next slice can start from a known state.

References

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.