Quickstart

From javimosch/supercli · View interactive version

Quickstart is an AI agent skill from the GitHub repository javimosch/supercli. Agent workflow for learning JSALT and building .jsa apps with executable validation and AST checks.

How to use this skill

Skill file

jsalt Quickstart

Use this when you need to generate or edit JSALT (.jsa) apps with reliable syntax validation.

1) Install plugin and dependency

supercli plugins learn jsalt
npm install -g jsalt
supercli plugins install ./plugins/jsalt --json

2) Validate CLI wiring

supercli jsalt cli help
supercli plugins doctor jsalt --json

3) Core JSALT syntax checklist

4) Useful directives for agent-generated UI

5) Validate and inspect AST during generation

supercli jsalt ast validate --path app.jsa
supercli jsalt ast json --path app.jsa
supercli jsalt ast tree --path app.jsa

6) Full passthrough for advanced runs

supercli jsalt app.jsa --json
supercli jsalt examples --tree

7) Minimal example patterns

Counter:

let count = 0
const doubled = computed(() => count * 2)
fn inc = "setState('count', getState('count') + 1)"

div
  h1 = "Count: ${count}"
  p = "Doubled: ${doubled}"
  button @click = "inc()" = "+"

Todo list loop:

let items = []
let text = ""
fn add = "if(!getState('text')) return; setState('items', [...getState('items'), getState('text')]); setState('text', '')"

div
  input bind = "text"
  button @click = "add()" = "Add"
  ul
    li each = "${items}" = "${idx + 1}. ${item}"

8) Agent workflow recommendation

  1. Draft .jsa using the syntax checklist.
  2. Run ast validate after each meaningful edit.
  3. Run ast json when tooling needs structural introspection.
  4. Prefer simple handlers and immutable updates for predictable diffs.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.