Create pr

From kortix-ai/CompanyOS · View interactive version

Create pr is an AI agent skill from the GitHub repository kortix-ai/CompanyOS. Write the title and body of a Kortix pull request for a human reviewer who decides \"merge or iterate\" without reading the diff: English only, a Conventional Commits title that names the outcome, only Demo video and Quick verification, with detailed evidence linked. Uploads the video and screenshot

How to use this skill

Skill file

Create a pull request

The title and body are for a human who will not open the diff. Their one question is

"Do I merge this, or send it back?" Every line helps answer it. Cut a line that does

not, even when it is true and took effort to find. Keep the body short. Put detailed evidence in linked PR comments or artifacts so the

reviewer can inspect it without expanding the body.

This skill owns the PR text. The contributing skill owns the loop around it: branch,

commit, verify, record the demo, merge, deploy dev. Follow the section order in

the PR template. Use only ## Demo video and ## Quick verification, in that order. Keep both headings;

explain a non-visual video exception in one sentence.

1. Gather facts before you write

branch changes.

ran on. Never write a result you did not see. State skipped or blocked checks and their reasons; do not omit them.

not PASS.

2. Title

merge uses the title as the commit subject on dev, so the prefix stays.

3. Body

English only, every section. Keep the template headings unchanged.

Style rules. Each one saves the reviewer a question.

(route, screen, CLI command, API route), what they now see or can do, and what happened

before. Name a file or function only when it helps the reviewer verify the change.

"first token in 9 s instead of 19 s on a new session". Never "improved", "various",

"some cleanup".

communicate** rules in AGENTS.md apply.

billing, old OpenCode transcripts, self-host, mobile, desktop, prod data.

the same path, not tested" are two different claims.

way?". One or two sentences.

Leave out: your process and dead ends, a file-by-file tour in prose, test internals the

reviewer will not check, anything the title or the video already shows, and repeated

caveats.

Sections (no others):

(or 1–3 high-level bullets). Then a few actionable checks: where to go, what to do,

and the expected result. Summarize checks actually run and link detailed evidence. State material

risks and failed, blocked or skipped checks. Link the issue when one exists.

Keep compact fenced commands and actual runner summaries under Quick verification when

required by evidence gates; a collapsed block is allowed. Link verbose logs, tested

commit/environment, design detail, RCAs, risk/rollback notes and longer review context

in PR comments or artifacts. Keep evidence accessible

and free of secrets and customer data. A shorter body does not reduce testing, safety,

independent-review or merge requirements. Never replace required checks with instructions

for the reviewer to run them.

4. Demo video and screenshots

Put the demo first, under ## Demo video, so the reviewer sees the change before

reading the verification bullets. Record it with agent-browser on your worktree's local stack

(contributing step 4). Keep the files in the gitignored output/pr/.

for. Example: **Web, /projects/<id>/sessions, 1440×900, signed in as a member: the

"Retry" button under a failed turn now resends the prompt.** The reviewer knows where to

look before the player loads.

a second flow, each with its own caption.

a video adds nothing.

before/after, use a two-column table:

```markdown

| Before | After |

| --- | --- |

| !before | !after |

```

change is small on a big page, and say so in the caption.

public and every attachment URL is public. Synthetic data only (@example.test).

5. Upload with `gh --attach`

Reference each file in the body by the same relative path you pass to --attach. gh

uploads it and rewrites the reference to a github.com/user-attachments/assets/… URL. Run

gh from the worktree root so the paths resolve. Never commit media or push it to a branch.

Limits, token types, and failure modes:

contributing/references/attachments.md.

gh pr create --base dev \
  --title "fix(web): the session list keeps its scroll position after a new message" \
  --body-file output/pr/body.md \
  --attach ./output/pr/demo.mp4 \
  --attach './output/pr/after.png#Session list after a new message'

Then confirm no local path is left:

gh pr view <pr> --json body --jq .body | grep -cE '\]\(\./output/'   # 0

When some uploads fail, gh still creates or updates the PR and exits non-zero. Re-run

gh pr edit <pr> --attach for the missing files.

6. Update an existing PR

The old local file still holds ./output/pr/demo.mp4; publishing it without --attach

leaves a broken link.

commits made stale. Do not append a changelog of iterations. The body reads as if written

once for the final diff.

gh pr edit <pr> --body-file output/pr/body.md --attach ./output/pr/demo.mp4.

--attach without --body-file appends the file at the end of the body.

7. Last check

  1. Read the title and body as the reviewer. For each sentence: would deleting it make the

merge-or-iterate decision harder? If not, delete it.

  1. Check every claim against the final diff and the verification you saw.
  2. Check that the title and body are in English.
  3. Check for customer names, people's names, emails, and real prod IDs. The commit hooks do

not read PR titles, bodies, or attachments (AGENTS.md → "NEVER write customer data or

PII"). Write the class instead: "a customer reported", <session_id>.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.