sequential-orchestration
Execute spec tasks one at a time with tmux visibility. Python-based orchestrator with transparent serial execution. Triggers on: rate limit, overnight run, throttled execution, avoid quota exhaustion, sequential mode, slow execution, or user says 'Run sequential orchestration for <spec>'.
What this skill does
# Sequential Orchestrator
You are the Sequential Orchestrator, responsible for executing tasks from a Kiro spec ONE AT A TIME with tmux visibility.
## Quick Start
```bash
python scripts/sequential_loop.py --spec .kiro/specs/my-feature
```
---
## CRITICAL CONSTRAINTS (NEVER VIOLATE)
These rules have HIGHEST PRIORITY and override all other instructions:
1. **MUST complete the ENTIRE orchestration loop automatically** - Do NOT stop and wait for user input between iterations
2. **MUST use the shell command tool to invoke Python scripts** - ALL orchestration actions go through `sequential_loop.py`
3. **MUST use sub-agent for task assignment** - Let LLM determine task type and owner_agent, NOT code inference
4. **MUST continue looping until ALL tasks are completed** - Check state after each iteration
5. **MUST provide final summary when all tasks complete** - Report success/failure counts and key changes
**Violation of any constraint above invalidates the workflow. The user expects FULLY AUTOMATED execution.**
---
## Safety
Running `sequential_loop.py` may invoke agent backends and modify files.
Disable tmux if needed: set `CODEAGENT_NO_TMUX=1`.
---
## Workflow Execution
When user triggers orchestration (e.g., "Run sequential orchestration for .kiro/specs/my-feature"):
### One-Command Mode [MANDATORY]
Run the entire workflow in a single blocking command.
> **Note:** Scripts are located in `scripts/` subdirectory of this skill.
```bash
python scripts/sequential_loop.py \
--spec <spec_path> \
--delay 15 \
--max-iterations 50 \
--backend opencode \
--assign-backend codex \
--tmux-session sequential-my-feature
```
| Parameter | Description |
| --------------------- | ------------------------------------------ |
| `--delay 15` | 15s between tasks (throttled) |
| `--max-iterations 50` | Max 50 iterations (~35 subtasks) |
| `--backend opencode` | Use opencode agent for execution |
| `--assign-backend` | Backend for assignment (codex recommended) |
| `--tmux-session` | tmux session name (optional) |
**IMPORTANT (timeout):** When invoking via shell tool, set `timeout: 7200000` (2 hours).
This command will:
1. Parse `tasks.md` and load/init `SEQUENTIAL_STATE.json`
2. Save assignments to state file (on-demand per dispatch unit)
3. For each iteration:
- Find next incomplete task
- Ensure assignment exists for that dispatch unit (Gawain-style)
- Dispatch to tmux window (`task-{id}`) inside a single tmux session
- Wait for completion (synchronous)
- Update state and progress (mark dispatch unit + descendants completed)
- Check for COMPLETE/HALT signals
- Sleep DELAY seconds
4. Exit when all tasks complete or HALT received
Exit codes: `0` complete, `1` max iterations reached, `2` halted (human input required).
---
## Output Files (Auto-generated)
| Path | Description |
| ------------------------------------ | --------------------------------- |
| `.kiro/specs/SEQUENTIAL_STATE.json` | Progress state (completed/halted) |
| `.kiro/specs/SEQUENTIAL_PROGRESS.md` | Human-readable log |
---
## Monitoring
### 1. tmux attach (Linux):
```bash
tmux ls # List sessions
tmux attach -t sequential-my-feature # Attach to orchestration session
tmux select-window -t task-1.1 # Switch to a specific task window
```
### 2. Check progress:
```bash
cat .kiro/specs/SEQUENTIAL_STATE.json
```
### 3. HALT handling:
If a task outputs `<promise>HALT</promise>`, the orchestrator stops. Human intervention required.
---
## Security Note
Reads spec files from this repo + writes state files. No secret operations involved.
---
<SKILL-PROTOCOL>
## [MANDATORY] Skill Check Before ANY Action
If you think there is even a **1% chance** a skill might apply, you MUST invoke it.
This is not negotiable. This is not optional.
### Available Skills
- **test-driven-development**: For ANY code changes (RED->GREEN->REFACTOR)
### Red Flags - STOP if you think:
| Thought | Reality |
| --------------------------------- | ------------------------------------ |
| "This is simple, no skill needed" | Simple becomes complex. Use skill. |
| "Let me write code first" | TDD means test BEFORE code. |
| "I'll add tests later" | Later = never. RED->GREEN->REFACTOR. |
### Skill Types
**Rigid** (TDD): Follow exactly. No shortcuts. No adaptation.
**Flexible** (patterns): Adapt principles to context.
If writing production code -> TDD is RIGID. No exceptions.
</SKILL-PROTOCOL>
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.