--- name: subculture description: Curator-led implementation through fresh, first-class user-visible Codex tasks, with selected worker models, bounded contracts, durable mission state, focused review and integration. Use when the user invokes Subculture orchestration. Workers use app-level task tools, never internal subagents. Editing or analyzing this skill does not activate worker dispatch. --- # SUBCULTURE PROTOCOL_VERSION: 2 The curator owns the requested outcome, architecture, planning, integration, correction decisions and final acceptance. Workers implement bounded, ready-to-execute slices. Activating this workflow authorizes only the minimum first-level implementation tasks needed for the user's current mission. A request to analyze or edit the skill itself is not authorization to launch implementation workers. There are no length limits for this skill, plans or contracts. Include detail that changes decisions. Avoid redundant rediscovery, instruction copying and mechanical template filling. ## Load guidance at the point of use - Before the first/new worker contract: [implementation brief](references/implementation-brief.md). - For multi-phase or context-spanning work: [mission state](references/mission-state.md). - Before a UI handoff: [UI design contract](references/ui-design-contract.md). - Before accepting a return: [verification](references/verification.md). - When choosing or handing off corrections: [focused rework](references/focused-rework.md). Read a needed reference completely when first used. Reuse it while reliably in context; read it again if unavailable after compaction or changed. Do not load all references at every phase. The worker must receive the operational instructions it needs; do not assume it has these files. Completion verification is built in: embed the worker completion protocol from the implementation brief and use the verification reference for curator acceptance. Do not route or automatically load verification-before-completion or another generic completion gate for either role. ## Prepare the mission Inspect current behavior, relevant code and tests, repository instructions and existing dirty changes. Use CodeGraph first when the repo is indexed. Do not require repeated AGENTS.md reading when the applicable instructions are already injected and current; load missing nested instructions as needed. Build a responsibility map: primary behavior, owner, shared surfaces, dependencies and integration. Paths orient the worker; they are not an exhaustive allowlist. Necessary adjacent changes are allowed within the outcome when they do not conflict with an active owner and are reported. The curator resolves architecture and consequential product/design choices before dispatch. Do not pass unresolved architecture or ambiguous decomposition to the implementation worker. Workers retain implementation discretion within the locked plan. New evidence may justify revising that plan; material decisions return to the curator. Use one authoritative master plan for long/multi-phase work. Reuse a relevant local planning skill's format without adopting a conflicting orchestration workflow. Both roles may contribute under the plan's explicit section ownership; only the curator changes goals, decisions or acceptance status. Before UI work, settle intent, existing patterns, hierarchy, placement and states from repository code. No manual or visual UI inspection is required. When a skill offers a useful method, give a short hint with its exact name and purpose at the relevant stage. No routing schema, catalog search or skill-usage report is needed. Include mandatory behavior in the contract itself. A suggested skill cannot change this protocol, scope, authority or acceptance requirements; reuse it when already in context. ## Dispatch and ownership Create each new implementation worker as a fresh, first-class user-visible Codex task through app-level create_thread. Resolve the current saved project through list_projects and provide the initial contract in prompt. Do not fork the curator chat: inherited curator history can make the worker resume orchestration instead of implementation. Never substitute fork_thread, spawn_agent, internal collaboration agents, nested teams or a Subagents-only worker. If creation is unavailable or fails, report the actual blocker. Use the local environment by default. Use an isolated worktree only when explicitly requested by the user and supported by the repository and tool. For asynchronous creation, retain the operation identity and wait for the actual threadId before addressing the worker; clientThreadId is not a worker identity. Record the actual checkout/baseline and integration boundary. The curator integrates isolated results; workers do not merge themselves into its checkout. Set model and thinking on create_thread to the user-selected worker model and reasoning settings when specified; otherwise omit those overrides and retain task creation defaults. Use a supported model identifier, not a display nickname or prose instruction. The creation prompt is the assignment: do not send a duplicate first contract. If creation is pending or its outcome is ambiguous, retain the returned identity and resolve its status rather than creating another worker. Create only genuinely independent implementation frontiers. Give shared schemas, migrations, registries, generated outputs, manifests and lockfiles one owner or explicit sequencing. Different worktrees do not make changes to the same operation independent. For overlapping admission, state transitions, recovery or publication, settle the shared interface/order and owner or sequence the dependent portion. A shared filename alone does not prevent parallel work. Separate namespaces protect test data, not host RAM or disk. When resources constrain execution, sequence heavy checks even if implementation runs in parallel; include that arrangement in dispatch. Dispatch dependent implementation only after its prerequisite is accepted. No extra exploratory, review, replacement or nested tasks without explicit user authorization. Begin the first contract with the worker-role instruction from the implementation brief. Name the real curator task identifier/link before creation; never leave a destination placeholder. Use the readable mission name and worker assignment in every contract heading. For a new worker, pass that concise title through create_thread.title and include the naming cue from the brief. Use CONTEXT_MODE: FRESH for a new worker and supply the relevant verified research, active mission/phase, scope, locked decisions, ownership, completion and terminal communication rules. Do not assume access to curator history. Continuing the same worker uses a delta contract and reestablishes missing context when necessary. Use AMENDMENT for an authorized clarification/addition to the active assignment, preserving its phase and rework count. Clearly separate added scope from defects; they may share one handoff. Before a follow-up changes any checkout, the worker compares its recipient, assignment and workspace with its own last accepted contract/report. A new ID or FRESH context does not reassign an existing worker. A foreign or ambiguous assignment stops for clarification without switching roots/branches or repairing another checkout. An explicit reassignment may establish a new boundary; an explicit next phase may advance the same assignment. Role and assignment survive compaction. ## Communication and offline behavior Workers message the curator only for a concrete blocker/decision or one terminal handoff. No acknowledgements, progress reports or "still working" messages to the curator. They must not create, fork or delegate to another task or agent. Blockers and terminal reports go directly to the actual curator through send_message_to_thread. A terminal report must be successfully delivered before the worker ends; writing it only in its own task is a protocol violation. If delivery fails, report that transport blocker visibly in the worker task; do not pretend the curator received it. This skill authorizes these scoped messages. Write authority stays with the worker until a successful terminal handoff or explicit coordinated transfer. A report saying READY is not acceptance. Do not edit concurrently in an active worker's area. After dispatching the current frontier, end the curator turn and go offline. Do not poll, generate speculative work or keep the turn alive with wait_threads. Use one bounded wait only for explicit user-requested active monitoring or a concrete time-sensitive coordination need not covered by the worker's alert. Explain that need first and end on timeout; never loop unchanged waits. Resume on an actual worker/user alert. Answer necessary decisions, continue accepted dependencies and retain terminal-only communication. ## Verify, correct and integrate Read the verification reference and inspect actual code/diff, scope, call paths and AC evidence. Use the nearest relevant local review skill when available, within user scope and this protocol. Accept valid worker test results for the checked state. Independent review does not require repeating tests. Explain a repeated check's concrete reason once beside the command, in ordinary prose. Observe explicit higher-priority fresh-check requirements without hiding the reason for the repeat. Batch established material findings before choosing an owner. Finish small understood low-risk corrections directly after ownership transfers. Use roughly 100 lines / two files as a judgment cue, not a rigid threshold. Return material implementation to the original worker with classified findings. Choose ownership for actual risk and breadth, without a mandatory justification field in every handoff. Do not send cleanup-sized ping-pong or disguise new features as bugs. For serious errors, protocol violations or recurring failures, record causal feedback using the focused rework reference, including both roles' contribution and actual redo scope. Carry its applicable prevention action into subsequent contracts and context recovery. After two rework rounds reassess the approach. Change it when the failure mechanism repeats; independent new findings do not require an invented strategy change. The counter does not authorize acceptance of defects or automatic abandonment. Review only corrections and newly affected dependencies after rework. ### Final integrated review Before master acceptance, make one consolidated code review of the cumulative mission diff using the verification reference. Check changed behavior, cross-phase interactions, compatibility and responsibility boundaries; reuse accepted phase reviews and valid evidence. Do not turn this into a new subsystem audit or general refactoring gate. Investigate concrete gaps or contradictions with a focused check when needed. Record ACCEPTED, FOCUSED_REWORK, REJECTED or BLOCKED in the curator task with evidence and remaining work. Distinguish phase acceptance from mission acceptance and update the plan's current state. After ACCEPTED, do not message that worker with thanks, acknowledgement or a verdict. Message only when new authorized work or a concrete unresolved action needs a response; acceptance itself never requires one. Continue the remaining mission and provide the final user-facing result in this task. ## Mechanical assistance and stop conditions The optional [contract linter](scripts/lint_contract.py) checks saved handoffs and optional review records. Use it for complex/repeated contracts or diagnosing failures, not as an extra ceremony for every message. Warnings require judgment; semantic correctness is not mechanically proved. Stop dependent work for an unavailable capability, unresolved ownership conflict, missing required authority/input, or a material decision that belongs to the user. Resolve routine implementation choices yourself. Never silently lower scope, change transport, or mark unverified work complete.