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

tailwind-best-practices

Use when writing, editing, cleaning, or refactoring Tailwind classes, components, or configuration. Not for read-only audits of Tailwind code, or general CSS without Tailwind.

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

설치 방법 보기

포함된 파일(2)

  • SKILL.md4.5 KB
  • agents/openai.yaml176 B

SKILL.md(원문)

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

Tailwind best practices

Contract

FieldBound contract
TriggerUser asks to write, edit, clean, or refactor Tailwind classes, components, or configuration. Read-only review or audit requests are out of scope.
AuthorityReversible local: writes only class lists and component variants in place; rollback is undo. No remote mutation. Every mutation is reversible by restoring the prior class string or file content.
Side effectEdits class lists and component variants; flags ad-hoc tokens, @apply-heavy styles, magic values, and missing minification.
DoneToken and component prerequisites exist; unnecessary utilities, semantics, ordering, @apply avoidance, and fixed variants are checked with version-aware minification.

Inputs

  • One or more files containing Tailwind class strings, component definitions, or a Tailwind configuration file.
  • Optional target Tailwind CSS version; defaults to the version declared in the project's package.json or Tailwind configuration.

Refusal

  • No Tailwind config or dependency found: stop before editing. Report the missing prerequisite. Modify no files.
  • Class string parse failure: skip the malformed string. Record its file and line, then continue.
  • Ambiguous utility replacement: keep the original utility and flag it for human review. Do not guess.
  • Required @apply block: leave an @apply inside a pseudo-element or @layer unchanged and record why.
  • Read-only review or audit requested with no edits: out of scope. Report that this skill runs only as a write, edit, clean, or refactor pass, and modify no files.

Procedure

  1. Identify the Tailwind version. Read package.json or the Tailwind configuration to determine the installed major version. Done when: the version is known or the missing prerequisite is reported.
  2. Scan class strings. Locate every class, className, class:list, template literal containing utility classes, and @apply directive in the supplied files. Done when: every supplied file has been scanned.
  3. Remove unnecessary utilities. Delete utilities that duplicate another utility in the same string and breakpoint scope. Delete utilities overridden by a later utility in the same group. Done when: no known duplicate or overridden utility remains.
  4. Enforce semantic utility use. Replace arbitrary value brackets with the nearest named utility when one exists. Replace raw color literals with the project's design-token color scale when defined. Done when: each arbitrary value is replaced or retained with a reason.
  5. Reorder class strings. Group utilities in this order: layout, flexbox/grid, spacing, sizing, typography, backgrounds, borders, effects, filters, tables, transitions/transforms, interactivity, accessibility. Sort alphabetically within each category. Done when: every parsed class string follows the order.
  6. Extract repeated patterns into components. When three or more identical class strings appear across files, propose a reusable component or an @apply-free utility class. Record the extraction but do not apply it when the project lacks a component directory. Done when: repeated patterns are extracted or flagged.
  7. Minimize @apply. Replace each @apply block with inline utilities when the same combination has a direct expression. Keep blocks required by a pseudo-element or @layer and record why. Done when: every block is converted or justified.
  8. Check fixed variants. Flag responsive variants whose fixed pixel breakpoints conflict with theme.screens. Done when: every mismatch is reported.
  9. Verify minification readiness. Check for cssnano, lightningcss, or Tailwind's built-in minification in v4+. Done when: minification is confirmed or the gap is reported.
  10. Emit the report. Record each file changed, utility counts removed/reordered/replaced, and every flag. Done when: the report accounts for every edit and unresolved item.

Failure modes

  • Partial result: completed file edits remain. The user can restore prior content through version control; do not roll back successful edits because another class string could not be parsed.

Output

Edited files, then a summary report ordered by file with utilities removed, reordered, arbitrary values replaced, @apply blocks converted, fixed-variant flags, and minification gaps.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Use when explaining System V AMD64, ARM AAPCS, RISC-V psABI, stack frames, variadic calls, or FFI register rules. Not for the Rust FFI binding layer: use rust-ffi.

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

OutlineDriven/odin-claude-plugin372026년 9월 29일 업데이트

Use when configuring ADC sampling time, DMA-driven ADC, calibration, or DAC channel setup on bare-metal MCUs. Not for the DMA stream itself: use dma-baremetal.

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

OutlineDriven/odin-claude-plugin372026년 9월 29일 업데이트

af-xdp

무료

Use when creating AF_XDP sockets, configuring UMEM and XSK rings, writing an XDP redirect program, or choosing copy versus zero-copy mode. Not for full kernel bypass: use dpdk.

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

OutlineDriven/odin-claude-plugin372026년 9월 29일 업데이트

Use when a completed session needs an agent-environment retrospective. Not for an engineering retrospective from telemetry: use engineering-retrospective.

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

OutlineDriven/odin-claude-plugin372026년 9월 29일 업데이트

Use when a redacted, trimmed agent transcript must be appended to a GitHub PR or issue body, with human approval and preview. Not for automated or model-initiated insertion.

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

OutlineDriven/odin-claude-plugin372026년 9월 29일 업데이트

agents-md

무료

Use when a repo needs agent setup, AGENTS.md added or made lean, CLAUDE.md audited, or agent instructions scored or pruned. Not for remote, credential, publish, deploy, or irreversible changes.

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

OutlineDriven/odin-claude-plugin372026년 9월 29일 업데이트

OutlineDriven의 스킬 모두 보기

이 스킬의 문제 신고