[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M734TM8EFJ160THATNRWQAC4":3,"skill-same:01M734TM8EFJ160THATNRWQAC4":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M734TM8EFJ160THATNRWQAC4","afm-mesh-driven-development",null,"Use when executing an implementation plan inside an afm run by delegating tasks to named AFM team\u002Fmesh agents via afm agent send\u002Fwait — writers share one worktree and replies arrive asynchronously","akopichin\u002Fafm","akopichin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F990634?v=4","01M734ST22E62JYJ1FVP5E1P26","01M734ST2S47NJDE29TG600GCR",30,"MIT","https:\u002F\u002Fgithub.com\u002Fakopichin\u002Fafm\u002Fblob\u002Fmain\u002Fcontracts\u002Fassets\u002Fclaude\u002Fskills\u002Fafm-mesh-driven-development\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: afm-mesh-driven-development\ndescription: Use when executing an implementation plan inside an afm run by delegating tasks to named AFM team\u002Fmesh agents via afm agent send\u002Fwait — writers share one worktree and replies arrive asynchronously\n---\n\n# Mesh-Driven Development\n\nExecute a plan by sending each task as a durable AFM request to a named team\nwriter, validating the returned work against evidence, and only then moving\non. This is subagent-driven development re-based onto the AFM mesh: requests\nand replies replace dispatch and report, `afm agent wait` + yield replaces\nblocking on a child, and a shared worktree replaces isolated contexts.\n\n**Division of labor.** This skill defines the dispatch, recovery and\nacceptance protocol. The CALLING FLOW owns ordering and gates — sections,\nreview rounds, markers, board duties. Apply the loop below to the flow's\ncurrent unit of work; writers finishing never by itself completes a unit or\nthe stage.\n\n**You are the orchestrator.** You assign, verify and integrate; writers\nwrite. Never implement a task yourself while its assigned writer is active,\nand never use native subagents for work the mesh team owns. Stage-started AFM\nhelpers are available for bounded review and analysis (see below).\n\n## Key differences from native subagents\n\n| Native subagents | AFM mesh |\n|---|---|\n| Dispatch prompt, blocking result | `afm agent send --kind request`, reply arrives later |\n| Isolated context per agent | ONE shared worktree — file ownership is the isolation |\n| Controller session memory | Your turn can END (yield); the ledger plus afm's durable message records are the memory |\n| Resume agent in-session | A follow-up request to the same writer continues its conversation — but must still name the task, the prior request id and the remaining work explicitly |\n\n## The Task Loop\n\n0. **Reconcile before acting.** At the start of EVERY turn — before any send\n   or edit — load the ledger (team-progress.json or the flow's equivalent),\n   \u003Cyour_requests> and `afm agent inbox`, and reconcile them. afm's own\n   records are the source of truth: a request present in \u003Cyour_requests> but\n   missing from the ledger WAS sent — record it, never resend it.\n   Re-dispatching completed or pending work is the single most expensive\n   failure. Persist in the ledger: the current unit\u002Fphase, each task's\n   assignee, request\u002Freply IDs with their purpose, task ACCEPTANCE separately\n   from \"reply received\", and retry counts. Write via temp file + atomic\n   rename. A missing or stale ledger is rebuilt from \u003Cyour_requests>\u002Finbox\n   before anything is dispatched. A registered batch and the replies already\n   collected for it survive a restart; check `afm agent wait-status` before\n   deciding whether a request still needs an answer.\n1. **Contracts come from the plan.** If parallel tasks share a contract, pin\n   down the one the plan or the code already defines; delegate only missing\n   contract work the plan requires, and accept it before dependent tasks\n   start. Do not create abstractions solely to enable parallelism.\n2. **One request per plan task.** Each request is self-contained — a writer\n   never reads your session history. It names: the task id, allowed files\n   (explicit ownership), dependencies and interfaces from earlier tasks,\n   acceptance criteria, required checks, the TDD requirement for behavior\n   changes (failing test first, red→green evidence in the reply), and any\n   identifiers the calling flow requires (board key etc.). Ownership covers\n   the tests, fixtures, manifests and generated files the task's commands may\n   touch; a writer needing a file outside its grant must stop and ask —\n   resolve the overlap and record the expanded grant before it proceeds.\n   Record the baseline (`git rev-parse HEAD` plus the dirty state) before\n   dispatching — acceptance is read against it. Corrections are linked\n   follow-up requests to the same writer, not replays of the original.\n   Include the diagnosis and escalation checkpoints below in writer requests:\n   writers may not have loaded this skill. An ownership handoff records a new\n   assignee instead of sending another correction to the original writer.\n3. **Record, then wait.** Record every returned message_id immediately (step 0\n   fields). For independent requests whose outcomes belong in one round, register\n   ONE `afm agent wait --condition reply_to_all --message-ids \u003Cid1,id2,...>`\n   (optionally with `--deadline-seconds N`; at most 16 IDs). Inspect the returned\n   status: `yield` means a pending wait is registered — save the `batch_id` and\n   END YOUR TURN. `ready` means all items have ended: read their outcomes and\n   continue working; do not end your turn or re-register the satisfied wait.\n   A separate incoming question can wake you before the batch ends: answer it, check the batch,\n   then park again if it is still pending. Never poll or sleep in a shell, and\n   never write a final summary while requests are pending.\n4. **Classify every outcome by its request's purpose.** On continuation, read\n   `afm agent wait-status --wait-id \u003Cbatch_id>` for each item's status and\n   reason, and `afm agent inbox --all` for its answer. An implementation reply\n   must carry the completed scope and verification evidence; a review reply\n   must cover the requested scope — an explicit \"no findings\" is a valid,\n   complete review. An acknowledgement or partial status is NEITHER: do not\n   re-wait the satisfied message id and do not redispatch the task — send\n   one NEW linked request to the same agent asking for the final result, using\n   `afm agent send --kind request` with the original request ID in its body.\n   Wait on the new request ID if needed. An ACK or ordinary reply linked to a\n   request satisfies `reply_to`; check the required result contract or Board\n   task state to establish task completion. A cancelled, expired or `run_closed`\n   wait, or a rejected wait registration, does not mean the task is complete:\n   inspect the reason. A cancelled or expired item is an outcome without an\n   answer, even when the batch status is `ready`: retain the other results and\n   its reason. It proves nothing about the tree: confirm the writer stopped editing and inspect the\n   partial changes in its files before retrying (at most one retry per request\n   chain, counted in the ledger) or reporting the concrete blocker.\n5. **Accept on evidence, not on words.** The writer's changes are ALREADY in\n   the shared worktree — never apply a returned diff on top of them.\n   Acceptance = inspect the staged, unstaged and new-file changes against\n   the recorded baseline, verify the acceptance criteria and the ownership\n   boundaries. Missing red→green evidence: ask for the existing record\n   first; if the test-first step simply did not happen, record the unmet\n   requirement — never invent evidence or rewind the shared tree to\n   manufacture a red state.\n6. **Integrate.** Reuse successful writer checks for the same relevant code\n   and environment; `HEAD` alone does not identify a dirty shared tree. Run\n   missing checks and checks needed for combined changes. Repeat broad suites\n   after relevant edits, failures or a concrete new concern, not on every\n   wake-up. Preserve every final gate required by the calling flow. Record\n   the command, actual exit code, log location and tested tree state; piping\n   through `tail` must not hide the check's failure.\n   Attribute a failure BEFORE routing it: it may belong to this task, another\n   writer's unfinished work, or the environment — do not send writer A to fix\n   writer B's red phase or expand ownership just to make an aggregate check\n   green. Small integration fixes are yours; a writer-sized defect goes back\n   to its owner, subject to the escalation budget below.\n\n## Diagnosis and escalation\n\nThese are agent workflow rules, not an automatic AFM watchdog. Use the calling\nflow's explicit repair budget when it supplies one; otherwise apply these\ncheckpoints. Verify failure ceilings and transport retry limits do not override\nthe diagnosis checkpoints:\n\n- **Stop repeating unsuccessful repairs.** After two unsuccessful fix-and-check\n  attempts for the same symptom, or a second verify rejection of the same\n  underlying defect, obtain an independent diagnosis before another correction.\n  Count attempts across requests, sessions, resumes and verify rounds in the\n  ledger. Renaming the failing test or narrowing the same race does not reset\n  the count. Expected TDD red, planned stability repetitions and infrastructure\n  failures are not failed repair attempts.\n- **Test a hypothesis.** For each repair, record the symptom, suspected cause,\n  a check that distinguishes it from alternatives, and the observed result.\n  Keep this concise and link logs instead of copying them. Another run of the\n  same check without a new hypothesis is not progress.\n- **Investigate flakes.** A passing rerun does not establish an environmental\n  or pre-existing failure. Require evidence that separates code\u002Ftest lifecycle\n  errors from resource contention or infrastructure. Do not increase timeouts,\n  weaken assertions or exclude a test merely to get green. Filtered diagnostic\n  runs never replace a required unfiltered gate.\n- **Reason about the whole race.** Before another concurrency fix, state the\n  ownership, commit and completion invariants. A published status may precede\n  deferred cleanup. Reproduce the relevant interleavings with controlled gates\n  or barriers rather than sleeps or repeated runs alone; fix the invariant\n  instead of adding a special case for each review finding.\n- **Get a fresh specialist.** Send a bounded diagnosis request to an independent\n  named architect or reviewer, preferably using a more capable configured model\n  than the stalled executor. Include the task, invariant, owned files\u002Fcurrent\n  diff, failing command\u002Flogs and attempted hypotheses. A temporary review helper\n  below is another option when available. Resolve concrete findings with a fix\n  or counterevidence; \"already solved\" or a green suite alone does not answer a\n  reported interleaving.\n- **Transfer the fix when needed.** If diagnosis calls for an architectural\n  correction, or the same defect survives a correction after consultation,\n  assign a bounded fix to a capable named writer\u002Farchitect with write access.\n  First confirm the previous owner and its file-modifying commands have stopped;\n  record the new owner, file grant (including tests), prior request IDs and\n  acceptance checks in the ledger\u002Fboard. The previous owner and coordinator\n  leave those files untouched until the handoff finishes. A read-only advisory\n  helper cannot substitute for the new implementation owner. An explicit user\n  instruction to hand off takes effect immediately, without another self-fix.\n- **Bound the rescue.** After the specialist's bounded correction, evaluate its\n  evidence and the required gates. If the defect remains unresolved, report the\n  remaining failure, hypotheses and attempted fixes through the flow's dialog\n  protocol instead of starting another repair loop. A successful handoff does\n  not waive independent review or final checks.\n\n## Unavailable participants and tools\n\nAuthentication errors, missing commands and unavailable participants need an\ninfrastructure response, not another code correction. Record the actual error,\ncheck the roster\u002Fcapabilities and select a reachable replacement with the needed\naccess and independence. Reconcile pending work and confirm its writer stopped\nbefore reassigning files. Do not keep sending to a failed participant or replace\nrequired independent review with the coordinator's self-review. If no suitable\nreplacement is available, report that concrete blocker through the flow's dialog\nprotocol. Use temporary helper commands below only when the running AFM binary\nsupports them; otherwise use the existing named team.\n\n## Parallel dispatch\n\nSend independent requests in the same turn BEFORE registering waits, so\nwriters work concurrently. Parallel is allowed ONLY for tasks with disjoint\nownership — including the shared files from step 2 — otherwise sequence\nthem. While implementation runs, the orchestrator never edits an active\nwriter's files. While a REVIEW round is outstanding, freeze the worktree\nentirely — no orchestrator edits, no writer tasks, no file-rewriting\ncommands — until every reviewer in the batch has an outcome. The batch wait\nkeeps the stage parked until then, unless a separate message wakes it. Do not\ninvent work for an irrelevant role just to parallelize.\n\n## Temporary review helpers\n\nFor a bounded review or analysis job, a stage agent may use\n`afm agent spawn --profile \u003Cprofile> --title \u003Ctitle> --instruction \u003Ctext>`.\nThe returned `task_id` identifies the helper and `message_id` identifies the\nrequest it answers; record both in the ledger before waiting. Several helpers\ncan use the same profile with different instructions. Collect their message\nIDs in one `reply_to_all` batch, then read each full committed result with\n`afm agent helper-result --task-id \u003Ctask_id>`; the inbox reply contains only a\nsummary. Check `\u003Cyour_helpers>` on resume so an already started helper is not\nspawned again.\n\nThe selected profile's configuration supplies the helper's command and model. The\nhelper is advisory and one-shot, under the existing quota and depth limits.\nUse named mesh writers for implementation work with file ownership. A helper's\nread-only prompt is not OS isolation: on the host the Codex adapter runs in a\nread-only sandbox; in a container a helper can write within that container's\nboundary. Keep these helpers scoped to review and analysis.\n\n## Common rationalizations\n\n| Excuse | Reality |\n|---|---|\n| \"I'll just code it myself, messaging is overhead\" | Orchestrator edits race the writer in the same tree and skip its evidence trail. |\n| \"The writer acked, task is done\" | An acknowledgement is not a deliverable. Accept only a classified, complete reply. |\n| \"I'll re-send to be safe after the resume\" | \u003Cyour_requests>\u002Finbox are the durable truth. Reconcile; a sent request is never resent. |\n| \"`send` failed, so nothing was sent\" | Delivery may be uncertain. Reconcile the durable records before retrying. |\n| \"The request expired, so its files are free\" | Request status alone does not prove the writer stopped editing. |\n| \"One reviewer replied; I can fix that finding now\" | The batch remains pending until every reviewer has an outcome; finish the round before touching the reviewed tree. |\n| \"The tests are green now; that proves TDD\" | A current green result does not establish a prior test-first red. |\n| \"Both tasks touch that file only a little\" | Shared file = shared state. Sequence them. |\n| \"I'll poll in a loop until the reply lands\" | Polling burns the turn. Register waits and yield; afm resumes you. |\n| \"No reply yet, so I'll write the summary now\" | Yielding is not completing. A final summary with pending requests fakes completion. |\n","# Mesh-Driven Development\n\nExecute a plan by sending each task as a durable AFM request to a named team\nwriter, validating the returned work against evidence, and only then moving\non. This is subagent-driven development re-based onto the AFM mesh: requests\nand replies replace dispatch and report, `afm agent wait` + yield replaces\nblocking on a child, and a shared worktree replaces isolated contexts.\n\n**Division of labor.** This skill defines the dispatch, recovery and\nacceptance protocol. The CALLING FLOW owns ordering and gates — sections,\nreview rounds, markers, board duties. Apply the loop below to the flow's\ncurrent unit of work; writers finishing never by itself completes a unit or\nthe stage.\n\n**You are the orchestrator.** You assign, verify and integrate; writers\nwrite. Never implement a task yourself while its assigned writer is active,\nand never use native subagents for work the mesh team owns. Stage-started AFM\nhelpers are available for bounded review and analysis (see below).\n\n## Key differences from native subagents\n\n| Native subagents | AFM mesh |\n|---|---|\n| Dispatch prompt, blocking result | `afm agent send --kind request`, reply arrives later |\n| Isolated context per agent | ONE shared worktree — file ownership is the isolation |\n| Controller session memory | Your turn can END (yield); the ledger plus afm's durable message records are the memory |\n| Resume agent in-session | A follow-up request to the same writer continues its conversation — but must still name the task, the prior request id and the remaining work explicitly |\n\n## The Task Loop\n\n0. **Reconcile before acting.** At the start of EVERY turn — before any send\n   or edit — load the ledger (team-progress.json or the flow's equivalent),\n   \u003Cyour_requests> and `afm agent inbox`, and reconcile them. afm's own\n   records are the source of truth: a request present in \u003Cyour_requests> but\n   missing from the ledger WAS sent — record it, never resend it.\n   Re-dispatching completed or pending work is the single most expensive\n   failure. Persist in the ledger: the current unit\u002Fphase, each task's\n   assignee, request\u002Freply IDs with their purpose, task ACCEPTANCE separately\n   from \"reply received\", and retry counts. Write via temp file + atomic\n   rename. A missing or stale ledger is rebuilt from \u003Cyour_requests>\u002Finbox\n   before anything is dispatched. A registered batch and the replies already\n   collected for it survive a restart; check `afm agent wait-status` before\n   deciding whether a request still needs an answer.\n1. **Contracts come from the plan.** If parallel tasks share a contract, pin\n   down the one the plan or the code already defines; delegate only missing\n   contract work the plan requires, and accept it before dependent tasks\n   start. Do not create abstractions solely to enable parallelism.\n2. **One request per plan task.** Each request is self-contained — a writer\n   never reads your session history. It names: the task id, allowed files\n   (explicit ownership), dependencies and interfaces from earlier tasks,\n   acceptance criteria, required checks, the TDD requirement for behavior\n   changes (failing test first, red→green evidence in the reply), and any\n   identifiers the calling flow requires (board key etc.). Ownership covers\n   the tests, fixtures, manifests and generated files the task's commands may\n   touch; a writer needing a file outside its grant must stop and ask —\n   resolve the overlap and record the expanded grant before it proceeds.\n   Record the baseline (`git rev-parse HEAD` plus the dirty state) before\n   dispatching — acceptance is read against it. Corrections are linked\n   follow-up requests to the same writer, not replays of the original.\n   Include the diagnosis and escalation checkpoints below in writer requests:\n   writers may not have loaded this skill. An ownership handoff records a new\n   assignee instead of sending another correction to the original writer.\n3. **Record, then wait.** Record every returned message_id immediately (step 0\n   fields). For independent requests whose outcomes belong in one round, register\n   ONE `afm agent wait --condition reply_to_all --message-ids \u003Cid1,id2,...>`\n   (optionally with `--deadline-seconds N`; at most 16 IDs). Inspect the returned\n   status: `yield` means a pending wait is registered — save the `batch_id` and\n   END YOUR TURN. `ready` means all items have ended: read their outcomes and\n   continue working; do not end your turn or re-register the satisfied wait.\n   A separate incoming question can wake you before the batch ends: answer it, check the batch,\n   then park again if it is still pending. Never poll or sleep in a shell, and\n   never write a final summary while requests are pending.\n4. **Classify every outcome by its request's purpose.** On continuation, read\n   `afm agent wait-status --wait-id \u003Cbatch_id>` for each item's status and\n   reason, and `afm agent inbox --all` for its answer. An implementation reply\n   must carry the completed scope and verification evidence; a review reply\n   must cover the requested scope — an explicit \"no findings\" is a valid,\n   complete review. An acknowledgement or partial status is NEITHER: do not\n   re-wait the satisfied message id and do not redispatch the task — send\n   one NEW linked request to the same agent asking for the final result, using\n   `afm agent send --kind request` with the original request ID in its body.\n   Wait on the new request ID if needed. An ACK or ordinary reply linked to a\n   request satisfies `reply_to`; check the required result contract or Board\n   task state to establish task completion. A cancelled, expired or `run_closed`\n   wait, or a rejected wait registration, does not mean the task is complete:\n   inspect the reason. A cancelled or expired item is an outcome without an\n   answer, even when the batch status is `ready`: retain the other results and\n   its reason. It proves nothing about the tree: confirm the writer stopped editing and inspect the\n   partial changes in its files before retrying (at most one retry per request\n   chain, counted in the ledger) or reporting the concrete blocker.\n5. **Accept on evidence, not on words.** The writer's changes are ALREADY in\n   the shared worktree — never apply a returned diff on top of them.\n   Acceptance = inspect the staged, unstaged and new-file changes against\n   the recorded baseline, verify the acceptance criteria and the ownership\n   boundaries. Missing red→green evidence: ask for the existing record\n   first; if the test-first step simply did not happen, record the unmet\n   requirement — never invent evidence or rewind the shared tree to\n   manufacture a red state.\n6. **Integrate.** Reuse successful writer checks for the same relevant code\n   and environment; `HEAD` alone does not identify a dirty shared tree. Run\n   missing checks and checks needed for combined changes. Repeat broad suites\n   after relevant edits, failures or a concrete new concern, not on every\n   wake-up. Preserve every final gate required by the calling flow. Record\n   the command, actual exit code, log location and tested tree state; piping\n   through `tail` must not hide the check's failure.\n   Attribute a failure BEFORE routing it: it may belong to this task, another\n   writer's unfinished work, or the environment — do not send writer A to fix\n   writer B's red phase or expand ownership just to make an aggregate check\n   green. Small integration fixes are yours; a writer-sized defect goes back\n   to its owner, subject to the escalation budget below.\n\n## Diagnosis and escalation\n\nThese are agent workflow rules, not an automatic AFM watchdog. Use the calling\nflow's explicit repair budget when it supplies one; otherwise apply these\ncheckpoints. Verify failure ceilings and transport retry limits do not override\nthe diagnosis checkpoints:\n\n- **Stop repeating unsuccessful repairs.** After two unsuccessful fix-and-check\n  attempts for the same symptom, or a second verify rejection of the same\n  underlying defect, obtain an independent diagnosis before another correction.\n  Count attempts across requests, sessions, resumes and verify rounds in the\n  ledger. Renaming the failing test or narrowing the same race does not reset\n  the count. Expected TDD red, planned stability repetitions and infrastructure\n  failures are not failed repair attempts.\n- **Test a hypothesis.** For each repair, record the symptom, suspected cause,\n  a check that distinguishes it from alternatives, and the observed result.\n  Keep this concise and link logs instead of copying them. Another run of the\n  same check without a new hypothesis is not progress.\n- **Investigate flakes.** A passing rerun does not establish an environmental\n  or pre-existing failure. Require evidence that separates code\u002Ftest lifecycle\n  errors from resource contention or infrastructure. Do not increase timeouts,\n  weaken assertions or exclude a test merely to get green. Filtered diagnostic\n  runs never replace a required unfiltered gate.\n- **Reason about the whole race.** Before another concurrency fix, state the\n  ownership, commit and completion invariants. A published status may precede\n  deferred cleanup. Reproduce the relevant interleavings with controlled gates\n  or barriers rather than sleeps or repeated runs alone; fix the invariant\n  instead of adding a special case for each review finding.\n- **Get a fresh specialist.** Send a bounded diagnosis request to an independent\n  named architect or reviewer, preferably using a more capable configured model\n  than the stalled executor. Include the task, invariant, owned files\u002Fcurrent\n  diff, failing command\u002Flogs and attempted hypotheses. A temporary review helper\n  below is another option when available. Resolve concrete findings with a fix\n  or counterevidence; \"already solved\" or a green suite alone does not answer a\n  reported interleaving.\n- **Transfer the fix when needed.** If diagnosis calls for an architectural\n  correction, or the same defect survives a correction after consultation,\n  assign a bounded fix to a capable named writer\u002Farchitect with write access.\n  First confirm the previous owner and its file-modifying commands have stopped;\n  record the new owner, file grant (including tests), prior request IDs and\n  acceptance checks in the ledger\u002Fboard. The previous owner and coordinator\n  leave those files untouched until the handoff finishes. A read-only advisory\n  helper cannot substitute for the new implementation owner. An explicit user\n  instruction to hand off takes effect immediately, without another self-fix.\n- **Bound the rescue.** After the specialist's bounded correction, evaluate its\n  evidence and the required gates. If the defect remains unresolved, report the\n  remaining failure, hypotheses and attempted fixes through the flow's dialog\n  protocol instead of starting another repair loop. A successful handoff does\n  not waive independent review or final checks.\n\n## Unavailable participants and tools\n\nAuthentication errors, missing commands and unavailable participants need an\ninfrastructure response, not another code correction. Record the actual error,\ncheck the roster\u002Fcapabilities and select a reachable replacement with the needed\naccess and independence. Reconcile pending work and confirm its writer stopped\nbefore reassigning files. Do not keep sending to a failed participant or replace\nrequired independent review with the coordinator's self-review. If no suitable\nreplacement is available, report that concrete blocker through the flow's dialog\nprotocol. Use temporary helper commands below only when the running AFM binary\nsupports them; otherwise use the existing named team.\n\n## Parallel dispatch\n\nSend independent requests in the same turn BEFORE registering waits, so\nwriters work concurrently. Parallel is allowed ONLY for tasks with disjoint\nownership — including the shared files from step 2 — otherwise sequence\nthem. While implementation runs, the orchestrator never edits an active\nwriter's files. While a REVIEW round is outstanding, freeze the worktree\nentirely — no orchestrator edits, no writer tasks, no file-rewriting\ncommands — until every reviewer in the batch has an outcome. The batch wait\nkeeps the stage parked until then, unless a separate message wakes it. Do not\ninvent work for an irrelevant role just to parallelize.\n\n## Temporary review helpers\n\nFor a bounded review or analysis job, a stage agent may use\n`afm agent spawn --profile \u003Cprofile> --title \u003Ctitle> --instruction \u003Ctext>`.\nThe returned `task_id` identifies the helper and `message_id` identifies the\nrequest it answers; record both in the ledger before waiting. Several helpers\ncan use the same profile with different instructions. Collect their message\nIDs in one `reply_to_all` batch, then read each full committed result with\n`afm agent helper-result --task-id \u003Ctask_id>`; the inbox reply contains only a\nsummary. Check `\u003Cyour_helpers>` on resume so an already started helper is not\nspawned again.\n\nThe selected profile's configuration supplies the helper's command and model. The\nhelper is advisory and one-shot, under the existing quota and depth limits.\nUse named mesh writers for implementation work with file ownership. A helper's\nread-only prompt is not OS isolation: on the host the Codex adapter runs in a\nread-only sandbox; in a container a helper can write within that container's\nboundary. Keep these helpers scoped to review and analysis.\n\n## Common rationalizations\n\n| Excuse | Reality |\n|---|---|\n| \"I'll just code it myself, messaging is overhead\" | Orchestrator edits race the writer in the same tree and skip its evidence trail. |\n| \"The writer acked, task is done\" | An acknowledgement is not a deliverable. Accept only a classified, complete reply. |\n| \"I'll re-send to be safe after the resume\" | \u003Cyour_requests>\u002Finbox are the durable truth. Reconcile; a sent request is never resent. |\n| \"`send` failed, so nothing was sent\" | Delivery may be uncertain. Reconcile the durable records before retrying. |\n| \"The request expired, so its files are free\" | Request status alone does not prove the writer stopped editing. |\n| \"One reviewer replied; I can fix that finding now\" | The batch remains pending until every reviewer has an outcome; finish the round before touching the reviewed tree. |\n| \"The tests are green now; that proves TDD\" | A current green result does not establish a prior test-first red. |\n| \"Both tasks touch that file only a little\" | Shared file = shared state. Sequence them. |\n| \"I'll poll in a loop until the reply lands\" | Polling burns the turn. Register waits and yield; afm resumes you. |\n| \"No reply yet, so I'll write the summary now\" | Yielding is not completing. A final summary with pending requests fakes completion. |\n",{"name":5,"description":7},"main","9e89902cebc1c78ab4580350563939f15a3fa011","contracts\u002Fassets\u002Fclaude\u002Fskills\u002Fafm-mesh-driven-development",0,"https:\u002F\u002Fgithub.com\u002Fakopichin\u002Fafm","https:\u002F\u002Fgithub.com\u002Fakopichin","2026-11-15 02:08:57",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add akopichin\u002Fafm --skill afm-mesh-driven-development",{"tool":36,"command":37},"bunx","bunx skills add akopichin\u002Fafm --skill afm-mesh-driven-development",{"tool":39,"command":40},"pnpm","pnpm dlx skills add akopichin\u002Fafm --skill afm-mesh-driven-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fakopichin\u002Fafm\u002Fblob\u002Fmain\u002Fcontracts\u002Fassets\u002Fclaude\u002Fskills\u002Fafm-mesh-driven-development\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M734TXR2TRPHNF2010MGT1XT","afm-run","Run a afm flow with stage plan approval","https:\u002F\u002Fgithub.com\u002Fakopichin\u002Fafm\u002Fblob\u002Fmain\u002Fcontracts\u002Fassets\u002Fclaude\u002Fskills\u002Fafm-run\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M734TVW0S4EY1HPF4R1QCX41","afm-review","Review a stage plan and provide feedback or approve","https:\u002F\u002Fgithub.com\u002Fakopichin\u002Fafm\u002Fblob\u002Fmain\u002Fcontracts\u002Fassets\u002Fclaude\u002Fskills\u002Fafm-review\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M734TST4HNHQZNVMH7JCX5QJ","afm-retry","Retry a failed stage in the current afm run","https:\u002F\u002Fgithub.com\u002Fakopichin\u002Fafm\u002Fblob\u002Fmain\u002Fcontracts\u002Fassets\u002Fclaude\u002Fskills\u002Fafm-retry\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M734TQAHTAQNNEWQRE95S4G1","afm-pipelines","Find, install, configure, update or remove reusable AFM pipelines. Use when the user wants a ready-made AFM workflow or an architecture\u002Frefactoring workshop, including per-pipeline models, profiles and skills.","https:\u002F\u002Fgithub.com\u002Fakopichin\u002Fafm\u002Fblob\u002Fmain\u002Fcontracts\u002Fassets\u002Fclaude\u002Fskills\u002Fafm-pipelines\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M734TGSY5PGY37CBT77DE0CV","afm-live-run","Exercise a change in the real running app via the managed Chrome DevTools browser (afm_chrome MCP) — a live run, not unit tests.","https:\u002F\u002Fgithub.com\u002Fakopichin\u002Fafm\u002Fblob\u002Fmain\u002Fcontracts\u002Fassets\u002Fclaude\u002Fskills\u002Fafm-live-run\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M734TEQRMQCNRRP1ZE303484","afm-init","Create a new flow.yaml interactively","https:\u002F\u002Fgithub.com\u002Fakopichin\u002Fafm\u002Fblob\u002Fmain\u002Fcontracts\u002Fassets\u002Fclaude\u002Fskills\u002Fafm-init\u002FSKILL.md",[],[]]