一键导入
diffloupe
Run DiffLoupe AI code analysis for diff understanding and review
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run DiffLoupe AI code analysis for diff understanding and review
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run the GitHub issue triage tool for Redux repos. This skill should be used when triaging GitHub issues, generating triage reports, or understanding triage output for redux-toolkit, react-redux, reselect, redux, or immer repositories.
Create architecture review documents to understand and document existing codebases. Use when onboarding to an unfamiliar codebase, conducting architecture audits, or creating reference documentation for team members.
Document coding conventions, patterns, and guidelines for an existing codebase. Use when onboarding to a new project to understand its coding style, or when creating style documentation for team reference.
Design patterns for data-dense dashboard UIs with dark themes. Use when building tables, charts, status panels, and data visualization components. Focuses on readability, information density, and consistent design systems.
Create detailed development plans with task lists and progress tracking for major projects. Use for multi-phase work requiring detailed task breakdown, progress tracking, and living documentation of decisions and learnings.
Manage tasks via dex CLI. Use when breaking down complex work, tracking implementation items, or persisting context across sessions.
| name | diffloupe |
| description | Run DiffLoupe AI code analysis for diff understanding and review |
DiffLoupe is an AI-powered diff analysis tool that provides:
Use the wrapper script:
~/.config/opencode/scripts/diffloupe.ts <command> [args]
diffloupe.ts analyze [target]
Targets:
staged (default) # git diff --cached
unstaged # git diff
HEAD # git diff HEAD
branch:NAME # git diff NAME...HEAD
commit:HASH # single commit
range:A..B # commit range
Options:
-i, --intent "..." # Stated intent for alignment
--intent-file PATH # Read intent from file
-v, --verbose # Full output
--json # JSON output
-C, --cwd PATH # Run in directory
diffloupe.ts pr <identifier>
Identifiers:
123 # PR number (current repo)
owner/repo#123 # Cross-repo PR
https://github.com/.../pull/123 # URL
Options:
-R, --repo owner/repo # Specify repository
-v, --verbose # Full output
--json # JSON output
diffloupe.ts summarize [target]
Options:
--stats # Only file list + tokens
--files-only # Only file list
--json # JSON output
{
"intent": {
"summary": "...",
"purpose": "...",
"scope": "feature|bugfix|refactor|config|docs|test|mixed",
"affectedAreas": ["..."],
"suggestedReviewOrder": ["file1.ts", "file2.ts"]
},
"risks": {
"overallRisk": "low|medium|high|critical",
"summary": "...",
"confidence": "high|medium|low",
"risks": [
{
"severity": "low|medium|high|critical",
"category": "security|breaking-change|performance|...",
"description": "...",
"evidence": "...",
"file": "...",
"mitigation": "..."
}
]
},
"alignment": {
"alignment": "aligned|partial|misaligned",
"confidence": "high|medium|low",
"summary": "...",
"matches": ["..."],
"mismatches": ["..."],
"missing": ["..."],
"unstated": ["..."]
}
}
--json for programmatic processingecho "intent" | diffloupe.ts analyzesummarize --stats first to check token countcommit: targets