From qq
Groups branch commit history into semantic timeline phases and generates architecture evolution timeline plus code review documents. Use for structured PR reviews tracing development order.
npx claudepluginhub tykisgod/quick-questionThis skill uses the workspace's default tool permissions.
Respond in the user's preferred language (detect from their recent messages, or fall back to the language setting in CLAUDE.md).
Generates structured PR descriptions from git commit history by grouping changes by domain, filtering noise like lints, and inspecting diffs only when needed. Use for consistent, token-efficient PR summaries.
Visualizes git diffs, branches, commits, PRs, and ranges as interactive HTML reports with architecture diagrams, KPI dashboards, code review cards, and side-by-side comparisons.
Reviews PRs or branch diffs using knowledge graph for structural context, blast-radius analysis, risk assessment, test coverage, and structured file-by-file output.
Share bugs, ideas, or general feedback.
Respond in the user's preferred language (detect from their recent messages, or fall back to the language setting in CLAUDE.md).
Group the current branch's commit history into semantic phases along a timeline, and generate two review documents: architecture evolution + code review.
Arguments: $ARGUMENTS
--base <branch>: specify a custom base branch for comparisonUnlike /qq:brief (produces architecture diff + PR checklist),
this command groups commits by timeline phases, helping reviewers build a mental model in development order while preserving priority annotations.
git log <base>..HEAD --oneline --reverse --format="%h %ai %s"
Grouping criteria (in order of priority):
Each Phase requires:
Target: 5–10 Phases (too few loses timeline value; too many becomes per-commit annotation)
For each Phase:
git diff <phase_first_commit>~1..<phase_last_commit> --stat
git diff <phase_first_commit>~1..<phase_last_commit> -- '*.cs'
Read the full content of key changed files to understand context — not just diff fragments.
Format:
# Architecture Evolution Timeline
> X phases, Y commits, Z-day development span
> Branch: `<branch>`, base: `<base>`
---
## Phase 1: <Semantic Name> (<date range>, N commits)
> One-sentence summary
<details>
<summary>Commits</summary>
- `hash1` message1
- `hash2` message2
</details>
### Architecture Changes
#### [Tier 1] Change Title (if any)
**Scope**: ...
**Nature of change**: ...
\```mermaid
<diagram: show the architectural changes introduced in this phase, not the accumulated final state>
\```
#### [Tier 2] Change Title (if any)
...
### Dependencies Introduced This Phase
- `ModuleA` → `ModuleB` (new reference)
### Cumulative State
> Overall progress to this point: X completed, next phase will Y
---
## Phase 2: <Semantic Name> ...
Diagram requirements:
Format:
# Code Review Timeline
> X phases, Y commits
> Branch: `<branch>`, base: `<base>`
## Review Priority Quick Reference
| Phase | P0 | P1 | P2 | Files | Est. Time | Core Risk |
|-------|----|----|----|-------|-----------|-----------|
| 1. Name | 0 | 2 | 1 | 5 | 10 min | No major risk |
| 2. Name | 3 | 1 | 0 | 12 | 25 min | Global static state isolation |
| ... | | | | | | |
Time estimation rules:
- Each P0 item ~5 min (requires reading context + verification)
- Each P1 item ~2 min (quick check)
- Each P2 item ~0.5 min (quick scan)
- Round up to the nearest 5 minutes
**Recommended review order**: sort by P0 count descending — review the highest-risk phases when most focused
---
## Phase 1: <Semantic Name> (<date range>, N commits)
> One-sentence summary
<details>
<summary>Commits</summary>
- `hash1` message1
- `hash2` message2
</details>
### Files to Review
List C# files involved in this phase by priority (exclude pure asset/config/test files), annotated with the highest priority level:
| File | Priority | Change Summary |
|------|----------|---------------|
| `Assets/Scripts/.../GameManager.cs` | P0 | Core game loop changes |
| `Assets/Scripts/.../PlayerController.cs` | P0 | Input handling refactor |
| `Assets/Scripts/.../InventorySystem.cs` | P1 | Data model migration |
| ... | P2 | ... |
File list generation rules:
- Obtain from `git diff <phase_start>..<phase_end> --name-only -- '*.cs'`
- Exclude test files under `Tests/` (unless the tests themselves have P0/P1 review items)
- Exclude pure Editor tool files (unless they have review items)
- Each file is annotated with its highest priority level from this Phase's review items
- Files with no review items are annotated `--` (no separate review needed)
- Sort by priority: P0 first, `--` last
### P0 — Must be human-reviewed
1. **Filename:line** — change description
Risk: why this needs attention
Suggestion: what to focus on during review
### P1 — Recommended attention
2. **Filename:line** — change description
Suggestion: checkpoints
### P2 — Quick scan
3. **Filename:line** — description
---
## Phase 2: ...
P0/P1/P2 Assessment Criteria (consistent with /qq:brief):
Key rule: Each review item appears only in the phase that introduced it — do not repeat it in later phases. If a later phase modifies code from an earlier phase, annotate it in that later phase as "modifies Phase X's ...".
Generate REVIEW_GUIDE.md (no timestamp, overwrite each time), with content dynamically populated based on documents already present in the current directory.
Format:
# Review Guide
> Branch: `<branch>`
> Generated: `<timestamp>`
## Document Index
| Document | Perspective | Purpose |
|----------|-------------|---------|
| `timeline-arch_<ts>.md` | Timeline × Architecture | Understand how the architecture evolved in development order |
| `timeline-review_<ts>.md` | Timeline × Review | Review code phase by phase, each with a file list |
| `arch-review_<ts>.md` | Final state × Architecture | Final architecture overview + module heatmap (if exists) |
| `pr-review_<ts>.md` | Final state × Review | Full final P0/P1/P2 list (if exists) |
If a document does not exist, annotate in the table "Not generated — run `/qq:brief` to generate".
## Reading Order
### Scenario A: First time looking at this branch
Use when: just picked it up, cross-team review, or returning after a long break
1. **timeline-arch** — follow the timeline to understand "how it got to this state", build a mental model
2. **arch-review** — view the final architecture overview and confirm the model is complete
3. **timeline-review** — review code phase by phase (use the quick reference to pick high-risk phases first)
4. **pr-review** — final scan from the final-state perspective to catch systemic risks across phases
### Scenario B: Already familiar with the branch, reviewing code directly
Use when: self-reviewing your own code, routine incremental review
1. **timeline-review** — quick reference → pick phases with most P0s → file list → review each item
2. **pr-review** — catch what was missed: the final-state perspective may reveal cross-phase combination risks
> Skip the two arch documents in Scenario B — you already know the architecture.
## Self-Review Workflow
Run /qq:timeline ↓ Open timeline-review, check the quick reference table ↓ Select phases in descending P0 count order (review highest-risk phases when most focused) ↓ For each Phase:
## Time Budget
Summarize from the `timeline-review` quick reference table:
| Phase | Estimated Time |
|-------|---------------|
| (copied from quick reference) | |
| **Total** | **X min** |
Write three files to Docs/qq/<branch-name>/:
timeline-arch_<timestamp>.mdtimeline-review_<timestamp>.mdREVIEW_GUIDE.md (no timestamp, overwritten each time)Branch name rule: use the current branch name, replacing / with _.
Timestamp format: YYYY-MM-DD-HHmm.