Skip to content
Agentmart
Submit a tool

pi-implement

Execute one implementation slice or an implementation_plan.md task, phase, or full plan through Pi-native subagent workflows.

Skill by tcbuilds

IndexedMIT
Write a review

Chalk Labs

Need help deploying pi-implement?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/tcbuilds-pi-implement

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Execute one implementation slice or an implementation_plan.md task, phase, or full plan through Pi-native subagent workflows. Uses parent-owned design, one writer per worktree, managed isolation for safe parallel lanes, independent verification, and a pi-review gate. Use only when running Pi with pi-subagents.

Use cases: design, productivity, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pi-implement

What's inside

Skill name
pi-implement
Description
Execute one implementation slice or an implementation_plan.md task, phase, or full plan through Pi-native subagent workflows. Uses parent-owned design, one writer per worktree, managed isolation for safe parallel lanes, independent verification, and a pi-review gate. Use only when running Pi with pi-subagents.
License
MIT
Compatibility
Requires Pi with pi-subagents 0.46.0 or newer and executable worker and reviewer agents.
Instructions
142 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • plan-orchestration.md · references/

SKILL.md (first lines)

# Pi Implement

Pi orchestrates, workers implement, and independent reviewers gate the integrated change. Do not shell out to Codex, Claude Code, or another agent CLI. Use Pi's `subagent` tool with `workflowScript` for every child launch.

## Usage

```text
/skill:pi-implement "<single task>"
/skill:pi-implement <brief-path>
/skill:pi-implement                 # next unchecked plan task
/skill:pi-implement phase           # current phase
/skill:pi-implement all             # remaining phases in order
```

For a standalone task, treat it as a one-slice phase. For plan work, read [plan orchestration](references/plan-orchestration.md) before launching writers. If neither a plan nor a task exists, ask what to implement.

## Runtime contract

Before execution:

1. Require `pi-subagents >=0.46.0`; if the installed version cannot be verified, report the unverified preflight rather than assuming retained-resume behavior.
2. Run `subagent({ action: "list" })` and use only executable, non-disabled agents.
3. Read repository instructions, the plan or brief, matching path-scoped rules, target source, and relevant tests. The parent personally verifies the load-bearing seams.
4. Resolve user-owned product, scope, risk, release, merge, and architecture decisions before implementation. Ask rather than delegating an unresolved decision.
5. Define a validation contract: expected behavior, focused checks, user-visible exercise where relevant, and evidence required from the writer.
6. Record the baseline ref, dirty paths, staged paths, and intended file ownership. Preserve unrelated work. If pre-existing staged paths exist, do not request whole-checkout `no-staged-files` evidence; isolate the writer or explicitly verify that it staged no additional paths.

The parent owns slicing, decisions, integration, validation, findings disposition, plan updates, and Git publication. Children do not launch subagents unless an explicitly configured fanout role is assigned that narrow job.

## Slice by ownership and risk

Default to one writer in the active worktree. Use parallel writers only when the work has genuinely independent file ownership and each writer receives `worktree: true`.

- Give each design-bearing or cross-cutting item its own slice.
- Batch small mechanical changes that share one seam.
- Any shared source, test, fixture, migration, manifest, lockfile, or generated output creates a dependency edge.
- Keep a closed editable path set per slice. Required work outside it means `BLOCKED`, not silent scope expansion.
- Cap a parallel wave at four lanes unless project policy sets a lower limit.
- Never run multiple writers in the same checkout.

## Brief contract

Give every worker a compact, self-contained contract:

1. Goal and decided behavior.
2. Repository, cwd, baseline, and exact implementation seam.
3. Mandatory instruction and rule files, using verified absolute paths when the child runs outside the parent cwd.
4. Closed editable paths and explicit do-not-touch paths.
5. Acceptance criteria mapped to named tests or checks.
6. Exact focused commands and required behavioral evidence.
7. Mutation proof for new regression tests when practical: name the smallest mutation that must make each test fail.
8. Authority boundary: edit allowed paths; do not commit, push, merge, publish, release, or broaden scope.
9. Stop rules for ambiguity, missing credentials, conflicting instructions, or an unapproved decision.
10. Handoff: changed files, implementation summary, commands with results, evidence, residual risks, and decisions still needed.

Prefer outcome and evidence over a long procedural script. `must` and `never` are for real invariants, not stylistic micromanagement.

## Launch patterns

### One writer

```javascript
subagent({
  workflowScript: `return runs.run("implementation", {
    agent: "worker",
    task: "<resolved worker contract>",
    acceptance: {
      level: "checked",
      evidence: ["changed-files", "tests-added", "commands-run", "residual-risks"]
    }
  })`,
  async: true
})
```

Use the worker's default context unless a fresh child is intentional. Do not set tight turn, tool, or usage budgets on mutation-capable children; use narrow scope and a reasonable elapsed deadline instead.

### Independent parallel lanes

```javascript
subagent({
  workflowScript: `return runs.all([
    { key: "slice-api", agent: "worker", task: "<API slice contract>", worktree: true },
    { key: "slice-cli", agent: "worker", task: "<CLI slice contract>", worktree: true }
  ])`,
  worktree: true,
  context: "fresh",
  async: true
})
```

Every key, task, output, and file set must be lane-specific. Consume each child's durable handoff manifest and patch; do not infer changes from prose or scrape combined output. Verify and integrate lanes in deterministic slice order. A conflict proves the ownership graph was wrong: repair the graph and rerun the affected slice from the integrated head.

## Verify each slice

Before integration:

1. Derive the actual diff and changed paths from Git and the handoff artifact.
2. Reject changes outside the closed file set.
3. Independently run focused checks. Child-reported command success is evidence, not parent verification.
4. Re-run claimed mutation proofs and confirm the named test fails under the mutation, then restore the implementation.
5. Read every hunk against repository rules and local idiom. Check comments, error handling, hardcoded values, debug leftovers, duplicate abstractions, and vacuous tests.
6. Integrate only verified paths. Never let one lane's green suite stand in for another's.

## Gate the integrated phase

After all required slices are integrated:

1. Run all configured phase validation in the integrated worktree.
2. Invoke `/skill:pi-review` over the complete baseline-to-head diff.
3. Synthesize findings; do not forward raw reviewer output directly to a writer.
4. Send accepted fixes to one writer. Use a managed repair worktree when the active branch must remain stable.
5. Resume retained reviewers only to verify their named findings and exact fix hunks. Use the latest returned run ID after every resume.
6. If a fix materially changes the diff, rerun affected checks and the necessary focused review.
7. Run a fresh final review of the complete final diff when risk or project policy warrants it. Prefer a different model family or provider when available, but never weaken capability, data, or cost policy merely to claim cross-family review.

Stop after three review/fix rounds by default. Stop sooner when no blocker or fix worth doing now remains. If the same invariant survives two fixes, several findings share one root cause, or evidence conflicts, use `/skill:pi-review`'s circuit breaker and replan rather than continuing whack-a-mole.

## Completion gate

From tcbuilds/nautilus, MIT.

More from tcbuilds/nautilus

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 13, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from tcbuilds

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get pi-implement running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying pi-implement?

CallGet help
Cite this page

pi-implement skill. Agent Mart. https://agentmart.dev/skills/tcbuilds-pi-implement (last updated 2026-10-24)