Drive an installed LaRuche App through its declared actions, never its files.
日本語の概要は準備中です。原文の説明を表示しています。
Build throwaway HTML mockups so the user can compare design variants.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Design arguments are unwinnable in prose. "Cleaner", "more modern", "less busy" mean different things to everybody in the room. Build two or three real screens instead, put them side by side, and the argument settles itself in ten seconds.
The output is disposable HTML the user can click, not a component you would ship. If a sketch is good enough to keep, that is the signal to rebuild it properly, not to promote it.
Reach for this on "show me what this could look like", "sketch this screen", "a couple of takes on the layout", "before I build it". Do not use it when the design is already decided, when the user asked for the production component, or when what they want is a diagram.
Ask one question at a time, and reflect the answer back before the next. Skip whatever the user already gave you.
Two or three variants. Never one, because one is a proposal rather than a choice, and the user ends up critiquing instead of choosing. Rarely four: past three, nobody can hold the differences in mind.
Each variant commits to a different STANCE, not a different accent colour. Pick one axis and go to the ends of it:
| Axis | Ends |
|---|---|
| Density | compact, airy, ultra-dense |
| Emphasis | content first, action first, tool first |
| Aesthetic | editorial, utilitarian, playful |
| Layout | one column, sidebar, split pane |
Three variants that differ only in shade are one variant with a colour picker. If you cannot say in a sentence what each one BELIEVES, they are not different enough.
Name them for the stance, and number the round:
sketches/
001-calm-editorial/index.html + README.md
001-utilitarian-dense/index.html + README.md
001-playful-split/index.html + README.md
One self-contained HTML file per variant. Inline <style>, no build step, no bundler, no
framework unless it arrives from a CDN in one line.
A reasonable starting point:
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
color: #1a1a1a; background: #fafafa; line-height: 1.5;
}
</style>
Write them with file_write, using ABSOLUTE paths:
shell_exec(command="mkdir -p sketches/001-calm-editorial")
file_write(path="C:/dev/project/sketches/001-calm-editorial/index.html", content="<!doctype html>...")
file_write(path="C:/dev/project/sketches/001-calm-editorial/README.md", content="## Variant: calm editorial\n...")
This is the step everyone skips, and it is the one that matters. You cannot tell whether a layout works by reading the HTML you just wrote.
Serve the folder, then look. There is one browser tool, browser, and it takes an
action. It refuses anything that is not http:// or https://, so a file:// path
comes back as URL must start with http:// or https://. Start a server once, at the
sketches root, and leave it running for the whole session:
shell_exec(command="Start-Process python -ArgumentList '-m','http.server','8765' -WorkingDirectory sketches -WindowStyle Hidden")
browser(action="navigate", url="http://localhost:8765/001-calm-editorial/index.html")
browser(action="screenshot")
The server has to detach, or it dies with the call. shell_exec kills whatever it
started when it returns, and gives up after five minutes anyway. A plain
python -m http.server therefore blocks the call and is gone before you can navigate to
it. Start-Process on Windows, nohup ... & on Linux and macOS.
action: "screenshot" hands the image straight back to you. There is no output_path and
no second step: you do not save it and read it again, you look at what the call returned.
browser_navigate and browser_screenshot do not exist. They were separate tools once
and were replaced by the single browser tool above. Calling either one fails.
Fix what the screenshot shows before moving to the next variant: collapsed flex containers, text over text, a font that never loaded, a card that escaped its grid. Repeat per variant.
## Variant: calm editorial
### The stance
One sentence on the principle this variant commits to.
### Choices
- Layout, typography, colour, interaction
### Trade-offs
- Strong at:
- Weak at:
### Best for
- The user or situation this genuinely serves
The trade-off section is the point. A variant with no weaknesses has not committed to anything.
| | Calm editorial | Utilitarian dense | Playful split |
|---|---|---|---|
| Density | low | high | medium |
| Primary action visible | low | high | medium |
| Scannability | high | medium | low |
| Feel | calm, trusted | sharp, tool-like | inviting |
**Recommendation:** utilitarian dense, if these are daily power users. Calm editorial if
most visits are first visits. Playful split is the weakest of the three: it reaches for
both and commits to neither.
Say which one you would pick and why. A neutral table hands the decision back with more to read and no help. The user can overrule a recommendation; they cannot overrule an absence of one.
Then let them choose, ask for a hybrid, or send you round again.
/* sketches/themes/tokens.css */
:root {
--bg: #fafafa;
--fg: #1a1a1a;
--accent: #0066ff;
--muted: #666;
--radius: 8px;
}
Three colours and one font are enough for something disposable. A full design system in a throwaway sketch is time spent on the wrong artefact.
When sketches exist and the user asks what is missing:
Propose two to four, named, and let the user pick.
sketches/ without asking. Most repositories want it ignored.file_write. They land in the server's working directory, not the
project.The screenshot is blank or white. The page needs JavaScript that has not run, or the
path is wrong. Confirm the file exists with file_read first; a typo in an absolute path
renders as an empty page rather than an error.
browser refuses the URL. It was a file:// path. There is no longer any way to open
a local file directly: serve the directory over HTTP first, as in section 4.
The page is ERR_CONNECTION_REFUSED. The server did not survive the call that started
it. See section 4: it has to be detached, not run in the foreground.
The CDN did not load. The machine is offline or filtered. Fall back to plain CSS; every variant here should survive without a network anyway.
The user likes parts of two variants. That is the sketch working. Build the hybrid as a new numbered round rather than editing either original: the comparison is the record of how the decision was reached.
The user cannot choose. The variants are too close, or none serves the one action from step 1. Go back to that answer and build something that takes a real position against it.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Drive an installed LaRuche App through its declared actions, never its files.
日本語の概要は準備中です。原文の説明を表示しています。
Find academic papers on arXiv, with citation counts and BibTeX.
日本語の概要は準備中です。原文の説明を表示しています。
Render text or an image as ASCII art for terminal-friendly output.
日本語の概要は準備中です。原文の説明を表示しています。
Track RSS/Atom feeds and blogs via blogwatcher-cli.
日本語の概要は準備中です。原文の説明を表示しています。
Drive a real web browser: navigate, read, find, click, fill, screenshot
日本語の概要は準備中です。原文の説明を表示しています。
Measure a codebase: lines of code, language mix, and symbol lookups.
日本語の概要は準備中です。原文の説明を表示しています。