csstree
Parse, validate, extract from, and transform CSS through the css-tree AST in Node scripts. Use when extracting CSS custom properties / design tokens from a stylesheet, validating CSS against W3C specs, walking or linting a stylesheet, renaming selectors, diffing tokens between two files, or doing source-to-source CSS transforms — anything that needs a real CSS parser instead of regex. Triggers: "parse CSS", "extract design tokens / custom properties from CSS", "validate CSS", "css-tree", "CSS AST", "transform a stylesheet".
Pinned to revision 7a07e3df018f, so it is the text this page describes rather than whatever the author pushed since.
Pre-approved tools experimental
Experimental field. Support varies between clients, so this list is what the author declared, not what your client will enforce.
- Bash(node:*)
- Bash(npm:*)
- Read
- Write
- Edit
- Grep
- Glob
Files
- skills/csstree/SKILL.md
- skills/csstree/.gitignore
- skills/csstree/package.json
- skills/csstree/reference/ast-nodes.md
- skills/csstree/reference/generate.md
- skills/csstree/reference/parsing.md
- skills/csstree/reference/traversal.md
- skills/csstree/reference/utils.md
- skills/csstree/reference/validation.md
- skills/csstree/scripts/cli.mjs
- skills/csstree/scripts/csstree-helpers.mjs
Every link opens the file at its source, pinned to the revision this page describes.