Agent skill
analyze
Run code analyzers (unused packages, code quality, security). Use when user wants to analyze the codebase or runs /analyze.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/analyze-cooper538-eshop-demo
SKILL.md
Code Analyzer
Run analysis tools on the codebase.
Usage
/analyze # Run all analyzers
/analyze packages # Unused NuGet packages only
/analyze quality # Code quality only
/analyze security # Security vulnerabilities only
Arguments
$ARGUMENTS- Analyzer type to run- Empty or
all- Run all analyzers packages- Detect unused NuGet packages (dotnet-unused)quality- Check code style and Roslyn warningssecurity- Scan for known CVEs and deprecated packages
- Empty or
Process
Step 1: Ensure Tools Are Installed
Run dotnet tool restore if tools are not available.
Step 2: Execute Analyzer(s)
Based on $ARGUMENTS:
| Argument | Script |
|---|---|
(empty) / all |
./tools/analyzers/run-all.sh |
packages |
./tools/analyzers/unused-packages/analyze.sh |
quality |
./tools/analyzers/code-quality/analyze.sh |
security |
./tools/analyzers/security/analyze.sh |
Step 3: Report Results
Summarize findings:
- Number of issues found per category
- Actionable recommendations
Output Format
=== Analysis Results ===
Unused Packages: X issues
- ProjectName: PackageName
Code Quality: X warnings
- File:Line - Warning description
Security: X vulnerabilities
- PackageName - CVE-XXXX-XXXXX (severity)
Recommendations:
1. Remove unused package X from project Y
2. Fix warning Z in file W
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?