umbraco-skill-code-analyzer

Validate Umbraco SKILL.md code examples with static analysis and TypeScript compilation.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/kraftvaerk/Kraftvaerk.Umbraco.Alchemy --skill umbraco-skill-code-analyzer-kraftvaerk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: umbraco-skill-code-analyzer
Source: https://github.com/kraftvaerk/Kraftvaerk.Umbraco.Alchemy/tree/main/Kraftvaerk.Umbraco.Alchemy.Frontend/.agents/skills/umbraco-skill-code-analyzer
Command: npx skills add https://github.com/kraftvaerk/Kraftvaerk.Umbraco.Alchemy --skill umbraco-skill-code-analyzer-kraftvaerk

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the validation of code examples within SKILL.md files, ensuring code correctness and adherence to Umbraco standards.

Core Features & Use Cases

  • Static Code Analysis: Checks for common errors like invalid import paths and unknown extension types.
  • TypeScript Compilation: Optionally performs syntax and type checking for TypeScript code blocks.
  • Deprecated Pattern Detection: Flags outdated code patterns to promote modern best practices.
  • Use Case: Integrate this Skill into your CI/CD pipeline to automatically catch code errors in your Umbraco Skill documentation before they reach production.

Quick Start

Run the analyze command 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 code examples in Umbraco SKILL.md files?

You validate code examples in Umbraco SKILL.md files by running a Node.js script that performs static analysis to check import paths against @umbraco-cms/backoffice modules and verifies extension types. This catches invalid imports and ensures Umbraco standard adherence.

What is static analysis for Umbraco extension types?

Static analysis for Umbraco extension types is a validation mechanism that scans markdown documentation to identify unknown extension types and invalid import paths. It operates by executing a Node.js script that reports code issues without running the application.

Can I run TypeScript compilation checks on Umbraco documentation code blocks?

Yes, you can optionally run TypeScript compilation checks on code blocks within Umbraco documentation. This performs syntax and type checking for TypeScript code examples to catch errors that static analysis alone might miss.

Does this code analyzer detect deprecated Umbraco code patterns?

Yes, the code analyzer detects deprecated Umbraco code patterns by scanning SKILL.md files and flagging outdated code. This promotes modern best practices and helps maintain up-to-date Umbraco Skill documentation.

How do I integrate Umbraco code validation into my CI/CD pipeline?

You integrate Umbraco code validation into your CI/CD pipeline by executing the analyzer's Node.js script from the scripts directory during your build process. This automatically catches code errors in Umbraco Skill documentation before they reach production.

Do I need Node.js and TypeScript to check SKILL.md files for invalid imports?

Yes, you need Node.js and TypeScript dependencies to check SKILL.md files for invalid imports. The analyzer operates by executing a Node.js script and optionally performs TypeScript compilation for syntax and type checking.