Skip to content

feat(skills): promote the pull request skills from a personal library - #71

Merged
chapati23 merged 8 commits into
mainfrom
promote-sdlc-wave-3
Nov 26, 2026
Merged

chapati23 merged 8 commits into
mainfrom
promote-sdlc-wave-3

Conversation

@chapati23

@chapati23 chapati23 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

tl;dr

The skills that publish, review, fix and watch pull requests, plus retro and a security sweep, move from a personal collection into this library. Personal notes are gone. Nothing changes until you link the library again.

The Problem

  • Other teams could not use the pull request workflow; it lived in a private library.
  • The copies cited private PRs, dated incidents, pinned models, and bundled one repository's rules.

The Solution

  • Add ship-pr, review, address-feedback, babysit-pr, red-team and retro, scrubbed; red-team keeps its Mento attack classes.
  • Without Codex, review runs Claude-only and prints independent second-model review: skipped, Codex unavailable; ship-pr reports a gap, not a blocker.
  • ship-pr and review move whole sections into references/ to stay under 500 lines; ship-pr gains a generic stacked-PR runbook.
  • babysit-pr drops its bundled hooks: a repository's own .claude/babysit-pr.sh applies when the watch runs from its checkout. review's record validator is standalone.
  • Decision: kept trunk's shfmt output, split shell code to fit size limits; byte-exact fixtures skip formatters.

Risk

  • 🚪 Door: two-way. Revert the merge; the next link run drops the six skills.
  • 💥 Blast Radius: anyone linking this library; a watch outside the watched repository's checkout now uses generic defaults.
  • 👀 Watch: the first CI run must pass the shell suites on Ubuntu.

Validation

  • Gates at a8c1a52: validate-skills 27 ✓, test:skills 58 files (node 418/418, 43 bash, Python 325 tests in 14 files, 0 skipped) ✓, test:scripts 482/482 ✓, check:shell vs base ✓, shellcheck ✓, trunk check ✓, fresh-clone link-skills.sh + check (temp HOME): 27 linked ✓
  • Review: Codex gpt-6.2-sol high on d6d1b22 → 8 findings, all on logic moved unchanged, declined (below); plus a direct read of each edit.
  • Not run: bounded re-review (no agent tool in this workflow step).
  • Not run: external security scans (not requested or required).
  • bash 3.2: 47 test files under macOS /bin/bash ✓ (first macOS CI run failed on empty arrays; fixed)
  • CI at a8c1a52: skills (Ubuntu, macOS) ✓, Test and lint ✓; Claude auto-review errored (is_error:true)

Deferrals

  • Declined: 8 Codex findings on code moved unchanged. Promotion only; no observed failure.

Ship Checklist

  • PR title is a Conventional Commits header, type: summary or type(scope): summary, as commitlint.config.mjs enforces for commits
  • Performed a self-review of my own changes
  • node scripts/validate-skills.mjs and the affected test suites pass
  • Nothing in the diff breaks the public-readership rules in AGENTS.md
  • Body is about 250 words, 400 at most, excluding this checklist

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T08:01:48.220132Z b98d2a0 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

@chapati23
chapati23 added this pull request to stack #69 November 25, 2026 23:14

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d6d1b223ba

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread skills/babysit-pr/babysit-prs.sh Resolved
Comment thread skills/babysit-pr/lib/main-loop.sh Resolved
Comment thread skills/babysit-pr/lib/feedback-gate.sh Resolved
Comment thread skills/babysit-pr/lib/gates.sh Resolved
@chapati23

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9cd720862a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread skills/babysit-pr/lib/main-loop.sh Resolved
@chapati23

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 54507f5261

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2067bf010b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread skills/babysit-pr/babysit-prs.sh Resolved
Base automatically changed from promote-sdlc-wave-2 to main November 26, 2026 07:10
chapati23 and others added 7 commits November 26, 2026 08:10
Add ship-pr, review, address-feedback and babysit-pr (the core loop, which
reference each other by relative path), red-team and retro, scrubbed for
public readership.

- Dated incident notes became one sentence of reason each; private
  repository and PR citations are gone.
- Pinned models became the newest available Opus (the runtime's opus alias)
  and the newest available Sol (review/scripts/codex-sol-model.py).
- Skill paths under a home directory became paths relative to the skill.
- When Codex is unavailable, review runs Claude-only and reports
  "independent second-model review: skipped, Codex unavailable"; ship-pr
  treats that line as a stated gap.
- Third-party scans ask once per repository by default.
- ship-pr and review move whole sections into references/ to stay under
  500 SKILL.md lines; ship-pr gains a generic stacked-PR runbook and a
  generic pre-publish check step in place of one host's CI pin preflight.
- babysit-pr drops its bundled per-repository hooks: a repository's rules
  live in its own .claude/babysit-pr.sh or .github/babysit-pr.sh, so a
  watch applies them only from a checkout of that repository.
- review's record validator is standalone; its eval projection is removed.
- trunk fmt output is kept; three gates and lib/codex.sh were split so the
  formatted shell stays within the size limits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…m formatters

The README names the six promoted skills. Trunk skips prettier, markdownlint
and yamllint on skills/*/tests/fixtures, which hold captured bot bodies that
tests compare byte for byte, and treats the red-team prompt templates like
the refactor ones, because an agent receives them verbatim.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Under set -u, bash 3.2 (macOS /bin/bash) treats "${ARRAY[@]}" of an empty
array as unbound, so a watch with no --hook, no root hook or no
--waive-check stopped at load. The skills CI job on macOS failed 22 suites
on this. Use the ${ARRAY[@]+"${ARRAY[@]}"} form for those three arrays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
set_repo_slug runs its own [[ =~ ]] match, which overwrote BASH_REMATCH,
so a PR given as a GitHub URL died with an unbound variable under set -u.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
GitHub reports BLOCKED when a required review or check is unsatisfied.
The Codex verdict does not cover a required human approval, so the
poller could announce ALL_CLEAR while a required sign-off was missing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jq --slurp reads an empty body as an empty list, so a read that returned
nothing counted as zero feedback and the generic sweep passed. Each
generic counter now fails on an empty body, and the thread count fails
on a page without a thread list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The pass that adopts a stacked dependent iterates the PR list expanded
before the adoption, so when the last watched PR merged the watch exited
with ALL_PRS_CLEARED without polling the PR it had just adopted. The
terminal and clear checks now read the updated list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Given only a PR URL outside a checkout, the watcher failed with 'could not detect repo'; inside another repository's checkout it rejected the URL as a mixed-repository run. Read the repository from the first PR URL before falling back to checkout detection. Two new cases in pr-url-argument.test.sh run without --repo; the first failed before this change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chapati23

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: b98d2a0b3a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chapati23
chapati23 merged commit f6f28d2 into main Nov 26, 2026
7 checks passed
@chapati23
chapati23 deleted the promote-sdlc-wave-3 branch November 26, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant