agentleFS
anilcancakiranilcancakir/wind_kit/CLAUDE.md

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

  • Other versions1 project uses a version of this.

    Word for word · 1

    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.

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
  1. Distinctive:

    Before changing structure, read ARCHITECTURE.md.

    line 7
  2. Very specific:

    After any change under lib/, update every surface in the same change set, before reporting done.

    line 48
  3. Very specific:

    example/lib/pages/: every <x-preview source path> in doc/ points at a real example page and a route in example/lib/routes.dart.

    line 52
  4. Very specific:

    README.md and llms.txt: only for overview-level changes (a widget added to the roster, a top-level feature, a public API added or …

    line 54
  5. Very specific:

    CLAUDE.md and ARCHITECTURE.md: update the tree when files move.

    line 55
  6. Very specific:

    No production code without a failing test first.

    line 63
  7. Very specific:

    After it merges, tag the merge commit with the bare version (git tag 1.12.1 && git push origin 1.12.1, no v).

    line 85
  8. Very specific:

    Every release publishes through the tag workflow: the package is already on pub.dev with OIDC publishing configured, so a manual flutter …

    line 88

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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

CommandDescription
flutter testRun all tests
./tool/coverage.sh 90Tests with coverage, fails below 90% line coverage (the CI gate); without the argument it only reports
flutter analyze --no-fatal-infosStatic 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-runPre-publish check
python3 tool/check-docs.pyDocs structure, links, fragments, ToC anchors and <x-preview> tags; run it after any doc/ or example-page change
cd example && flutter run -d chromeThe 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.sh

Post-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.

  1. CHANGELOG.md: an entry under [Unreleased] in Added, Changed, Fixed, Removed (breaking), Quality or Security. 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.
  2. doc/: the matching page under doc/widgets/, doc/layout/, doc/styling/ and so on. A new widget gets doc/widgets/<w-name>.md mirroring its nearest neighbour. Delete the page of a removed surface. python3 tool/check-docs.py must exit 0.
  3. example/lib/pages/: every <x-preview source path> in doc/ points at a real example page and a route in example/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.
  4. skills/wind-ui/: SKILL.md and the matching references/<topic>.md when a widget, token family, theme field or className semantic changes. The skill keeps its own version:, bumped when the surface changes; the registry (anilcancakir/ai) mirrors it after each release.
  5. README.md and llms.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.
  6. CLAUDE.md and ARCHITECTURE.md: update the tree when files move.

Development Flow (TDD)

  1. Red: a failing test describes the expected behaviour.
  2. Green: the minimum code to pass.
  3. 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-line only for lines unreachable from flutter 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

MistakeFix
A colour token without its dark: pairEvery 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 classNameRoute conditions through states: and prefixed classes; interpolation breaks the parser cache
A new sub-barrelThe package has one barrel, wind_kit.dart
Renaming a doc/ page or an example routeThe docs site embeds the gallery and links pages by path; keep them stable
Adding a runtime dependencyflutter_svg, material_ui and the contracts package are the whole surface
Changing a key of the contracts package's maps from this repoThe 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.yamlUse absolute ones; the file is never committed

Release

  1. Open a release: PR that bumps pubspec.yaml, the Version: line above and the tag in dartdoc_options.yaml (blob/X.Y.Z), and promotes [Unreleased] in CHANGELOG.md to ## [X.Y.Z] - YYYY-MM-DD. The skill's own version: moves when its content changed.
  2. After it merges, tag the merge commit with the bare version (git tag 1.12.1 && git push origin 1.12.1, no v). publish.yml runs from the tag; the pub.dev Admin tab holds repository anilcancakir/wind_kit, tag pattern {{version}} and push events only.
  3. A failed Validate is fixed forward: delete the tag (git push --delete origin <tag> and git tag -d <tag>), fix it on a PR and tag the new merge commit, because a re-run builds the same commit. If only GitHub Release fails after pub.dev accepted the version, use "Re-run failed jobs" (never "Re-run all jobs", where publish is rejected as a duplicate) or run gh 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), then Lint & 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 it
  • changelog.yml: a PR that changes lib/ must also change CHANGELOG.md; Dependabot, release: PRs and the skip-changelog label are exempt
  • docs-link-check.yml: every PR runs python3 tool/check-docs.py and an offline lychee pass (Internal Links); Mondays an external-link pass
  • publish.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 PRs
  • scorecard.yml, zizmor.yml, dependency-review.yml: supply-chain checks; zizmor is not a required check because it never reports on a PR that touches no workflow

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.