一键导入
pipeline-optimizer-protocol
Loaded by the pipeline-optimizer agent to inspect an existing workflow and recommend optimization opportunities.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Loaded by the pipeline-optimizer agent to inspect an existing workflow and recommend optimization opportunities.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
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.
基于 SOC 职业分类
| name | pipeline-optimizer-protocol |
| description | Loaded by the pipeline-optimizer agent to inspect an existing workflow and recommend optimization opportunities. |
| disable-model-invocation | true |
| user-invocable | false |
Resolve any unprovided paths via sk-pipeline-paths. Read only; do not glob outside the named bundle and its run dirs.
<telemetry_tiers>
| Tier | Available | Axes the survey can ground |
|---|---|---|
| no-run-dirs | topology.json + agent frontmatter only | Topology + model-tier cost (static). Emit advisory: "analysis is static — no run history." |
| state-only | state files, no telemetry | Add past-run signals from escalations / failures / loop-cap hits. |
| full-telemetry | state files + run-telemetry.jsonl | Add cost/latency/ctx hotspots from telemetry rows. |
| </telemetry_tiers> |
When telemetry is absent, do not fabricate token/latency numbers. State the tier reached in the report header so the orchestrator can advise enabling the opt-in hook (CLAUDE_CODE_ENHANCED_TELEMETRY_BETA=1 + register subagent-telemetry). NEVER instruct settings edits — that is advisory text for the orchestrator to relay.
Apply sk-4d-method to frame "better" for this bundle, then survey each axis. Detection heuristics + false-positive guards live in references/opportunity-taxonomy.md — consult, do not duplicate.
Axis 1 — Topology structure.
depends_on edge between them and disjoint inputs → Pattern 1 sequential → Pattern 2 fan-out candidates).Axis 2 — Model-tier cost.
deep/high step doing mechanical/deterministic work.fast/triage step doing planning/architecture/review work.effort_tier inconsistent with the step's reasoning load.suggested_engine: change-models (Mode C).Axis 3 — Past-run signals (state-only / full-telemetry tiers).
step_id across runs.BLOCKED / non-terminal state).run-telemetry.jsonl (full-telemetry only).Axis 4 — Protocol/prompt quality (ADVISORY ONLY — never auto-action).
suggested_engine: advisory-only.temp/{P}/optimize-{ts}/findings.md.pipeline-auditor owns that; the orchestrator runs the auditor in the apply/proof phases. Reference it; never duplicate its checks (DEPENDENCY_INVERSION).
<output_contract> Render an executive summary (telemetry tier reached, opportunity count by axis) followed by one entry per opportunity:
- id: OPP-{n}
axis: topology | cost | past-run | quality
impact: high | medium | low
affected_steps: [step_id, ...]
proposed_change: <one-line description>
rationale: <evidence, citing file:line or run/state when grounded>
suggested_engine: update-step | add-step | delete-step | change-models | advisory-only
Cite file:line or run-id/state evidence for every grounded opportunity. Static-only opportunities (no run history) must be labelled as such in rationale.
</output_contract>
Emit exactly one: DONE (survey complete, opportunities rendered or none found), DONE_WITH_CONCERNS (survey complete but blind to one or more axes due to telemetry tier), NEEDS_CONTEXT (a required input path was not provided/resolvable), or BLOCKED (cannot read the bundle).
pipeline-auditor's job (DEPENDENCY_INVERSION); do not duplicate.model_tier direction only; concrete IDs live in profile JSON.<rationalization_table>
| Excuse | Reality |
|---|---|
| "Writing the report file is faster." | Render-inline avoids the report-ownership / permissionMode split-brain fixed in #33. Orchestrator persists. |
| "Re-checking isolation is thorough." | Duplicating auditor checks is source-of-truth drift (DEPENDENCY_INVERSION). Delegate. |
| "No telemetry, but I can guess the hotspot." | Guessed metrics mislead the plan. Degrade to the available tier and say so. |
| "Quality issues should auto-fix." | Axis-4 is advisory-only by contract; the human decides. |
| </rationalization_table> |
${CLAUDE_PLUGIN_ROOT}/skills/pipeline-optimizer-references/references/opportunity-taxonomy.md