telescope
CLAUDE.md2 starsChanged 14 days agoMITView on GitHub
Flutter package crumbs, a plugin of dowel: a passive runtime inspector that captures an app's HTTP traffic, logs, exceptions, dumps, events, gate checks, queries, cache operations and frames into in-memory ring buffers and serves them as crumbs:* CLI commands and crumbs_* MCP tools over the ext.crumbs.* VM Service extensions. A live check drives example/ (cd example && dart run crumbs start --device=macos, then crumbs:*, then stop). A change is not done while any of these is stale: CHANGELOG.md under ##…
- Commits and pushes
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
Before changing module boundaries or a main flow, read ARCHITECTURE.md.
- Very specific: line 47
No production dependency beyond the Flutter SDK, dowel, logging and meta.
≈ “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.
Files
<!-- Generated by ac:claude-md-rules-creator on 2026-11-14. -->Stack
Flutter package crumbs, a plugin of dowel: a passive runtime inspector that captures an app's HTTP traffic, logs, exceptions, dumps, events, gate checks, queries, cache operations and frames into in-memory ring buffers and serves them as crumbs:* CLI commands and crumbs_* MCP tools over the ext.crumbs.* VM Service extensions.
Commands
| Command | When |
flutter analyze --no-fatal-infos | Zero issues. |
dart format --output=none --set-exit-if-changed . | Zero diff. |
flutter test --exclude-tags=integration | The suite. Line coverage stays at or above 80%, the CI floor: lift it with a test, never by excluding code. |
python3 tool/check-docs.py | Docs gate (the Internal Links check): 0 issues. |
flutter pub publish --dry-run | Archive check, as publish.yml runs it at release. |
A live check drives example/ (cd example && dart run crumbs start --device=macos, then crumbs:*, then stop).
Post-Change Checklist
A change is not done while any of these is stale: CHANGELOG.md under ## [Unreleased], README.md, llms.txt, the matching doc/** page, skills/crumbs/, ARCHITECTURE.md and the split under Architecture below. Then run every command above.
Development Flow
Red, green, refactor: the failing test first, failing for the right reason. One long-lived branch, master. Cut a short kebab-case branch from it (fix/dump-watcher-leak), one topic each, and open a pull request; it lands as a merge commit.
Testing
A test for lib/src/<path>.dart sits at test/src/<path>_test.dart (the provider test, Off-limits item 6, is the exception), with flutter_test only (no mockito) and no real VM Service connection.
Architecture
Two halves split by where they run: the in-app runtime (lib/crumbs.dart) and the host CLI that reaches it over the VM Service (bin/crumbs.dart, lib/cli.dart); lib/src/ holds both.
Before changing module boundaries or a main flow, read ARCHITECTURE.md; update it in the same change when a boundary, flow or invariant moves.
Off-limits (frozen contracts)
These change only with a coordinated bump in magic_devtools, which is meant to build on them from another repository:
CrumbsWatcher(name,install(),uninstall()) andCrumbsHttpAdapter(the same pluspendingCount). Both areabstract interface class, somagic_devtoolsand apps implement them and a new member is a major bump; the record classes and the exception, log, dump and frame-performance watchers arefinal class.CrumbsPlugin.install(),registerWatcher()andregisterHttpAdapter()signatures.CrumbsStorepublic statics:recordX,recentXandonXRecordper buffer,clear,clearFramePerf,pause,resume,setCapacity,pendingHttpCount.CrumbsRedaction.redactorsemantics and theredactedflag, as the Invariants and Decisions of ARCHITECTURE.md state them: key masking covers headers, bodies, URL query parameters, query bindings and gate arguments; free text (a dump message, SQL) and a positional binding are masked only by a configuredredactor.- The build-mode gates:
DumpWatchercheckskDebugModeunlessallowInRelease, and nothing else in crumbs checks the build mode; the consumer guardsCrumbsPlugin.install()(crumbs:installwritesif (!kReleaseMode), debug and profile builds, like tapir andmagic_devtools). - The MCP tool names and their
extensionMethodstrings, the answer keys (requests,messages,exceptionsand the rest) and thesinceandcursorsemantics;test/crumbs_dowel_provider_mcp_tools_test.dartholds the names andextensionMethodstrings. install.yaml: load-bearing forplugin:install crumbs; keepplugin_nameand thepost_installmessage.- No production dependency beyond the Flutter SDK,
dowel,loggingandmeta;example/may add its own (Dio).
Key Gotchas
| Mistake | Fix |
A crumbs:* command from a git worktree that has not run dowel start | Run dart run crumbs start from the worktree's example/ (or pass --state=<path>) first. Otherwise dowel refuses ("belongs to another project"), because the recorded app root is <main>/example; a recorded root that contained the worktree would pass the check and drive the main checkout's app, reporting success. |
A relative path in pubspec_overrides.yaml | Absolute paths only: .worktreeinclude copies the file into .claude/worktrees/<slug>, where ../dowel resolves wrong. |
Importing package:flutter/material.dart in lib/ | Deprecated from Flutter 3.50 (material_ui replaces it); lib/ uses foundation.dart and scheduler.dart. |
A count of commands, tools, watchers, extensions or buffers in prose (README, llms.txt, doc/**, the skill, ARCHITECTURE.md, this file), or an em or en dash in docs, comments or the CHANGELOG | Name the items; the provider test holds the numbers. Dashes: comma, colon, semicolon, period or parentheses. |
Release
- A
release: X.Y.ZPR bumps the stamps and promotes## [Unreleased]to## [X.Y.Z] - YYYY-MM-DD. Stamps:pubspec.yaml,server.json(guarded bytest/server_json_version_test.dart),example/pubspec.yamlandexample/pubspec.lock, and the skill'sversion:and stamp comment inskills/crumbs/SKILL.md, moved by hand. Grep the old version before opening it. - After it merges, tag the merge commit with the bare version:
git tag X.Y.Z && git push origin X.Y.Z.publish.ymlvalidates, publishes to pub.dev, creates the GitHub Release from the CHANGELOG section, syncs the skill to the skill registry and publishesserver.jsonto the MCP registry (themcp-registryjob, stable tags only; the registry holds a version once, so a re-run after success fails with "already exists").
CI
The required checks on a pull request are Lint & Test, Changelog (a PR that changes lib/, bin/ or install.yaml changes CHANGELOG.md) and Internal Links.
Style
final class for new concrete types, abstract class for contracts. Queue<T> for a ring buffer. Numbered step comments (// 1.) in a method with three or more phases. Docblocks state a contract or a failure mode, none on a trivial getter. British English in prose.
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.

