一键导入
design-batch-architecture
Design the parallel/headless worker execution model for processing items at scale — worker prompts, state tracking, and merge pipelines.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Design the parallel/headless worker execution model for processing items at scale — worker prompts, state tracking, and merge pipelines.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | design-batch-architecture |
| description | Design the parallel/headless worker execution model for processing items at scale — worker prompts, state tracking, and merge pipelines. |
/design-skills (need to know which skills support batch mode)output/designs/skill-designs.md (which skills need batch variants)domain-input/domain-workflow.md (scale operations in the workflow)domain-input/data-contract.md (ownership rules for batch output)From the skill designs and workflow, list operations that could process multiple items:
| Operation | Skill | Typical Volume | Time per Item | Parallelizable? |
|---|---|---|---|---|
| [e.g., Evaluate offers] | /[skill] | 10-50 per batch | 3-5 min | Yes |
| [e.g., Scan portals] | /[skill] | 50-200 per run | 30s-2min | Partially (Playwright: 1) |
The worker prompt (batch/batch-prompt.md) must be completely self-contained:
Ask the designer: "If you had to explain to a colleague how to evaluate one [item] without any prior conversation, what would you tell them?" That's the worker prompt.
State file schema (batch/batch-state.tsv):
| Column | Type | Values | Purpose |
|---|---|---|---|
| id | integer | auto-increment | Unique item identifier |
| input | string | URL, text, or reference | What to process |
| status | enum | pending, in-progress, completed, failed, skipped | Current state |
| output_path | string | path to output file | Where result lives |
| error | string | error message if failed | Debugging |
| retries | integer | 0-N | How many times retried |
| timestamp | datetime | ISO 8601 | When last updated |
Each worker produces individual output files. Design the merge:
How items enter the batch:
Write batch architecture to output/designs/batch-designs.md.
Tell the designer:
Batch architecture designed:
- [N] batch-eligible operations
- Worker prompt: self-contained, [N] context file references
- State tracking: [N]-column TSV with [N] status values
- Merge: [script name], dedup by [key], idempotent: [yes/no]
- Safety: lock file, dry-run, max [N] parallel, resume, retry
Key constraint: [e.g., "Playwright limited to 1 concurrent worker"]
Next: Run /design-data-sources if the OS ingests external data.
Or skip to /generate-os.
Good batch architecture:
Bad batch architecture:
Audit a generated OS repository for completeness, consistency, and architectural integrity against the 15 design principles and 23-item checklist.
Transplant a skill, command, or capability from one agentic-system repo into another via a 5-phase gated protocol (inventory → import → localize → wire → verify). Use when grafting a feature from an upstream repo that has its own dependencies, platform assumptions, or upstream-specific file references that need adapting before the feature will work in the destination repo. Not for copying a self-contained file — use only when the feature has a dependency footprint and the destination repo has its own conventions the import must respect.
Design multi-dimensional evaluation rubrics with calibrated scales, thresholds, and function-adaptive weights.
Identify who evaluates the user's output, what each audience prioritizes, and where their priorities conflict.
Define the user context model — identity axes, context files, persona variants, and privacy rules for the target OS.
Design compounding feedback loops — what data accumulates, what reads it, and how the system gets smarter with use.