agentleFS
anilcancakiranilcancakir/dowel/CLAUDE.md

dowel

CLAUDE.md2 starsChanged 13 days agoMITView on GitHub

example/ is a Flutter app, so resolve it with flutter pub get; the package itself is pure Dart. A change is not done while any of these is stale: CHANGELOG.md [Unreleased], README.md, llms.txt, the affected doc/ page, skills/dowel/ and ARCHITECTURE.md. Then run the format, analyze, test and docs commands above. Red, green, refactor: the failing test comes first, and reverting the implementation must turn it red again. Branch from master as <type>/<topic> (feat, fix, chore, docs, refactor, test, release) and…

  • 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/artisan★ 2100% 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 repository2 other files it gives its agents.

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before changing module boundaries or a main flow, read ARCHITECTURE.md.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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
<!-- Generated by ac:claude-md-rules-creator on 2026-11-14. -->

Stack

example/ is a Flutter app, so resolve it with flutter pub get; the package itself is pure Dart.

Commands

CommandWhen
dart test --timeout=30s --reporter=failures-only < /dev/nullAll tests. The redirect and reporter are not optional outside a TTY: the default reporter redraws a terminal and the prompt suite reads stdin.
dart test --tags=integrationIntegration tests (minutes, needs network). CI excludes them; run them before tagging a release.
dart test --coverage=coverage && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=libCoverage; CI fails below the 80% line floor. Without --report-on=lib the report counts dependencies and tests and reads about 48%, which looks like a regression.
dart format lib/ test/ bin/ example/lib/main.dartFormat; no diff allowed. The rest of example/ is generated or Flutter scaffold and stays out.
dart analyze lib/ test/ bin/Zero issues.
python3 tool/check-docs.pyDocs gate: page shape, relative links, fragments, ToC reachability. 0 issues.
dart pub publish --dry-runArchive check; 0 warnings on a clean tree (the only expected one before a release is the missing CHANGELOG section for the new version).

Post-Change Checklist

A change is not done while any of these is stale: CHANGELOG.md [Unreleased], README.md, llms.txt, the affected doc/ page, skills/dowel/ and ARCHITECTURE.md. Then run the format, analyze, test and docs commands above.

Development Flow

Red, green, refactor: the failing test comes first, and reverting the implementation must turn it red again. Branch from master as <type>/<topic> (feat, fix, chore, docs, refactor, test, release) and open a PR into master.

Testing

  • Tests mirror the lib/src/ layout (lib/src/installer/plugin_installer.dart is covered by test/installer/plugin_installer_*_test.dart).
  • A test that spawns a real toolchain (flutter create, dart pub get) carries the integration tag (dart_test.yaml).

Architecture

bin/dowel.dart is this package's own entry point, never a consumer wrapper: a consumer project's wrapper is bin/dispatcher.dart, rendered by dowel install from assets/stubs/dispatcher.dart.stub, and defaultConsumerWrapperName ignores bin/dowel.dart so dowel never delegates to itself.

Before changing module boundaries or a main flow, read ARCHITECTURE.md; update it in the same change when a boundary, flow or invariant moves.

Key Gotchas

MistakeFix
Editing lib/app/_plugins.g.dart or lib/app/commands/_index.g.dart (this repo's copies live in example/)Generated; run commands:refresh or plugins:refresh
Running a command that uses the session (reload, stop, tinker, a plugin's <package>:*) in a git worktree before dowel start thereRun dowel start in the worktree first, or pass --state=<path>. sessionOwnershipError passes when the worktree sits inside the project root the main app recorded (an app at the repo root, the worktree under .claude/worktrees/<slug>/) and for state with no recorded projectRoot; the command then acts on the main app and reports success. A sibling checkout, or an app in a subdirectory the worktree is not inside (this repo's example/), is refused. MCP plugin tools and dowel_tinker run no check, and an MCP server falls back to the shared pointer when its own project has no session. --state=<path> skips the check, and a missing file falls back to the pointer too
Committing .dowel/The suite writes install records into it in the repo root; it is gitignored, never force-add it
path: dependencies in docs or the archiveDocs use the caret form or dart pub add; install picks the dependency shape itself
Comparing the signature DSL to another framework's console, by name or as "X-style" or "X-inspired", in code, docs, comments, commits or READMEForbidden; describe the signature DSL on its own terms
An em or en dash in authored textComma, colon, semicolon, period or parentheses
Lifecycle commands on Windowsstart, stop, reload, hot-restart use a POSIX FIFO; macOS and Linux only

Conventions

  • Signature DSL first ('cmd:name {arg} {--flag}'); configure(ArgParser) only for what it cannot express. final class on every new public type.
  • A new persistent write stages <path>.tmp and renames over the target, so open editors and lint daemons never see a partial file.
  • MCP tool descriptions open with an imperative sentence and keep the critical information first; clients truncate at 2 KB.
  • Numbered step comments for methods with three or more phases; /// only on public API.

Release

  1. release: X.Y.Z PR: bump every stamp, promote [Unreleased] to ## [X.Y.Z] - YYYY-MM-DD with its footer compare link.
  2. Stamps: pubspec.yaml; dowelVersion in lib/src/console/dowel_version.dart, the only version literal in code (dowel_version_test.dart and mcp_server_version_test.dart guard it); example/pubspec.yaml and example/packages/awesome_plugin/pubspec.yaml (flutter pub get fails when they drift); server.json (server_json_version_test.dart guards it; the MCP registry never rewrites a published version). The skill keeps its own version: in skills/dowel/SKILL.md. Docs that quote the caret constraint track the released version.
  3. After it merges, tag the merge commit with the bare version: git tag X.Y.Z && git push origin X.Y.Z. publish.yml validates it (tag on master, pubspec.yaml and server.json carry the version, pana 160/160, a CHANGELOG section), publishes through OIDC, creates the GitHub Release and publishes server.json to the MCP registry (the mcp-registry job, stable tags only; the registry holds a version once, so a re-run after success fails with "already exists").
  4. A recovery after a failed Validate is forward: delete the tag, fix on a PR, tag the new merge commit.

CI

master is protected; the required checks are Lint & Test (ci.yml), Changelog and Internal Links.

  • Changelog (changelog.yml): a PR that changes lib/, bin/ or assets/ must change CHANGELOG.md; Dependabot, release: PRs and the skip-changelog label are exempt.
  • Internal Links (docs-link-check.yml) runs the docs gate plus an offline lychee pass; External Links runs Mondays and is not required.

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.