소스 정보
- 저장소
- SAP/fundamental-ngx
- 최근 소스 활동
- 2026년 5월 20일 06:29
- 감지된 SKILL.md 언어
- 영어
- 스타
- 294
- 포크
- 147
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/SAP/fundamental-ngx --skill adopt-styles명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? 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 | adopt-styles |
| description | Adopt breaking changes from fundamental-styles into Angular components |
| argument-hint | <component-names> (e.g., calendar, checkbox, radio) |
If $ARGUMENTS is empty, ask the user for one or more fundamental-styles component names before proceeding.
Parse $ARGUMENTS as a comma-separated list of fundamental-styles component names (e.g., calendar, checkbox, radio).
For each component name, locate its Angular implementation across all library packages.
Find component directories:
# Search all library packages — not just core
find libs/core libs/platform libs/btp libs/cx libs/cdk -maxdepth 1 -type d -name "<component>" 2>/dev/null
If no exact match, try partial/fuzzy matching:
find libs/core libs/platform libs/btp libs/cx libs/cdk -maxdepth 1 -type d -name "*<component>*" 2>/dev/null
Enumerate all files in each matched directory (recursively):
find <matched-directory> \( -name "*.component.ts" -o -name "*.component.html" -o -name "*.component.spec.ts" -o -name "*.directive.ts" -o -name "*.directive.html" -o -name "*.directive.spec.ts" \)
Present the discovered file tree grouped by package and component:
## Discovered Files
### core/calendar
- calendar.component.ts
- calendar.component.html
- calendar.component.spec.ts
- calendar-views/calendar-day-view/calendar-day-view.component.ts
- calendar-views/calendar-day-view/calendar-day-view.component.html
- calendar-views/calendar-day-view/calendar-day-view.component.spec.ts
- calendar-legend/calendar-legend.component.ts
- ...
### core/checkbox
- checkbox/checkbox.component.ts
- ...
If any component name has zero matches, report it and ask the user to clarify before proceeding.
For each discovered component, compare the current Angular implementation against the fundamental-styles target state.
Fetch target state from the fundamental-styles MCP server:
get_component_html — reference HTML markup (correct element structure, nesting)get_accessibility_guide — ARIA attributes, roles, keyboard interaction patternsget_css_classes — full BEM class hierarchy (block, elements, modifiers, states)Read the current Angular implementation:
.component.html template.component.ts file (host bindings, imports, class building logic)Identify gaps by diffing current vs. target:
| Category | What to look for |
|---|---|
| Missing ARIA attributes | role, aria-label, aria-labelledby, aria-expanded, aria-readonly, aria-multiselectable, aria-roledescription, aria-description, etc. |
| Missing/renamed CSS classes | New BEM element/modifier classes, new is-* state classes (e.g., is-readonly) |
| Structural HTML changes | Element type changes (e.g., <button> → <span>), wrapper additions/removals, nesting changes |
| Removed attributes | Redundant roles/ARIA on inner elements that the parent now handles |
| Import changes | TypeScript imports to add or remove after template changes (e.g., removing ButtonComponent after button → span) |
Flag i18n requirements:
If any new ARIA attribute requires translated text (e.g., aria-label, aria-description, aria-roledescription with user-facing strings), note:
Present a structured adoption plan. Stop and wait for user approval before executing.
Before presenting the plan, scan for downstream consumers that may break:
Find all template usages of the component's selector(s) across the monorepo:
grep -rn '<fd-<component>\|fd-<component> ' libs --include='*.html' --include='*.ts' | grep -v node_modules
In each consumer, check for brittle assertions or hard-coded references:
.classList.length).className.toContain('class-a class-b'))tabindex="0" instead of [tabindex]="0")Add downstream fixes to the plan as separate entries.
## Adoption Plan
### <ComponentName> (<package>/<path>)
| File | What to change | Why |
|------|---------------|-----|
| `component.ts` | Add `role="group"` to host | Screen readers need to identify as group |
| `component.html` | Add `aria-readonly` to `<table>` | Grid table needs ARIA state attributes |
| `component.html` | Change `<button fd-button>` → `<span class="fd-button ...">` | Remove double-focusable element |
| `component.ts` | Remove `ButtonComponent` from imports | No longer used after button → span |
### i18n Keys Needed
| Key | English Default | Used By |
|-----|----------------|---------|
| `coreCalendar.calendarLegendLabel` | `Calendar legend` | `calendar-legend.component.ts` → `aria-label` |
### Tests to Add
| Spec File | Test Description |
|-----------|-----------------|
| `calendar.component.spec.ts` | Verify `role="group"` present on host element |
| `calendar.component.spec.ts` | Verify `aria-roledescription="Calendar"` on host |
| `calendar-day-view.component.spec.ts` | Verify `aria-readonly="false"` on table |
### Summary
- **Files to modify:** X
- **ARIA attributes added/changed:** X
- **CSS classes added/changed:** X
- **Structural HTML changes:** X
- **i18n keys needed:** X
- **Tests to add:** X
- **No public API changes** (or list any if there are)
Wait for user approval. Do not proceed until the user confirms.
After the user approves the plan, apply all changes.
For each change in the plan:
.component.html) modifications — ARIA attributes, CSS classes, structural HTML.component.ts) modifications — host bindings, import additions/removalsAfter applying template and TypeScript changes but before writing tests, run a quick build to catch type errors early:
nx run <library>:build
This catches issues like string-attribute vs property-binding mismatches (e.g., tabindex="0" vs [tabindex]="0") before investing time in test creation. Fix any build errors before proceeding.
For each ARIA or markup change, add test(s) to the corresponding .spec.ts file:
TestBed, check fixture.debugElement.attributes or nativeElement.getAttribute()aria-multiselectable based on selectionMode), test both statesFollow the testing patterns in docs/agents/testing-guidelines.md and existing spec files in the component directory.
If the plan includes i18n keys:
.claude/rules/i18n.md) and patterns in docs/agents/i18n-patterns.mdlibs/i18n/src/lib/models/fd-language-key-identifier.ts (union type)libs/i18n/src/lib/models/fd-language.ts (interface).properties and .ts translation files under libs/i18n/src/lib/translations/FdTranslatePipe in templates or resolveTranslationSignalFn() in TypeScript as appropriateRun local quality gates:
yarn format
nx run <library>:build
nx run <library>:lint
nx run <library>:test --skip-nx-cache
Report results per gate (PASS/FAIL). If any gate fails, diagnose and fix before reporting completion.
After execution is complete and all quality gates pass, produce a retrospective report.
## Retrospective
### What went well
- [List components/changes where discovery → analysis → execution was smooth]
- [Patterns that were fast to apply]
- [MCP tools that returned accurate, complete data]
### What was slow or needed manual judgment
- [Components where file discovery was non-obvious]
- [MCP tools that returned incomplete/unexpected data for specific components]
- [Structural changes that needed careful reasoning beyond simple attribute additions]
- [i18n overhead]
- [Test generation that required unusual setup or mocking]
### Suggested improvements
#### This skill (`adopt-styles`)
- [Specific changes to improve discovery, analysis, or execution]
#### Other skills / docs
- [Updates to other skill files, agent docs, or rules that would reduce friction]
- [e.g., "i18n-manage skill could accept batch of keys", "fundamental-styles MCP rule could note that get_component_html may not show all variants"]
#### fundamental-styles MCP
- [Gaps in MCP tool coverage or data quality encountered during this run]
### Timing
| Phase | Duration | Notes |
|-------|----------|-------|
| Discover | ~X min | |
| Analyze | ~X min | |
| Plan + approval | ~X min | |
| Execute | ~X min | |
| **Total** | **~X min** | |
Ask the user if they would like to apply any of the suggested improvements now. If approved, make the updates to skill files, docs, or rules directly.
core<ComponentName>.<descriptorName>