ワンクリックで
creating-a-pipeline
Design and scaffold a new named Superpipelines workflow after scope, brief, topology, audit, and human approval gates.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Design and scaffold a new named Superpipelines workflow after scope, brief, topology, audit, and human approval gates.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Cut a Superpipelines version release (vX.Y.Z) — verify the 5 version targets agree, draft CHANGELOG + RELEASE-NOTES entries, land them via PR (main is branch-protected), then create the GitHub release + tag and verify. Use when the user asks to cut/ship/publish a release, tag a version, do release work, or write release notes for Superpipelines.
Resolves agent `model_tier:` declarations into concrete platform-specific model strings and effort values via a 5-layer precedence chain, returning a serializable `resolved` object for dispatch. Use when `running-a-pipeline` Phase 0.45 needs to determine the concrete model + effort for each pipeline step on the active platform before dispatch.
Resolves the active runtime tier and provides the canonical DISPATCH contract for all pipeline step execution. Use when an orchestrator skill needs to dispatch pipeline steps — performs tier detection, loads the platform profile, and executes the Tier 2 inline loop when no subagent primitive is available.
Cut a Superpipelines version release (vX.Y.Z) — verify the 5 version targets agree, draft CHANGELOG + RELEASE-NOTES entries, land them via PR (main is branch-protected), then create the GitHub release + tag and verify. Use when the user asks to cut/ship/publish a release, tag a version, do release work, or write release notes for Superpipelines.
Run, resume, or list installed Superpipelines workflows from the registry.
Provides canonical engineering standards for authoring agents, skills, hooks, and pipeline orchestration in Claude Code. Use when authoring or modifying agents, skills, hooks, or pipeline-orchestration artifacts — covers model-tier selection, prompt-cache discipline, frontmatter schemas, and progressive-disclosure rules.
| name | creating-a-pipeline |
| description | Design and scaffold a new named Superpipelines workflow after scope, brief, topology, audit, and human approval gates. |
| user-invocable | false |
Do not delete the marker automatically — it is cleared by the next successful SessionStart hook.
sk-platform-dispatch via the Skill tool → call DETECT() → receive platform_profile object.platform_profile in session context (no state file exists yet during creation).platform_profile.degradation_warnings is non-empty: emit each warning with "⚠️" prefix before proceeding.platform_profile.capabilities.reviewer_isolation != "structural" (Tier 2; Tier 1c when un-verified), emit a pattern-specific advisory before pattern selection: "Patterns 2 and 5 depend on reviewer isolation for over-build / assumption-blindness defense. On this platform reviewer isolation is <reviewer_isolation> — review steps execute but cannot provide structural verification. Consider scaffolding production-critical pipelines from a structurally-isolated tier (Claude Code, OpenCode, or Codex)."platform_profile for use in Phase 4 dispatch branching.Ask the user to choose a deployment scope (local, project, or user) and a pipeline name BEFORE proceeding to Phase 2. Resolve all paths via sk-pipeline-paths. Validate the name: lowercase/hyphens only, ≤48 chars, unique in the scope's registry.json. Do NOT advance to Phase 2 without a confirmed scope and a valid, unique pipeline name.
Q15 cross-scope uniqueness check: After name validation in the chosen scope, scan all OTHER merged scope roots (via sk-pipeline-paths.ENUMERATE_ALL_SCOPE_ROOTS) for entries with the same name. IF a same-name pipeline exists in another scope or tier, prompt the user explicitly:
⚠️ A pipeline named
{P}already exists in {other-scope / other-tier} (scaffolded {date}). Creating another{P}in {this-scope / this-tier} is allowed but may cause disambiguation prompts at run-time. Continue? [y/N]
Only proceed on explicit y. Default N prevents silent collisions.
Grilling gate (mandatory): FIRST load sk-pipeline-grilling via the Skill tool and run GRILL(MODE=brief, platform_profile, scope, name, raw_brief). It determines pipeline type, runs the conditional silent crawl, grills the user, and clears the reconciliation HARD GATE. Do NOT proceed to the 4D / model-preference / output-format steps below until it returns a hardened_brief. The grilling exit bar subsumes the legacy "≥3 critical slots missing" check.
Apply the 4D Method to the hardened_brief to finalize intent and constraints.
Q6 capability-gated model prompting. Before asking per-step model questions, branch on the active platform_profile:
platform_profile.capabilities.dynamic_subagents == true (Tier 1c — host owns subagent model selection) OR platform_profile.capabilities.model_field_format == "omit" (Tier 2 — host IDE owns all model selection):
fast)". Record as orchestrator_tier.model_tier: inherit on every generated agent (the architect will honor this in Phase 4).metadata.model_intent_scaffold_tier recording what the author would have picked per step had the platform supported per-step selection. This makes the pipeline cross-tier portable: when run later on a per-step-honoring tier (1, 1b, 1d), the intent is recoverable.Model preference per step (4-tier): For each topology step the architect will generate in Phase 4, ask the user to choose a model tier:
| Tier | Use cases |
|---|---|
triage | Routers, classifiers, simple decisions (cheapest model) |
fast | Execution, utility, code generation workhorse-cheap |
medium | Standard coding workhorse |
deep | Planning, architecture, review (most capable model) |
Recommended defaults: planning/architecture/review → deep; coding/execution → medium; utility/formatting → fast; routers/classifiers → triage.
Optionally ask per-step effort_tier (low | medium | high). Skip = use the tier's default effort from the active profile.
Record {step_id: {model_tier, effort_tier}} in Phase 2 output. The architect MUST write model_tier: (and optional effort_tier:) to each generated agent's frontmatter in Phase 4. The architect MUST NOT write model: — that field is resolved at runtime by sk-model-resolver.
Per DEPENDENCY_INVERSION: PROFILE_DRIVEN, concrete per-tier model IDs live exclusively in skills/sk-platform-dispatch/profiles/{tier_id}.json and user/workspace preference files. NEVER hardcode model IDs in this skill body or in generated agents.
If the user declines per-step choice, default every step to fast.
Acknowledge if the user requested a specific output format. If not specified, deduce an appropriate format based on the pipeline's goal (e.g., markdown files, code snippets, code files).
sk-pipeline-patterns decision tree.workflow_requires_tracked_source_isolation:
true when the workflow needs parallel or iterative writers to modify tracked source files, or when the requested recovery/rollback boundary is a git branch/worktree.false when the workflow only reads tracked source, performs review, fetches data, or writes declared artifacts under the Superpipelines run directory / output contracts.IF !git_repo: patterns = [1, 4]
ELIF workflow_requires_tracked_source_isolation AND !platform_profile.capabilities.worktrees: patterns = [1, 4]
ELSE IF !platform_profile.capabilities.parallel_subagents: patterns = [1, 3, 4] # Pattern 3 needs worktrees but not parallelism
ELSE: patterns = [1, 2, 3, 4, 5]
When narrowing for tracked-source isolation, emit an advisory naming the missing capability and the excluded patterns: e.g., "This workflow requires tracked-source writer isolation, but <platform> has worktrees:false. Limited to Patterns 1 and 4."worktrees:false, limit selection to Pattern 1 or 4 only when workflow_requires_tracked_source_isolation == true. Artifact-only workflows may still use Patterns 2/3/5 because their isolation boundary is the Superpipelines run directory, pipeline-state.json, declared io_contract.outputs, dependency ordering/barriers, and platform reviewer write-deny controls where available.sk-pipeline-grilling via the Skill tool and run GRILL(MODE=architectural, platform_profile, selected_pattern). It confirms the user understands the pattern/isolation/model-tier tradeoffs and surfaces every platform_profile.degradation_warnings entry. Do NOT advance to Phase 4 until the user acknowledges.Dispatch Architect (profile-driven from Phase 0):
dispatch_mechanism | Architect action |
|---|---|
native_task | Task(pipeline-architect, ...) — include platform_profile in the Task prompt; subagent context is fresh and has no access to the session-cached profile |
native_subagent | OC native mode: subagent dispatch — include platform_profile in the dispatch payload |
model_driven | Model-driven orchestration prompt — include platform_profile in the prompt context |
inline or unknown | Skill(pipeline-architect-protocol) → execute inline with own tools — profile already in session context |
Architect output rule for agent frontmatter: every generated agent file MUST declare model_tier: (one of triage | fast | medium | deep | inherit) and MAY declare effort_tier: (low | medium | high). The architect MUST NOT write a concrete model: field — that resolves at runtime via sk-model-resolver. For preview-only display in Phase 5, the architect MAY call sk-model-resolver.RESOLVE and EMIT against the active profile, but the resolved string is for the approval table only, never written to agent files.
CAD context-hygiene contract: The Architect MUST generate one CAD per step agent with tool-neutral frontmatter plus inline protocol body. CAD description is third-person trigger metadata only; operational workflow belongs in the body. CAD frontmatter MUST NOT include skill invocation fields such as disable-model-invocation or user-invocable. Per-pipeline references/ files are allowed only for reused, scanability-improving, or stable-contract material.
Isolation classification rule: For each generated step, the architect sets isolation: worktree ONLY if the step writes tracked code (source files git would track). Steps that only read sources, fetch/scrape, or emit coordination artifacts under superpipelines/temp/ MUST OMIT isolation — they run in the host cwd. Rationale: Claude Code auto-cleans a worktree whose subagent made no tracked changes, destroying any gitignored artifact (issue #31). A pattern's worktree requirement (Patterns 2/3/5) binds the code-writer step(s), NOT every step in the topology.
Hardened-brief hand-off: The Architect dispatch payload MUST include the hardened_brief from Phase 2 — especially captured_failure_modes (the Architect designs build-time guardrails from them, per 4D Diagnose) and pipeline_type (the Architect uses it to decide whether generated steps may assume repo access).
Output Formatter Rule: The Architect MUST append a specific output-formatter step as the final node in the topology, designed to transform the output into the deduced format and save it to the <workspace-root>/output/ folder. Minimal-pipeline exemption: an explicitly minimal/tracer pipeline (≤2 steps, minimal: true in its registry entry) MAY omit the output-formatter node — its terminal step's declared output is the pipeline output.
Dispatch Auditor (same profile-driven branching as Architect above).
The pipeline-auditor MUST be dispatched after the architect. Do NOT present the human gate without audit results. If any SEV-0 or SEV-1 findings are returned, re-dispatch the Architect to remediate before proceeding.
platform_profile.capabilities.dynamic_subagents == true OR platform_profile.capabilities.model_field_format == "omit", append to the resolution preview table a footnote:
"This platform owns model selection. Per-step picks have been stored as authoring intent (
topology.json metadata.model_intent_scaffold_tier); they take effect only when the pipeline is run on a per-step-capable tier (1, 1b, 1d)."
/superpipelines:run-pipeline).sk-pipeline-paths.RESOLVE_DATA_ROOT(scope) (the single .superpipelines/ root). Do NOT tell the user the pipeline is ready until every file is confirmed written. Data-only invariant: scaffolding writes ONLY under .superpipelines/. Writing any generated artifact to <scope-root>/skills/superpipelines/... or <scope-root>/agents/superpipelines/... as source is FORBIDDEN — those tool dirs hold only the ephemeral materialization cache that DISPATCH owns at run time.
DATA_ROOT/pipelines/{P}/spec.mdDATA_ROOT/pipelines/{P}/plan.mdDATA_ROOT/pipelines/{P}/tasks.mdDATA_ROOT/pipelines/{P}/topology.json (with plugin_version stamped; AND metadata.grilling = { completed: true, pipeline_type, captured_failure_modes: [...] } from the Phase 2 hardened brief). Each step node carries agent_def: "pipelines/{P}/agents/{agent}.md" (relative to DATA_ROOT) so DISPATCH can locate the CAD. Record runtime_tier at run; data-only paths are tier-independent.DATA_ROOT/pipelines/{P}/{P}.md (Run Launcher — single-page launcher document referencing the entry body, registry entry, topology, and last-run state. Required artifact. Documentation/discovery only.)DATA_ROOT/pipelines/{P}/entry.md (entry orchestration body, DATA — NOT a registered skill. The bundle's running-a-pipeline reads and runs it. It dispatches every step via sk-platform-dispatch DISPATCH passing agent_def.)DATA_ROOT/pipelines/{P}/agents/{agent-name}.md — each is ONE file: tool-neutral frontmatter (schema_version, capabilities.*, model_tier, plugin_version, …) PLUS inline protocol body. Do NOT write zero-body agents or companion -protocol skills. (For minimal/tracer pipelines, stamp minimal: true in the registry entry.)DATA_ROOT/pipelines/{P}/scaffold-summary.md — records generated CAD count, generated reference files, the reason for each reference (reuse, scanability, or stable-contract), and any deliberate exceptions to the default inline-body pattern. Required evidence for audit criterion CAD-09.DATA_ROOT/registry.json (with plugin_version stamped; entry carries scope; minimal: true for tracer pipelines)~/.superpipelines/model-preferences.json does NOT contain an entry for platform_profile.tier, emit advisory: "No model preferences configured for <platform_profile.name>. Run /superpipelines:change-models Mode E to set them, or accept profile defaults at first run." This is non-blocking — scaffolding completes either way.
{P} scaffolded as data under .superpipelines/pipelines/{P}/. Use /superpipelines:run-pipeline to execute it. Launcher reference at .superpipelines/pipelines/{P}/{P}.md."
/superpipelines:run-pipeline.tmp/pipeline-state.json." → STOP. The canonical state path is <scope-root>/superpipelines/temp/{P}/{runId}/pipeline-state.json. The legacy tmp/ path is retired.<rationalization_table>
| Excuse | Reality |
|---|---|
| "The audit is extra overhead." | SEV-0 topology errors only surface at runtime. Pre-flight auditing is 10x cheaper than runtime recovery. |
| "Git preflight is unnecessary." | Worktree patterns silently fail in non-git workspaces. Preflight prevents mid-run deadlocks. |
| "I'll generate the entry skill now." | Entry skills are expensive to refactor if the user revises the underlying topology. Wait for approval. |
| </rationalization_table> |
sk-pipeline-grilling/SKILL.md — Brief-hardening crawl/grill/reconcile protocol (Phase 2 and Phase 3).sk-pipeline-paths/SKILL.md — Scope and path resolution.sk-pipeline-patterns/SKILL.md — Topology selection tree.sk-4d-method/SKILL.md — Brief deconstruction framework.sk-pipeline-state/SKILL.md — State initialization schema.