tailwind-4-docs by lombiq/tailwind-agent-skills
npx skills add https://github.com/lombiq/tailwind-agent-skills --skill tailwind-4-docs使用此技能来浏览本地同步的 Tailwind CSS v4 文档快照,并根据官方指导回答开发、配置和迁移问题。
文档快照未与此技能捆绑,因为上游仓库是源码可用但非开源的。用户必须自行初始化快照,并负责遵守上游许可证。
references/docs/ 和 references/docs-index.tsx 是否存在)。references/docs-index.tsx 中找到匹配的文档。references/docs/ 加载相关文件。运行同步脚本以在本地下载 Tailwind 文档。这需要网络访问权限、git 和 Python 3:
python skills/tailwind-4-docs/scripts/sync_tailwind_docs.py --accept-docs-license
此命令从 tailwindlabs/tailwindcss.com 拉取内容。该仓库是源码可用且明确非开源的,因此用户必须在下载前接受其许可证,并保持快照在本地。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
如果您无法运行工具或没有网络访问权限,请要求用户在终端中运行上述确切命令,然后在 references/docs/ 和 references/docs-index.tsx 存在后继续。
如果快照缺失或超过一周未更新,您必须请求运行该命令的许可,或要求用户运行它。在快照初始化或刷新之前,不要继续提供 Tailwind 指导。
如果初始化被阻止(无网络或无写入权限),请使用 references/gotchas.md 作为有限的备用方案,并建议用户查阅官方文档。
references/docs/ 是在本地生成的,包含 Tailwind v4 MDX 文档快照。references/docs-index.tsx 是在本地生成的,包含文档侧边栏使用的类别和 slug 映射。references/docs-source.txt 记录了上游仓库、提交和快照日期(或报告初始化待处理)。references/gotchas.md 提供了常见 v4 迁移陷阱的快速概览。export const title 和 export const description 视为元数据。<TipInfo> 或 <TipBad>)作为指导文本阅读。references/docs/upgrade-guide.mdx、references/docs/compatibility.mdx。references/gotchas.md。references/docs/functions-and-directives.mdx、references/docs/adding-custom-styles.mdx、references/docs/theme.mdx。references/docs/hover-focus-and-other-states.mdx、references/docs/responsive-design.mdx。references/docs/preflight.mdx、references/docs/detecting-classes-in-source-files.mdx。从 v3 升级到 v4 时,务必在文档中确认以下内容:
@tailwindcss/postcss、@tailwindcss/cli、@tailwindcss/vite。@import "tailwindcss" 替换了 @tailwind 指令。运行 scripts/sync_tailwind_docs.py 来刷新快照。如果您已有 tailwindlabs/tailwindcss.com 的本地克隆,可以使用 --local-repo 参数来加速同步。始终传递 --accept-docs-license 参数。
每周安装数
287
仓库
GitHub 星标数
16
首次出现
2026年2月3日
安全审计
安装于
opencode265
codex263
gemini-cli259
github-copilot259
kimi-cli254
amp254
Use this skill to navigate a locally synced Tailwind CSS v4 documentation snapshot and answer development, configuration, and migration questions with official guidance.
The docs snapshot is not bundled with this skill because the upstream repository is source-available but not open-source. Users must initialize the snapshot themselves and are responsible for complying with the upstream license.
references/docs/ and references/docs-index.tsx exist).references/docs-index.tsx.references/docs/.Run the sync script to download the Tailwind docs locally. This requires network access, git, and Python 3:
python skills/tailwind-4-docs/scripts/sync_tailwind_docs.py --accept-docs-license
This pulls content from tailwindlabs/tailwindcss.com. That repo is source-available and explicitly not open-source, so the user must accept its license before downloading and keep the snapshot local.
If you cannot run tools or have no internet access, ask the user to run the exact command above in a terminal, then continue once references/docs/ and references/docs-index.tsx exist.
If the snapshot is missing or older than one week, you must ask for permission to run the command or ask the user to run it. Do not proceed with Tailwind guidance until the snapshot is initialized or refreshed.
If initialization is blocked (no internet or no write access), use references/gotchas.md as a limited fallback and ask the user to consult the official docs.
references/docs/ is generated locally and contains the Tailwind v4 MDX docs snapshot.references/docs-index.tsx is generated locally and contains the category and slug map used by the docs sidebar.references/docs-source.txt captures the upstream repo, commit, and snapshot date (or reports that initialization is pending).references/gotchas.md provides a quick scan of common v4 migration pitfalls.export const title and export const description as metadata.<TipInfo> or <TipBad> as guidance text.references/docs/upgrade-guide.mdx, references/docs/compatibility.mdx.references/gotchas.md.references/docs/functions-and-directives.mdx, references/docs/adding-custom-styles.mdx, references/docs/theme.mdx.references/docs/hover-focus-and-other-states.mdx, references/docs/responsive-design.mdx.references/docs/preflight.mdx, .When upgrading from v3 to v4, always confirm the following in the docs:
@tailwindcss/postcss, @tailwindcss/cli, @tailwindcss/vite.@import "tailwindcss" replaces @tailwind directives.Run scripts/sync_tailwind_docs.py to refresh the snapshot. Use --local-repo if you already have a local clone of tailwindlabs/tailwindcss.com to speed up syncs. Always pass --accept-docs-license.
Weekly Installs
287
Repository
GitHub Stars
16
First Seen
Feb 3, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode265
codex263
gemini-cli259
github-copilot259
kimi-cli254
amp254
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装
references/docs/detecting-classes-in-source-files.mdx