eval-pr
無料Set up a git worktree to run and evaluate an upstream Pull Request locally in a flat worktree bare clone repository layout.
日本語の概要は準備中です。原文の説明を表示しています。
Run GitHub CLI commands and inspect GitHub Issues and Pull Requests cleanly without PTY Glamour terminal truncation or comment-stripping traps.
日本語の概要は準備中です。原文の説明を表示しています。
実行スコア 未検証
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
gh)This skill equips AI coding agents and human developers with clean, reliable execution patterns for GitHub CLI (gh) in Deliberate Lab. It solves terminal buffer truncation, bypasses markdown formatting bloat, and provides a unified script for viewing complete issue and PR discussions.
Invoke this skill when asked to:
When running gh inside persistent agent terminal sessions, two subtle traps routinely corrupt output:
gh outputs to a pseudo-terminal (PTY), it invokes Glamour (a terminal markdown renderer) to format headings, borders, and ANSI colors. This inflates the byte size by 12× to 16× (e.g. 6 KB of raw markdown expands to 70–100+ KB).view_file can read up to 45 KiB (46,080 bytes) intact, the agent harness terminal stdout (run_command) truncates from the top once output exceeds 8,192 bytes (8 KB) (<truncated N lines>), silently discarding the issue title, problem statement, and earliest comments.cat to bypass Glamour (gh issue view <id> | cat), gh treats view and view --comments as mutually exclusive:
gh issue view <id> | cat prints only the issue header and body.gh issue view <id> --comments | cat prints only the comments (omitting the body).
Neither command alone gives an agent complete context in a single call.The helper scripts in this skill resolve all three issues cleanly: they bypass Glamour, combine threads, and automatically spill payloads exceeding 7 KB to a temporary file via mktemp with a one-liner directing the agent to inspect it intact via view_file.
gh-issue-view.sh)To inspect a GitHub Issue with its complete description and all comments:
./.agents/skills/gh/scripts/gh-issue-view.sh <number>
(From a sibling worktree directory, call ../.agents/skills/gh/scripts/gh-issue-view.sh <number> or from repository root).
Features:
$ gh issue view ... | cat) in clean plain text matching ADR 0003 before execution.mktemp and provides the exact path for lossless inspection via view_file.Optional Flags:
--no-comments: Output only the issue header and description.
./.agents/skills/gh/scripts/gh-issue-view.sh <number> --no-comments
--comments-only: Output only the discussion comments thread.
./.agents/skills/gh/scripts/gh-issue-view.sh <number> --comments-only
gh-pr-view.sh)In GitHub CLI, gh pr view has a major blind spot: it does not display CI check statuses, and even with --comments, it completely ignores inline code review comments left on changed files.
To inspect a Pull Request with complete metadata, CI checks, PR discussion, and line-level code reviews in a single clean payload:
./.agents/skills/gh/scripts/gh-pr-view.sh <number>
What it orchestrates:
$ gh pr view <id> | cat (branches, status, additions/deletions, summary).$ gh pr checks <id> | cat (lists test runs, format checks, schema validations).$ gh pr view <id> --comments | cat (general conversational thread).$ gh api repos/{owner}/{repo}/pulls/<id>/comments (formats line-level review comments as [path:line] author: body).Optional Flags:
--checks-only: Only display CI check statuses.--reviews-only: Only display inline code review comments.--comments-only: Only display general discussion comments.--no-checks: Skip CI checks.--no-reviews: Skip inline code review comments.--no-comments: Skip general discussion comments.ghWe draw a deliberate engineering boundary regarding GitHub CLI tooling:
gh-issue-view.sh to prevent Glamour truncation and merge comments, or gh-pr-view.sh to orchestrate metadata, CI checks, discussion, and inline code reviews), use the dedicated skill scripts.gh for Routine Commands: For standard, single-step operations (e.g. gh pr create, gh pr edit, gh issue comment), use standard gh directly without redundant wrapper layers.When writing automated scripts or querying GitHub CLI directly without helper scripts, follow these canons:
--json and --jq for Machine Consumption:
When extracting specific fields, always request structured JSON rather than parsing terminal output:
gh pr list --json number,title,headRefName,state
gh issue view <id> --json title,body,labels -q '.title'
gh issue view <id> --comments in a PTY:
Direct terminal execution with comments will almost certainly trigger harness-level line truncation. Always use gh-issue-view.sh or pipe through cat.origin fork, upstream canonical). Ensure a default remote is configured once:
gh repo set-default PAIR-code/deliberate-lab
(Bonus: This writes to .bare/config and applies globally across all sibling worktrees).gh pr create:
In a triangle workflow where gh repo set-default points to upstream, passing a bare --head <branch> fails with a GraphQL error because GitHub looks for <branch> on the default upstream repository. Always qualify --head with your fork username:
gh pr create --head "$(gh api user -q .login):<branch>" --base main ...
export GH_PROMPT_DISABLED=1 active in non-interactive agent sessions.gh wrapper into $PATH or use relative PATH modifications. Always call scripts explicitly to preserve command provenance.${GH_TIMEOUT:-5s}) per ADR 0003 Standard 6 to prevent headless credential store deadlocks.まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
Set up a git worktree to run and evaluate an upstream Pull Request locally in a flat worktree bare clone repository layout.
日本語の概要は準備中です。原文の説明を表示しています。
Evaluate Pull Requests for participant or experimenter UX changes, determine runtime behavioral impact, audit and synthesize Deliberate Lab's 7-part manual experiment test plans, and interactively co-author verification steps.
日本語の概要は準備中です。原文の説明を表示しています。
Reflect on pairing sessions from the AI perspective using the FAR framework (Friction, Ambiguity, Repetition), present observations conversationally, and anchor generalizable improvements as GitHub issues or comments.
日本語の概要は準備中です。原文の説明を表示しています。
Inspect the local Deliberate Lab workspace environment, Node.js version, bare repository worktrees, remotes, git status, and toolchain readiness.
日本語の概要は準備中です。原文の説明を表示しています。
Deterministic synchronization of trunk, PR evaluation worktrees, and drift reporting in Deliberate Lab's bare repository workspace.
日本語の概要は準備中です。原文の説明を表示しています。