longcipher/pb-spec

pb-goal

Goal-driven execution mode.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/longcipher/pb-spec --skill pb-goal

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

pb-goal

Drive the session by a single explicit goal. Inspired by goal mode: the agent does not stop between turns waiting for permission — it continues until the objective is met or truly blocked. No token/time budget: work as long as the goal needs.

1. Establish the goal

  • Restate the user's objective as one measurable statement with acceptance criteria

(what done means, verifiable by commands/tests/artifacts).

  • Define scope: what is in, what is explicitly out (non-goals).
  • Persist everything to .pb-goal.md at the project root:
markdown
# Goal: <measurable objective>
Status: ACTIVE | COMPLETE | BLOCKED
Started: YYYY-MM-DD  Updated: YYYY-MM-DD

## Acceptance criteria
- [ ] <verifiable criterion>

## Plan
1. <step> — DONE | IN_PROGRESS | TODO

## Evidence log
- <date> <criterion/step> — <command output, test result, or artifact proving it>

## Blockers
- <none, or what is missing and why>

2. Execute without stopping

  • Work the plan top-down. At the end of every turn, if the goal is not COMPLETE or BLOCKED,

immediately continue with the next unblocked work in the same or next turn — do not end the session asking "shall I continue?". The answer is always yes.

  • Update .pb-goal.md after every meaningful step: plan status, evidence, date. This file is

the source of truth; on session resume or after compaction, read it first and continue.

  • Track decisions inline in the evidence log (decision + one-line rationale).

3. Completion is evidence-driven

  • Mark Status: COMPLETE only when every acceptance criterion has fresh, verifiable evidence

in the log (command output, passing tests, real files, merged PR). No evidence → not done.

  • Acceptance criteria may not be silently weakened or dropped. If a criterion turns out to be

wrong or impossible, say so explicitly, propose the change, and apply it only with user confirmation (or, if purely mechanical and strictly harder than the original, record it and meet the harder bar).

4. Stop only on real blockers

Stop and ask the user ONLY when:

  • An acceptance criterion is ambiguous in a way that changes what gets built and no best

interpretation exists (per the decision protocol — otherwise pick the reasonable one and record it);

  • An external dependency is genuinely missing (credentials, third-party decision, unavailable system);
  • The user interrupts.

Everything else — errors, failing tests, design uncertainty, long runtimes — is work to push through, not a reason to stop. On repeated no-progress turns, change the approach rather than repeating it; record the pivot in the evidence log.

5. Wrap-up

  • COMPLETE → summarize what was achieved with the evidence.
  • BLOCKED → state the exact blocker, what was already done, and the smallest input that unblocks.

Constraints

  • Same rules as the rest of the workflow: strict TDD when implementing, match AGENTS.md,

never commit/push unless explicitly asked.

  • Never edit .pb-goal.md history destructively — append evidence, update statuses.

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills