Skip to main content

shitrat-github

Post GitHub issue comments, inline PR review replies, PR reviews, edit pull requests, and small file commits as the ShitRat GitHub App (`shitratgit[bot]`) instead of Joel. Use when reviewing PRs, replying to review threads, updating PR metadata, commenting on issues, doing smoke tests, committing repo files through the GitHub API, or any workflow where GitHub authorship should be ShitRat.

소스 정보

저장소
joelhooks/shitrat
최근 소스 활동
2026년 10월 4일 15:14
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
shitrat-github
description
Post GitHub issue comments, inline PR review replies, PR reviews, edit pull requests, and small file commits as the ShitRat GitHub App (`shitratgit[bot]`) instead of Joel. Use when reviewing PRs, replying to review threads, updating PR metadata, commenting on issues, doing smoke tests, committing repo files through the GitHub API, or any workflow where GitHub authorship should be ShitRat.
# ShitRat GitHub Use ShitRat when GitHub should show `shitratgit[bot]` as the actor instead of Joel. ## Default rule Prefer ShitRat for published agent-authored GitHub comments/reviews: ```bash shitrat status skillrecordings/migrate-egghead shitrat comment skillrecordings/migrate-egghead 26 --body-file comment.md shitrat review skillrecordings/egghead-next 1608 --event REQUEST_CHANGES --body-file review.md shitrat reply skillrecordings/egghead-next 1608 123456 --body-file reply.md shitrat edit-pr skillrecordings/egghead-next 1608 --title "fix: clearer title" --body-file pr.md --base main --state open shitrat ready-pr badass-courses/drovr 698 --dry-run shitrat enqueue-pr badass-courses/drovr 696 --dry-run shitrat merge joelhooks/shitrat-cli --base main --head feature-branch --message "merge: feature branch" shitrat push joelhooks/shitrat-cli --repo-dir /path/to/checkout shitrat commit-file joelhooks/shitrat-cli --branch main --message "docs: update notes" --file README.md shitrat commit-files joelhooks/shitrat-cli --branch main --message "docs: update docs" --file README.md --file docs/shitrat-commit-flow.md ``` If the pi extension is loaded, prefer the tools: - `shitrat_status` - `shitrat_comment` - `shitrat_review` - `shitrat_reply` - `shitrat_edit_pr` - `shitrat_merge` - `shitrat_commit_file` - `shitrat_commit_files` ## Safety rails - Do not paste or print the private key. - Do not use Joel's `gh pr review` when the desired actor is ShitRat. - Use `shitrat reply` / `shitrat_reply` for inline review threads; `comment` posts to the PR conversation, not an inline thread. - Use `shitrat edit-pr` / `shitrat_edit_pr` to update a PR's title, body, base, or open/closed state instead of `gh pr edit`. - Use `shitrat ready-pr` instead of `gh pr ready` to take a pull request out of draft. - On a branch with a merge queue, `merge-pr` fails with `MERGE_QUEUE_REQUIRED`; use `shitrat enqueue-pr`, which queues the head it read (`expectedHeadOid`) and reports the queue position and state. The queue's ruleset decides the merge method. - Use `shitrat status <owner/repo>` first when repo access is uncertain. - Use `--body-file` for non-trivial Markdown so shell quoting does not mangle review text. - Use `--dry-run` before writing unless Joel explicitly asked to commit/merge as ShitRat. - `merge` uses GitHub's merge endpoint to merge one branch into another as `shitratgit[bot]`, so do not fake a merge by replaying branch contents onto `main`. - When a checkout exists, commit locally as `shitratgit[bot]` so commit hooks run, then publish the unchanged commits with `shitrat push`. It rejects non-bot outgoing authors unless `--allow-any-author` is explicit, disables `pre-push` hooks so they cannot inherit the installation token, and never rewrites history or force-pushes. - `commit-file` is for small, intentional clone-less edits. `commit-files` is for small atomic clone-less batches. On existing branches they use GitHub blobs/trees with web-flow signing; on brand-new empty repos they create one root commit through a temporary ShitRat-authenticated git push. They cannot run local hooks. - Only post comments/reviews/commits when the user asked to publish or the workflow clearly requires it. ## Secrets The CLI reads env first, then `agent-secrets` leases: - `shitrat_github_app_id` - `shitrat_github_private_key` - `shitrat_github_installations_json` - `shitrat_github_installation_id_<owner_key>` as fallback Known owner keys: - `joelhooks` - `badass_courses` - `skillrecordings` - `wzrrd_sh` ## Install as pi package From the repo root: ```bash pi install /Users/joel/Code/joelhooks/shitrat-cli ``` Or once pushed: ```bash pi install git:github.com/joelhooks/shitrat-cli ```
GitHub에서 보기