Loading...
Loading...
Review and understand freshly AI-generated code. Scans the current repo's uncommitted/branch changes and builds a Claude-style light-themed two-column webpage — the left side shows the project folder tree of changed files, the right side displays the syntax-highlighted diff of the selected file (with additions/deletions clearly distinguished from unchanged code), along with a sidebar that presents, for each code segment, the related unit requirement and plain-language code explanation. Trigger with commands like "/understand", "code review this change", "explain the newly generated code", "check this change"
npx skill4agent add smallnest/goal-workflow understand~/.claude/skills/understand/understand.pyscandata.jsonannotations.jsonrenderreport.htmltemplate.html__UNDERSTAND_PAYLOAD__SKILL_DIRpython3 "$SKILL_DIR/understand.py" scan--base <ref>--base HEAD~1.understand/--out <dir>data.jsonannotations.jsonpathsReaddata.jsondocs/inferredtrue.understand/annotations.jsonfiles[].path{
"title": "One-sentence theme of this change",
"summary": "Overall what's being done and why (2~4 sentences, can use **bold** and `code`)",
"files": [
{
"path": "src/main/java/.../PwaTierInvitationService.java",
"summary": "What was changed in this file and why (1~3 sentences)",
"annotations": [
{
"side": "new",
"start": 52,
"end": 53,
"requirement": "expires_at is timestamptz, needs correct encoding",
"explanation": "Vert.x PG client does not support `java.time.Instant`, changed to bind `OffsetDateTime` (using `atOffset(UTC)`), otherwise a coercion error will occur at runtime.",
"inferred": false
}
]
}
]
}side"new""old""new"startendnewNooldNodata.jsonendstartrequirementexplanation`code`**bold**inferredtrueFuture.await()= ANYtimestamptzpython3 "$SKILL_DIR/understand.py" render
open .understand/report.html # macOS; use xdg-open for Linuxrenderdata.jsonannotations.json.understand/report.htmlreport.html.understand/git clean.gitignoredata.jsondata.jsonstart/endannotations.jsonside.understand/