agentleFS
bherbruckbherbruck/solidcraft/skills/solidcraft-performance/SKILL.md

solidcraft-performance

Skill15k starsChanged 18 days agoApache-2.0View on GitHub

Use when a SolidCraft change is slow, blocks the window, runs long work, or must build for the browser. Covers keeping the window thread free, measuring a speed-up, the wasm build and what may be JavaScript or Python.

1 other project uses a version of this.

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 13: 0 new projectsWeek of Sep 20: 0 new projectsWeek of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Most recently taken up by

Who's talking about bherbruck/solidcraft

The biggest 5 of 75 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 75

Talked about on GitHub, YouTube, Bluesky and Hacker News (75 times).

On GitHub · 46

41 more on GitHub

On YouTube · 23

18 more on YouTube

On Bluesky · 5

On Hacker News · 1

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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
  1. Very specific:

    Test it: crates/ui-egui/src/apply_off_thread_tests.rs drives a long feature through the harness.

    line 12
  2. Very specific:

    Do not rewrite kernel code for speed: the kernel is being replaced, and kernel work is paused.

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

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

Performance, threads and wasm

Do not block the window

  • Work that can take long (a feature computation, a save, a file load, reading a picture) runs beside the window and is applied when done. Existing examples: crates/ui-egui/src/save_job.rs, crates/ui-egui/src/file_load.rs, and the agent path in docs/control-protocol.md ("Slow commands and the window").
  • With the preference "Keep the window responsive while agents run commands" (agent_off_thread) on, a design change that takes longer than about 150 ms is evaluated ahead on a copy of the design, then run for real reusing that result. A person's edit made meanwhile goes first; Stop drops the computation and nothing is applied. Keep that contract when you add a long-running command.
  • file.export and file.save_mesh change nothing in the design: they run on a copy and nothing waits behind them.
  • Test it: crates/ui-egui/src/apply_off_thread_tests.rs drives a long feature through the harness; never depend on wall-clock timing in a test.

Measure before you claim a speed-up

  • Profile first. Time with solidcraft-cli from main and from your branch, alternating runs, after the load is low. On a shared machine check cut -d' ' -f1 /proc/loadavg and wait while it is over 24; build with nice.
  • Report medians with the range, the machine, and the cases. The pattern to follow is docs/perf.md: what was slow, why, the result, and proof that nothing changed (same bodies, volumes, areas and triangle counts).
  • A speed-up never skips work on a mesh's box: decide with the exact bounds (Body::exact_bounds, grown by the record's tolerance as apart in crates/kernel/src/ops.rs does). A mesh is for display, export, previews and mesh bodies.
  • Do not rewrite kernel code for speed: the kernel is being replaced, and kernel work is paused. Report a slow case with its file under the kernel-perf label (CONTRIBUTING.md, "Where help is wanted most").
  • Pull requests run only the tests for what they touch; geometry-heavy tests run in the merge queue. Use cargo xtask test with the ci profile locally (skills/solidcraft-tests/SKILL.md).

The browser build

  • Everything below the apps must build for wasm32-unknown-unknown: cargo xtask wasm checks every library crate and the web app, and is part of cargo xtask ci. Do not add a dependency that cannot.
  • Application code is Rust only. The browser requires two pieces of JavaScript: the service worker apps/solidcraft-web/sw.js and the small inline scripts in apps/solidcraft-web/index.html. Keep them minimal; cargo xtask web-offline-test covers the service worker.
  • Python 3.11+ is allowed only for asset authoring, lint and review tools (assets/AGENTS.md), never as an application dependency.
  • Design notes for the browser runtime: docs/browser-api.md.

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.