dms-assistant-code-mode
Skill2 starsChanged 4 days agoApache-2.0View on GitHub
Runs the dms-assistant Code-mode loop for changing a DMS page in code while the user watches it in the dashboard, with the list_pages, navigate_to_page, find_pages_using, typecheck and query_logs host tools. Use when the dms-assistant generation mode is Code and a change touches a rendered page, or when the user allows Code mode after a Builder tool answered opaque_target or unsupported.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- formal-agent-file-accessSkill
- formal-change-setsSkill
- formal-chat-ownershipSkill
- formal-connection-analysisSkill
- formal-conversation-deletionSkill
- formal-stored-state-loadSkill
- technical-writingSkill
- unslopSkill
- verify-changesSkill
- dms-assistantSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 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.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Before writing any custom block, run the path *Before any custom block* of dms-best-practices.
- Very specific: line 23
Map the edit: Call find_pages_using on every file you intend to edit to get the pages that render it, and group your edits by page.
- Very specific: line 25
Show the page: Look its route up with list_pages (the path field: routes come from the category chain and the /modules prefix, never from …
- Very specific: line 31
Typecheck: Run typecheck on the module after every source edit and fix every error: a non-compiling edit makes the host reload fail and the …
- Very specific: line 33
Verify: If the page still looks wrong after the reload, read query_logs.
- Very specific: line 41
Prefer them for what they cover: every operation is atomic and typecheck-gated.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Code mode in dms-assistant
What a page is made of and how to write it belongs to the core skills: dms-best-practices
(blocks described backend-side, custom only for the missing block, .meta() on it, design
fidelity) and dms-pages (PageController, blocks, the routes that feed them). This skill adds
what dms-assistant changes: its host tools and the live page the user is watching. Without the
find_pages_using tool you are not inside dms-assistant, and this skill does not apply. dms-assistant's own
server (dms-assistant) serves find_pages_using and navigate_to_page; the DMS MCP (dms) serves
list_pages, typecheck, query_logs and the builder_* tools.
Before writing any custom block, run the path Before any custom block of dms-best-practices.
The loop, one page at a time
- Map the edit. Call
find_pages_usingon every file you intend to edit to get the pages that render it, and group your edits by page. - Show the page. Look its route up with
list_pages(thepathfield: routes come from the category chain and the/modulesprefix, never from the file name) and callnavigate_to_pagewith it. Prefer the page the user is on, reported each turn in the host-context block. For a new page, register the emptyPageController, calllist_pageswithrefresh: true, navigate to it, and only then add blocks, so the user watches it fill in. - Edit. The page reloads with the change once the backend has rebuilt it.
- Typecheck. Run
typecheckon the module after every source edit and fix every error: a non-compiling edit makes the host reload fail and the page 404. - Verify. If the page still looks wrong after the reload, read
query_logs. Then take the next page from step 2.
The change is done when every impacted page shows it and typecheck reports no error.
Builder tools in Code mode
The builder_* tools stay available in Code mode.
Prefer them for what they cover: every operation is atomic and typecheck-gated. For a computed number over a builder-managed resource (a KpiCard count or sum),
builder_query_templates then builder_add_query generate the route to pass as fetchUrl.
The Builder recognizes a query by its shape alone: a scalar route over a resource model calling a
this.table… chain. A hand-written route in that shape becomes editable by the Builder like a
generated one. To keep a hand-written aggregate out of its reach, compute it outside the chain
(an intermediate variable or a helper) and it reads back as opaque.
Leave the servers running
dms-assistant runs inside the DMS backend, so stopping or restarting the dev servers stops the assistant. Rely on hot reload; when a change needs a full restart (a new module or dependency, a config edit), ask the user to run it.
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.

