umbraco/umbraco-cms-backoffice-skills

umbraco-skill-code-analyzer

Analyze code examples in SKILL.md files for correctness using static analysis and TypeScript compilation

First seen Feb 4, 2026

Installation

$ npx skills add umbraco/umbraco-cms-backoffice-skills --skill umbraco-skill-code-analyzer

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from umbraco/umbraco-cms-backoffice-skills · top by installs.

npx skills add umbraco/umbraco-cms-backoffice-skills

Browse all from umbraco/umbraco-cms-backoffice-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 27
License MIT
Default branch main
Open issues 4
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0
Allowed toolsBash
Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,232 B
  • docs SUMMARY.md 139 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 314 installs

SKILL.md

Umbraco Skill Code Analyzer

Static analysis tool that validates code examples in SKILL.md files.

What It Checks

  • Import paths - Validates @umbraco-cms/backoffice/* imports against known modules
  • Extension types - Checks type: values against known Umbraco extension types
  • Deprecated patterns - Flags outdated code patterns
  • TypeScript compilation - Optional syntax/type checking

Usage

cd .claude/skills/umbraco-skill-code-analyzer/scripts
npm install --silent
npx tsx analyze-code.ts

Environment Variables

Variable Default Description
CHECK_TYPESCRIPT true Set to false to skip TypeScript compilation

Output

Produces code-analysis-report.json in project root with structure:

{
  "timestamp": "...",
  "skillsScanned": 69,
  "codeBlocksAnalyzed": 473,
  "issuesFound": 34,
  "skills": [
    {
      "skillPath": "...",
      "skillName": "...",
      "codeBlocks": 5,
      "issues": [
        {
          "line": 33,
          "type": "invalid-import",
          "value": "@umbraco-cms/backoffice/unknown",
          "message": "Unknown import path",
          "severity": "warning"
        }
      ]
    }
  ],
  "statistics": {
    "totalCodeBlocks": 473,
    "typescriptBlocks": 368,
    "importIssues": 16,
    "extensionTypeIssues": 21,
    "compilationErrors": 0,
    "deprecatedPatterns": 15
  }
}

Issue Types

Type Severity Description
invalid-import warning Unknown @umbraco-cms/backoffice/* module
unknown-extension-type warning Unrecognized extension type: value
deprecated-pattern warning Outdated code pattern detected
typescript-error error TypeScript compilation failed

Updating Known Values

The script maintains lists of known modules and extension types. To update:

  1. Edit analyze-code.ts
  2. Add to KNOWNBACKOFFICEMODULES set
  3. Add to KNOWNEXTENSIONTYPES set