← Commit history
SKILL.md+8−13@@ -1,14 +1,9 @@ --- name: building-adom-apps description: >-- How to build software the Adom (AI-first) way, so the apps, CLIs, and tools every Adom user writes are a- joy for an AI agent to drive. The centerpiece is HINTS: every CLI returns OK:/ERROR: + Hint: lines (and a- JSON {status,data,hints[]} envelope) so your tool teaches the agent what to do next at the exact moment it- needs to know, more reliable than skills, memory, or system prompts, which get read once and compacted- away. Read this BEFORE writing any Adom CLI, app, or tool. Routes to the four pillars: hints, CLI design,- app creation, and UI design. Use when the user says: write a CLI, build an Adom app, create a tool or- bridge, add a command, make an app for the wiki, ai-first code, return hints, hint lines, cli design, ui- design, app creator, how should my tool talk to the AI.+ How to build Adom apps, CLIs and tools an AI can drive: OK:/ERROR: output with Hint: lines and a+ hints[] envelope, routing to CLI design, app creation and UI design. Use when the user says+ write a CLI, build an Adom app, create a tool or bridge, add a command, or return hints. --- # Building Adom Apps (the AI-first way)@@ -39,8 +34,8 @@ The agent reads that in the fresh tool output, in-context and unmissable, and fi re-read required. **Hints are read-at-the-moment-of-need; skills are read-once.** It is the single most reliable steering channel you have, more than skills, memory, or the system prompt. -> Full rationale, the channel-comparison table, and the relay case study live in the `ai-hints-in-clis`-> guide (in the `adom` skills hub) and `relay-hint-pattern`. This pack promotes them to the front door.+> This page is where the hints doctrine lives; the full CLI output contract (JSON envelope, exit codes,+> no-color-when-piped) is in `adom-cli-design`. ## What to put in a hint (not just error fixes) @@ -48,12 +43,12 @@ Hints are how your tool hands the agent everything it cannot be expected to reme - **What to do next** - the literal next command, flag, or file. - **How long this call takes / when it times out** - e.g. `Hint: this build runs ~90s and times out at 180s.`-- **How to check on a long-running call** - `Hint: poll status with` `adom-bridge-cli record_status {"id":"rec_8f2"}`.+- **How to check on a long-running call** - `Hint: poll status with` `adom-bridge desktop_record_status {"recordingId":"rec_8f2"}`. - **Pitfalls** - the foot-gun the agent is about to hit, and how to avoid it. - **Where to put files** - `Hint: write generated parts to ./adom_modules/<slug>/, not /tmp.` - **Async artifacts that arrive LATER** - `Hint: the screenshot will be dropped at ./shots/iter-3.png in ~2s; watch for it with a Monitor.` - **The SHAPE of what is coming back** - `Hint: screenshots[] includes child windows; an error dialog is usually a child of the parent hwnd.`-- **Correct-pattern teaching** - when the agent does it the wrong way, hint the right way: `Hint: use` `adom-bridge-cli desktop_screenshot_screen` `instead of curling the relay directly.`+- **Correct-pattern teaching** - when the agent does it the wrong way, hint the right way: `Hint: use` `adom-bridge desktop_screenshot_screen` `instead of curling the relay directly.` If you ever wish the agent "would just know" something, that is a hint waiting to be written. @@ -84,7 +79,7 @@ The whole point is that docs (including this one) get skipped. So the pattern is | **Any CLI** | the HINTS sections above + [`adom-cli-design`](https://wiki.adom.inc/adom/adom-cli-design) | OK:/ERROR: + JSON companion, `--json` for machines / pretty for humans, no-color-when-piped, exit codes, subcommand layout, `health` + `install` subcommands. | | **A web app** | [`app-creator`](https://wiki.adom.inc/adom/app-creator) | A mini web server that renders its UI in a Hydrogen webview tab. | | **The UI** | `adom-ui-design` + [`adom-ui-linter`](https://wiki.adom.inc/adom/adom-ui-linter) | The Adom UI design system + the deterministic UI/CLI/skill compliance linter. |-| **Hints (always)** | the HINTS sections above + `ai-hints-in-clis` | The breakthrough: your tool teaches the agent from its own output. |+| **Hints (always)** | the HINTS sections above | The breakthrough: your tool teaches the agent from its own output. | **Bottom line:** write the app so the agent never has to guess. Status-prefix every output, emit a `Hint:` on every error and every non-obvious next step, return a `hints[]` array in `--json`, and let the linter enforce
package.json+16−1@@ -3,7 +3,8 @@ "slug": "building-adom-apps", "title": "Building Adom Apps", "brief": "Build software the AI can drive. Hints are the breakthrough.",- "version": "1.0.5",+ "version": "1.0.6",+ "changelog": "1.0.6: skill cleanup: a shorter topic-scoped description, examples use the adom-bridge CLI (adom-bridge-cli is a retired alias), and pointers to the nonexistent ai-hints-in-clis and relay-hint-pattern guides are removed; the package now lists sample prompts.", "description": "How to build software the Adom (AI-first) way so every app, CLI, and tool is a joy for an AI agent to drive. The centerpiece is hints: every CLI returns OK:/ERROR: + Hint: lines and a JSON hints[] envelope, so your tool teaches the agent what to do next at the exact moment it needs to know, which is more reliable than skills, memory, or system prompts. Routes to the four pillars: hints, CLI design, app creation, and UI design.", "tags": [ "ai-agent",@@ -42,6 +43,20 @@ "how to write code for adom" ], "discovery_pitch": "Build software the AI can actually drive: status-prefixed output, a Hint: on every error, and a hints[] array, enforced by the linter.",+ "sample_prompts": [+ {+ "label": "Write a CLI",+ "prompt": "I want to write a CLI for my Adom tool, how should its output look?"+ },+ {+ "label": "Add hints",+ "prompt": "make my tool's errors return Hint: lines the AI can follow"+ },+ {+ "label": "Build an app",+ "prompt": "build an Adom app for browsing my test results"+ }+ ], "hero": { "type": "image", "path": "screenshots/hero.png"
page.json+17−2@@ -3,7 +3,7 @@ "slug": "building-adom-apps", "title": "Building Adom Apps", "brief": "Build software the AI can drive. Hints are the breakthrough.",- "version": "1.0.5",+ "version": "1.0.6", "description": "How to build software the Adom (AI-first) way so every app, CLI, and tool is a joy for an AI agent to drive. The centerpiece is hints: every CLI returns OK:/ERROR: + Hint: lines and a JSON hints[] envelope, so your tool teaches the agent what to do next at the exact moment it needs to know, which is more reliable than skills, memory, or system prompts. Routes to the four pillars: hints, CLI design, app creation, and UI design.", "tags": [ "ai-agent",@@ -51,5 +51,20 @@ "author": { "name": "John Lauer", "email": "[email protected]"- }+ },+ "changelog": "1.0.6: skill cleanup: a shorter topic-scoped description, examples use the adom-bridge CLI (adom-bridge-cli is a retired alias), and pointers to the nonexistent ai-hints-in-clis and relay-hint-pattern guides are removed; the package now lists sample prompts.",+ "sample_prompts": [+ {+ "label": "Write a CLI",+ "prompt": "I want to write a CLI for my Adom tool, how should its output look?"+ },+ {+ "label": "Add hints",+ "prompt": "make my tool's errors return Hint: lines the AI can follow"+ },+ {+ "label": "Build an app",+ "prompt": "build an Adom app for browsing my test results"+ }+ ] }