deslop-cache
Skill3.4k starsChanged 39 days agoMITView on GitHub
Clean up hand-rolled caches and request state generated by AI in packages/review/app. Use after adding or changing caching, prefetching or request code in the canvas, before review.
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
What may stay a map: Keep a Map or WeakMap only for these, and say why in one short comment:
- Distinctive: line 29
Read the stream line's version (and links revision) before you read a board's resources again.
- Distinctive: line 31
Keep a version in a key when other code relies on a new version reading again, such as the page bar's place.
- Very specific: line 33
Data paths: Do not schedule data updates with requestAnimationFrame.
- Distinctive: line 34
Tests: Test a cache through what the canvas shows.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill 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
Review every canvas file the branch changed (git diff origin/main --stat -- packages/review/app). Look for Map, WeakMap, module-level let, refs that hold fetched data, and hand-written fetch effects. Assume each one duplicates the query client, and prove otherwise before you keep it.
The cache
- Fetched data lives in TanStack Query. The client comes from
createCanvasQueryClientinsrc/canvas-query.tsx. Desktop's canvas shares one client across the boards it shows (SharedCanvasQueryClient). - Keys come from
canvasQueryKeys. A key for one board's data names the board first, so boards that share the client do not share entries. - Shared UI state lives in the existing Zustand stores. Do not put UI state in the query cache, and do not put fetched data in Zustand. Do not add a cache library.
Checklist
- Side tables. Replace each of these with the query client:
- a
WeakMap<QueryClient, …>or aMapthat holds a value per board:queryClient.getQueryData/setQueryDataunder acanvasQueryKeyskey - a map of promises that runs a read once:
queryClient.fetchQuerywithstaleTime: Infinityfor data that never changes - an entry marked stale and then filtered on read:
queryClient.removeQueries - a "previous value while the next one loads" ref:
placeholderData - a timer or flag that reads again:
staleTime,invalidateQueriesorrefetch
- a
- What may stay a map. Keep a
MaporWeakMaponly for these, and say why in one short comment:- the result of a pure function of one object (a
WeakMapkeyed by that object) - something that must be cleaned up with its owner, such as object URLs revoked on unmount
- a lookup that lives and dies inside one effect
- server code with no React, such as a short time-limited cache in
packages/review/src
- the result of a pure function of one object (a
- Freshness. Data drawn from the cache must stay current, or it must be dropped:
- A cached copy of a board that no stream follows can be stale. Remove it when the stream stops. Do not draw it.
- Read the stream line's version (and links revision) before you read a board's resources again. Activity alone sends a board again.
- Key a read per board when the server checks it against its board. A cache shared across boards skips that check.
- Keep a version in a key when other code relies on a new version reading again, such as the page bar's place.
- Focus.
refetchOnWindowFocuslistens only tovisibilitychange. In Desktop, switching to another app leaves the window visible. A read that must follow window focus keeps its ownfocuslistener. - Data paths. Do not schedule data updates with
requestAnimationFrame. It pauses in hidden windows and does not run reliably under jsdom. React already batches updates from one task. - Tests. Test a cache through what the canvas shows. Hold every request, switch boards, and check what draws. Then remove the cache in the code and check that the test fails. Do not count calls to internal functions.
Trending
More talk lately.about the whole repository
Who's talking about devdotfast/whiteboard
- A Hacker News story“Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design”Hacker News · Sep 24, 2026 · 424 points
- @yug1224.com“AIエージェントと人間がキャンバス上で設計図やコードを共有しながら開発できるツールっぽい コードの可視化や設計の壁打ちにすごく使えそう yug1224 starred devdotfast/whiteboard…”Bluesky · Sep 27, 2026 · 2 likes
- @technews4869.bsky.social“github.com/devdotfast/whit... GitHub - devdotfast/whiteboard: open-source canvas for thoughtful software …”Bluesky · Sep 27, 2026 · 1 likes
- @tech-trending.bsky.social“GitHub - devdotfast/whiteboard: open-source canvas for thoughtful software design …”Bluesky · Sep 27, 2026 · 1 likes
- @hncompanion.com“Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design View Article | Discussion …”Bluesky · Sep 25, 2026 · 1 likes
The biggest 5 of 34 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 34
Talked about on GitHub, Bluesky and Hacker News (34 times).
On GitHub · 27
- Oct 28, 2026claude-code-plugins.github.devdotfast.whiteboard: init at 0.4.0 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-marketplaces.github.devdotfast.whiteboard: init at 0.4.0 — sudosubin/agents.nix0 reactions
- Oct 23, 2026codex-marketplaces.github.devdotfast.whiteboard: 0.3.4 → 0.4.0 — sudosubin/agents.nix0 reactions
- Oct 23, 2026codex-plugins.github.devdotfast.whiteboard: 0.3.4 → 0.4.0 — sudosubin/agents.nix0 reactions
- Oct 20, 2026codex-marketplaces.github.devdotfast.whiteboard: 0.3.3 → 0.3.4 — sudosubin/agents.nix0 reactions
22 more on GitHub
- Oct 20, 2026codex-plugins.github.devdotfast.whiteboard: 0.3.3 → 0.3.4 — sudosubin/agents.nix0 reactions
- Oct 18, 2026codex-plugins.github.devdotfast.whiteboard: 0.3.2 → 0.3.3 — sudosubin/agents.nix0 reactions
- Oct 18, 2026codex-marketplaces.github.devdotfast.whiteboard: 0.3.2 → 0.3.3 — sudosubin/agents.nix0 reactions
- Oct 16, 2026codex-marketplaces.github.devdotfast.whiteboard: 0.3.0 → 0.3.2 — sudosubin/agents.nix0 reactions
- Oct 16, 2026codex-plugins.github.devdotfast.whiteboard: 0.3.0 → 0.3.2 — sudosubin/agents.nix0 reactions
- Oct 16, 2026codex-marketplaces.github.devdotfast.whiteboard: 0.2.4 → 0.3.0 — sudosubin/agents.nix0 reactions
- Oct 16, 2026codex-plugins.github.devdotfast.whiteboard: 0.2.4 → 0.3.0 — sudosubin/agents.nix0 reactions
- Oct 14, 2026Discovery watchlist — rishibhaskar777/whichai0 reactions
- Oct 13, 2026codex-marketplaces.github.devdotfast.whiteboard: 0.2.0 → 0.2.4 — sudosubin/agents.nix0 reactions
- Oct 13, 2026codex-plugins.github.devdotfast.whiteboard: 0.2.0 → 0.2.4 — sudosubin/agents.nix0 reactions
- Oct 4, 2026codex-plugins.github.devdotfast.whiteboard: init at 0.2.0 — sudosubin/agents.nix0 reactions
- Oct 4, 2026codex-marketplaces.github.devdotfast.whiteboard: init at 0.2.0 — sudosubin/agents.nix0 reactions
- Oct 1, 2026Support symlink and submodule changes in structural diffs — devdotfast/diffr0 reactions
- Sep 29, 2026Codebase map, part 1: build a map of a project and browse it from system to file in the console — Farmer-Pete/Zing2.old0 reactions · 2 comments
- Sep 28, 2026🔍 Weekly Discovery: 49 new tools found (2026-09-28) — heylabs-co/dev-tools-portal0 reactions
- Sep 28, 2026[FEATURE] Semantic diff + diagrams linked to code for AI-generated changes — px0-ai/px00 reactions · 1 comment
- Sep 26, 2026AI Skill 日报 · 2026-09-26 — 7sevenn777/skill-digest0 reactions
- Sep 25, 2026📝 Whiteboard launches as an open‑source canvas for deliberate software design — bitroot-org/bitroot-org-website0 reactions · 1 comment
- Sep 25, 2026Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design — bitroot-org/bitroot-org-website0 reactions · 1 comment
- Sep 25, 2026Evaluate architecture-understanding tools for the planning stage — Farmer-Pete/Zing2.old0 reactions · 2 comments
- Sep 25, 2026AI Skill 日报 · 2026-09-25 — 7sevenn777/skill-digest0 reactions
- Sep 25, 2026📰 Hacker News AI 社区动态日报 2026-09-25 — 96loveslife/big_model_radar0 reactions
On Bluesky · 6
- Sep 27, 2026AIエージェントと人間がキャンバス上で設計図やコードを共有しながら開発できるツールっぽい コードの可視化や設計の壁打ちにすごく使えそう yug1224 starred devdotfast/whiteboard… — @yug1224.com2 likes and reposts
- Sep 27, 2026github.com/devdotfast/whit... GitHub - devdotfast/whiteboard: open-source canvas for thoughtful software design — @technews4869.bsky.social1 likes and repost
- Sep 27, 2026GitHub - devdotfast/whiteboard: open-source canvas for thoughtful software design https://github.com/devdotfast/whiteboard — @tech-trending.bsky.social1 likes and repost
- Sep 25, 2026Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design View Article | Discussion + AI Summary Summary of HN… — @hncompanion.com1 likes and repost · 1 reply
- Sep 24, 2026Whiteboard plugs into Claude Code, Codex, and other coding agents via its SDK, allowing agents to draw on an in-app canvas to describe… — @piranya.bsky.social1 likes and repost
1 more on Bluesky
- Sep 25, 2026Show HN: Whiteboard (YC W26) – 思慮深いソフトウェア設計のためのオープンソースIDE Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design… — @hacker-news-jp.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Sep 24, 2026Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design424 points · 143 comments
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- diffr/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- deslop-uiSkill
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.

