agentleFS
ArcanEdge-AIArcanEdge-AI/coding-agent-playbook-codex/skills/multi-session-coordination/SKILL.md

multi-session-coordination

Skill3 starsChanged 3 months agoMITView on GitHub

Use when multiple independent Codex threads are working on related areas of the same project and need conflict detection, ownership, sequencing, and integration guidance.

2 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 16 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this skill when:

    line 10
  2. Distinctive:

    Do not use this skill when:

    line 19
  3. Distinctive:

    only one implementation thread is active

    line 21
  4. Very specific:

    Use the worktree-lifecycle skill when any participating task proposes, owns, integrates, or cleans an auxiliary worktree.

    line 28
  5. Very specific:

    Use the feature-branch-lifecycle skill when participating development branches must converge through one feature integration branch or when …

    line 29
  6. Distinctive:

    When creating a new project thread, title it:

    line 33
  7. Distinctive:

    Do not ask the user for values that can be detected reliably from the environment or repository.

    line 56
  8. Distinctive:

    Start with threads active during the previous 72 hours when the environment supports thread discovery.

    line 62
  9. Distinctive:

    Ask for specific thread identifiers only when automatic discovery is unavailable or materially incomplete and the missing context affects a …

    line 76
  10. Distinctive:

    Do not claim direct review when only repository evidence was inspected.

    line 87
  11. Distinctive:

    Do not stop at Git merge-conflict detection.

    line 130
  12. Distinctive:

    Prefer the smallest safe coordination change.

    line 145
  13. Distinctive:

    Follow the host's instruction hierarchy, then relevant scope and specificity within the same authority level.

    line 151
  14. Distinctive:

    Check established shared contracts and supported consumers.

    line 153
  15. Distinctive:

    Ask the user only when a remaining decision materially affects architecture, behavior, data, safety, release timing, or user-visible output.

    line 156
  16. Distinctive:

    Do not use vague instructions such as “coordinate with the other thread.”

    line 173
  17. Distinctive:

    Stop and report the limitation when:

    line 209
  18. Distinctive:

    Do not implement code unless the user explicitly requests implementation.

    line 216

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

Multi-Session Coordination Skill

The main agent is the integration coordinator. Independent Codex threads may contribute work, but the main agent owns architecture, compatibility decisions, sequencing, validation, and the final report.

Use this skill when:

  • multiple Codex threads are active in the same project or repository
  • several features are being implemented concurrently
  • branches or worktrees may overlap
  • shared APIs, schemas, types, components, dependencies, or user flows are changing
  • one thread's work could invalidate another thread's assumptions
  • the user asks to coordinate, reconcile, integrate, or review parallel work

Do not use this skill when:

  • only one implementation thread is active
  • the task is ordinary bounded subagent delegation
  • the work is unrelated across repositories
  • the user only wants a review of one completed change
  • available evidence is too incomplete to compare the work meaningfully

Consult references/multi-session-coordination.md for the detailed coordination rules. Use the worktree-lifecycle skill when any participating task proposes, owns, integrates, or cleans an auxiliary worktree. Use the feature-branch-lifecycle skill when participating development branches must converge through one feature integration branch or when promotion and temporary-branch cleanup are in scope.

Project Thread Naming

When creating a new project thread, title it:

Project - Three-to-Four-Word Description

Detect the project name from the current project or repository and derive the description from the thread's primary objective. Use clear title-style wording, omit literal square brackets, and do not ask the user for a title when the project and task are already clear.

Apply this standard to newly created threads. Do not rename existing threads automatically unless the user requests cleanup.

Workflow

1. Resolve the operating context

Identify the current:

  • project
  • repository
  • default branch
  • active branch
  • worktrees when available
  • applicable repository instructions and authoritative project docs

Do not ask the user for values that can be detected reliably from the environment or repository.

Classify relevant checkouts as host-managed primary, user-managed existing, or task-created auxiliary. Record exact ownership and permits when known. Never infer cleanup authority from age, inactivity, or clean status.

2. Discover active work

Start with threads active during the previous 72 hours when the environment supports thread discovery.

Then inspect:

  • active branches
  • worktrees
  • open pull requests
  • unmerged commits
  • active-work records under .codex/coordination/active-work/ when present

Include older work when repository evidence shows that it remains unmerged, incomplete, blocked, contract-relevant, or otherwise active.

Repository state takes precedence over thread recency.

Ask for specific thread identifiers only when automatic discovery is unavailable or materially incomplete and the missing context affects a safe integration decision.

3. Classify discovery coverage

Label every work item as:

  • directly reviewed thread
  • repository-inferred work
  • user-supplied thread
  • potentially missing work

Do not claim direct review when only repository evidence was inspected.

4. Build the shared change map

For each relevant work item, capture:

  • thread title and identifier when available
  • objective
  • status
  • last activity
  • branch or worktree
  • files and modules affected
  • APIs, events, routes, and shared interfaces affected
  • schemas, migrations, and persistence affected
  • software or service dependencies added or changed
  • accepted upstream work artifacts or decisions required before the item can begin or integrate
  • tests affected
  • handoff and integration verification gates
  • assumptions
  • unmet upstream dependencies and other blockers
  • open decisions
  • integration status
  • branch role, promotion target, and cleanup eligibility when the feature-branch lifecycle applies
  • worktree lifecycle status and final disposition when the worktree is task-created

Separate confirmed facts from inference.

5. Detect conflicts

Check for:

  • overlapping file ownership
  • incompatible architectural decisions
  • conflicting API or event contracts
  • conflicting shared types
  • incompatible schemas or migrations
  • dependency-version conflicts
  • authentication or authorization inconsistencies
  • user-flow and lifecycle conflicts
  • duplicate utilities, components, or services
  • tests based on incompatible assumptions
  • combined behavior that fails even when isolated changes pass

Do not stop at Git merge-conflict detection.

6. Establish ownership and sequence

Define:

  • one owner for each shared file, contract, schema, or tightly coupled area
  • which work may continue independently
  • which work must pause
  • which dependency must complete first
  • which shared contract must be fixed before implementation continues
  • which thread must adapt to an established interface
  • required integration checkpoints
  • the remaining chain of blocking work that controls integration completion

Prefer the smallest safe coordination change. Do not allow independent redesigns of the same shared subsystem.

7. Resolve disagreements with primary evidence

Separate instruction authority from evidence of current behavior:

  1. Follow the host's instruction hierarchy, then relevant scope and specificity within the same authority level. Preserve explicit user decisions within that hierarchy.
  2. Establish current behavior from code, tests, schemas, configuration, and runtime observations. These facts do not override an authorized target requirement.
  3. Check established shared contracts and supported consumers. Report any conflict with the requested change instead of silently preserving or discarding the contract.
  4. Choose the smallest safe change that satisfies the governing requirements and required compatibility.

Ask the user only when a remaining decision materially affects architecture, behavior, data, safety, release timing, or user-visible output.

8. Produce copy-ready thread instructions

For each active thread, state:

  • what may continue
  • what must pause
  • owned paths or systems
  • prohibited paths or systems
  • required contracts
  • upstream dependencies
  • compatibility changes
  • validation to run
  • evidence to return
  • integration-ready completion condition

Do not use vague instructions such as “coordinate with the other thread.”

9. Define integration verification

Require validation appropriate to the combined blast radius, including when relevant:

  • targeted E2E tests for each feature
  • E2E coverage of combined user flows and shared contracts
  • schema or migration checks
  • typechecking
  • build validation
  • final combined diff review

Retain E2E behavioral tests only. Every unit test created by any owner is temporary, regardless of purpose; none may remain in a completed change. Require each owner to remove them and exclusively used support code after corresponding E2E assertions pass, preserving failure and boundary coverage. Keep migration of existing non-E2E suites within authorized scope and preserve required repository gates.

The main agent must inspect the combined result before declaring the work compatible.

The owning root must also reconcile every task-created auxiliary worktree before its final response: remove it after verified integration and cleanup gates, or preserve it with exact ownership and blocker evidence. Do not defer task-owned cleanup to scheduled automation, and do not remove another thread's or the user's existing worktree.

Output Format

Return:

  • Executive summary
  • Discovery coverage
  • Active work summary
  • Shared change map
  • Conflict and overlap matrix
  • Ranked risks: Critical, High, Medium, Low
  • Recommended implementation order
  • Copy-ready instructions for each thread
  • Integration verification checklist
  • Open decisions requiring user approval

Stop Conditions

Stop and report the limitation when:

  • the current project or repository cannot be identified safely
  • relevant work is inaccessible and repository evidence cannot compensate
  • destructive, production-impacting, or sensitive changes require approval
  • two plausible resolutions materially affect architecture or behavior and primary evidence does not resolve them

Do not implement code unless the user explicitly requests implementation. The default role of this skill is coordination, conflict detection, sequencing, and integration planning.

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.

Reviews can't be read right now.

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.