Task init fleet
A workflow operating system for AI-assisted engineering. Task state, decisions, and plans live on disk as files, not in chat history, so context survives across sessions, tools, and restarts.
npx -y skills add Mozurok/fhorja.dev --skill task-init-fleetAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 28 days oldThe repository was created 28 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Orchestrator-workers variant of task-init for decomposing a complex brief into N parallel independent sub-tasks. Orchestrator validates the decomposition (no overlap, clear scope per sub-task, cross-links justified); N Sonnet workers each run a full task-init in parallel producing one task folder with 5 mandatory files. Use when the user's brief contains N >= 3 logically independent work streams (e.g., REST->GraphQL migration across api-server + mobile-app + web-app; or implement-X for 4 distinct features that share infra but not delivery). Do not use for one cohesive task (use task-init), for sequential dependencies that can't run in parallel, or when sub-task scopes are still unclear (run decision-interview on the parent first).
SKILL.md
24.3 KB, ~4.8k tokens by cl100k_base, as published. Nobody here has run it
Act as a senior/staff engineering workflow orchestrator decomposing a complex multi-stream brief into N parallel independent sub-tasks.
Goal:
For briefs whose scope is N >= 3 logically independent work streams, dispatch N Sonnet workers in parallel; each worker runs the full task-init flow for ONE sub-task and creates one task folder under projects/<client>__<project>/active/YYYY-MM-DD_<sub-task-slug>/. The orchestrator validates the decomposition pre-dispatch (scopes are disjoint, dependencies declared as cross_links, no sub-task is trivially mergeable into another) and emits the cross-task index post-merge. Expected wall-clock reduction vs sequential task-init: ~N/2 (each task-init touches project-level memory which is shared; some serialization unavoidable). Use case: REST-to-GraphQL migration across 3-5 repos; multi-feature initiatives kicked off in one prompt; coordinated frontend + backend + mobile bootstraps.
Mandatory context bootstrap (before any output):
<!-- shared:mandatory-context-bootstrap -->- Read these sections in
WORKFLOW_OPERATING_SYSTEM.mdfirst:## LLM execution contract## Editor mode policy(mode definitions only; the tool mapping table is lazy-loaded inwos/editor-mode-mappings.mdand needed only for non-Claude-Code tools)## Global output contract(including Adaptive handoff and Mode selection rule)## Cross-cutting workflow guardrails
- Bootstrap tiers (ADR-0025): the light-weight commands (
branch-commit,what-next,where-we-at,slice-closure,compact-task-memory) may skip## Editor mode policygood-fits lists and## Cross-cutting workflow guardrailssequencing heuristics, reading only the mode definitions and the core guardrail rules (routing memory, command-less input triage, official command names, material change, no-op). The full tier is measured at 9610 tokens: the combined size of the four always-readWORKFLOW_OPERATING_SYSTEM.mdsections listed above. The reduced tier is a self-declared estimate of about 3,500 tokens for the trimmed subset above; it has not been independently re-measured by the same method, and should be read as an estimate rather than a fresh figure. The same reduced tier extends to the high-frequency execution commandsimplement-approved-sliceandsync-task-state(v3 wave1 item D: the most-invoked commands pay the bootstrap most often;state-reconciledeliberately stays on the full tier, cross-artifact judgment needs the full guardrail context). - Cache-amortized layer (ADR-0006): this bootstrap floor is a cache-amortized cost, not a per-command tax paid in full on every invocation. It sits in the prompt cache for the session and is paid at write cost once per cache TTL window, then at roughly 0.1x on cached reads inside that window. Account for it separately from any per-skill Load budget (the generated
.claude/skills/<name>/SKILL.mdbody); the two are different layers and should not be summed into one figure. - Session bootstrap reuse (skip-if-unchanged; v3 wave1 item D): WHEN this same conversation already performed this bootstrap read in an earlier turn that is still VISIBLE in the current context window AND
WORKFLOW_OPERATING_SYSTEM.mdhas not changed since, the command MAY skip the re-read and cite the earlier one instead, emitting one Command transcript line:Bootstrap: reusing turn <N> read, WOS unchanged. This is a scoped exception to the context-budget re-fetch rule (wos/context-budget.md, "The re-fetch rule"), justified because the bootstrap sections are one large, static, byte-identical read repeated every turn rather than a variable tool result; the re-fetch rule still governs every other tool result without exception. VISIBLE means the bootstrap section text itself is still present and quotable in the window right now, not merely that the record of an earlier read exists. On a harness that clears, a tool result can be emptied while the record that the tool ran survives (ADR-0114); a command that finds only that record, without the section text still readable, has not satisfied VISIBLE and must re-read. Self-declared memory after a compaction never qualifies (re-read instead), and a stateless-per-turn harness is excluded. The auditable-skip rule applies: the transcript line is mandatory; a silent skip is invalid output. - Read additional sections only when relevant to this command's role.
- Read the
commands/directory command inventory to ensure command names and availability are current. - Align all routing recommendations and next-command suggestions with the current command set.
- Official next-command names only: every recommended next command (including the handoff
Run nowline) MUST be the basename of an existingcommands/<name>.mdfile in this workflow repository. Never invent names.
Required inputs:
- the user's full brief (verbatim; the orchestrator decomposes from it)
- client and project identifier (
<client>__<project>; same for all sub-tasks) - optional: explicit decomposition (caller may supply the sub-task list directly:
[{slug, objective, scope_files, scope_repos, complexity_tier?, cross_links?}, ...]; when present, orchestrator skips its own decomposition step and proceeds to validation) - optional: shared repository list (single repo or multi-repo set; inherited by every sub-task unless overridden per-entry)
- optional: explicit max_fanout override (defaults to 10; absolute ceiling 20 to keep parallel project-memory access manageable)
Task repository files to update:
projects/<client>__<project>/active/YYYY-MM-DD_<sub-task-slug>/(one per worker; each worker is the SOLE writer of its own folder)projects/<client>__<project>/INITIATIVE_INDEX.md(orchestrator is the SOLE writer; created if absent; one row per sub-task with date, slug, objective one-liner, status=initialized, cross-links).wos/fleet-inbox/<run_id>/directory (gitignored; one partial per worker).wos/VERIFICATION_LOG.jsonl(one line per merged section + one per per-worker classification event)
Operating rules:
- Handoff: end with the adaptive
### Handoffblock perWORKFLOW_OPERATING_SYSTEM.md## Global output contract. - ADR-0038 Rule 2 exception (per-worker direct folder write): workers write the 5 mandatory files directly into their own task folder rather than returning PROPOSED blocks for a sequential apply step. This is a narrow, documented exception to ADR-0038 Rule 2 (parallel-then-sequential-apply for substrate) justified by the single-writer-per-folder invariant: Step 2 validates scope disjointness across sub-tasks, and each worker is the SOLE writer of its own folder (no two workers can race on the same file). This exception applies ONLY to per-worker task folders. The shared
INITIATIVE_INDEX.mdis the canonical apply target and MUST be written sequentially by the orchestrator in Step 9 (single-writer apply step per ADR-0038 Rule 2). This is not a general escape hatch; any fleet command that cannot prove single-writer-per-folder via pre-dispatch scope validation MUST use the canonical parallel-then-sequential-apply pattern. - Step 1: Decompose (or accept decomposition). If the caller supplied a sub-task list, skip to Step 2. Otherwise: analyze the brief and emit a proposed decomposition. Each sub-task MUST be describable in one sentence, have a distinct slug, have a scope (files OR repos) that does not fully overlap with any other sub-task, and have a stated reason it cannot be folded into a sibling. If N < 3 after decomposition, NO_OP_TRACE: route to
task-initsingle-instance. - Step 2: Validate decomposition. Check: (a) all slugs unique; (b) no two sub-tasks share ALL scope files (true overlap, not partial); (c) cross_links between sub-tasks form a DAG (no cycles); (d) complexity_tier (per ADR-0025) declared per sub-task or inferable; (e) coverage (per ADR-0056): every concrete work-stream or deliverable named in the brief maps to at least one sub-task. Disjointness (b) catches overlap; coverage (e) catches the opposite failure, omission, where a named work-stream silently maps to no sub-task and drops at decomposition. If any check fails (including a coverage gap), NO_OP_TRACE with the failure list (name each unmapped work-stream); route to
decision-interviewon the parent brief to fold the missing stream in or record an explicit de-scope. Scope-disjointness PASS here is the precondition that licenses the per-worker direct folder write exception above. - Step 3: Verify prerequisites. Confirm
projects/<client>__<project>/exists (else warn and route toproject-bootstrap). ConfirmPROJECT_CHARTER.mdpresent (else warn but proceed; workers will run with explicit placeholders). Confirm no existing task folder at any target path (else NO_OP_TRACE listing collisions; either re-slug or useresume-from-state). - Step 4: Verify tier guard. Orchestrator runs Opus (
claude-opus-4-7); workers run Sonnet (claude-sonnet-4-6). Perwos/sub-agent-orchestration.md ## Tier-mapping per role: cross-target synthesis (decomposition + cross-link merge) -> Opus; per-target deep analysis (one task-init) -> Sonnet. Tier guard PASS (orch tier > worker tier). - Step 5: Dispatch workers. For each sub-task entry, invoke a stateless sub-agent (Claude Code
Tasktool withsubagent_type: general-purpose). Passtask_inputmatchingworker_input_schema. Each worker writes the 5 mandatory files directly into its own folder AND returns the structuredworker_output_schemapayload via theStructuredOutputtool keyedartifact=fleet-inbox/<run_id>/<worker_id>(ADR-0038 Rule 1; prose.partial.mdreturns FORBIDDEN, a typed.partial.jsonis replay-only). - Step 6: Each worker (instruction template). Worker executes the standard
task-initflow (seecommands/task-init.mdOperating rules and Files to generate) for ONE sub-task with the given slug and objective. Worker MUST NOT touch INITIATIVE_INDEX.md (substrate-peer rule); the orchestrator owns the cross-task index. Worker emits the per-sub-task## Recommended pipelinesection in TASK_STATE.md per ADR-0025 complexity-tier rules. Worker MUST invoke theStructuredOutputtool exactly once with theworker_output_schemapayload before exit; free-form prose return is forbidden (ADR-0038 Rule 1). The structured return shape is{status: "satisfied", task_folder_path: "<path>", files_created: ["README.md", ...], recommended_next_command: "<basename>", complexity_tier_emitted: "<tier>", open_questions: [...]}. A typed.partial.jsonfile under.wos/fleet-inbox/<run_id>/is a debug/replay artifact only (never.partial.md); the StructuredOutput tool call is the canonical channel per ADR-0038. - Step 7: Wait for convergence. Barrier pattern: wait for all N workers OR
timeout_ms(10 min default). Read all StructuredOutput payloads (and supportingactive/.wos/fleet-inbox/<run_id>/partials when present). Classify percommands/_shared/convergence-policy.md. - Step 8: Merge. Apply
unionmerge: collect all survivingtask_folder_pathentries. Build the INITIATIVE_INDEX.md row set: one row per sub-task with<date> | <slug> | <objective one-liner> | initialized | <cross_links summary> | <recommended_next_command>. Sort by slug ASC for determinism. - Step 9: Write INITIATIVE_INDEX.md. Emit transaction header above
## Initiativessection; merge new rows with existing rows preserved (initiative index accumulates across runs; the fleet only appends or updates rows for THIS run's slugs). This is the canonical sequential apply step for the shared substrate file per ADR-0038 Rule 2. - Step 9.5: Scan substrate orphans (ADR-0038 Rule 3). Run
python scripts/scan-substrate-orphans.py projects/<client>__<project>/INITIATIVE_INDEX.md. If the scanner reports any orphan bullets (bullets not anchored under an existing heading or parent list), REVERT the append from Step 9 (restore the pre-append file content) and NO_OP_TRACE listing the offending bullets and the revert in the trace. Do NOT emit a VERIFICATION_LOG event for the failed scan: there is noorphan_scan_failevent in the canonical taxonomy and nothing was merged. Cross-referencewos/bug-classes/substrate-bullet-orphan.mdfor the failure class. Do NOT proceed to Step 10 unless orphan-scan PASS. - Step 10: Emit VERIFICATION_LOG.jsonl. One line per per-worker classification event plus one line for the merged INITIATIVE_INDEX section (
event=fleet-merge,partials=[worker_id, ...],strategy=union), with the orphan-scan result folded into thatfleet-mergeline as an additiveorphan_scan=passedfield (the validator tolerates additive fields; there is NOevent=orphan_scanin the canonical taxonomy, so never emit it as its own line), matchingverify-against-rubric-fleet. - Step 11: Cross-link sweep. For every
cross_linksentry returned by workers, verify the named sibling task folder exists (post-dispatch). If a referenced sibling is missing (worker_failed or never dispatched), logevent=merge_with_gapwith the dangling link. Do NOT delete or rewrite worker-emitted cross-links; leave the gap visible forstate-reconcileor a follow-upresume-from-stateper sibling. - Workers NEVER write INITIATIVE_INDEX.md. The orchestrator is the SOLE writer of the cross-task index.
- Do NOT implement code, decisions, or plans here. This command initializes task folders only; each sub-task continues via its recommended next command (typically
impact-analysisor per the complexity tier). - Mixing client_project across sub-tasks in one fleet run is FORBIDDEN. Re-run per client_project to keep INITIATIVE_INDEX writes scoped.
Required output:
- Decomposition summary: N sub-tasks identified, brief one-liner per sub-task
- Dispatch summary: N dispatched, M satisfied, K needs_revision, L failed, P interrupted, T timed out
- Per-sub-task: task folder path, complexity tier emitted, recommended next command
- Cross-link graph: ASCII or bullet-list summary of dependencies between sub-tasks
- INITIATIVE_INDEX.md path and merged row count
- Top open questions across the fleet (max 5)
- Recommended next command per sub-task; recommended overall coordination move (typically
where-we-aton each in sequence, ordecision-interviewif cross-task conflicts surfaced)
Claim grounding (active epistemic humility)
<!-- shared:claim-grounding -->Claim grounding (active epistemic humility). This block governs what you may assert and how you record it. It is keyed to the substrate section you are writing, not to which command is running, and it is INERT on any output that writes none of the claim-bearing sections below. Full contract and rationale: wos/active-epistemic-humility.md.
-
When this applies. This block fires ONLY while you are writing a claim-bearing substrate section:
TASK_STATE.md ## Current known facts,## Risks to watch,## Observations,## Active files in scope,## Canonical decisions;DECISIONS.md ## Locked decisions;IMPLEMENTATION_PLAN.md ## Current gaps,## Risks and mitigations;IMPACT_ANALYSIS.md;EXTERNAL_RESEARCH.md;REFERENCES.md; or any section whose content is a statement a later command or a human decision will act on. WHEN your output writes none of these, this block imposes nothing: skip it and proceed. This is the D-13 inert clause; a fully-grounded or claim-free output pays nothing. -
The unit is the load-bearing claim. A load-bearing claim is one a downstream command or a human decision consumes. A passing aside is not load-bearing; a statement someone will act on is. Apply the rest of this block per load-bearing claim, not per sentence.
-
Ground it or abstain. Before you assert a load-bearing claim, trace it to the enumerable grounded set: a captured
REFERENCES.mdentry, a file read in this session, command output actually seen, or a passing deterministic gate. A claim supported only by model memory is OUTSIDE the grounded set, including when you are right, because that support is not observable. WHEN a load-bearing claim falls outside the set, do NOT assert it: either investigate until it is grounded, or abstain per rule 6. -
Status records provenance, never confidence. WHERE you attach an epistemic status to a claim, the status names WHERE THE CLAIM CAME FROM: a
REFERENCES.mdentry title, a file path plus line, or the gate output it came from. It SHALL NOT express a degree of certainty. Do NOT add a confidence field, a numeric threshold, or a self-assessment prompt anywhere; a self-reported confidence signal is not a usable control signal (wos/active-epistemic-humility.mdPart 1.3). A status whose referent slot is empty is read as UNKNOWN, not as a weak yes. -
Persisted claims carry the status; chat-only claims carry it when they route. Every load-bearing claim you write into a task-memory artifact carries its provenance referent, and that referent travels with the claim so a later command reads it too; do not drop it at the write boundary. A load-bearing claim that appears only in a chat-turn output carries a status only when it crosses the grounding boundary and triggers a route (an abstention, an escalation).
-
Abstain as a routed continuation, never a bare refusal. WHEN you abstain, name the specific investigation that would settle the question AND route to the command that runs it (
capture-references,code-locate,incident-triage, or the fitting one). A withholding that stalls the work is invalid output. Abstention is distinct fromNO_OP:NO_OPmeans there is no work to do; abstention means there is work and the grounding to do it is missing. -
An unfired gate is not evidence. The absence of a fired check does not mean grounding existed. Do not read silence here as a pass.
Standard output layout (required)
<!-- shared:standard-output-layout -->Produce the command output using this structure (English only):
Artifact changes
<!-- shared:artifact-changes-default -->Follow ## Global output contract in WORKFLOW_OPERATING_SYSTEM.md for APPLIED / PROPOSED / SKIP rules.
Command transcript
<!-- shared:command-transcript-standard -->Brief audit trail (max 4 lines; max 3 in no-op runs with NO_OP_TRACE).
Handoff
<!-- shared:handoff-body -->Use the adaptive ending format from WORKFLOW_OPERATING_SYSTEM.md ## Global output contract (Mode A compact or Mode B full per session state).
Definition of done (command output)
- Every sub-task in the decomposition has exactly one task folder under
projects/<client>__<project>/active/with all 5 mandatory files. - INITIATIVE_INDEX.md has one row per surviving worker output; existing rows from prior runs preserved.
- Orphan-scan PASS on INITIATIVE_INDEX.md after Step 9 (ADR-0038 Rule 3); if FAIL, the append from Step 9 was reverted and the run NO_OP_TRACEd.
- Cross-link gaps (referenced siblings missing) explicitly logged in VERIFICATION_LOG with
event=merge_with_gap. - Per-worker partials persisted in
.wos/fleet-inbox/<run_id>/. - Every worker returned a StructuredOutput payload conforming to
worker_output_schema; free-form prose returns explicitly flagged as worker-contract violations in### Command transcript. - Worker contract violations (mid-flight writes to INITIATIVE_INDEX) explicitly listed in
### Command transcript. - No production code or decisions implemented; output explicitly says "initialization only".
- Substrate peer rule respected: INITIATIVE_INDEX.md is owned by this command per the substrate ownership matrix (folded entry added in K.2 retrofit).
- Decomposition validation (uniqueness, scope disjointness, DAG check, complexity tier, and deliverable coverage per ADR-0056) explicitly stated as PASS before dispatch. A coverage gap (a work-stream named in the brief mapping to no sub-task) is NO_OP_TRACE to decision-interview, never a silent proceed.
- Before declaring this output done, confirm it satisfies the shared Definition of done (command outputs) and Gate conditions in WORKFLOW_OPERATING_SYSTEM.md.
Quality bar:
J.8 orchestrator pilot. The decomposition step is the highest-risk part: if the orchestrator silently folds two distinct sub-tasks into one (or splits one cohesive task into two), the downstream cost is creating wrong task folders the user must manually merge. When in doubt, NO_OP_TRACE and route to decision-interview for the user to confirm decomposition before dispatch. Silent over-splitting is a worse failure mode than under-splitting; prefer fewer task folders + cleaner scope over more task folders + ambiguous overlap. ADR-0038 binding rules apply: structured output (Rule 1) is enforced in Step 6, per-worker folder writes are the documented Rule 2 exception (single-writer-per-folder, validated in Step 2), the shared INITIATIVE_INDEX.md write is the sequential apply step, and scripts/scan-substrate-orphans.py is run in Step 9.5 against INITIATIVE_INDEX.md to prevent the wos/bug-classes/substrate-bullet-orphan.md failure class (Rule 3).
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.