umbraco-skill-code-analyzer

Analyze Umbraco CMS code examples in SKILL.md files for import paths and deprecated patterns.

26|13|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/umbraco/Umbraco-CMS-Backoffice-Skills --skill umbraco-skill-code-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: umbraco-skill-code-analyzer
Source: https://github.com/umbraco/Umbraco-CMS-Backoffice-Skills/tree/main/.claude/skills/umbraco-skill-code-analyzer
Command: npx skills add https://github.com/umbraco/Umbraco-CMS-Backoffice-Skills --skill umbraco-skill-code-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires glob, typescript, tsx, @types/node, @umbraco-cms/backoffice, and includes scripts (resource) components.

What problem does it solve?

This Skill helps developers ensure the quality and correctness of Umbraco code examples within SKILL.md files, catching common errors before they cause issues.

Core Features & Use Cases

  • Static Code Analysis: Validates import paths and extension types against Umbraco standards.
  • Deprecated Pattern Detection: Flags outdated code patterns for modernization.
  • TypeScript Compilation Check: Optionally performs syntax and type checking on TypeScript code blocks.
  • Use Case: When writing or reviewing Umbraco extension code in SKILL.md files, run this analyzer to automatically identify and fix potential issues like incorrect import paths or unrecognized extension types.

Quick Start

Run the code analysis script from the skill's scripts directory.

Frequently Asked Questions about umbraco-skill-code-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate Umbraco backoffice import paths and extension types in code examples?

Static code analysis validates Umbraco backoffice import paths and extension types by scanning code examples in SKILL.md files. It detects incorrect imports and unrecognized extensions against Umbraco API standards.

Does TypeScript compilation checking work with Umbraco CMS code examples?

TypeScript compilation checking works with Umbraco CMS code examples by optionally performing syntax and type validation on TypeScript code blocks. This ensures code correctness and adherence to Umbraco backoffice API standards.

How do I detect deprecated patterns in Umbraco extension code?

Detecting deprecated patterns in Umbraco extension code is handled by the static analyzer scanning SKILL.md files. It automatically flags outdated code patterns to help developers modernize their Umbraco backoffice implementations.

What is the best way to check Umbraco code correctness before deployment?

The best way to check Umbraco code correctness before deployment is running a static analyzer on SKILL.md files. It validates import paths, extension types, and performs optional TypeScript compilation checks to catch errors early.

Do I need @umbraco-cms/backoffice to analyze code for Umbraco standards?

Yes, @umbraco-cms/backoffice is required to analyze code for Umbraco standards. The analyzer depends on it alongside TypeScript and glob to validate import paths and extension types against the Umbraco backoffice API.

Why does static code analysis fail to recognize my Umbraco extension types?

Static code analysis fails to recognize Umbraco extension types when import paths or extension declarations in SKILL.md files do not match Umbraco backoffice API standards. The analyzer validates these against its dependency on @umbraco-cms/backoffice.