Catalogue / parallel-development
parallel-development
MITSignedManages claims, isolation, synchronization, release and integration for parallel agent work in this project. Use before the first edit of P work files of an execution Issue, such as SDD, tests and code; when creating a branch/worktree; when checking path conflicts; and when handling shared contracts…--- name: parallel-development description: Manages claims, isolation, synchronization, release and integration for parallel agent work in this project. Use before the first edit of P work files of an execution Issue, such as SDD, tests and code; when creating a branch/worktree; when checking path conflicts; and when handling shared contracts. Do not use when only drafting an Issue or doing a read-only investigation. ---
For current/manual Trivial/Small work, use the compact route for its closed reading set, execution obligations and three records. The full body below is reached only through its relevant exception triggers, retaining compact forms/exemptions. After escalation, use the new grade's full contract.
For external adoption, first apply W/activation.md for selection, ownership and paths. Pinned-copy and generated hard-guard references below use its compatibility meanings. Do not apply this skill to an unselected task.
The execution inputs are the absolute paths P (top level of the project repository), W (the pinned procedure copy W) and M (the pinned common principles M). Do not guess P or M from the current folder or from W's parent folder. Apply P's hard guard (## Always-applied hard guard in P/AGENTS.md) and its application declaration (W/../project/sdd-workflow.md). Read the words Issue, comment, label and PR as the work tracking method (W/tracker/) declared in W/../project/tracker.md. Look up unfamiliar terms in the Glossary.
Parallel Development
Read-only investigation and entry into edits
Several readers of the same file are not an edit path conflict. For a read-only investigation only, do not create a new lane, branch/worktree or edit claim. Check the access permissions of the investigation itself, the current instructions and the settled preconditions, and leave the baseline revision. Secure the conclusion of a common rule that is not yet settled before the implementation, integration or deployment that relies on that result.
Apply Inputs, New lane and Claim below before actually creating a lane, or before first creating, editing or deleting P repository work files of an execution Issue. This includes the current Issue's SDD, tests and product code. If you start writing files during an investigation, check the current phase's work instructions, dependencies and boundaries, and secure a lane and claim. Also check existing claims of the same Issue so that two owners do not write to the same SDD or branch at the same time.
When writing an SDD, apply only the conditions of that writing phase. Do not require an AS-IS/PLAN review PASS or readiness for later implementation for a claim made to write the AS-IS. Product implementation starts after the needed grade gates and implementation dependencies are met. The path-listing exception for documents with a defined lifetime is not a claim exemption.
The work tracking method's Issue, observation and claim/release records, and the Epic management document itself, follow the existing management procedure. Do not create the circular condition "an implementation claim must exist before this record can be written". Do not use the description "read-only" to exempt existing write boundaries or required reviews.
Inputs
If you can confirm that ## Always-applied hard guard in P/AGENTS.md was applied in the same run, do not read it again. If you cannot confirm this because you started as a standalone run or as a sub-agent, read that section first and then proceed. Do not read the common policy documents whole in advance unless there is a conflict condition.
Required:
Allowed edits/Forbidden editsin the current Issue body and labels- The current Issue's assignee, recent comments, and linked or open PRs
- The metadata, among the in-progress claims and PRs of the same repository, that is needed to judge path overlap
If the implementation phase already checked the Issue boundaries and whether paths are shared, reuse that as is.
Only when needed:
- If called standalone, or if the allowed edit paths include shared or root candidates (including root build and settings) in P's application document
module-boundaries.md, check the relevant parts of the common boundary and lifecycle contract inW/process/module-boundaries.mdand the actual product boundaries inW/../project/module-boundaries.md. - Only when an instruction or ownership conflict cannot be decided with the existing rules, read
W/process/agent-instruction-policy.md(common contract and procedure) andW/../project/agent-instruction-policy.md(product application, permissions and verification).
If the Issue has no allowed/forbidden edit paths, do not create a new lane or claim; normalize it through the Issue management procedure.
New lane creation and isolation
This procedure applies only when creating a new Issue branch or worktree. The base of a new lane is a fresh fetch of <code-remote>/<base-branch> declared in P's tracker.md. Do not use the current local HEAD, a local base branch or an earlier Issue branch as an implicit base.
- Check that the current repository and remote are the expected targets, and check the current worktree and branch, the uncommitted change (dirty) state, and branch and worktree path conflicts. Use this local state only for contamination and conflict safety checks, not for choosing the base.
- Compare the Issue's allowed edit paths with in-progress
[CLAIM]s and open PRs, and check the shared and root boundaries reserved for integration work. If they overlap or touch a shared boundary that is not allowed, do not create a branch or worktree; stop with the matching stop condition. - Right before creating the branch or worktree, run
git fetch <code-remote> refs/heads/<base-branch>in the current shell. If it fails, stop withBLOCKED: declared base fetch failed, and do not substitute an existing remote-tracking ref, a local base branch or the current HEAD. - If the fetch succeeds, immediately fix this fetch result's base SHA with
git rev-parse --verify 'FETCH_HEAD^{commit}'and leave it in the work evidence. If the SHA cannot be confirmed, do not create a branch or worktree. - Use the confirmed base SHA as the explicit starting point.
- If there are two or more lanes in the same local clone, create the per-Issue branch and a worktree outside the repository together with
git worktree add <path> -b <branch> <base-sha>. - In an independent cloud clone or sandbox, do not create an additional worktree; create the Issue branch with
git switch -c <branch> <base-sha>and use the sandbox itself as the lane. - A Windows local worktree uses a short path (
worktree rootin P's application documentsdd-workflow.md).
- For an external installation, also install and check a harness connection dedicated to the new checkout. Do not rewrite the existing checkout's connection files by changing only the paths, and do not overwrite the entry points of two checkouts with one lock. Share tracker_root for claim coordination.
- Check that the HEAD of the created lane equals the recorded base SHA, then perform the Claim procedure below in that lane.
Do not edit the W and M pinned copies (W, M) in lane work.
- Do not choose a different base, or insert a checkout or pull of a local base branch, between the fetch and the creation of the branch or worktree.
- Two agents do not commit to the same branch at the same time.
- Do not automatically rebase or recreate an already created branch or worktree in progress because of this rule. Updating an existing lane applies only the Synchronization procedure.
For all claim/release operations, mutate only the claim owned by this agent and branch. Re-query ownership before changing metadata; never clear another lane's claim, assignee or in-progress status. A failed competing claim releases only this attempt's own state. If ownership cannot be isolated, stop edits and leave the conflicting state for coordination. For local-docs, acquire the exclusive claim file before changing owner/status metadata; a failed acquisition changes neither.
Claim
- From the Priority, the current user instructions and the preconditions, check whether writing investigation results, design or implementation for the current phase is possible now. Do not use an open condition of a later implementation phase as a blocking condition for an earlier claim to write the SDD.
- Compare the allowed edit paths with the paths of in-progress
[CLAIM]s and open PRs. - If they overlap,
BLOCKED: overlapping lane. - If an ordinary lane needs shared or root paths reserved for integration work, do not claim.
- Set the current agent as the assignee.
- Attach
status:in-progress. - Leave a comment in this format.
[CLAIM] agent: <agent-id> branch: <branch-name> allowed: - <path glob> forbidden: - <path glob>
- Check the comments, labels, assignee and open PRs again.
- If a competing claim appeared, release immediately, and do not edit work files, including the SDD.
Synchronization
After related changes land in the declared base or merge branch, before the next push:
- Fetch the needed revisions of the code remote, base branch and merge branch that P declared.
- Rebase or merge.
- Resolve conflicts only inside the Issue's allowed edit paths.
- If forbidden or shared paths are needed,
BLOCKED. - Rerun the affected verification.
SDD review candidate publication
When pushing AS-IS and PLAN review candidates to the publication repository and branch that P declared, apply Remote review candidate publication in Design review. Hand off the evidence that the candidate and documents can be read from the remote, and a re-review of a changed candidate follows the meaning and impact judgment in the same document. The base of a new lane and the lifecycle of existing claims and worktrees keep the procedure above.
Shared contracts
When it is newly confirmed that an ordinary lane must change shared or root paths:
- Do not edit those paths.
- Identify the needed contracts, symbols and files.
- Check the integration rules in the common boundary and lifecycle contract of
W/process/module-boundaries.mdand the actual product boundaries ofW/../project/module-boundaries.md. - Split it into an integration Issue or a preceding change, and stop or release the lanes that rely on it.
- When the shared change is merged, take in the declared integration revision and resume.
For local-docs release, the adapter's exclusive-lock ordering takes precedence: clear only this owner's metadata while still holding its matching claim, then remove that claim last. Do not perform later metadata cleanup after releasing the lock.
Release
For handoff, stop, or cleanup after merge, first record the uncommitted and unpushed state, the PR state, the worktree registration, and the local and remote branch state.
- When only the ownership is passed on because of a handoff or stop, do not delete or force-remove an uncommitted or unmerged worktree. After the
[RELEASE]comment, removingstatus:in-progressand removing the assignee, report separately that the worktree remains. - If there is no registered local worktree, as in an independent cloud sandbox, record the state and then apply the ordinary release procedure.
- Product delivery is decided by the merged PR, the closed Issue and
[PRODUCT COMPLETE]. Local cleanup and releasing ownership are separate from it, and a cleanup failure does not cancel product completion. Local cleanup and lane release follow the procedure below.
Merged local worktree cleanup
- Check that the PR is merged and the worktree is clean. If there are uncommitted or unmerged changes, do not delete it; stop.
- Handle build cleanup by first deciding the "no artifacts" exception.
Preview shortened. The full SKILL.md is in the pack.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 15.6 kB | c06bee7156ac |
| SKILVAULT_SOURCE.json | 1.2 kB | 0c8b107e0552 |
| THIRD_PARTY_NOTICES.md | 2.1 kB | 9292570b6adf |
| evals/cases.json | 14.7 kB | 24a427bb94cb |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | cb0b708621dc | 29 Nov 2026 |
Locking a skill to one version needs Pro.