Token导航 LogoToken导航TokenDH.com
开发只读clawhub未标认证来源可访问clear审计通过

coding-pipeline编码管道

Agent Skill

coding-pipeline 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,158

周安装

129

GitHub Stars

公开资料未说明

下载量

1,022
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:coding-pipeline(编码管道)
来源仓库:https://github.com/brasco05/coding-pipeline
安装命令:
openclaw skills install coding-pipeline
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install coding-pipeline

简介

Coding-pipeline 实施四阶段编码流程:计划、代码、验证、调试,确保重要任务质量。

  • 适合需要严格质量控制与错误追踪的开发场景。
  • 通过最多三次尝试逐步升级调试,提升问题解决效率。
  • 在 OpenClaw 中通过 clawhub 安装,需启用验证钩子支持。
  • 使用前应确认各阶段依赖项,避免因环境不一致导致流程中断。

SKILL.md

name
coding-pipeline
description
Enforces a disciplined 4-phase pipeline for non-trivial coding tasks: Plan (hypothesis) → Code (one fix) → Validate (root cause) → Debug (max 3 tries, escalate). Prevents blind patching, symptom fixes, and retry loops. Activate for any bug fix, feature implementation, refactor, or error investigation that isn't a trivial one-line change.

Coding Pipeline

A disciplined 4-phase workflow for any non-trivial coding task. Each phase has a clear purpose, explicit exit criteria, and a loop-back rule when things go wrong. The phases exist because AI agents' default failure mode is blind iteration: edit → build → edit → build → give up. This skill forces hypothesis-driven work, one-fix-at-a-time discipline, root-cause verification, and bounded debugging.

This is a rigid skill — follow the phases exactly. Do not skip, merge, or reorder.

Core Rule

Every non-trivial task — bug fix, feature, refactor — goes through all 4 phases in order:

┌─────────────┐    ┌──────────┐    ┌───────────────┐    ┌─────────────┐
│  1 PLANNER  │───▶│ 2 CODER  │───▶│  3 VALIDATOR  │───▶│  4 DEBUGGER │
│ hypothesis  │    │ one fix  │    │ build + root  │    │ max 3 tries │
└─────────────┘    └────┬─────┘    └───────┬───────┘    └──────┬──────┘
       ▲                │                  │                   │
       │                │ unclear cause    │ fails             │ new hypothesis
       └────────────────┴──────────────────┴───────────────────┘
                        loop back to PLANNER

Skipping a phase or jumping straight to Phase 2 is the failure mode this skill prevents.

Quick Reference

SituationActive PhaseExit When
New task arrivesPhase 1 PlannerHypothesis written, scope defined, success criteria explicit
Hypothesis validatedPhase 2 CoderOne focused change applied, no unrelated edits
Change appliedPhase 3 ValidatorBuild passes AND root cause verified
Validator failsPhase 4 DebuggerEither fix found (→ Phase 2) or 3 attempts exhausted (→ escalate)
Unclear cause mid-fixBack to Phase 1New hypothesis written
Fix introduces new errorBack to Phase 1Hypothesis was wrong

Phase 1 — Planner

Goal: Understand the task and formulate an explicit hypothesis *before* any code change.

Required outputs:

  1. Task breakdown — what is actually being asked? Break into the smallest independent units.
  2. Hypothesis — one sentence in the form: *"I believe [symptom] is caused by [cause], because [evidence]."*
  3. Scope — which files/modules are in-bounds, which are explicitly out-of-bounds
  4. Success criteria — how Phase 3 will verify this is fixed (not just the symptom gone)

Forbidden in Phase 1:

  • Editing any code
  • Running build or test commands to "see what happens"
  • Multiple parallel hypotheses — pick one, commit to it
  • Vague hypotheses ("something with the auth flow") — sharpen until specific

Exit criteria: Hypothesis is concrete, testable, and you can point to *why* this is the cause — not just *what* looks broken.

Loop-back trigger: If during Phase 2 or 3 the hypothesis turns out wrong, return here. Do not patch on top of a broken hypothesis.

See references/phase-1-planner.md for hypothesis patterns and scope breakdown templates.

Phase 2 — Coder

Goal: Apply exactly one focused change that tests the hypothesis from Phase 1.

Rules:

  1. One fix at a time — one change, one purpose, one file or one tightly-scoped set of files
  2. Full files, not snippets — deliver complete file contents when showing work
  3. No speculative refactoring — resist "while I'm in here…"; surgical scope only
  4. If the hypothesis is unclear mid-change → STOP, return to Phase 1

Definition of "one fix": A single logical change that either proves or disproves the hypothesis. Three unrelated improvements = three separate Planner → Coder → Validator cycles.

Exit criteria: Change is applied, diff contains only the intended work, nothing unrelated.

See references/phase-2-coder.md for scope discipline and loop-back triggers.

Phase 3 — Validator

Goal: Verify the change fixed the *root cause*, not just the symptom.

Checklist (adapt to stack):

  1. Build check — compile/transpile succeeds, no new errors
  2. Type check — no new type errors; any @ts-ignore / type: ignore needs an explicit written justification comment
  3. Focused test — run the specific test that proves the hypothesis, not the full suite
  4. Root-cause verification — the fix addresses the Phase 1 hypothesis, not a side effect
  5. Scope verification — diff matches what Phase 1 planned; no accidental changes
  6. Regression check — nothing adjacent broke

The symptom-vs-cause test:

If I rolled back this change, would the symptom return *because of the same cause*, or because of something else?

If you can't answer confidently, the fix is symptomatic. Go back to Phase 1.

Exit criteria: All checks pass, root cause verified, no regressions.

Failure → Phase 4 Debugger.

See references/phase-3-validator.md for stack-agnostic validation patterns.

Phase 4 — Debugger

Goal: Bounded debugging with documentation. Escalation over thrashing.

Hard rules:

  1. Max 3 attempts — after 3 failed fixes, STOP and escalate to the user
  2. Document every attempt — what was tried, what happened, why it failed
  3. Never repeat a fix — if attempt 1 failed, attempt 2 must be *substantively different*
  4. Never "just try again" — every attempt must be backed by a *new* hypothesis

Attempt log template (write to .pipeline-state/attempts-<task>.md or inline in chat):

### Attempt N
- **Hypothesis**: What I now believe is wrong
- **Change**: What I modified (specific files/lines)
- **Result**: What happened (error output, unchanged behavior, new symptom)
- **Why it failed**: The actual root cause of this failure
- **Next direction**: What to try next OR escalate

After 3 failed attempts: STOP. Surface to the user with the full attempt log. Do not continue with a 4th attempt unless the user explicitly authorizes it.

Recovery trigger: If during Phase 4 a fundamentally new hypothesis emerges, return to Phase 1 — not Phase 2. A new hypothesis means a new cycle, not continued debugging.

See references/phase-4-debugger.md for escalation patterns and worked examples.

Phase Transition Gates

No phase transition is automatic. Each requires explicit criteria:

FromToRequired
1 → 2Planner → CoderHypothesis written + scope defined + success criteria
2 → 3Coder → ValidatorOne focused change applied, no unrelated edits
3 → DoneValidator passesBuild ✓ + types ✓ + root cause verified + no regressions
3 → 4Validator → DebuggerAny validation check failed
4 → 2Debugger → CoderNew hypothesis + change substantively different from previous attempts
4 → 1Debugger → PlannerFundamentally new hypothesis (not incremental)
4 → STOPDebugger → Escalate3 attempts exhausted
ANY → 1Back to PlannerHypothesis proven wrong mid-cycle

Detection Triggers

Activate this pipeline automatically when the task is:

  • A bug report — user says something is broken
  • A feature request — non-trivial new functionality
  • A refactor — touching existing code for non-cosmetic reasons
  • An error investigation — digging into unexpected behavior
  • A test failure — a test that was passing now fails
  • A deployment issue — something that worked in dev fails in prod

Skip the pipeline only for:

  • Trivial edits (typo, formatting, one-line config)
  • Pure documentation changes
  • Explicitly exploratory work ("just experiment, don't commit")

Anti-Patterns

What this pipeline prevents:

  1. Symptom patching — fixing what looks wrong without understanding why
  2. Multi-fix chaos — changing three things at once, unable to tell which one worked
  3. Retry loops — trying the same fix with minor variations hoping it sticks
  4. Premature coding — jumping to Phase 2 before Phase 1 is done
  5. Validation skipping — "it compiles, ship it" without root-cause check
  6. Unbounded debugging — 8 attempts, no log, no escalation
  7. Speculative refactoring — "while I'm here, let me also clean up this other file"
  8. Hypothesis drift — quietly changing the hypothesis mid-fix to match what you just did
  9. Type-ignore laziness@ts-ignore without a written justification comment
  10. Scope creep — task was "fix login redirect", PR touches 14 unrelated files

See references/anti-patterns.md for concrete before/after examples of each.

Integration with Other Skills

This pipeline works well with — but does not replace — the following:

  • systematic-debugging — when Phase 4 escalates, hand off to systematic-debugging for the full investigation protocol
  • self-improving-agent — after every failed attempt in Phase 4, log to .learnings/ERRORS.md so the next task starts with that knowledge
  • root-cause-analysis — when Phase 3 root-cause verification is ambiguous, escalate to RCA
  • test-driven-development — Phase 1's "success criteria" naturally aligns with TDD's "write the failing test first"

See references/integration.md for detailed pairing patterns.

Platform Integration

Platform-specific activation and hook configuration lives in references/:

  • references/openclaw-integration.md — OpenClaw workspace setup, inter-session coordination
  • references/hooks-setup.md — Claude Code / Codex hook configuration (UserPromptSubmit)
  • references/multi-agent.md — Claude Code, Codex CLI, GitHub Copilot activation patterns

Best Practices

  1. Always start at Phase 1 — no shortcuts, no exceptions for "obvious" fixes
  2. One hypothesis, one fix — resist bundling
  3. Phase 3 verifies cause, not symptom — this is the hard check
  4. Phase 4 is bounded — 3 attempts, then escalate
  5. Document every failed attempt — pattern recognition matters
  6. Full files, no snippets — for reviewability
  7. Loop back to Planner on uncertainty — cheaper than debugging a wrong hypothesis
  8. Escalate fast — 3 failed attempts is a signal, not a suggestion

Source

This pipeline is based on a production coding standard used in NestJS/Next.js/PHP production systems. It emerged from repeated observation that AI agents, left to their defaults, retry-loop into incoherence on non-trivial work. The 4-phase structure + max-3-attempts rule + mandatory hypothesis is the minimum structure needed to keep agents disciplined.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

80.24%
按下载量换算820

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills