跳到正文
cccskills
免费在 GitHub 公开

tailwind-docs

Use when asked about Tailwind CSS — utility classes, responsive/state variants, config/theme customization, `@apply`, dark mode, or "how do I style X with Tailwind". Always consult the official Tailwind docs rather than answering from memory alone, since utility class names and config syntax changed substantially between Tailwind v3 and v4 — check which one this project is actually on before trusting either.

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt星标 513(GitHub 513 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md2.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Tailwind CSS documentation lookup

This project (HostedGPT) styles its Hotwire-rendered views with Tailwind CSS via the tailwindcss-rails gem. Tailwind v3 and v4 differ substantially — v3 uses a JS config file (tailwind.config.js, module.exports = { theme: {...} }), v4 uses CSS-first config (@import "tailwindcss" + @theme blocks in the stylesheet, often no JS config file at all) and renamed/changed a number of utilities. Trained knowledge can silently mix the two, so confirm which version this project is on before trusting either.

Determine the version first

Check the repo structure rather than assuming:

ls config/tailwind.config.js 2>/dev/null   # present + module.exports = v3-style config
grep -rn '@theme' app/assets/stylesheets/ 2>/dev/null   # present = v4-style CSS config
grep -m1 'tailwindcss-rails (' Gemfile.lock

A present config/tailwind.config.js using module.exports (no @theme blocks in the CSS) means this project is on Tailwind v3. If that ever flips — tailwind.config.js disappears and @theme shows up in the stylesheet instead — the project has moved to v4, and this skill's default assumption below no longer holds.

Sources

  • Docs: https://tailwindcss.com/docs
    • The current site defaults to the latest major version's docs, which won't match a v3 project.
    • If you determined this project is still on v3, prefer the v3-pinned docs at https://v3.tailwindcss.com/docs/... instead of the default (v4-or-later) docs site.
    • If a page's syntax looks like v4 (CSS @import "tailwindcss" / @theme blocks, no tailwind.config.js in examples) but the project is on v3, that's a mismatch — look for the v3-equivalent page instead.

When to look things up

Use WebFetch when:

  • You need the exact utility class name/values for something (spacing scale, color palette, arbitrary value syntax) rather than guessing.
  • You're customizing the theme/config and need the config shape for the version this project actually uses (JS config for v3, CSS @theme for v4).
  • You're unsure whether a utility/variant exists in the installed major version (some utilities and variants only exist in v4, or were renamed from their v3 equivalents).

Skip the lookup for basic, version-stable utilities you're confident about (e.g. flex, items-center, p-4), or when the existing codebase already shows the exact class/pattern to follow — check app/views/ and the project's Tailwind config for this project's own conventions first.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when asked about Turbo (Turbo Drive, Turbo Frames, Turbo Streams, ActionCable-broadcasted streams) or Stimulus (controllers, targets, actions, values, outlets) — including "how do I do X with Turbo/Stimulus", debugging a Turbo Stream broadcast, or wiring up a Stimulus controller. Always consult the official Hotwire docs rather than answering from memory alone, since Turbo/Stimulus APIs and idioms have shifted across versions and this project has no SPA framework — all interactivity goes through Hotwire.

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt5132026年10月23日 更新

pr

免费

Create or update a pull request

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt5132026年10月23日 更新

Catch up on the team's merges since you last checked in

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt5132026年10月23日 更新

Address unresolved PR review comments from Copilot and teammates

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt5132026年10月23日 更新

pr-review

免费

Review the branch against project guidelines, fix what it finds, strip non-load-bearing comments, and keep .claude/rules fresh

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt5132026年10月23日 更新

Use when asked about any Rails-specific topic — ActiveRecord, routing, controllers, views, mailers, jobs, Action Cable, Action Text, Active Storage, migrations, validations, callbacks, associations, caching, security, or Rails internals — including "how do I do X in Rails", debugging Rails behavior, or checking whether an API/option still exists or changed in a given Rails version. Always consult the official guides and API docs rather than answering from memory alone, since trained knowledge can be stale or wrong about version-specific details.

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt5132026年10月23日 更新

查看 AllYourBot 的全部技能

报告此技能的问题