Collect changed files from git diff and explicit paths, categorize by type, output manifest.
npx claudepluginhub reedom/claude-code-commands --plugin reedom-quick-refactorThis skill is limited to using the following tools:
Skill for collecting files to review: runs git diff against target branch, merges explicit files, categorizes by type.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Skill for collecting files to review: runs git diff against target branch, merges explicit files, categorizes by type.
| Arg | Default | Description |
|---|---|---|
--against | origin/main | Target branch for diff comparison |
--files | (none) | Comma-separated explicit file paths |
Run:
${CLAUDE_PLUGIN_ROOT}/skills/collect-commits-and-files/scripts/collect-info.sh --against <branch> --files <paths>
Returns JSON manifest:
{
"temp_dir": "<git-root>/.tmp/quick-refactor-XXXXXX",
"repo_root": "/path/to/repo",
"against_branch": "origin/main",
"paths": {
"diff_dir": "<temp_dir>/diff",
"files_dir": "<temp_dir>/files",
"reviews_dir": "<temp_dir>/reviews"
},
"summary": {
"total_files": 10,
"source": 6,
"test": 2,
"config": 1,
"docs": 1
},
"project_rules": ["/path/to/CLAUDE.md", "/path/to/.kiro/steering.md"]
}
If script returns error, report to caller:
{"error": "No files to review", "error_code": "NO_FILES"}
Error codes:
NOT_GIT_REPO: Not in a git repositoryBRANCH_NOT_FOUND: Target branch does not existNO_FILES: No files found to reviewNO_EXISTING_FILES: All files are deletedThe script creates temp directory at <git-root>/.tmp/ (falls back to system temp):
<git-root>/.tmp/
├── .gitignore # Contains `*` to ignore all temp files
└── quick-refactor-XXXXXX/
├── diff/ # Individual file diffs
│ └── <md5hash>.diff
├── files/ # File paths by category (JSON arrays)
│ ├── source.json # ["path/to/file1.ts", "path/to/file2.ts"]
│ ├── test.json
│ ├── config.json
│ └── docs.json
└── reviews/ # Empty, for review agent outputs
After processing is complete, run:
${CLAUDE_PLUGIN_ROOT}/skills/collect-commits-and-files/scripts/cleanup.sh <temp_dir>
| Category | Description | Example patterns |
|---|---|---|
| source | Source code files | *.ts, *.py, *.go |
| test | Test files | *_test.go, *.spec.ts, tests/ |
| config | Configuration | *.yaml, .eslintrc, .github/ |
| docs | Documentation | *.md, docs/ |
Return the manifest JSON directly. Orchestrator uses this to:
paths.files_dirsummary countspaths.reviews_dirtemp_dir on completion