← AircadCONTENT HISTORY

Update to Aircad

Snapshot Nov 24, 2026 · 01:48 UTC · version 1.0.5

Collection source: downloaded plugin package.

WHAT CHANGED

First saved snapshot

No earlier snapshot is available to establish a change.

Save Aircad and check future changes in Following.

Up to 3 plugins free · no card required.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "description": "Make a reusable command in Aircad that the user can run again from the command line, with inputs they pick on the canvas, a live preview, and options. Use when the user asks for a command, a tool, a macro, or a way to repeat a drawing task (\"make me a command that draws a slot\", \"I keep drawing these brackets\"), or wants to change a command they have.",
  "included_files": [
    {
      "relative_path": "references/making-commands.md",
      "size_in_bytes": 8591
    }
  ],
  "name": "write-a-command",
  "skill_md_contents": "---\nname: write-a-command\ndescription: Make a reusable command in Aircad that the user can run again from the command line, with inputs they pick on the canvas, a live preview, and options. Use when the user asks for a command, a tool, a macro, or a way to repeat a drawing task (\"make me a command that draws a slot\", \"I keep drawing these brackets\"), or wants to change a command they have.\n---\n\n# Write a command in Aircad\n\nA command is a small program saved in the file. It asks for its inputs the\nway Aircad's own commands do (points that snap, typed lengths, picked\nentities), shows a preview while the user picks, and makes its change when\nthey finish. You write it, save it with `save_command`, and the user tries\nit. Read `references/making-commands.md` before you write one: it is the\nguide to the manifest, inputs, options, previews, and saving, with two\nwhole examples.\n\n## 1. Pin down what it does\n\nBefore writing, agree on:\n\n- what the user picks or types each run (two points, a length, some\n  entities): those are inputs,\n- what stays the same between runs and has a default (a count, a mode, a\n  toggle, a fixed list): those are options,\n- what it makes or changes, on which layer, and what the preview shows.\n\nWhen the user describes a one-off change, make the change with\n`run_edit_script` instead and offer a command only if they'll repeat it.\n\n## 2. Write and save it\n\nCall `script_api_reference` if you haven't, and write the whole module. Ask\nfor each input in the order a person would pick them, and keep the preview\nup to date with each pick. Then call `save_command` with the source.\n\nA command that won't save says why in the result: a manifest that isn't\nplain data, a capability missing, an input asked for that isn't declared.\nFix it and save again with the `scriptId` from the first result.\n\n## 3. Have the user try it\n\nTell the user the command is saved in the file's Scripts panel, where they\ncan try it, and that Add to Command Line there puts it on the command line.\nAsk them to try it on a real case and tell you what's off. Change it by\ncalling `save_command` again with the same `scriptId` and the whole\ncorrected source. Read the saved source with `cad.doc.scripts.list()` in a\n`run_query_script` before changing it, rather than from memory.\n\nWhen the user asks how commands, aliases, or the command line work, call\n`docs_search` and link the page.\n"
}

SHA-256 of public snapshot: 8b68b590c4684cdd450c8d3b162a1e924feb0244649fb0a131825c352c1e4016