agentleFS
AntelopeJSAntelopeJS/dms-assistant/skills/dms-assistant-code-mode/SKILL.md

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.

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
  1. Distinctive:

    Before writing any custom block, run the path *Before any custom block* of dms-best-practices.

    line 19
  2. Very specific:

    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.

    line 23
  3. Very specific:

    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 …

    line 25
  4. Very specific:

    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 …

    line 31
  5. Very specific:

    Verify: If the page still looks wrong after the reload, read query_logs.

    line 33
  6. Very specific:

    Prefer them for what they cover: every operation is atomic and typecheck-gated.

    line 41

≈ “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.

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

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

  1. 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.
  2. 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 the file name) and call navigate_to_page with it. Prefer the page the user is on, reported each turn in the host-context block. For a new page, register the empty PageController, call list_pages with refresh: true, navigate to it, and only then add blocks, so the user watches it fill in.
  3. Edit. The page reloads with the change once the backend has rebuilt it.
  4. 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 page 404.
  5. 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.

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.