重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
umbraco-skill-code-analyzer by umbraco/umbraco-cms-backoffice-skills
npx skills add https://github.com/umbraco/umbraco-cms-backoffice-skills --skill umbraco-skill-code-analyzer用于验证 SKILL.md 文件中代码示例的静态分析工具。
@umbraco-cms/backoffice/* 导入type: 值cd .claude/skills/umbraco-skill-code-analyzer/scripts
npm install --silent
npx tsx analyze-code.ts
| 变量 | 默认值 | 描述 |
|---|---|---|
CHECK_TYPESCRIPT |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
true设置为 false 以跳过 TypeScript 编译 |
在项目根目录生成 code-analysis-report.json,其结构如下:
{
"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
}
}
| 类型 | 严重性 | 描述 |
|---|---|---|
invalid-import | warning | 未知的 @umbraco-cms/backoffice/* 模块 |
unknown-extension-type | warning | 无法识别的扩展 type: 值 |
deprecated-pattern | warning | 检测到过时的代码模式 |
typescript-error | error | TypeScript 编译失败 |
脚本维护已知模块和扩展类型的列表。更新方法:
analyze-code.tsKNOWN_BACKOFFICE_MODULES 集合KNOWN_EXTENSION_TYPES 集合每周安装量
67
代码仓库
GitHub 星标数
17
首次出现
2026年2月4日
安全审计
安装于
github-copilot51
opencode20
codex20
gemini-cli18
amp18
claude-code18
Static analysis tool that validates code examples in SKILL.md files.
@umbraco-cms/backoffice/* imports against known modulestype: values against known Umbraco extension typescd .claude/skills/umbraco-skill-code-analyzer/scripts
npm install --silent
npx tsx analyze-code.ts
| Variable | Default | Description |
|---|---|---|
CHECK_TYPESCRIPT | true | Set to false to skip TypeScript compilation |
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
}
}
| 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 |
The script maintains lists of known modules and extension types. To update:
analyze-code.tsKNOWN_BACKOFFICE_MODULES setKNOWN_EXTENSION_TYPES setWeekly Installs
67
Repository
GitHub Stars
17
First Seen
Feb 4, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
github-copilot51
opencode20
codex20
gemini-cli18
amp18
claude-code18
Tailwind CSS v4 + shadcn/ui 生产级技术栈配置指南与最佳实践
2,600 周安装
| TypeScript compilation failed |