본문으로 건너뛰기
cccskills
무료GitHub에 공개

formax-web-css-convergence-workflow

Use when changing web CSS/UI styling so requirements, state ownership, and acceptance checks are locked before edits to prevent rework churn.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

formax-web-css-convergence-workflow

Goal

  • Prevent repeated CSS rework by locking requirements before any style edits.
  • Convert ambiguous visual requests into a concrete edit contract with explicit acceptance checks.
  • Keep behavior stable while converging structure, naming, and styling.

Use this skill when the task involves:

  • component styling or layout adjustments
  • cross-file CSS + TSX class changes
  • interaction visual states (hover/active/focus/selected)
  • repeated back-and-forth UI tuning that needs convergence

Intake Contract (Run Before Editing)

  • Require this 8-line input contract (fill missing items by explicit assumptions, not guesswork):
  1. Target model in one sentence (final visual geometry).
  2. Non-goals / do-not-touch list.
  3. State model (if any) and single source of truth.
  4. Ownership boundary (main process vs renderer).
  5. Acceptance criteria (what must be true, what must never appear).
  6. Runtime matrix (command, platform, light/dark).
  7. Iteration policy (single-axis change per pass).
  8. Rollback point (which commit/file set is safe fallback).

Where to change what

  • Core styling surfaces:
    • packages/web-reference-react/src/styles.css
    • packages/web-reference-react/src/css/theme.css
  • Core UI wiring:
    • packages/web-reference-react/src/app/ui/AppShell.tsx
    • packages/web-reference-react/src/components/LeftRail.tsx
    • packages/web-reference-react/src/components/left-rail/SidebarItem.tsx
  • Browser bridge typing surface (when needed):
    • packages/web-reference-react/src/vite-env.d.ts
  • Desktop main/preload ownership (only for stateful window-level visuals):
    • packages/desktop-electron/src/main.ts
    • packages/desktop-electron/src/preload.ts
    • packages/desktop-electron/src/windowAppearanceState.ts
  • Scenario-specific construct (read only if task touches transparency):
    • docs/contracts/web/window-transparency-construct.md

Patterns

  1. Freeze-Then-Edit Pattern
  • Restate final model first.
  • Freeze non-goals (do not touch drag region, menu entries, unrelated text/copy).
  • Only then open code.
  1. Single-Axis Convergence Pattern
  • Pass A: geometry/layers only.
  • Pass B: color/opacity tokens only.
  • Pass C: interaction/focus/hover only.
  • Never mix all three in one pass.
  1. State Ownership Lock Pattern
  • If the task has window/app state coupling:
    • renderer does not invent business states
    • canonical state lives in the owner layer
    • pending UI must converge to canonical state
  1. Evidence-Driven Pattern
  • Use deterministic checks instead of eye-balling:
    • explicit before/after acceptance list
    • “must-not-see” artifact list
    • screenshot evidence when visual regressions are likely

Tests to update

  • Required baseline for CSS changes in web-reference:
    • bun run test -- src/App.test.tsx (in packages/web-reference-react)
  • Required for desktop bridge/state shape changes:
    • npm --prefix packages/desktop-electron run build:main
  • Required only for transparency scenario:
    • bun run test:e2e -- e2e/window-transparency.evidence.spec.js --project=chromium (in packages/web-reference-react)
  • Required before commit in this repo:
    • codex review --uncommitted -c model="gpt-5.4" -c model_reasoning_effort="medium" -c service_tier="fast"

Guardrails

  • Do not change unrelated UI behavior while “just tuning CSS”.
  • Do not rely on one environment result; verify against the declared runtime matrix.
  • If acceptance criteria are unclear, ask for clarification before directional edits.
  • Avoid speculative visual “patch layers” that do not belong to the target model.
  • If user requests cleanup-pass/返工收敛, reduce churn only:
    • remove redundancy
    • unify naming/state shape
    • preserve behavior

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use when a Formax repository task is non-trivial and you should analyze goals, non-goals, boundaries, data/type/interface impact, contract impact, test strategy, and whether an xhigh subagent is actually needed before writing a todo or code.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

yusifeng/formax1942026년 7월 25일 업데이트

Use when adding or changing any Approval prompt/presenter.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

yusifeng/formax1942026년 7월 25일 업데이트

Use when implementing or extending /config (storage, prompt injection, request params, UI-only toggles) with tests and strict UI parity.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

yusifeng/formax1942026년 7월 25일 업데이트

Use when working on Formax code changes and you need a disciplined dev loop: keep a single mainline task, avoid scope drift, run only targeted tests (no coverage), avoid partial staging (MM), run mandatory review before commit, include an incremental optimization check, and keep commits small and reviewable.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

yusifeng/formax1942026년 7월 25일 업데이트

Use when implementing/debugging Ctrl+O Expanded Transcript (second view) and thinking persistence in the REPL.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

yusifeng/formax1942026년 7월 25일 업데이트

Use when implementing or debugging Formax permissions/policy/approval behavior and UI (allow/ask/deny rules, workspace boundaries, approval prompts, and /permissions overlay parity with Claude Code).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

yusifeng/formax1942026년 7월 25일 업데이트

yusifeng의 스킬 모두 보기

이 스킬의 문제 신고