Agent skill
sc-diff
Semantic diffing for .NET source using roslyn-diff. Supports file/folder diffs, HTML reports, and git/PR-aware comparisons (GitHub + Azure DevOps).
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/sc-diff
SKILL.md
sc-diff
Capabilities
- Compare two files or two folders (exactly one of each per request)
- Auto semantic diff for .cs/.vb with line fallback for non-.NET files
- JSON-first output for AI consumption
- Optional HTML report per pair
- Git/PR-based comparisons via sc-git-diff
- Smart batching for large diff sets
Agent Delegation
| Operation | Agent | Returns |
|---|---|---|
| File/folder diff | sc-diff |
JSON: results[], counts, warnings |
| Git/PR diff | sc-git-diff |
JSON: results[], refs, counts |
Invoke agents via Agent Runner using .claude/agents/registry.yaml.
Parameters
files: string (comma-delimited list of 2 file paths)folders: string (comma-delimited list of 2 folder paths)html: boolean (default false)mode:auto(default),roslyn,lineignore_whitespace: boolean (default false)context_lines: number (optional, default 3)text_output: string|bool (optional; true writes.sc/roslyn-diff/temp/diff-#.txt)git_output: string|bool (optional; true writes.sc/roslyn-diff/temp/diff-#.patch)allow_large: boolean (default false)files_per_agent: number (default 10)max_pairs: number (default 100)git_pr: string (PR URL or PR number)
Behavior
- Validate exactly one of
filesorfolders. - Resolve inputs into file pairs.
- If pair count >
max_pairsandallow_largeis false, stop with a warning. - If pair count >
files_per_agent, split into batches and spawn sub-agents. - Aggregate results: include non-identical diffs and counts.
Caching
- Cache Azure DevOps org/project/repo in
.sc/roslyn-diff/settings.json. - Store defaults like
files_per_agentwhen set explicitly.
Output Contract
- Always return fenced JSON with a discriminated union:
success: true|false. success: trueincludes aggregated counts and per-pair roslyn-diff JSON outputs.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?