本文へ移動
cccskills
無料GitHub で公開

agent-pr-authoring

Author a pull request an AI coding agent can actually get merged: a scoped, coherent diff; a Summary and Test Plan backed by real evidence; correct triage of required-and-blocking CI gates versus external/advisory checks (e.g. a Cloudflare Pages preview build); draft-while-WIP discipline; named fixup commits for real review findings; and a clean landing through a merge queue without force-pushing or bypassing branch protection. Use when opening, updating, triaging red CI on, or landing an agent-authored GitHub PR. NOT for this repo's internal release ceremony, actor embodiments, or contributor mirror-sync mechanics (use port-daddy-internal-dev), tracking backlog/issue lifecycle across a board (use agent-issue-tracker-workflow), or deciding what to build next / sequencing a roadmap (use legible-roadmap-with-sidequests).

インストール方法を見る

含まれるファイル(11)

  • SKILL.md11.0 KB
  • agents/openai.yaml688 B
  • CHANGELOG.md170 B
  • examples/expected-output.md6.8 KB
  • examples/sample-input.json1.0 KB
  • README.md979 B
  • references/gate-taxonomy.md4.8 KB
  • references/review-and-merge-mechanics.md4.5 KB
  • schemas/pr-plan.schema.json3.7 KB
  • scripts/pr_readiness.mjs12.1 KB
  • templates/output-template.md1.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Agent PR Authoring

Get an agent-authored change through review and landed, without a giant diff, an evidence-free Test Plan, or a gate-confusion incident.

Use This For

  • Scoping a coding agent's change into one reviewable PR before opening it.
  • Writing a ## Summary and ## Test Plan with real commands and observed output, not a claim.
  • Triaging red CI: separating a real required gate (lint, tests, roadmap-link, pr-requirements-guard) from an external, non-blocking check (a Cloudflare Pages preview build).
  • Running draft-while-iterating, marking ready only when the real gates are green, and processing bot/human review as named fixup commits.
  • Landing through a merge queue: enqueue, let the queue pick the strategy, rebase and recheck when the base moves — never force-push, never --admin past a real gate.

Do Not Use This For

  • This repo's specific release ceremony, internal actor embodiments, or skill-mirror sync mechanics (port-daddy-internal-dev).
  • Tracking a backlog item's lifecycle across a board or issue tracker (agent-issue-tracker-workflow).
  • Deciding what to build next or sequencing a roadmap of side-quests (legible-roadmap-with-sidequests).

Process

flowchart TD
  A[Scope one reviewable diff] --> B[Draft Summary + evidence-backed Test Plan]
  B --> C[Open PR as draft]
  C --> D[Push commits, CI runs]
  D --> E{Gate triage}
  E -->|Real required gate red| F[Fix root cause]
  F --> D
  E -->|External check red| G[Note it, do not block on it]
  E -->|All required gates green| H[Mark PR ready]
  H --> I[Review arrives: bot + human]
  I --> J[Fix HIGH findings as named fixups]
  J --> K[Rebase onto latest base]
  K --> L{Still mergeable?}
  L -->|No, base moved| K
  L -->|Yes| M[Enqueue in merge queue]
  M --> N[Queue applies its strategy and lands]
  1. Scope the diff before opening it. One PR = one reviewable change. If the work mixes a refactor, a feature, and a dependency bump, split it into separate PRs even if that means three PRs instead of one.
  2. Write the Summary and Test Plan together. Summary states what changed and why (and what it deliberately does not do). Test Plan lists the exact commands run and the observed output — a reviewer should be able to reproduce the claim without asking. "Tests pass" with no command or output is not a Test Plan.
  3. Open as a draft while iterating. Draft signals "not yet reviewable"; push commits and let CI run until the real required gates are green before asking for review.
  4. Triage every check before reacting to red. Classify it from the live ruleset as required or advisory; repo-owned does not mean required, and external does not mean advisory. Fix a required gate. Inspect advisory failures for real findings, but never hold a merge merely for their status. See references/gate-taxonomy.md for the Port Daddy repository custom.
  5. Mark ready only when real gates are green, then process review: pull bot and human comments, fix the real findings as separate named fixup commits (fixup: address <bot> finding on <file> — <what>), reply to the rest with fixed/deferred/contested-because. See references/review-and-merge-mechanics.md.
  6. Rebase onto the latest base and recheck mergeability before landing — MERGEABLE can flip to CONFLICTING the moment another PR lands on the base.
  7. Land through the merge queue. Enqueue the PR and let the queue's configured strategy pick squash/merge/rebase and branch deletion; do not force a strategy by hand, do not force-push, and do not use an admin override to bypass a real required gate.

Output Contract

A landing-ready PR carries:

  • summary: what changed, why, and what it deliberately does not do.
  • testPlan: exact commands plus observed output, exit codes, or artifact paths — never a bare claim.
  • gateClassification: every check labeled required-and-blocking or external-and-advisory, with the real ones green.
  • fixups: named commits addressing every HIGH/critical review finding (or a contested-because reply on the thread).
  • mergeReadiness: rebased on the latest base, no admin bypass, no force-push, merge method left to the queue.

Use scripts/pr_readiness.mjs to audit a PR JSON description and return { pass, score, findings, recommendations }.

Anti-Patterns

The Giant Unreviewable PR

Novice: Ship 40+ files mixing a refactor, a new feature, and a dependency bump because it was all "part of the same task." Expert: One PR is one reviewable change. Split by concern before opening — a reviewer who can't hold the diff in their head will rubber-stamp it or let it rot unreviewed. Detection: pr_readiness.mjs returns an oversized-diff finding when filesChanged/linesChanged exceed the documented thresholds, or a mixed-concerns finding when diff.mixedConcerns is true.

Evidence-Free Test Plan

Novice: "✅ All tests pass" with no command and no output — or no Test Plan section at all. Expert: The Test Plan lists the exact commands run and the observed result (pasted output, exit code, screenshot/artifact path). If it isn't reproducible from the PR body alone, it isn't evidence. Detection: pr_readiness.mjs returns missing-test-plan (critical) when body.hasTestPlan is false, or test-plan-not-evidence-backed (critical) when it's true but testPlanHasEvidence is false.

Gate Confusion

Novice: Blocks a merge waiting for an external preview build (e.g. Cloudflare Pages) to go green, OR runs gh pr merge --admin to skip a failing lint/test/roadmap-link check. Expert: Classify every check as required-and-repo-owned or external-and-advisory before reacting to red. Never bypass a real required gate with an admin override or force-push; never wait on, or treat as a blocker, a check that isn't repo CI. Detection: pr_readiness.mjs flags required-check-failing (critical) for a red real gate, external-check-marked-required / external-gate-treated-as-blocker for gate-confused configuration, admin-bypass-skips-required-gate (critical) when --admin is used without every required repo-owned check verified green (failing/pending/skipped, or none reported — it fails closed), admin-bypass-used (medium) only when all required checks are green and it merely skips the BEHIND gate or an external non-blocking check, and force-pushed (critical) for a force-push.

References

FileLoad When
references/gate-taxonomy.mdNeed to classify a specific CI check as required-and-blocking versus external-and-advisory, or need the Cloudflare Pages / roadmap-link specifics.
references/review-and-merge-mechanics.mdNeed the mechanics of pulling bot/human review, writing named fixups, rebasing on conflict, or enqueueing through a merge queue.
examples/expected-output.mdNeed to see a bad PR audited, then the same PR fixed and passing.
templates/output-template.mdNeed a reusable PR description template (Summary + Test Plan) to fill in.
schemas/pr-plan.schema.jsonNeed to validate a PR-plan JSON payload's structure before auditing it.
scripts/pr_readiness.mjsNeed deterministic scoring of a PR's readiness to land.
agents/openai.yamlNeed a subagent descriptor for delegated PR authoring/triage.
<!-- BEGIN BUNDLE INDEX (auto: index_references.py) -->

Skill Bundle Index

Every file in this skill, and when to open it. Auto-generated; run scripts/index_references.py --fix.

root

  • CHANGELOG.md — Agent PR Authoring — Changelog — - Initial skill creation - Core process defined - Reference files and deterministic pr_readiness script added
  • README.md — Agent PR Authoring — Author a pull request an AI coding agent can actually get merged: a scoped diff, an evidence-backed narrative, correct real-vs-external gate

agents/

examples/

  • examples/expected-output.md — Example Output: Agent PR Authoring — Scenario: an agent finishes a daemon fix and a batch of unrelated skill-doc edits in one session, opens one PR for everything, force-pushes
  • examples/sample-input.json — sample input (data/schema)

references/

  • references/gate-taxonomy.md — Gate Taxonomy: Required vs External — Use this when you need to decide whether a red or pending check should block a merge, or whether it's noise you should note and move past.
  • references/review-and-merge-mechanics.md — Review And Merge Mechanics — Use this when you need the mechanics of pulling review comments, turning findings into fixups, rebasing on conflict, or landing through a me

schemas/

scripts/

templates/

<!-- END BUNDLE INDEX -->

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

Use for insight, reframing, contradiction, impasse, and anomaly-driven problem solving when execution effort no longer helps. NOT for routine optimization, error correction, or well-specified tasks with known solution paths.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

Apply cognitive task analysis to expert work that depends on perceptual cues, branching judgment, and recurring monitoring loops. Use when decomposing expert capability into agent structure, simulation design, or validation interviews. NOT for ordinary step-by-step SOP capture or simple pipelines with no tacit cue layer.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

curiositech のスキルをすべて見る

このスキルの問題を報告する