Skip to content

lidge-jun/codexclaw / plugins/codexclaw/skills/dev-frontend

cxc-dev-frontend

Unverified

Use for frontend code and UI fixes. Triggers: CSS, responsive, animation, React, Vue, Svelte, Tailwind, redesign, anti-slop, 프론트엔드, UI 작업, 반응형, 디자인 수정.

FileKindSize
SKILL.mdskill md4.1 KB
agents/openai.yamlconfig169 B
examples/README.mdmarkdown2.6 KB
references/core/a11y-patterns.mdmarkdown5.9 KB
references/core/aesthetics.mdmarkdown16.9 KB
references/core/anti-slop-enforcement.mdmarkdown6.1 KB
references/core/anti-slop.mdmarkdown27.1 KB
references/core/asset-requirements.mdmarkdown24.3 KB
references/core/backend-contracts.mdmarkdown1.9 KB
references/core/brand-asset-sourcing.mdmarkdown4.0 KB
references/core/color-system.mdmarkdown5.7 KB
references/core/consistency-locks.mdmarkdown850 B
references/core/content-surface-pipeline.mdmarkdown7.2 KB
references/core/crud-ui.mdmarkdown2.5 KB
references/core/design-intake.mdmarkdown4.4 KB
references/core/dropdown-layer.mdmarkdown5.8 KB
references/core/i18n-global.mdmarkdown3.1 KB
references/core/implementation.mdmarkdown4.1 KB
references/core/iterative-design.mdmarkdown4.4 KB
references/core/korea-2026.mdmarkdown8.8 KB
references/core/layout-discipline.mdmarkdown10.6 KB
references/core/liquid-glass.mdmarkdown8.5 KB
references/core/logo-sections.mdmarkdown5.5 KB
references/core/mobile-ux.mdmarkdown6.1 KB
references/core/motion.mdmarkdown41.4 KB
references/core/performance-budget.mdmarkdown4.4 KB
references/core/platform-runtime.mdmarkdown5.0 KB
references/core/preflight-full.mdmarkdown4.0 KB
references/core/product-density.mdmarkdown1.9 KB
references/core/prototype-variants.mdmarkdown2.2 KB
references/core/reference-capture.mdmarkdown5.5 KB
references/core/render-grounding.mdmarkdown494 B
references/core/responsive-viewport.mdmarkdown5.4 KB
references/core/role-boundaries.mdmarkdown1.3 KB
references/core/routing-defaults.mdmarkdown943 B
references/core/section-level-sourcing.mdmarkdown8.7 KB
references/core/seo-baseline.mdmarkdown4.4 KB
references/core/soft-3d-asset-gates.mdmarkdown2.1 KB
references/core/theme-switching.mdmarkdown2.1 KB
references/core/token-source-divergence.mdmarkdown5.2 KB
references/core/top-bar.mdmarkdown5.5 KB
references/core/topic-index.mdmarkdown7.6 KB
references/core/typography-wrapping.mdmarkdown9.3 KB
references/core/ux-writing-ko.mdmarkdown2.3 KB
references/core/visual-audit-loop.mdmarkdown5.8 KB
references/core/visual-verification.mdmarkdown7.5 KB
references/core/wcag22-aa.mdmarkdown12.6 KB
references/stack-index.mdmarkdown1.3 KB
references/stacks/astro.mdmarkdown8.1 KB
references/stacks/mobile-native.mdmarkdown10.9 KB
references/stacks/nextjs.mdmarkdown5.7 KB
references/stacks/react.mdmarkdown8.6 KB
references/stacks/svelte.mdmarkdown8.4 KB
references/stacks/vanilla.mdmarkdown5.1 KB
scripts/README.mdmarkdown1.7 KB
scripts/bundle-artifact.shexecutablescript1.5 KB
scripts/init-artifact.shexecutablescript6.8 KB
scripts/shadcn-components.tar.gzbinary19.5 KB

references/core/i18n-global.md

View on GitHub
# Internationalization (i18n) Global

## Architecture

```
src/locales/
  ko.json     — Korean
  en.json     — English
  i18n.ts     — config + loader
```

- All user-facing strings in locale files — never hardcode in components
- ICU message format for pluralization and interpolation
- Namespace by feature: `{ "auth": { "login": "로그인" } }`
- Fallback chain: user preference → browser locale → default locale
- Libraries: `next-intl` (Next.js), `react-intl`, `i18next` (agnostic)

## RTL Layout

```html
<html dir="rtl" lang="ar">
```

Use CSS logical properties everywhere:

```css
margin-inline-start: 1rem;     /* not margin-left */
padding-inline-end: 0.5rem;    /* not padding-right */
text-align: start;              /* not left */
```

- Flexbox `row` and Grid auto-reverse in RTL — no changes needed
- Directional icons (arrows, progress): `transform: scaleX(-1)` in RTL
- Non-directional icons (search, close): no change
- Numbers always LTR: `direction: ltr; unicode-bidi: embed`
- Never use `float: left/right` — use flexbox/grid

## Pluralization

| Language | Forms | Example |
|----------|-------|---------|
| English | one, other | 1 item, 2 items |
| Korean | other | 1개, 2개 |
| Arabic | zero, one, two, few, many, other | 6 forms |
| Russian | one, few, many, other | 4 forms |

```json
{ "items": "{count, plural, =0 {No items} one {# item} other {# items}}" }
```

- Never concatenate for pluralization (`count + " items"`)
- Test with 0, 1, 2, 5, 21 (catches most plural bugs)

## Date, Number, Currency

```javascript
new Intl.DateTimeFormat('ko-KR', { dateStyle: 'long' }).format(date)
// → "2026년 6월 8일"

new Intl.NumberFormat('ko-KR', { style: 'currency', currency: 'KRW' }).format(50000)
// → "₩50,000"
```

- Always use `Intl.DateTimeFormat` / `Intl.NumberFormat`
- Currency symbol position varies by locale
- Decimal separator varies: `.` (en), `,` (de, fr)
- Relative dates: `Intl.RelativeTimeFormat`

## Locale Switching UI

- Dropdown in footer or settings
- Show name in own script: "한국어", "English", "日本語"
- Never use flags for languages (flags = countries, not languages)
- Persist: localStorage + URL prefix (`/ko/about`, `/en/about`)
- URL prefix strategy is best for SEO
- Never auto-redirect by IP without an override

## Content Expansion

| Language | vs English | Risk |
|----------|-----------|------|
| German | +30% | Button/label overflow |
| Finnish | +30-40% | Same |
| Arabic | +20-25% | Plus RTL |
| Chinese | -30 to -50% | Characters wider |

- Design with 40% expansion headroom
- Test with German pseudo-locale
- Never fixed `width` on text containers — use `min-width` + flex
- `text-overflow: ellipsis` + `title` tooltip as last resort

## Pre-flight

- [ ] All user-facing text in locale files, not hardcoded
- [ ] CSS uses logical properties (`margin-inline-start`)
- [ ] Dates/numbers use `Intl` API
- [ ] Buttons/labels have 40% expansion headroom
- [ ] Language switcher uses language names, not flags

## Cross-references

- Korean-specific: `korea-2026.md`
- Korean UX writing: `ux-writing-ko.md`
- CJK wrapping: `typography-wrapping.md`
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall