agentify-project
Make a project ready for AI agentic engineering by converging it toward a canonical…
Extract a repository's inline PR review comments into a per-reviewer pr-review-rules doc for the project's review skills, resuming from the last run's checkpoint.
$ npx -y skills add eai-org/agent-toolkit --skill extract-pr-review-rules --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/extract-pr-review-rulesContext preview
The summary Claude sees to decide when to auto-load this skill.
Extract a repository's inline PR review comments into a per-reviewer pr-review-rules doc for the project's review skills, resuming from the last run's checkpoint.
name: extract-pr-review-rules description: Extract a repository's inline PR review comments into a per-reviewer pr-review-rules doc for the project's review skills, resuming from the last run's checkpoint. disable-model-invocation: true type: flow license: MIT metadata: version: "0.1"
Mine the conventions a repository's reviewers enforce in their inline PR review comments into one governing doc the project's review skills run as a checklist. Re-runnable: each run resumes from the last checkpoint, fetching only newer comments.
Invocation: `/extract-pr-review-rules <repo-url>`
Identify the forge from the repo URL and work through whatever MCP or CLI is connected for it (GitHub → `gh`). Unrecognized URL, or nothing connected → ask.
The URL is only the comment source; the doc lands in the **current** project, under its governing-docs convention, default `.agents/docs/pr-review-rules.md`. Absent → **first run**, no checkpoint, whole history in scope. Already there → read it: built from the same repo, its checkpoint and standing rules make this a **refresh**; built from another repo, ask — another doc path, or replace it with a first run.
Done when forge tooling, doc path, and checkpoint (a timestamp, or none) are settled.
Page the repo's inline review-comment feed across all PRs, open and closed, **straight to a file** in the session's scratch dir — never through the model, which truncates silently. On a refresh, filter by the checkpoint so only new comments come down:
gh api --paginate "repos/<owner>/<repo>/pulls/comments?per_page=100&since=<checkpoint>" \ > "$SCRATCH/comments.json"
Record the time the fetch **started** as the next checkpoint — not the newest comment's timestamp, which would skip anything posted while the run was working.
Then, still on disk, drop bots and deleted accounts, tally comments per author, and split the file into one per author. Nothing new to process → say so, leave the doc untouched, and stop.
Done when each author's file exists, the tallies plus the dropped comments sum to the fetched total, and the new checkpoint is recorded.
One isolated subagent per author, in parallel, each reading **only** that author's file so the raw comments never reach this session. No subagents in the runtime → work the files here one at a time. Prompt each with:
`inject()`", "never leave a TODO without a ticket"). A comment fixing only its own spot ("this import is unused", "rename this to `x`") is dropped unless it states the underlying rule. One comment is enough to found a rule;
derived from their own comments, never a fixed taxonomy; one bullet per rule, imperative and on one line, closing with its source-comment links, newest first, capped at 5;
Done when every author has returned a section or reported no rule clearing the bar.
Each extracted rule, against the rules already in the doc:
overturning comment with author and date, and the replacement; apply on approval, else keep the old rule.
Rules this fetch didn't reach stay exactly as they are; never rewrite the doc from a partial fetch.
Done when every extracted rule is appended, added, or settled with the user.
Reviewers ordered by comment count, descending; one with no surviving rule is left out.
# PR review rules Conventions each reviewer of [<owner>/<repo>](<repo-url>) enforces, extracted from their inline pull-request review comments. Each rule links the comments it came from. ## Checkpoint - Generated <YYYY-MM-DD> - Covers <N> review comments up to <ISO timestamp>, bots excluded - Refresh with `/extract-pr-review-rules <repo-url>` ## Reviewers - [<name>](#<anchor>) — `<handle>`, <N> comments ## <name> `<handle>` · <N> review comments ### <topic> - <rule> ([#<comment-id>](<comment-url>), …)
Done when every rule from steps 3–4 is in the file and the checkpoint line carries this run's timestamp.
Unless the project's agent entry file (`AGENTS.md`/`CLAUDE.md`) already links the doc, propose a one-line index entry with a read-when hook and add it on approval: `- [PR review rules](.agents/docs/pr-review-rules.md) — read when reviewing a change`
Close with the doc's project-relative path, the counts (comments processed, rules added, reinforced, superseded), and the new checkpoint.
Done when the doc is indexed or the user declined, and all three are printed.
A collection of generic agentic tools for common engineering tasks, designed to work with any AI agent on any kind of software project.
Make a project ready for AI agentic engineering by converging it toward a canonical…
Attach pasted images, files or URLs to a fetched ticket, saved beside its ticket file and…
Check how much of a ticket is already implemented — split it into requirement blocks, judge…
Draft, rewrite, or refine a doc for maximum token economy without losing any rule or intent.…
Author or refine a skill for maximum token economy without losing intent. Use when creating…
Audit what auto-loads into an agent session's context window and suggest lean, reversible…