Skip to content

docs(skills): route qq-mode to playbooks and add PR skills - #480

Merged
lg2m merged 7 commits into
mainfrom
docs/agent-workflow-skills
Oct 26, 2026
Merged

lg2m merged 7 commits into
mainfrom
docs/agent-workflow-skills

Conversation

@lg2m

@lg2m lg2m commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Change

Agents get a small set of skills, modeled on pstack, for taking a task from the request to a merged PR.

  • qq-mode is now a router. It picks a playbook (bug-fix, feature, refactor, investigate, resume) or a skill. It states how far each kind of request lets the agent go (answer, commit, push and open a PR, merge), and how to brief sub-agents, which cannot load skills.
  • open-pr commits, runs the gate, pushes, and opens a ready PR that follows the template.
  • babysit-pr drives a PR to merge-ready. Its pr-status.sh reports readiness as JSON: conflicts, checks, unresolved review threads, and whether Codex reviewed the current head with no findings and a 👍.
  • land-pr merges with --squash --match-head-commit, so only the head that was checked can land.
  • review-diff checks a diff against the AGENTS.md rules before it ships.
  • design-skill-or-pack now says what the loader does not do (no bundled-file listing, no skills in sub-agents, /name lasts one run) and fixes its claim that commands are never disclosed. gh joins the dev shell.

Verification

Known impact

qq-mode is shorter. Its rules about authority, Codex 👍, and stopping at the user's boundary moved into qq-mode §2, babysit-pr, and land-pr.

qq-mode now picks a playbook (bug-fix, feature, refactor, investigate,
resume) or a skill, states how far each kind of request authorizes the
agent to go, and says how to brief sub-agents, which cannot load skills.

open-pr, babysit-pr, and land-pr carry a branch from commit to merge.
babysit-pr ships pr-status.sh, which reports merge readiness as JSON:
checks, unresolved review threads, conflicts, and whether Codex finished
a clean review of the current head. land-pr merges only that head.

review-diff checks a diff against the repository's rules before it ships.
design-skill-or-pack now states what QQ's loader does not do. gh joins
the dev shell because the PR skills need it.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T22:54:26.072969Z abf0209 New commits
ℹ️ 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.

@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: 7ceb3d5779

ℹ️ 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 .qq/skills/babysit-pr/pr-status.sh Resolved
Comment thread .qq/skills/babysit-pr/pr-status.sh Resolved
Comment thread .qq/skills/babysit-pr/pr-status.sh Resolved
Paginated comments and reactions printed one JSON array per page, which
made jq fail and the script exit 2. Review threads stopped at 100, so a
later open thread could report ready. A PR URL from another repository
read threads and Codex state from the checkout's repository instead.
Slurp every page, page the thread query, and take owner and repo from
the PR URL.

@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: 381d29ece4

ℹ️ 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 .qq/skills/babysit-pr/pr-status.sh Resolved
gh api -F turns a value such as 2026, true, or null into a number,
boolean, or null, so a repository with that name failed the String!
variable. Pass owner and name with -f.
@lg2m

lg2m commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator 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: 00a54290f5

ℹ️ 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 .qq/skills/babysit-pr/SKILL.md Resolved
…g CI

Rerunning a run tests the same old head, and a rebase cannot be pushed
without the force-push the skill forbids. Merge origin/main and push so
CI runs on the updated head; rerun only a suspected flake.

@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: 169879fade

ℹ️ 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 .qq/skills/babysit-pr/pr-status.sh Resolved
Review threads with large comments made the jq argument exceed the
per-argument limit, so the script exited 2. Write each response to a
temporary file and read it with --slurpfile.

@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: e006a84878

ℹ️ 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 .qq/skills/open-pr/SKILL.md Resolved
lg2m added 2 commits October 26, 2026 15:48
open-pr told the agent to create a fresh branch at origin/main, which
left the finished commits behind. Check the current branch instead, and
create the worktree in qq-mode when a change starts.
@lg2m
lg2m merged commit cf58853 into main Oct 26, 2026
7 checks passed
@lg2m
lg2m deleted the docs/agent-workflow-skills branch October 26, 2026 23:07
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