用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/SAP/fundamental-ngx --skill scaffold命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
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 职业分类
正在显示 SKILL.md
| name | scaffold |
| description | Generate a working component using fundamental-ngx patterns (dialog, table, card, form, shell, layout-grid) |
| argument-hint | <pattern> [variant] |
| context | fork |
| agent | general-purpose |
| allowed-tools | Read, Grep, Glob, Bash(nx *), Write, Edit |
If $ARGUMENTS is empty, ask the user which pattern they want. Supported patterns:
dialog — modal dialog (template / component-ref / object-based variants)table — data table (fd-table / fdp-table / ui5-table variants)card — content card with header and bodyform — form layout with form-items and validationshell — app shell with shellbar and navigationlayout-grid — responsive grid layoutParse the pattern name from $ARGUMENTS. If a variant is specified (e.g., dialog component-ref), note it for Phase 3.
Use the @fundamental-ngx/mcp MCP server tools to get accurate, up-to-date information:
Call get_usage_guide with the pattern name to get:
Call get_component_api for the primary component to get:
Call get_component_examples to get real working examples from the docs app.
If the MCP server is not available, fall back to reading libs/mcp-server/src/data/usage-guides.ts directly.
If the pattern has multiple variants (e.g., dialog has 3 API surfaces):
$ARGUMENTS, use itget_usage_guide and ask the user to chooseAsk the user where to generate the component:
src/app/dialogs/confirm-dialog)ConfirmDialog)If the user provides just a name, default to src/app/components/<name>/.
Create a complete Angular component with:
TypeScript file (.component.ts):
@fundamental-ngx/core, @fundamental-ngx/platform, or @fundamental-ngx/ui5-webcomponentsChangeDetectionStrategy.OnPushsignal(), computed())input() / output() for component APIfd- prefix conventionsHTML template (.component.html):
@if / @for control flow (not *ngIf / *ngFor)SCSS file (.component.scss):
--sapTextColor, --sapContent_LabelColor, etc.)<button fd-button> not <fd-button>, <h2 fd-title> not <fd-title><fd-card>, <fd-dialog-body>, <fd-layout-grid>standalone: true (default since Angular 19)@HostBinding / @HostListener — use host: {} in decorator@if / @for / @switch, not structural directivesIf the user has an NX workspace or Angular CLI project:
nx run <project>:build or ng build## Scaffold: [pattern] — [variant]
**Generated files:**
- path/to/component.component.ts
- path/to/component.component.html
- path/to/component.component.scss
**Imports required in your module/component:**
- `import { ComponentName } from '@fundamental-ngx/core/...'`
**Next steps:**
- [ ] Add the component to your routing or parent template
- [ ] Customize the template content
- [ ] Add your business logic