/flagrare:daily-code-reviewfrom Flagrare
Generates a daily code review report showing stale PRs, items needing attention, and active work for a team. Useful for standup prep, PR triage, and tracking pull request activity across a pod.
Ships in Flagrare. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
No em-dashes. Nothing this skill writes may contain an em-dash; use a comma, colon, or parentheses instead. Enforced by a repo hook that flags em-dashes in generated
.md. See/flagrare:write-docs.
Generate a team-wide pull request status report focused on actionable next steps. The report surfaces stale PRs, items needing the runner's personal attention, and a quick FYI on active work, so the reader knows exactly what to do when they open GitHub.
Team configs live at ~/.claude/skills/flagrare/daily-code-review/teams/*.json: one file per team, outside the plugin tree so they survive plugin updates and reinstalls.
In Bash, expand ~ explicitly: "$HOME/.claude/skills/flagrare/daily-code-review/teams". The directory may not exist yet, mkdir -p "$HOME/.claude/skills/flagrare/daily-code-review/teams" before writing.
If the new dir has no team files but the legacy per-plugin dir does, migrate them:
LEGACY="{skill_directory}/teams" # old location, lost on plugin reinstall
NEW="$HOME/.claude/skills/flagrare/daily-code-review/teams"
if [ -d "$LEGACY" ] && [ ! -d "$NEW" ]; then
mkdir -p "$NEW"
cp "$LEGACY"/*.json "$NEW"/ 2>/dev/null || true
fi
Tell the user once: "Migrated your team configs from the old per-plugin location to ~/.claude/skills/flagrare/daily-code-review/teams/ so they survive plugin updates."
Check for config files matching ~/.claude/skills/flagrare/daily-code-review/teams/*.json. If none exist, run the first-time setup flow.
Use AskUserQuestion to collect:
acme-corp)Platform Team)github_login / Display NameSave to ~/.claude/skills/flagrare/daily-code-review/teams/{team-name-slug}.json:
{
"org": "acme-corp",
"team_name": "Platform Team",
"members": [
{ "github_login": "aturing", "display_name": "Alan Turing" },
{ "github_login": "ghopper", "display_name": "Grace Hopper" },
{ "github_login": "dknuth", "display_name": "Don Knuth" }
]
}
Confirm the config with the user before proceeding.
If exactly one team config exists, use it. If multiple exist, ask which team to report on.
If the user says "add a team" or "edit team," update or create the relevant config file and re-confirm.
Run:
gh api user --jq '.login'
Match against the team members list by github_login. If no match, ask the user which member they are, they might be authenticated with a personal account that differs from their team login.
Use only these GitHub API endpoints. The comments API is noisy and mergeable_state is unreliable, skip both. Staleness comes from updated_at alone.
The search/issues endpoint does NOT return draft status reliably (it comes back null). Run two searches per member to separate drafts from non-drafts:
gh api "search/issues?q=org:{org}+is:pr+is:open+-is:draft+author:{login}&per_page=100" \
--jq '.items[] | {number, title, html_url, updated_at, draft: false, repo: (.repository_url | split("/") | last), user: .user.login}'
gh api "search/issues?q=org:{org}+is:pr+is:open+is:draft+author:{login}&per_page=100" \
--jq '.items[] | {number, title, html_url, updated_at, draft: true, repo: (.repository_url | split("/") | last), user: .user.login}'
Run all searches in parallel across team members. Deduplicate by PR number + repo.
For each PR:
gh api "repos/{org}/{repo}/pulls/{number}/reviews" \
--jq '[.[] | select(.user.login | test("\\[bot\\]$") | not) | {user: .user.login, state}]'
gh api "repos/{org}/{repo}/pulls/{number}/requested_reviewers" \
--jq '{users: [.users[].login], teams: [.teams[].slug]}'
Filter out bot reviews (logins ending in [bot]), they're noise from CI integrations, not human review activity.
Run these in parallel across PRs where possible. If you hit rate limits, back off and retry.
| Category | Threshold |
|---|---|
| Stale (pod-wide) | updated_at > 24 hours ago |
| Needs attention | updated_at > 12 hours ago |
| Parked draft | draft + updated_at > 30 days ago |
Calculate hours (or days for parked drafts) since updated_at relative to now. Read now from the clock once, at the start of the run (date -u '+%Y-%m-%dT%H:%M:%SZ'), and use that value for every PR; never estimate the current time or weekday from context. Round to the nearest whole number.
Determine per-PR by reading the reviews list chronologically:
APPROVED review, no subsequent CHANGES_REQUESTEDCHANGES_REQUESTEDShow reviewer names in each state (e.g., "approved by Alice, Bob").
# {team_name} Code Review Report: {YYYY-MM-DD}
> Generated for **{display_name}** | {n} open PRs across {m} members
All open PRs across the team (including drafts) where updated_at > 24h. Only exclude drafts older than 30 days, those go in the "Parked Drafts" section instead. Label draft PRs with a [Draft] tag so they're visually distinct.
For each PR, show:
| Owner | PR | Hours stale | Review state | Next action |
|---|---|---|---|---|
| Display name | Title | N hours | Approved by X / Changes requested by Y / Pending: Z | One-line recommendation |
Sort by staleness descending. "Next action" should be specific and direct: "Merge, already approved," "Address feedback from Carol," "Needs a reviewer assigned."
If no stale PRs: "No stale PRs, the team is on top of reviews."
Two sub-sections:
PRs I need to review PRs where I'm a requested reviewer and haven't submitted a review yet. Show: author, title+URL, hours waiting.
My PRs needing action My own PRs that are approved (merge them!) or have changes requested (address feedback). Show: title+URL, state, hours since last update.
If nothing in either sub-section: "Nothing needs your attention right now."
If the user has stale PRs in Section 1 but none qualify here (e.g., all are drafts or pending first review), add a brief note pointing them back: "Your 3 open PRs are stale but waiting on reviewers or still in draft, see Section 1 above." This bridges the gap so Section 2 doesn't feel disconnected when all the user's action items are upstream.
My open PRs or pending review requests updated within the last 12 hours. One line each: title, URL, current state. No action needed, just awareness.
If nothing active: omit this section entirely.
Draft PRs from any team member untouched for 30+ days. Show: owner, title+URL, days since update. These are informational, the team may want to close or revive them.
If none: omit this section.
Always render the full report as formatted markdown in the conversation.
If the user asks to save to a file, write to the path they specify. If they say "save it" without a path, default to ./pr-report-{YYYY-MM-DD}.md.
gh is not installed or not authenticated, tell the user to run gh auth login first.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
43 skills in this plugin
/atdd-planProduce an ATDD-first implementation plan in Claude Code's native plan mode, with named design patterns called out where they earn their keep. The skill enters plan mode automatically (via the EnterPlanMode tool), runs /flagrare:codebase-explore to ground the plan in the actual codebase, then produces a plan-mode plan that MUST include both: (1) 3-5 acceptance tests in plain English defining 'done' before any implementation, written behavior-first against the public API only; and (2) any non-trivial structural decisions named as design patterns with a one-line rationale. Plan mode's native approve/edit/reject button UI is the close, ExitPlanMode is how the skill ends. Use whenever the user wants to plan a feature, fix, or refactor, 'how should we implement X', 'plan this', 'let's design X', 'where do we start on Y'. Tests follow Kent Dodds Testing Trophy: behavior over implementation, integration-heavy, public-API-only, refactor-proof. The skill stops at the plan; it does not write implementation code./brag-docGenerate a comprehensive, impact-framed brag-doc entry for a chosen time window (day, week, biweek, month, or custom). Pulls authored PRs, reviews given, commits, deploys, and linked tickets across GitHub, local git, and configured MCPs, then synthesises a themed narrative, leading with outcomes, quantifying impact, owning the work in first-person past tense, separating IC contributions from amplification, and naming the judgment exercised. Output is designed to drop straight into a developer journal, a personal bragging sheet, or a performance-review packet. Accepts a mode argument, `/flagrare:brag-doc resumancer` renders the output as ready-to-paste Resumancer CLI commands (`resumancer impact "..." --branch ...`) instead of markdown. Use whenever the user says "brag doc", "brag sheet", "what did I do this week", "weekly recap", "monthly recap", "performance review prep", "what should I tell my manager", "summarise my impact", "career log entry", "give me my wins", "biweekly recap", or any variant about looking back over a longer window than a single day's standup. Also trigger near review season ("self-review", "perf packet", "evaluation prep"), and on phrases like "log my wins to resumancer" or "make resumancer entries for this week" (which should pass the `resumancer` mode). For windows longer than about a month, a tenure retrospective, a departure record, or "everything I did at this company", hand off to `/flagrare:impact-timeline` instead; this skill's window tops out at a month.npx claudepluginhub flagrare/agent-skills --plugin flagrareOther plugins' skills for the same job