用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/SAP/fundamental-ngx --skill preflight命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | preflight |
| description | Run local quality gates before creating a PR |
| argument-hint | ["library"] |
| disable-model-invocation | true |
| context | fork |
| agent | general-purpose |
Run all local quality gates for the affected library. If no argument provided, detect the library from changed files via git diff --name-only.
# If $ARGUMENTS provided, use it. Otherwise detect from changed files:
git diff --name-only HEAD~1
Map changed file paths to library names (libs/core/ → core, libs/platform/ → platform, etc.).
yarn format
Ensure all code is formatted before running quality gates.
nx run <library>:build
Report: PASS or FAIL with error summary.
nx run <library>:lint
Report: PASS or FAIL with violation count and top issues.
nx run <library>:test --skip-nx-cache
Report: PASS or FAIL with failing test names and error messages.
For each changed component file, verify it is exported from the library's public_api.ts or index.ts. Flag any new public classes missing from exports.
Run git diff on changed files. Flag:
input(), output(), or model() declarationsIf breaking changes found, verify the commit message contains BREAKING CHANGE: footer.
## Preflight Report
| Gate | Status | Details |
|-------------------|--------|------------------|
| Format | PASS | |
| Build | PASS | |
| Lint | FAIL | 3 violations |
| Unit Tests | PASS | 42 tests passed |
| Exports | PASS | |
| Breaking Changes | WARN | 1 input removed |
### Failures
[details for each failed gate]
### Action Required
[what needs fixing before PR]
Add, rename, or remove i18n translation keys in fundamental-ngx (updates FdLanguage interface, .properties files, and generated types)
Audit existing code against project conventions and Angular 22+ best practices
Migrate a component or directive to Angular 22+ signal-based patterns
基于 SOC 职业分类