Skip to content
Back to skills

Build

ASecurity

The interactive BUILD, the build half of /dev-pipeline:run, run in THIS session so that the operator can steer it. run.sh claims the ticket, creates the worktree and commits the intake record as the first commit of the branch. Then it gives you the same build prompt that an unattended run spawns. You build to a draft PR. Then /dev-pipeline:review grades the PR in a fresh session. The PR stays a draft until the operator marks it ready. Needs a completed intake, the same as /dev-pipeline:run.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
ai-agentsgoshellbashgit

Works with

  • terminal

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add manoldonev/second-shift --skill build --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/manoldonev-build/badge)](https://www.skillsdirectory.com/skills/manoldonev-build)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: build
description: The interactive BUILD, the build half of /dev-pipeline:run, run in THIS session so that the operator can steer it. run.sh claims the ticket, creates the worktree and commits the intake record as the first commit of the branch. Then it gives you the same build prompt that an unattended run spawns. You build to a draft PR. Then /dev-pipeline:review grades the PR in a fresh session. The PR stays a draft until the operator marks it ready. Needs a completed intake, the same as /dev-pipeline:run.
---

# build

`R` is `run.sh`, at `../run/run.sh` from this skill's base directory. `R --handoff` does all that
`/dev-pipeline:run` does before the build. Then it stops with `terminal: build-handoff` and does not
spawn a build session. You do the build in this session. The prompt that it gives you is the prompt
that an unattended run would spawn, so both paths build against the same record.

This path does not do the steps that the scheduler does after its build:

- It does not run the checks again from the first commit.
- It does not check that each tagged test fails on the tree of the record commit
  (`commands.<id>.testRunners`). Under a runner with format `cases`, `vitest-json` or
  `jest-json`, the unit is the named test, `file::case`, not the file. It does not run the head
  leg either, where a test whose file does not load on that tree must pass. The review notes that
  this check did not run on this path.
- It does not run the route smoke, the PR-convention check or the in-flight check.
- It does not apply the round and cost caps.
- It does not write the run block on the PR, so the PR has no `## Decisions made for you` table.
- Under jira `writes: false`, it does not remove the Atlassian write tools.

## Checklist

1. **Launch** from a checkout of the ticket's repo, as a Bash call with `run_in_background`:
   `nohup bash R <issue> --handoff > <log> 2>&1`, with `<log>` in your scratchpad. The launch runs
   the setup lanes (`commands.<id>.lanes[]`) in the new worktree, and a cold install can outlast the
   2 minutes a foreground Bash call gets before it is killed. `--detach` is refused with
   `--handoff`. Do not poll the log: the background call re-invokes you when it exits. A
   `terminal:` slug other than `build-handoff` is a refusal. Find the slug in the exit table of
   `/dev-pipeline:run`, and fix what the detail line names, as for a run.
   If the lane already claimed the ticket, a new launch re-enters that claim. If the config and the
   record name no checks, the launch is refused with `env-no-checks`, as a run is.
2. **Read the `worktree:`, `baseline:` and `prompt:` lines** that the script writes to the log
   before the `terminal:` line. Then run `printenv SS_WT SS_ADAPTER` in the Bash tool. If `SS_WT` is set, the
   herdr launcher (`herdr-adapter.sh build`) started this session, and the worktree is already
   added. Use `/add-dir <worktree>` only if an edit there shows a permission prompt. If `SS_WT` is
   not set, the operator types `/add-dir <worktree>` now, so that edits there do not prompt. Read
   all of the prompt file. It is the task. It gives the ticket to fetch and the decision record
   that you must follow. The record is committed as the first commit of the branch. It also gives
   the checks to make green and the lines that the PR body must have.
3. **Build in the worktree.** Put `cd <worktree>` in the same shell call as each command. The
   harness resets the working directory between calls, so a call without the `cd` runs in the main
   checkout. The operator can steer the build. A steer that changes the decision of a record row is
   written into that row. Write
   the new resolution, set the provenance to `user-answered` and the Kind cell to `intent`, and end
   the cell with `Changed in build: <reason>`. A steer that makes a material decision no row covers
   becomes a new five-cell row, provenance `user-answered` and Kind `intent`, that ends with
   `Added in build: <reason>`. A steer that hands the choice to you ("your call") sets the
   provenance to `user-delegated` instead; a steer that picks an option stays `user-answered`. The
   prompt's size rule then applies to the row. Under the
   ledger's `Options weighed:` list, write a `- D-n:` bullet naming the options weighed for each
   row you add, and write or replace the bullet of each row you change. Commit either edit with the code.
   Never leave it in chat.
   When such a row departs from the ticket text, put `Departs from AC-n: <original text>.` or
   `Departs from the ticket's <part>: <original text>.` before its closing `Changed in build:` or
   `Added in build:` sentence. Then amend the ticket in this session, as the intake Receipt does:
   rewrite the departed text in place so that it states the chosen behavior, keep its id and its
   position, and change nothing else. When the departed text is a comment's, never edit the
   comment: add one sentence at the end of the body that names the comment's author and states the
   chosen behavior. On github: `gh issue view <issue> --json body`, edit,
   `gh issue edit <issue> --body-file <file>`. Under jira, edit the description. Under jira
   `tracker.writes: false`, make no write: add the ticket edit as a request to the PR body's
   `## Before you merge` section. The same holds for an answer that the operator gives in this
   session to a `pause-and-ask` stop.
   Never amend, rebase or force-push over the `baseline:` commit: the review reads the record there.
4. **Open the PR** after every listed check is green. Open it as a draft and leave it a draft.
   Write the body in the order that the prompt gives.
5. **Hand off to review.** Tell the operator to run `/dev-pipeline:review <pr>` in a fresh
   session. If the herdr launcher started this session (`SS_WT` is set), print the command
   `bash "<value of SS_ADAPTER>" review <pr>`, with the path written in full. That command opens
   the fresh session in a `review` tab of the ticket's workspace. Do not review your own build.
   Never post a comment that starts with `verdict:`.
   On `needs-work`, do these steps in this session. Fix each finding, `[blocker]` or `[note]`, or
   rebut it in a PR comment. A `- later-round note:` line in the verdict's `## Notes` is not a
   finding: it is for the human who merges, and fixing it is optional. Fix each record row scored `violated` or `undeterminable`, or edit the
   row as step 3 allows. A finding that offers `accept the gap, or add <unit>`, in its `Fix:` line or
   in its text, can be answered without the unit: post a reply that leaves the choice to the requester, and add the
   line `Accept the gap, or add <unit>: <the finding>` to the PR body's `## Before you merge`
   section. Push, then tell the operator to run a fresh review. When such a gap was the only open
   finding, there is nothing to push: tell the operator to run the fresh review, which accepts
   the reply as a rebuttal.

   <!-- LOCKSTEP-BEGIN build-reply -->
   Each reply to the review is a PR comment. Its first line is exactly `build: reply`, alone on
   that line. The rest of the comment is free text. Post the reply through the bot wrapper when its
   `--status` is `ok`, and through plain `gh` otherwise. Once a later verdict binds, the reply is
   collapsed as outdated. When a reply asks the operator for something, such as a ticket edit or a
   row confirmation, also add that request to the PR body's `## Before you merge` section. When the
   body has no such section, create it after the template or `## What this changes` sections,
   before the Closes line, outside the second-shift fold.
   <!-- LOCKSTEP-END build-reply -->

   The bot wrapper is [`gh-bot.sh`](../../tools/gh-bot.sh).
   `bash <this skill's base directory>/../../tools/gh-bot.sh --status` prints its status, and
   `bash <this skill's base directory>/../../tools/gh-bot.sh pr comment <pr> --body-file <file>`
   posts through it. Pass every body with `--body-file`.
   While your handoff is the latest run comment on the ticket, `/dev-pipeline:run <ticket>` refuses
   the ticket with `claimed-elsewhere`. This stops it from building into your worktree. `--resume`
   gives the ticket back to the lane.

## Rules that are not negotiable

- **Do not merge.** Merging is a human's act.
- **Under jira `tracker.writes: false`, make no Jira write**, even if the operator steers you to.
  This session keeps its Atlassian write tools, so you must keep the read-only contract yourself.
- **Do not delete, skip or weaken a test to make a check pass.** If a test is wrong, say so in the PR.
- **The scheduler checks nothing between the handoff and the PR.** The unattended run runs the
  checks again from the first commit. Here that is your job, so run all of the checks. When the
  record has `## Test intent`, also run the plan coverage check:
  `bash <this skill's base directory>/../../tools/plan-coverage.sh --head <the record at the head> <the record at the baseline commit> <the plan>`
  It must exit 0, or 3 (not-applicable). An AC added during the build counts only when the record
  at the head also carries the ledger row that decided it, with `user-answered` or
  `user-delegated` provenance; the baseline still governs every AC it defines. The fresh review runs this check again before it decides.
  While the check is red, `post-review-status.sh` posts no approving `second-shift/review` status.

Files in this skill

  • SKILL.md13.3 KB
  • boundary-evidence-selftest.sh82.6 KB
  • boundary-evidence.sh89.3 KB
  • branch-prefix-selftest.sh15.8 KB
  • branch-prefix.sh8.6 KB
  • reconcile-selftest.sh42.2 KB
  • reconcile.sh31.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.