Semantic C# code analysis using Roslyn compilation model. Enables type finding, complexity analysis, code generation, and refactoring through in-memory workspace operations.
A CLI toolset for analyzing and manipulating C# codebases using Roslyn's full semantic model. Operates through a single GlobalServer process managing in-memory workspaces for multiple solutions.
Provides semantic-aware code operations on C# solutions:
**Single-Process Model**: ONE GlobalServer (localhost:5000) manages ALL solutions
1. .NET 10 SDK installed
2. C# solution with .sln file
3. Solution must compile successfully
```bash
dotnet tool install -g CyberdyneDevelopment.ClaudeTools
claude-tools --version
```
Navigate to a C# solution directory and initialize:
```bash
cd /path/to/your/solution
claude-tools init
```
This will:
Before running any analysis, start the global server:
```bash
claude-tools global start
```
Verify it's running:
```bash
claude-tools global status
```
Execute skills directly or via CLI wrapper:
```bash
claude-tools skill type-finder "WorkspaceManager"
claude-tools skill complexity-analyzer
claude-tools skill namespace-explorer
claude-tools skill collision-detector
claude-tools skill build-fixer
```
```bash
claude-tools skill doc-generator --target MyClass
claude-tools skill code-reader --strip-docs
claude-tools skill code-editor --operation RenameSymbol --target OldName --value NewName
```
```bash
claude-tools skills list
claude-tools skills enable coverage-analyzer
claude-tools skills disable doc-generator --delete-files
```
Watch real-time requests to GlobalServer:
```bash
claude-tools monitor
```
```bash
POST http://localhost:5000/workspace/load?port=5004
POST http://localhost:5000/workspace/commit?port=5004
POST http://localhost:5000/workspace/rollback?port=5004
```
**Analysis**:
**Generation**:
**Transformation**:
`.claude/claude-tools.json`:
```json
{
"Solution": "YourSolution.sln",
"GlobalServer": "http://localhost:5000",
"Server": {
"Port": 5004
}
}
```
1. **GlobalServer must be running** - Skills fail gracefully with recovery instructions if not
2. **Solution must compile** - Roslyn requires valid compilation for semantic analysis
3. **One GlobalServer instance** - Manages all solutions, don't start multiple
4. **Port range 5001-5100** - Maximum 100 concurrent solutions
5. **Framework-dependent skills** - Requires .NET 10 runtime
6. **In-memory operations** - Changes not persisted until explicit commit
7. **Three-way merge on commit** - Detects conflicts between disk/baseline/in-memory state
If skills fail with connection errors:
```bash
claude-tools global status
claude-tools global stop
claude-tools global start
```
If port assignment is missing:
```bash
claude-tools init
```
```bash
git clone https://github.com/CyberdyneDevelopment/claude-tools
dotnet build CyberdyneDevelopment.RoslynTools.sln -c Release
dotnet pack src/CyberdyneDevelopment.RoslynTools.CLI/CyberdyneDevelopment.RoslynTools.CLI.csproj -c Release -o ./nupkg
dotnet tool update -g CyberdyneDevelopment.ClaudeTools --add-source ./nupkg
.\build-all-skills.ps1
```
**Find all controller types**:
```bash
claude-tools skill type-finder ".*Controller$"
```
**Analyze high-complexity methods**:
```bash
claude-tools skill complexity-analyzer | jq '.[] | select(.Complexity > 10)'
```
**Generate docs for public APIs**:
```bash
claude-tools skill doc-generator --visibility public
```
**Check test coverage**:
```bash
claude-tools skill coverage-analyzer --cobertura coverage.xml
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/claude-tools/raw