wind_kit
CLAUDE.md46 starsChanged 16 days agoMITView on GitHub
Utility-first Flutter styling: Tailwind-syntax className strings become Flutter widget trees through a modular parsing pipeline (W-prefix widgets, token parsers, a WindThemeData of token scales). Version: 1.14.0 · Dart: >=3.13 · Flutter: >=3.47 · Runtime deps: flutter_svg, material_ui, wind_kit_diagnostics_contracts (no mocking library, no state management library, no router). Before changing structure, read ARCHITECTURE.md; before scoping work, read PROJECT.md. The user-facing surface is README.md; the agent inventory is llms.txt. .claude/settings.json PostToolUse hooks run dart format and dart analyze after every .dart edit.
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- fluttersdk/windword for word, first seen Nov 13, 2026
Other versions1 project uses a version of this.
Word for word · 1
- fluttersdk/wind★ 46100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- example/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- wind-uiSkill
The file
We split this CLAUDE.md into the rules it gives an agent
8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Before changing structure, read ARCHITECTURE.md.
- Very specific: line 48
After any change under lib/, update every surface in the same change set, before reporting done.
- Very specific: line 52
example/lib/pages/: every <x-preview source path> in doc/ points at a real example page and a route in example/lib/routes.dart. - Very specific: line 54
README.mdandllms.txt: only for overview-level changes (a widget added to the roster, a top-level feature, a public API added or … - Very specific: line 55
CLAUDE.mdandARCHITECTURE.md: update the tree when files move. - Very specific: line 63
No production code without a failing test first.
- Very specific: line 85
After it merges, tag the merge commit with the bare version (git tag 1.12.1 && git push origin 1.12.1, no v).
- Very specific: line 88
Every release publishes through the tag workflow: the package is already on pub.dev with OIDC publishing configured, so a manual flutter …
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
wind_kit
Utility-first Flutter styling: Tailwind-syntax className strings become Flutter widget trees through a modular parsing pipeline (W-prefix widgets, token parsers, a WindThemeData of token scales).
Version: 1.14.0 · Dart: >=3.13 · Flutter: >=3.47 · Runtime deps: flutter_svg, material_ui, wind_kit_diagnostics_contracts (no mocking library, no state management library, no router).
Before changing structure, read ARCHITECTURE.md; before scoping work, read PROJECT.md. The user-facing surface is README.md; the agent inventory is llms.txt.
Commands
| Command | Description |
flutter test | Run all tests |
./tool/coverage.sh 90 | Tests with coverage, fails below 90% line coverage (the CI gate); without the argument it only reports |
flutter analyze --no-fatal-infos | Static analysis (the example is analysed from its own analysis_options.yaml with cd example && flutter analyze --no-fatal-infos) |
dart format . | Format all code |
flutter pub publish --dry-run | Pre-publish check |
python3 tool/check-docs.py | Docs structure, links, fragments, ToC anchors and <x-preview> tags; run it after any doc/ or example-page change |
cd example && flutter run -d chrome | The demo gallery |
.claude/settings.json PostToolUse hooks run dart format and dart analyze after every .dart edit.
Architecture
lib/
├── wind_kit.dart # The only barrel: no sub-barrels
└── src/
├── widgets/ # W-prefix widgets
├── parser/ # WindParser, WindStyle, WindContext, parsers/ (one parser per token family)
├── theme/ # WindTheme, WindThemeData, defaults/ (the default token scales)
├── dynamic/ # WDynamic: JSON to widgets behind an allowlist
├── recipe/ # WindRecipe, WindSlotRecipe
├── state/ # Anchor state and flex-overflow scopes
├── utils/ # Colour helpers, WindLogger, WindPerfCounters, extensions
├── core/ # platform_service
├── debug_resolver.dart # Implements the contracts package's resolvers
└── wind_facade.dart # Wind.installDebugResolver(), Wind.installPerfResolver()
test/ # Mirrors lib/src/
example/ # The demo gallery; its pages are embedded by the docs site by path
doc/ # User docs, published by the docs site (topical sections)
skills/wind-ui/ # Agent skill with references/
tool/ # check-docs.py and coverage.shPost-Change Checklist
After any change under lib/, update every surface in the same change set, before reporting done. A change is not done while one of these is stale; "docs later" rots.
CHANGELOG.md: an entry under[Unreleased]inAdded,Changed,Fixed,Removed(breaking),QualityorSecurity. Open with what a reader now gets, in bold, then what it cost to find out: the defect, what it was measured against, the alternative rejected and why. Close with the files touched in backticks, backtick every identifier and name the PR(#207). One line is right where the change is one line.doc/: the matching page underdoc/widgets/,doc/layout/,doc/styling/and so on. A new widget getsdoc/widgets/<w-name>.mdmirroring its nearest neighbour. Delete the page of a removed surface.python3 tool/check-docs.pymust exit 0.example/lib/pages/: every<x-preview source path>indoc/points at a real example page and a route inexample/lib/routes.dart. Keep page paths stable: the docs site embeds the gallery by path, and an unregistered route renders an empty frame with no error.skills/wind-ui/:SKILL.mdand the matchingreferences/<topic>.mdwhen a widget, token family, theme field or className semantic changes. The skill keeps its ownversion:, bumped when the surface changes; the registry (anilcancakir/ai) mirrors it after each release.README.mdandllms.txt: only for overview-level changes (a widget added to the roster, a top-level feature, a public API added or removed). They state no counts on purpose, because a count goes stale the next time a widget or parser is added.CLAUDE.mdandARCHITECTURE.md: update the tree when files move.
Development Flow (TDD)
- Red: a failing test describes the expected behaviour.
- Green: the minimum code to pass.
- Refactor: clean up while the tests stay green.
No production code without a failing test first. Zero analyzer issues, no format diff, no new skipped tests (a skip: needs a reason in a nearby comment).
Testing
- The 90% line-coverage gate is the floor, not the target. A change that drops it adds tests in the same change set; the threshold never moves.
// coverage:ignore-lineonly for lines unreachable fromflutter test(kDebugMode-only branches,Platform.is*branches that do not match the CI host), on the same line as the statement with a one-line why above it.
Key Gotchas
| Mistake | Fix |
A colour token without its dark: pair | Every bg- / text- / border- / ring- / shadow- / fill- carries its dark: peer in the same className, except a colour that reads the same in both modes (a solid -500 status fill, white text on a saturated button) |
| Interpolating Dart into a className | Route conditions through states: and prefixed classes; interpolation breaks the parser cache |
| A new sub-barrel | The package has one barrel, wind_kit.dart |
Renaming a doc/ page or an example route | The docs site embeds the gallery and links pages by path; keep them stable |
| Adding a runtime dependency | flutter_svg, material_ui and the contracts package are the whole surface |
| Changing a key of the contracts package's maps from this repo | The contract lives in wind_kit_diagnostics_contracts; a rename or removal there is a major bump across wind_kit and tapir |
Relative paths in pubspec_overrides.yaml | Use absolute ones; the file is never committed |
Release
- Open a
release:PR that bumpspubspec.yaml, theVersion:line above and the tag indartdoc_options.yaml(blob/X.Y.Z), and promotes[Unreleased]inCHANGELOG.mdto## [X.Y.Z] - YYYY-MM-DD. The skill's ownversion:moves when its content changed. - After it merges, tag the merge commit with the bare version (
git tag 1.12.1 && git push origin 1.12.1, nov).publish.ymlruns from the tag; the pub.dev Admin tab holds repositoryanilcancakir/wind_kit, tag pattern{{version}}and push events only. - A failed
Validateis fixed forward: delete the tag (git push --delete origin <tag>andgit tag -d <tag>), fix it on a PR and tag the new merge commit, because a re-run builds the same commit. If onlyGitHub Releasefails after pub.dev accepted the version, use "Re-run failed jobs" (never "Re-run all jobs", wherepublishis rejected as a duplicate) or rungh release create <tag> --title <tag> --latest --verify-tag --notes-file <file>.
Every release publishes through the tag workflow: the package is already on pub.dev with OIDC publishing configured, so a manual flutter pub publish is not part of a release.
Branching
master is the only long-lived branch and everything lands through a PR, with a merge commit or a rebase, never a squash (Dependabot's auto-merge is the one squash). Task branches use short kebab-case names (feat/<topic>, fix/<topic>, docs/<topic>, chore/<topic>), one topic each, and delete_branch_on_merge removes them. v0 is the frozen 0.x line: cut nothing from it and merge nothing into it.
CI
ci.yml: workflow lint (actionlint), thenLint & Test(format, analyze,./tool/coverage.sh 90, codecov upload, publish dry-run, the wasm-ready check with pana 0.23.19), then a web build of the gallery on pushes and PRs that touch itchangelog.yml: a PR that changeslib/must also changeCHANGELOG.md; Dependabot,release:PRs and theskip-changeloglabel are exemptdocs-link-check.yml: every PR runspython3 tool/check-docs.pyand an offline lychee pass (Internal Links); Mondays an external-link passpublish.yml: tag on master → version stamps (tag,pubspec.yaml,dartdoc_options.yaml) → format, analyze, coverage, dry-run, pana 0.23.19 (the version pub.dev runs; 0.23.13 reports flutter_svg as web-incompatible) → changelog section → OIDC publish → GitHub Release → registry sync (dispatch-to-registry.yml)dependabot-auto-merge.yml: arms auto-merge for minor and patch Dependabot PRsscorecard.yml,zizmor.yml,dependency-review.yml: supply-chain checks;zizmoris not a required check because it never reports on a PR that touches no workflow
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

