debugging
Skill503 starsChanged 11 days agoMITView on GitHub
Tips for orchestrating an iOS simulator, the Dart MCP, Maestro, and widget tests to run, observe, and verify the behavior of the smooth_sheets package with few tokens. Use this skill whenever you need to know how the package actually behaves, for any purpose — fixing a bug, verifying a GitHub issue, implementing or changing a feature, investigating the current behavior to discuss a new feature, running a repro, example, tutorial, or showcase app on a simulator, driving an app with Maestro, observing gestures, animations, snapping, or keyboard behavior, or reproducing a behavior in widget tests — even if the user does not mention the simulator or this skill.
135 other projects use a version of this.
Adopted by
Most recently taken up by
- joaovitoriasilva/enduraintheir own version, first seen Nov 29, 2026
- endurain-project/enduraintheir own version, first seen Nov 29, 2026
- Palanx/Claude-Configstheir own version, first seen Nov 29, 2026
- jacarty/claude-toolkittheir own version, first seen Nov 29, 2026
- justincordova/agentstheir own version, first seen Nov 29, 2026
- valsecchi75/project-scaffoldertheir own version, first seen Nov 29, 2026
Used with
Projects with it also use remove-ai-slops, ssr and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
DevNewbie1826Skillremove-ai-slops
Remove AI-generated code slop from branch changes or an explicit file list while preserving behavior, including junk tests (prose pins, source greps, copied inventories, mock echoes), each proven by its class rule before a cut. Use when asked to remove slop, clean AI code, deslop, clean up generated code, strip slop, prune junk tests, or review generated-code cleanup. Start by locking behavior with regression tests, then use the workflow and category references.
Also in 3 projects that use this
JetBrainsSkillssr
Create or modify IntelliJ Structural Search and Replace patterns.
Also in 3 projects that use this
truongtv22SkillProblem-Solving Techniques
Apply systematic problem-solving techniques for complexity spirals (simplification cascades), innovation blocks (collision-zone thinking), recurring patterns (meta-pattern recognition), assumption constraints (inversion exercise), scale uncertainty (scale game), and dispatch when stuck. Techniques derived from Microsoft Amplifier project patterns adapted for immediate application.
Also in 4 projects that use this
mrgoonieSkillmedia-processing
Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.
Also in 6 projects that use this
mrgoonieSkillmcp-management
Manage Model Context Protocol (MCP) servers - discover, analyze, and execute tools/prompts/resources from configured MCP servers. Use when working with MCP integrations, need to discover available MCP capabilities, filter MCP tools for specific tasks, execute MCP tools programmatically, access MCP prompts/resources, or implement MCP client functionality. Supports intelligent tool selection, multi-server management, and context-efficient capability discovery.
Also in 6 projects that use this
DevNewbie1826Skillprogramming
MUST USE for work on Python, Rust, TypeScript, JavaScript, or Go source files and project manifests, and whenever a test or spec file is written, reshaped, reviewed, or deleted. Triggers: write or edit code; add, change, or delete a test; test authoring gate; junk tests; new project; Go HTTP service (gin lane); Bubble Tea TUI; CJK IME; Connect-Go RPC; sqlc or pgx; branded IDs; exhaustive matching; unsafe Rust; Miri; oversized file; refactoring; logging, log levels, structured logging, or observability; arena, allocator, bumpalo, const fn, const generics, compile-time programming, zero-allocation APIs, bitfields, repr, scope guards, errdefer-style cleanup, Zig-like patterns, zero-copy parsing, packed data, or FFI; Rust public API design or macros.
Also in 3 projects that use this
- +6 more from mrgoonie
Other versions135 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 135
- tursodatabase/turso★ 25ksame name
- JetBrains/intellij-community★ 21ksame name
- DetachHead/rebased★ 6.6ksame name
- joaovitoriasilva/endurain★ 2.4ksame name
- endurain-project/endurain★ 2.4ksame name
- mrgoonie/claudekit-skills★ 2.2ksame name
- JetBrains/MPS★ 1.7ksame name
- danieleteti/delphimvcframework★ 1.4ksame name
- glommer/pgmicro★ 1.2ksame name
- rapidaai/voice-ai★ 762same name
125 more not listed
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.
- CLAUDE.mdCLAUDE.md
- pr-guidelinesSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.
0
Common
Most of the 122 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Put temporary apps under example/lib/ (for example, issue_655.dart).
- Very specific: line 26
Stop any earlier flutter run for the same device first (pkill -f "run -d <udid>").
- Very specific: line 39
Do not use takeScreenshot inside flows.
- Very specific: line 47
Logs: use a unique prefix (debugPrint('[655] ...')), write one summary line per event (for example, per drag end: velocity, distance, …
- Very specific: line 48
Values inside the library: add a temporary debugPrint in lib/ (for example, in _handleDragEnd) to see what the library actually receives.
- Very specific: line 51
When something fails or takes longer than expected,: look at the screen right away with a Maestro screenshot and grep the app log for …
- Distinctive: line 58
A failing assertion waits about 17 s: before it reports the failure.
“Common” is measured: kept by at least 6 in 10 of the 122 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Debugging tips for smooth_sheets
These tips describe how to combine the simulator, the Dart MCP, Maestro, and widget tests to observe and verify how this package behaves. What you observe it for is up to the task. The common goal is reliable evidence for few tokens: prefer filtered, one-line outputs (grepped logs, Maestro step results, text assertions) over screenshots, view hierarchies, and unfiltered logs.
The scripts mentioned below are in the scripts/ directory next to this file.
Choose between tests and the simulator
There is no strict rule. Choose by what you need to observe and what it costs.
- Tests first for first insights and for non-UI behavior. Unit and widget tests need no build, no device, and no UI driving; they are deterministic, and their output is easy to filter. Behavior such as controller and model APIs, state changes, callbacks, and computed values (for example, whether a getter throws before the first layout) can usually be confirmed in a widget test within seconds.
- The simulator for details that tests cannot show or may misrepresent: real gesture velocities and timing, the platform keyboard, system insets, rendered layout, animations as a user sees them, and interaction with real routers and navigators.
- Move between them. A condition found on the simulator (for example, a release velocity range) can become a widget test that repeats it cheaply; a surprising test result can be checked on the simulator.
- For UI behavior, do the final verification on the simulator, because widget tests replace gestures, the keyboard, and timing with simulations.
Run code on a simulator
- Put temporary apps under
example/lib/(for example,issue_655.dart). - Find the simulator with
xcrun simctl list devices booted, and pass its UDID everywhere; several simulators can share a name. If none is booted, ask the user. - Launch with
flutter run -d <udid> -t <target>from theexample/directory, in the background, with its output redirected to a log file. The Dart MCP's own launch and log tools return unfiltered logs (daemon JSON, iOS system messages,pub getoutput), so they cost more tokens. - Stop any earlier
flutter runfor the same device first (pkill -f "run -d <udid>"); two apps on one simulator conflict. - The app is ready when the log contains "Flutter run key commands". Wait for that line or for the
flutter runprocess to exit, whichever comes first. A wait that only looks for the ready line never ends when the build fails. - Then connect the Dart MCP to the new app (
dtd:listDtdUris, thenconnect). Every launch creates a new DTD URI. - Apply code changes with a hot reload first; it is the cheapest, and it even replaces a red error screen once the cause is fixed. Use a hot restart when the state or behavior after a reload looks wrong, and relaunch only as a last resort or when the entry point, native code, or configuration changes.
Drive the app with Maestro
- Selectors come from the code. Wrap the widgets to tap or check in
Semantics(identifier: ...)and target them withid:. Widgets with a text label can also be targeted by text, but icon-only buttons need an ID (or coordinates). - Combine an ID with text or state only after wrapping it as
MergeSemantics(child: Semantics(identifier: ..., child: ...)). A bare identifier wrapper creates its own node, separate from the widget's node: taps by ID still work, but{id, text},{id, checked}, or{id, enabled}fail. An identifier on a container (such as the whole sheet) has no child nodes, so it cannot limit a search to the sheet's content. - Flows: every action on the app is a flow, even a single tap. Write the scenario as a flow file, chain several scenarios that each end with an assertion, and rerun the same file after each code change. Many one-step flows, each followed by a screenshot or a log read, cost far more tokens for the same information.
inspect_screenmostly repeats what the code already says (IDs, labels, structure, sizes). Use it for layout states that exist only at runtime: where an element is after scrolling or snapping, or which element covers another.- Coordinates for gestures can usually be calculated from the sizes in the code (for example, a 400 px sheet in an 874 px viewport). Read bounds from
inspect_screenonce only when the position depends on runtime layout. - Use the Maestro MCP to interact with apps on the simulator: run flows (inline or from files), take screenshots, and inspect the screen. After a failed flow, take a screenshot and grep the app log for exceptions. Do not run the Maestro CLI on the same device; it breaks the MCP's connection ("Device became unreachable during deviceInfo") until the MCP server is reconnected.
- Do not use
takeScreenshotinside flows; it writes a PNG into the current directory, often the repository root.
Observe behavior
- Show values as text. Render the value in a
Textwrapped inSemantics(identifier: ...), for exampleoffset=350orinset=336, and check it with a Maestro assertion such asassertVisible: {id: sheet-offset, text: offset=350}(the text is a regular expression). A check costs one line and about 0.1 s. - Read values where they matter. The sheet's descendants receive the keyboard inset minus the padding the sheet applies, so an inset read inside the sheet can be 0 while the keyboard is open. Read it from a context outside the sheet.
- Sheet offset: listen to a
SheetControllerwithListenableBuilderand readcontroller.metrics?.offset. Readingcontroller.valuebefore the sheet's first layout can throw a null-check error. - Logs: use a unique prefix (
debugPrint('[655] ...')), write one summary line per event (for example, per drag end: velocity, distance, decision), and read them withgrep '\[655\]' app.log | tail -5. To read only what an action produced, note the log's line count before it and read from there. - Values inside the library: add a temporary
debugPrintinlib/(for example, in_handleDragEnd) to see what the library actually receives. The same lines also appear in widget test output. Mark them with aTODOand remove them afterwards. - Animations: an
AnimationStatuslistener with aStopwatchshows where a transition starts and how long it takes. Log the value on every frame to see the curve itself. - Take a screenshot to check what the user sees, such as overlap, clipping, or content hidden by the keyboard. Text assertions cannot show these.
- When something fails or takes longer than expected, look at the screen right away with a Maestro screenshot and grep the app log for
EXCEPTION CAUGHT|Failed assertion|Null check. A red error screen or an unexpected dialog is usually obvious on the screen but easy to miss in logs.
Maestro pitfalls
- Covered elements: Maestro taps the center of an element's bounds and does not detect that another widget covers it.
scrollUntilVisiblestops as soon as the bounds are on screen, even under a bottom bar; a tap on the last list item once pressed the bar's "Next" button instead, and the flow still passed. UsecenterElement: true, and assert the expected screen (for example, a page ID) after every tap that changes the screen. - Barriers: while a modal sheet is open, its barrier removes the page below from the semantics tree. A tap by ID on that page fails with "Element not found"; a tap by coordinates hits the barrier and may close the sheet.
- Animations slow every step: Maestro waits for the screen to settle after each command. A 2-second refresh spinner delays the next step by about 2 s; an endless spinner delays it until Maestro's timeout (a tap took 3.7 s instead of about 1 s). A state that lasts about 1 s can be gone before the next assertion runs, so lengthen short-lived states in the repro.
- A failing assertion waits about 17 s before it reports the failure.
- Sheets move before their content scrolls: a downward swipe on a scrollable sheet first moves the sheet toward a lower snap point. The overscroll reaches the list (for example, pull-to-refresh) only after the sheet cannot move further.
Reproduce gestures
- Maestro swipes take
start,end, andduration; the shortest effective duration is about 100 ms. Measured examples: 220 px withduration: 1gave about 2200 px/s; 320 px in 800 ms gave about 200 px/s. - Flutter's drag recognizer reports zero velocity when the release speed is 50 px/s or less (
kMinFlingVelocity), or when the last samples moved less than the touch slop. A slow Maestro swipe (for example, 3000 ms) therefore releases with zero velocity. - The velocity the library receives can differ from a
VelocityTrackerin the repro (for example, 204 px/s vs. 174 px/s). When a behavior depends on velocity, log it inside the library. - Maestro cannot release at an exact velocity, stop before releasing, or reverse direction within one swipe. Reproduce those gestures in widget tests instead.
Keyboard
- The simulator may have a hardware keyboard connected, and then the software keyboard never appears. To detect this, focus a text field and assert that a keyboard-inset text (read outside the sheet) is not zero.
- Switch with
swift scripts/sim-keyboard.swift <udid> software(orhardware). The script calls a private CoreSimulator API and stops with an error if that API changed after an Xcode update. - A sheet stays above the keyboard only with
padding: EdgeInsets.only(bottom: MediaQuery.viewInsetsOf(context).bottom). Without it, the keyboard covers the sheet, and the sheet cannot be dragged. - Type with
inputText, and check the field withassertVisible: {id: <field-id>, text: .*expected.*}.
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.

