name: orchestration description: Use when the user says "orchestrate", starts the prompt with "Orchestrate ...", says "build the full feature", "run the pipeline", or asks for end-to-end implementation. This skill defines the multi-step agent workflow for building features from planning through to PR-ready code.
Orchestration Workflow
When triggered, execute the following steps in order. Each step should be a distinct phase with a clear handoff.
Trigger examples:
Orchestrate creation of the iris FastAPI classifier service with testsOrchestrate build of a FastAPI ML prediction API
Demo-Speed Defaults (apply unless the user asks otherwise)
- Prioritize a fast local demo path: build the feature, start the API locally, and verify with a small smoke check.
- Print the exact
curlcommands used for manual verification (health + at least one prediction request). - Do not spend time on Docker, CI, deployment, or performance tuning unless explicitly requested.
- Include tests, but do not block completion on running the full test suite if it is slow. Prefer smoke verification plus a clear note that full pytest was deferred.
Step 1: Planning (use scope-planner subagent if available)
Before writing any code:
- Identify all components needed (files, modules, endpoints, tests).
- List which rules from
.cursor/rules/apply to this task. - List which skills from
.cursor/skills/will be needed. - Produce a checklist of deliverables in markdown.
- Do NOT write code in this step.
Step 2: Implementation (use coder subagent if available)
With the plan as input:
- Load the relevant skills (fastapi-scaffold, model-serving).
- Follow all active rules.
- Implement each item from the plan checklist.
- After each file, verify it passes
uv run ruff check <file>.
Implementation emphasis for demos:
- Build the minimal complete solution needed for local verification first.
- Defer Docker/CI/deployment/perf work unless the user explicitly asks for it.
Step 3: Quality Review (use quality-reviewer subagent if available)
Review all generated code against:
- Do tests exist for every endpoint? (testing-requirements rule)
- Are all functions typed? (typing-standards rule)
- Is the response envelope consistent? (api-style rule)
- Is the model loaded at startup, not per-request? (model-lifecycle rule)
- Are there any
print()statements? (logging-standard rule) - Does the README match the required format? (documentation-style rule)
Produce a pass/fail checklist. If any check fails, go back to Step 2 for fixes.
Step 4: Final Verification
Run local smoke verification first and print the exact commands used (for example, one health check and one prediction request against the local port).
Then run the quality gate when practical:
uv run ruff check .
uv run pytest
If uv run pytest is slow for a live demo, do not block completion as long as:
- tests were implemented,
- local smoke verification passed, and
- you explicitly report that full pytest was deferred for demo speed.