collect-commits-and-files
Collect changed files from git diff and explicit paths, categorize by type, output manifest.
What this skill does
Skill for collecting files to review: runs git diff against target branch, merges explicit files, categorizes by type.
## Arguments
| Arg | Default | Description |
|-----|---------|-------------|
| `--against` | origin/main | Target branch for diff comparison |
| `--files` | (none) | Comma-separated explicit file paths |
## Workflow
### 1. Collect File Info
Run:
```bash
${CLAUDE_PLUGIN_ROOT}/skills/collect-commits-and-files/scripts/collect-info.sh --against <branch> --files <paths>
```
Returns JSON manifest:
```json
{
"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"]
}
```
### 2. Handle Errors
If script returns error, report to caller:
```json
{"error": "No files to review", "error_code": "NO_FILES"}
```
Error codes:
- `NOT_GIT_REPO`: Not in a git repository
- `BRANCH_NOT_FOUND`: Target branch does not exist
- `NO_FILES`: No files found to review
- `NO_EXISTING_FILES`: All files are deleted
### 3. Temp Directory Structure
The 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
```
### 4. Cleanup
After processing is complete, run:
```bash
${CLAUDE_PLUGIN_ROOT}/skills/collect-commits-and-files/scripts/cleanup.sh <temp_dir>
```
## File Categories
| 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 Value
Return the manifest JSON directly. Orchestrator uses this to:
1. Read file lists from `paths.files_dir`
2. Route to appropriate review agents based on `summary` counts
3. Store review outputs in `paths.reviews_dir`
4. Clean up `temp_dir` on completion
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.