Scan repo

From gittower/git-flow-next · View interactive version

Scan repo is an AI agent skill from the GitHub repository gittower/git-flow-next. Weekly repo activity scan — new discussions, issues, and PRs, ordered by effort into an action list

How to use this skill

Skill file

Scan Repo

Scan all activity on gittower/git-flow-next since the last scan and produce

a prioritized action list: what came in (discussions, issues, PRs), what

needs a reaction from us, and in which order to tackle it — quick wins

first, deeper work later, each item with the command that handles it.

Read-only: the scan never posts, labels, or replies. It only reports. Meant

to be run manually about once per week.

Arguments

/scan-repo [since]

(2026-07-01). Default: the date of the most recent scan report in

.ai/scans/, or 7 days if none exists.

Instructions

1. Determine the Window

ls .ai/scans/scan-*.md 2>/dev/null | sort | tail -1

Use the date in the newest filename as SINCE unless an argument was

given. Fall back to 7 days ago. Get today's date with date +%Y-%m-%d.

2. Gather Activity

Collect in parallel where possible:

Discussions (GraphQL):

gh api graphql -f query='query { repository(owner: "gittower", name: "git-flow-next") {
  discussions(first: 30, orderBy: {field: UPDATED_AT, direction: DESC}) {
    nodes { number title category { name } isAnswered updatedAt createdAt
      author { login } comments(last: 3) { nodes { author { login } createdAt } } } } } }'

Flag: new discussions since SINCE; unanswered questions; threads where

the last comment is not ours.

Issues:

Pull requests:

.claude/skills/check-prs/SKILL.md, steps 1–2) — status vs the review

response window, days waiting, whose move it is

Housekeeping signals (cheap checks, include only if noteworthy):

started

Treat comments by repo collaborators and bots as "ours"; everyone else is

external.

3. Classify by Effort

Sort every actionable item into one of three buckets:

Quick wins — minutes each, mostly judgment-free:

One command — the autonomous pipelines do the heavy lifting; our cost

is reviewing their output at the gates:

Needs thinking — human design or policy judgment up front:

compatibility (triage will end in a design discussion)

that was never accepted)

Within each bucket, order by age (oldest first) — external people are

waiting.

4. Write the Report

Write .ai/scans/scan-<today>.md:

# Repo Scan <today> (since <SINCE>)

## Summary
<2-3 sentences: volume, anything urgent, overall state>

## Action List

### Quick wins
| # | Item | Waiting | Why quick | Command |
|---|------|---------|-----------|---------|
| 1 | discussion #12 — <title> | 6d | answer is in docs/gitflow-config.5.md | reply directly |
| 2 | issue #101 — <title> | 3d | duplicate of #87 | /triage 101 |

### One command
| # | Item | Waiting | Pipeline | Command |
|---|------|---------|----------|---------|
| 3 | issue #103 — <title> | 2d | bug triage | /triage 103 |
| 4 | PR #99 — <title> | 4d | review | /handle-pr 99 |

### Needs thinking
| # | Item | Waiting | What to think about |
|---|------|---------|---------------------|
| 5 | issue #104 — <title> | 5d | proposes new branch type semantics — design call needed |

## No Action Needed
<Items with recent activity that are waiting on the other side, in-window
PRs, answered discussions — one line each so nothing looks forgotten.>

## Housekeeping
<CI on main, unstarted specs, anything stale — or "all green".>

5. Report to User

Show the summary and the full action list in the conversation, in tackle

order. End with the single most valuable next command (usually action #1).

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.