agentleFS
yezzzpyezzzp/agent-relay-protocol/skills/integrate/SKILL.md

integrate

Skill0 starsChanged 7 days agoMITView on GitHub

Branch model and integration for agent-core projects. Start every code task in its own worktree; finish it with `arp integrate`; move production only with `arp release` when the owner says so. Use when starting a code task, when it is done, when asked to merge, integrate, release or ship, or to clean up worktrees.

  • Reads credentials

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use discover, plan and 2 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.
  • MicrosoftSkill

    discover

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 5 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 5 projects that use this

  • OpenAISkill

    audit

    Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 1

    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:

    If it fails, nothing was merged.

    line 29
  2. Very specific:

    When it lands, arp sessions set ready.

    line 30

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

integrate

Branches

BranchRoleWho moves it
develop (config branches.integration)everything finished, verified togetherarp integrate, never by hand
main (config branches.production)productionarp release vN.x.y, only when the owner says so
one branch per taskthe workits session

Start

arp sessions                       # above the soft limit, warn the owner once; continue if they want
arp worktrees new <area>/<task>    # e.g. web/orders-filter
cd "$(git rev-parse --show-toplevel)-wt/<area>-<task>"

arp worktrees new branches from the integration branch and copies .env and the test map. It prints the worktree's own test database and ports, which are also in .arp/ports. Rebuild that database with env.db_rebuild. Never use another session's database or ports.

Finish

  1. The quick verify command passes, and the worktree is clean (everything committed).
  2. arp integrate <task>. It merges in the integration worktree, rebuilds the database, runs the full suite and the critical e2e tests, and writes .arp/integration/<date>-<task>.md. Run it in the background: it can take minutes.
    • Queue. If another integration is running, your branch waits in .arp/integration/queue/ and the command waits with it. When the running one ends, everything waiting goes in as one batch: one merge of all, one run of the checks. Nobody waits for a session that has not finished.
    • A failing batch is split. Each branch is then tried alone: the good ones land, and only the guilty one gets the failure. A branch that clashes only with another branch of its batch waits for the next round.
    • The report says which branches were verified together.
  3. If it fails, nothing was merged. Read the report, fix it in your branch, and run it again.
  4. When it lands, arp sessions set ready. The dev server of that worktree is stopped.
  5. integrate.after in the config runs once the branch lands, in the integration worktree: a push, a migration of the shared dev database, a server restart. If one fails the report says so and the merge stays; fix it by hand.

Release

arp release vN.x.y runs everything (full suite and every e2e test) and tags production. It never pushes: show the owner the push command it prints.

Clean up

arp worktrees prune lists merged, clean worktrees. With --yes it removes them and their test databases. Confirm with the owner first.

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.