Umbraco Skill Code Analyzer
Analyzes Umbraco .NET code for potential issues and best practices, boosting development efficiency and code quality.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add umbraco-skill-code-analyzer npx -- -y @trustedskills/umbraco-skill-code-analyzer
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"umbraco-skill-code-analyzer": {
"command": "npx",
"args": [
"-y",
"@trustedskills/umbraco-skill-code-analyzer"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill is a static analysis tool designed to validate code examples found within SKILL.md files, specifically for Umbraco development. It checks for issues related to import paths, extension types, deprecated coding patterns, and performs optional TypeScript compilation. The tool helps ensure code quality and adherence to Umbraco best practices by identifying potential problems early in the development process.
When to use it
- When developing or updating SKILL.md files containing Umbraco code examples.
- To proactively identify and fix issues with import paths, extension types, and deprecated patterns.
- As part of a continuous integration workflow to maintain consistent code quality across Umbraco skills.
Key capabilities
- Import Path Validation: Checks
@umbraco-cms/backoffice/*imports against known modules. - Extension Type Verification: Validates
type:values against recognized Umbraco extension types. - Deprecated Pattern Detection: Flags outdated code patterns for potential refactoring.
- TypeScript Compilation (Optional): Performs syntax and type checking using TypeScript.
- Detailed Reporting: Generates a
code-analysis-report.jsonfile with timestamped results, issue counts, and specific details about detected problems.
Example prompts
This skill doesn't directly respond to user prompts. Instead, it is run as a script within the development environment:
npx skills add https://github.com/umbraco/umbraco-cms-backoffice-skills --skill umbraco-skill-code-analyzer(to install)cd .claude/skills/umbraco-skill-code-analyzer/scripts && npm install --silent && npx tsx analyze-code.ts(to run the analysis)
Tips & gotchas
- TypeScript Dependency: Requires Node.js and npm for TypeScript compilation. The
CHECK_TYPESCRIPTenvironment variable can be set tofalseto skip this step if not needed. - Updating Known Values: The tool relies on lists of known modules and extension types, which may need periodic updates via editing the
analyze-code.tsscript. - Report Interpretation: The generated JSON report provides detailed information about identified issues; review it carefully to understand and address any flagged problems.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.