holyagent 0.0.0-stage → 0.3.3-bootstrap.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/agents/explorer-lookup-headless-screen.md +126 -0
  2. package/agents/explorer-lookup-screen.md +122 -0
  3. package/agents/explorer-lookup.md +122 -0
  4. package/agents/explorer-map-headless-screen.md +125 -0
  5. package/agents/explorer-map-screen.md +121 -0
  6. package/agents/explorer-map.md +121 -0
  7. package/agents/explorer-trace-headless-screen.md +129 -0
  8. package/agents/explorer-trace-screen.md +125 -0
  9. package/agents/explorer-trace.md +125 -0
  10. package/agents/librarian-lookup-headless-screen.md +132 -0
  11. package/agents/librarian-lookup-screen.md +128 -0
  12. package/agents/librarian-lookup.md +128 -0
  13. package/agents/librarian-research-headless-screen.md +132 -0
  14. package/agents/librarian-research-screen.md +128 -0
  15. package/agents/librarian-research.md +128 -0
  16. package/agents/reviewer-artifact-headless-screen.md +158 -0
  17. package/agents/reviewer-artifact-screen.md +154 -0
  18. package/agents/reviewer-artifact.md +154 -0
  19. package/agents/reviewer-audit-headless-screen.md +124 -0
  20. package/agents/reviewer-audit-screen.md +120 -0
  21. package/agents/reviewer-audit.md +120 -0
  22. package/agents/reviewer-code-headless-screen.md +180 -0
  23. package/agents/reviewer-code-screen.md +176 -0
  24. package/agents/reviewer-code.md +176 -0
  25. package/agents/reviewer-security-headless-screen.md +138 -0
  26. package/agents/reviewer-security-screen.md +134 -0
  27. package/agents/reviewer-security.md +134 -0
  28. package/agents/reviewer-testing-headless-screen.md +173 -0
  29. package/agents/reviewer-testing-screen.md +169 -0
  30. package/agents/reviewer-testing.md +169 -0
  31. package/agents/reviewer-visual-headless-screen.md +161 -0
  32. package/agents/reviewer-visual-screen.md +157 -0
  33. package/agents/reviewer-visual.md +157 -0
  34. package/agents/worker-debugging-headless-screen.md +175 -0
  35. package/agents/worker-debugging-screen.md +171 -0
  36. package/agents/worker-debugging.md +171 -0
  37. package/agents/worker-implementation-headless-screen.md +191 -0
  38. package/agents/worker-implementation-screen.md +187 -0
  39. package/agents/worker-implementation.md +187 -0
  40. package/agents/worker-integration-headless-screen.md +172 -0
  41. package/agents/worker-integration-screen.md +168 -0
  42. package/agents/worker-integration.md +168 -0
  43. package/agents/worker-mechanical-headless-screen.md +176 -0
  44. package/agents/worker-mechanical-screen.md +172 -0
  45. package/agents/worker-mechanical.md +172 -0
  46. package/agents/worker-operations-headless-screen.md +130 -0
  47. package/agents/worker-operations-screen.md +126 -0
  48. package/agents/worker-operations.md +126 -0
  49. package/agents/worker-validation-headless-screen.md +128 -0
  50. package/agents/worker-validation-screen.md +124 -0
  51. package/agents/worker-validation.md +124 -0
  52. package/agents/worker-visual-headless-screen.md +211 -0
  53. package/agents/worker-visual-screen.md +207 -0
  54. package/agents/worker-visual.md +207 -0
  55. package/extensions/holyagent.js +20006 -0
  56. package/families/gpt-6/agents/explorer-lookup-headless-screen.md +113 -0
  57. package/families/gpt-6/agents/explorer-lookup-screen.md +109 -0
  58. package/families/gpt-6/agents/explorer-lookup.md +109 -0
  59. package/families/gpt-6/agents/explorer-map-headless-screen.md +113 -0
  60. package/families/gpt-6/agents/explorer-map-screen.md +109 -0
  61. package/families/gpt-6/agents/explorer-map.md +109 -0
  62. package/families/gpt-6/agents/explorer-trace-headless-screen.md +113 -0
  63. package/families/gpt-6/agents/explorer-trace-screen.md +109 -0
  64. package/families/gpt-6/agents/explorer-trace.md +109 -0
  65. package/families/gpt-6/agents/librarian-lookup-headless-screen.md +115 -0
  66. package/families/gpt-6/agents/librarian-lookup-screen.md +111 -0
  67. package/families/gpt-6/agents/librarian-lookup.md +111 -0
  68. package/families/gpt-6/agents/librarian-research-headless-screen.md +115 -0
  69. package/families/gpt-6/agents/librarian-research-screen.md +111 -0
  70. package/families/gpt-6/agents/librarian-research.md +111 -0
  71. package/families/gpt-6/agents/reviewer-artifact-headless-screen.md +148 -0
  72. package/families/gpt-6/agents/reviewer-artifact-screen.md +144 -0
  73. package/families/gpt-6/agents/reviewer-artifact.md +144 -0
  74. package/families/gpt-6/agents/reviewer-audit-headless-screen.md +111 -0
  75. package/families/gpt-6/agents/reviewer-audit-screen.md +107 -0
  76. package/families/gpt-6/agents/reviewer-audit.md +107 -0
  77. package/families/gpt-6/agents/reviewer-code-headless-screen.md +173 -0
  78. package/families/gpt-6/agents/reviewer-code-screen.md +169 -0
  79. package/families/gpt-6/agents/reviewer-code.md +169 -0
  80. package/families/gpt-6/agents/reviewer-security-headless-screen.md +122 -0
  81. package/families/gpt-6/agents/reviewer-security-screen.md +118 -0
  82. package/families/gpt-6/agents/reviewer-security.md +118 -0
  83. package/families/gpt-6/agents/reviewer-testing-headless-screen.md +163 -0
  84. package/families/gpt-6/agents/reviewer-testing-screen.md +159 -0
  85. package/families/gpt-6/agents/reviewer-testing.md +159 -0
  86. package/families/gpt-6/agents/reviewer-visual-headless-screen.md +153 -0
  87. package/families/gpt-6/agents/reviewer-visual-screen.md +149 -0
  88. package/families/gpt-6/agents/reviewer-visual.md +149 -0
  89. package/families/gpt-6/agents/worker-debugging-headless-screen.md +168 -0
  90. package/families/gpt-6/agents/worker-debugging-screen.md +164 -0
  91. package/families/gpt-6/agents/worker-debugging.md +164 -0
  92. package/families/gpt-6/agents/worker-implementation-headless-screen.md +180 -0
  93. package/families/gpt-6/agents/worker-implementation-screen.md +176 -0
  94. package/families/gpt-6/agents/worker-implementation.md +176 -0
  95. package/families/gpt-6/agents/worker-integration-headless-screen.md +161 -0
  96. package/families/gpt-6/agents/worker-integration-screen.md +157 -0
  97. package/families/gpt-6/agents/worker-integration.md +157 -0
  98. package/families/gpt-6/agents/worker-mechanical-headless-screen.md +165 -0
  99. package/families/gpt-6/agents/worker-mechanical-screen.md +161 -0
  100. package/families/gpt-6/agents/worker-mechanical.md +161 -0
  101. package/families/gpt-6/agents/worker-operations-headless-screen.md +122 -0
  102. package/families/gpt-6/agents/worker-operations-screen.md +118 -0
  103. package/families/gpt-6/agents/worker-operations.md +118 -0
  104. package/families/gpt-6/agents/worker-validation-headless-screen.md +115 -0
  105. package/families/gpt-6/agents/worker-validation-screen.md +111 -0
  106. package/families/gpt-6/agents/worker-validation.md +111 -0
  107. package/families/gpt-6/agents/worker-visual-headless-screen.md +201 -0
  108. package/families/gpt-6/agents/worker-visual-screen.md +197 -0
  109. package/families/gpt-6/agents/worker-visual.md +197 -0
  110. package/families/gpt-6/skills/ci-watch/SKILL.md +34 -0
  111. package/families/gpt-6/skills/desktop-design/SKILL.md +144 -0
  112. package/families/gpt-6/skills/dev-server/SKILL.md +51 -0
  113. package/families/gpt-6/skills/evidence-judging/SKILL.md +37 -0
  114. package/families/gpt-6/skills/instruction-writing/SKILL.md +49 -0
  115. package/families/gpt-6/skills/mobile-design/SKILL.md +144 -0
  116. package/families/gpt-6/skills/state-mode/SKILL.md +17 -0
  117. package/families/gpt-6/skills/tui-design/SKILL.md +162 -0
  118. package/families/gpt-6/skills/user-busy/SKILL.md +16 -0
  119. package/families/gpt-6/skills/visual-judging/SKILL.md +47 -0
  120. package/families/gpt-6/skills/web-design/SKILL.md +161 -0
  121. package/package.json +40 -4
  122. package/prompts/code-review.md +35 -0
  123. package/prompts/security-review.md +35 -0
  124. package/scripts/empty-bunfig.toml +4 -0
  125. package/scripts/holyagent +45 -0
  126. package/scripts/holyagent.js +29047 -0
  127. package/scripts/just-bash.js +90614 -0
  128. package/scripts/setup-tui.js +4334 -0
  129. package/skills/ci-watch/SKILL.md +34 -0
  130. package/skills/desktop-design/SKILL.md +132 -0
  131. package/skills/dev-server/SKILL.md +51 -0
  132. package/skills/evidence-judging/SKILL.md +37 -0
  133. package/skills/instruction-writing/SKILL.md +44 -0
  134. package/skills/mobile-design/SKILL.md +132 -0
  135. package/skills/state-mode/SKILL.md +17 -0
  136. package/skills/tui-design/SKILL.md +150 -0
  137. package/skills/user-busy/SKILL.md +16 -0
  138. package/skills/visual-judging/SKILL.md +45 -0
  139. package/skills/web-design/SKILL.md +149 -0
  140. package/README.md +0 -3
@@ -0,0 +1,34 @@
1
+ ---
2
+ # Generated by packages/integrations/pi/build.ts from packages/runtime/src/instructions/kimi-k3.1/skills/ci-watch/SKILL.md; edit the source and rebuild.
3
+ name: ci-watch
4
+ description: "Use when a branch or PR has been pushed and its CI needs watching or judging, its merge state is in question, or a review bot has commented. Holds how the root watches checks, aggregates results for the current head, diagnoses failures and decides merge-readiness."
5
+ ---
6
+
7
+ # CI
8
+
9
+ ## Watch
10
+
11
+ Run `gh pr checks <n> --watch` as a background process through the process tool of `@aliou/pi-processes`, which is the intended path: it prints checks as they change and ends when they settle (exit 0 when all pass, 1 when one fails), and the tool wakes you when the process exits. That wake-up is the only CI wait: never poll, sleep or loop.
12
+
13
+ If your tool list has no process tool, or it does not wake you when the process exits, run the same command once in the foreground, with `timeout_ms` in the script's first-line `// @options:` set past the longest CI run you expect. A call that times out leaves the gate Unknown; never repeat it in a loop.
14
+
15
+ - For a commit without a PR, read `gh run list --commit <sha>`.
16
+ - `gh pr view <n> --json mergeStateStatus,reviewDecision` gives the merge state and review decision.
17
+
18
+ ## Judge
19
+
20
+ - Aggregate in this order: Failed, Unknown, Pending, Passed. Missing or unreadable data is Unknown, in-progress checks are Pending, and skipped or neutral results satisfy branch protection but are not validation and never make Passed alone.
21
+ - A snapshot belongs to one head SHA. After a push or merge-forward, watch the new SHA; an old approval or merge-state read is history.
22
+ - A repository with no CI workflow has the gate Unknown (none configured); finish on local gates and independent review. A watch that ends without a result leaves the gate Unknown, since no data is Unknown, not Passed.
23
+
24
+ ## Diagnose
25
+
26
+ - Read the current attempt's logs (`gh run view <id> --log-failed`).
27
+ - After the same gate fails twice, reproduce it with the repository's own script before pushing again.
28
+ - Call a failure environmental only after reproducing it on the base; one the base lacks is the change's.
29
+
30
+ ## Decide
31
+
32
+ - A PR is merge-ready when independent review of that head left no open blockers and its CI is Passed. Merging waits until the user names it, so report the PR as ready to merge and do not ask whether to merge.
33
+ - Record an unresolved review thread or a merge state other than clean in the PR's task and the final report.
34
+ - Treat review-bot findings as claims to verify: fix the real ones with review, and answer the rest on the thread when replying is authorized.
@@ -0,0 +1,132 @@
1
+ ---
2
+ # Generated by packages/integrations/pi/build.ts from packages/runtime/src/instructions/kimi-k3.1/skills/desktop-design/SKILL.md; edit the source and rebuild.
3
+ name: desktop-design
4
+ description: "Use when building, reshaping or judging the visual design of a desktop app on Windows, macOS or GNOME. Holds the shared design core, rules shared by desktop platforms, a Windows, a macOS and a GNOME section, a refuse list and the capture checklist."
5
+ ---
6
+
7
+ # Desktop design
8
+
9
+ Rules for desktop apps, judged on what renders. Apply the shared part and the section of each platform the app ships on; never carry one platform's conventions to another, and keep the native window chrome in every capture.
10
+
11
+ ## Shared core
12
+
13
+ Judge every rule on the rendered result, from the captures. The one exception is the rules under Direction before code, which are checked as a plan in the worker's report or `DESIGN.md`, not on a render.
14
+
15
+ Two tags mark rules that are not judged from a capture:
16
+
17
+ - `(behavior check)` marks a rule no capture can show (a file, a process, an input sequence). Worker.operations runs it and reports it, and nobody infers it from a still.
18
+ - `(preference)` marks taste: list it, do not repair it.
19
+
20
+ A violation of any other rule is judged by this definition:
21
+
22
+ A discrepancy is material, and starts a repair whatever its size, when it affects any of these: acceptance; hierarchy or composition; legibility (cramped, overlapping, clipped or disappearing text); responsiveness at a viewport or size the criteria list; whether text and numbers state the content correctly (a title that misstates what it covers); accessibility; interaction correctness; adherence to a reference; obvious production quality. Unnecessary text, headings, cards or badges are design defects. Only pure preference, with none of these effects, stays unrepaired: list it apart, marked optional.
23
+
24
+ A number is binding only where a platform guideline fixes it; every other number is a default, marked `(default)`, that the design may override with a stated reason.
25
+
26
+ Apply the skill's capture checklist on the final captures: the worker before reporting, the reviewer in its findings and the root in its own final pass. Check your own work as it takes shape, from captures wherever the environment can produce them. Report only checks actually run, and name each check not run.
27
+
28
+ ### Direction before code
29
+
30
+ - When the brief leaves out the subject, the audience or the main job, confirm them with the user when one can answer, and otherwise state them as a proposal in the plan; remembered preferences or project context are a starting hint. The brief's own words outrank every avoid list below.
31
+ - Let the subject supply the look: its trade, materials and idiom decide the visual choices, and the brief's real content stays in the work from start to finish. A ferry timetable and a toddler's game should look nothing alike.
32
+ - Choose palette, type and layout on purpose and for this brief alone, accept visual risk when it earns its place, and treat each project as a chance to try something new instead of repeating what you do best.
33
+ - Sketch a plan before building, in this order:
34
+ 1. A small named palette: four to six colors, each with a value and a role.
35
+ 2. The type roles.
36
+ 3. A layout idea in one sentence, compared through rough ASCII wireframes, with how the content aligns (left, centered or justified).
37
+ 4. Two or three principles.
38
+ 5. An audit with two questions: "would I make this for any similar product?" and the competitor test (drop an idea that still works with a competitor's name on it).
39
+ 6. A rewrite of what fails, with a note of what changed and why.
40
+ 7. Code only from the revised plan.
41
+ - Say whether this is a refinement, which preserves the existing design, or a redesign, which replaces it.
42
+
43
+ ### Platform fidelity over invention
44
+
45
+ - Use the platform's own components, navigation and conventions unless the brief gives a reason not to, and brand through the layer the platform leaves open.
46
+ - Ported-from-a-website test: a fluent user of the platform never pauses at an off-spec control.
47
+ - Rules here are platform concepts. Detect the project's stack and map each rule onto it; never assume one.
48
+
49
+ ### Design record
50
+
51
+ - Read `DESIGN.md` at the project root before UI work and create or update it after. It holds: platform and stack, direction, color roles, type roles, spacing and shape, components and states, do and don't, and a brief log of the options already tried, so later passes explore new ground. Note a changed decision instead of silently overwriting it. (behavior check)
52
+
53
+ ### Spend boldness in one place
54
+
55
+ - Make one detail per screen the memorable one and keep the rest calm and restrained. Strip ornament that does nothing for the brief, and before finishing remove one accessory more, filling the gap with scale, real content or a real image so the screen is not left thin. (preference)
56
+ - A labeled gray placeholder beats drawn art or emoji used as icons. (preference)
57
+
58
+ ### Structure and content
59
+
60
+ - A border, divider, outline, label, eyebrow or number belongs only where it tells the reader something true about the content. Numbers mark a real sequence (steps, a timeline) and nothing else, so confirm it is one first. An eyebrow over every heading, all-caps labels and labels that say nothing are decoration, not structure.
61
+ - With no real content in the brief, invent specific copy from the subject: generic words flatten a design as much as a generic layout does.
62
+
63
+ ### Copy
64
+
65
+ - Interface text exists to help someone understand and act, so treat it as part of the design. Decide what the screen must convey and the shortest way to convey it, with one job for each piece of text.
66
+ - Speak in the user's terms, calling a thing what the user calls it ("saved searches", not "query presets"). Say what a thing is or does without selling it; concrete beats clever.
67
+ - Set text in sentence case unless the platform sets its own casing, leave out padding, keep the tone conversational and in step with the brand and its readers, and write in the active voice with everyday verbs.
68
+ - A control names its outcome ("Send invoice", not "Submit"), and each action carries one name from first label to confirmation: the Duplicate button leads to a "Duplicated" confirmation.
69
+ - When something fails or nothing is there yet, point the way. An error states what happened and how to recover, speaks as the interface and not as a person, and neither apologizes nor stays vague; an empty state invites the first action.
70
+
71
+ ### Quality floor, unannounced
72
+
73
+ - Text contrast is at least 4.5:1 and non-text control contrast at least 3:1. Color is never the only signal, and the colors work together as a palette.
74
+ - Every state exists and is captured where reachable: hover or press, focus, disabled, loading, empty, error and long content.
75
+ - The system's reduced-motion, larger-text and high-contrast settings, where the platform has them, change the render; under reduced motion, movement becomes a fade or nothing.
76
+
77
+ ## Shared desktop rules
78
+
79
+ - Design to the window, not the screen, and reflow smoothly at every width. Symptom: clipped or stranded content when the window narrows.
80
+ - Everything the pointer can do, the keyboard can do. Tab order follows visual order, arrows move inside composite controls, and a custom focusable element shows a visible focus indicator. (behavior check)
81
+ - Shortcuts are discoverable in menus and tooltips.
82
+ - The app follows the system light or dark theme, accent color, text scale and high-contrast mode. A hard-coded color that breaks high contrast is a defect.
83
+ - Desktop is denser than mobile, but frequent or high-consequence targets get more room.
84
+ - Settings are few, have good defaults, apply immediately and do not duplicate system options.
85
+
86
+ ## Windows
87
+
88
+ - Standard controls align to 40×40 epx and compact ones to 32×32 epx, on a 4 epx grid, with 8 epx between buttons.
89
+ - The title bar is 32 px high. Empty space drags the window, right-click shows the system menu, and double-click toggles maximize. (behavior check)
90
+ - Caption buttons sit at the right and stay fully visible, so the title truncates first. The bar dims when the window is inactive. Capture both.
91
+ - Direct manipulation comes first, then a command bar, and a menu bar for complex apps. Context menus hold secondary commands.
92
+ - Accelerators are Ctrl plus a letter and access keys are Alt plus a letter; F6 and Shift+F6 cycle the panes. (behavior check)
93
+ - Use the system font and its ramp, sentence case, semibold instead of bold, and no italics. The accent marks emphasis and state, sparingly.
94
+ - Mica is for windows and acrylic only for transient surfaces. Contrast themes are not dark mode and are captured on their own.
95
+
96
+ ## macOS
97
+
98
+ - System window frames and controls, never custom chrome. Default control size is 28×28 pt with 20×20 pt as the minimum.
99
+ - Text is 13 pt by default with 10 pt as the minimum. There is no dynamic text size, so use the system font roles.
100
+ - The menu bar keeps the standard order: App, File, Edit, Format, View, the app's own menus, Window, Help. Unavailable items are dimmed, not hidden.
101
+ - Settings lives in the app menu and opens with Cmd+comma; the toolbar has no settings button. Standard shortcuts keep their meaning, and one is reused only when its standard action does not exist in the app. Full Keyboard Access works. (behavior check)
102
+ - Toolbars are customizable and monochrome over colorful content, with short titles that are never the app name.
103
+ - Sheets are modal; a long task gets a window. Glass belongs to the control layer, and content uses standard materials with vibrancy.
104
+
105
+ ## GNOME
106
+
107
+ - The header bar puts main actions at the start, the title or view switcher in the center and menus at the end. Controls are few, flat icon buttons with tooltips, and drag space always remains.
108
+ - The primary menu sits at the end of the header bar and holds Preferences, Keyboard Shortcuts, Help and About, with no Quit or Close item.
109
+ - Shortcuts use Ctrl, and Shift+Ctrl reverses; never Alt (access keys) or Super (system). F10 opens the menu and Esc closes transient views. (behavior check)
110
+ - Design from the narrowest size up. Support at least 1024×600, and down to 360×294 for phone-capable apps. Content width is capped in large windows.
111
+ - Use the system font and text styles, with no italics, no all caps and no text over images.
112
+ - Default to light and follow the system preference; offer light, dark and system when an in-app choice exists, and never hard-code an accent the system provides.
113
+ - Settings use boxed lists with one control per row, two at most.
114
+
115
+ ## Refuse list
116
+
117
+ Unless the brief asks for it, avoid:
118
+
119
+ - custom window chrome or caption buttons
120
+ - one platform's menu bar, shortcuts or settings placement on another
121
+ - a hamburger menu that holds the primary commands of a desktop app
122
+ - hard-coded colors that ignore the system theme and high contrast
123
+ - a mobile layout stretched across a wide window
124
+
125
+ ## Capture checklist
126
+
127
+ Capture narrow, default and wide window widths. At each width capture:
128
+
129
+ - light, dark and high contrast;
130
+ - 150% or 200% text scale, where the platform has a text scale.
131
+
132
+ Also capture a keyboard-only focus traversal, the open menus, an inactive window and a dialog or sheet. Show the native window chrome in every capture.
@@ -0,0 +1,51 @@
1
+ ---
2
+ # Generated by packages/integrations/pi/build.ts from packages/runtime/src/instructions/kimi-k3.1/skills/dev-server/SKILL.md; edit the source and rebuild.
3
+ name: dev-server
4
+ description: "Use when visual work needs a running, capturable render target: a web app or a static build over a URL, a terminal UI, a desktop app, or an Android or iOS app. Has Worker.operations detect the platform, start one target the visual specialists share and record how to reach, capture, vary and stop it, or report it blocked in this environment."
5
+ ---
6
+
7
+ # Render targets
8
+
9
+ Visual specialists that each start their own app collide on ports, sockets and emulators and waste minutes on startup, so one target per platform serves the whole piece of visual work. Detect the platform, never assume it. Every tool named below is an interchangeable example: use what the project and the machine provide. T3 Code's browser, preview and device tools belong to the visual specialists, and exist only when T3 Code's tools are enabled.
10
+
11
+ ## Detect
12
+
13
+ Have Worker.operations find the platform and stack from the project (manifests, build files, the documented run command) and record the signal it used. A project with several platforms gets one target each.
14
+
15
+ ## Target record
16
+
17
+ Keep one record per target in the task list under the visual work, so a resume or compaction still finds it. Put the record, not a bare URL, in the criteria of every Worker.visual and Reviewer.visual Assignment for the work. It holds:
18
+
19
+ - the id, the platform, and the detected stack with its signal;
20
+ - the working directory, the start command with its environment, the readiness probe and the address (URL, session, display or device);
21
+ - the capture command and its output folder;
22
+ - the supported variants, each with its set and reset commands and current value;
23
+ - the owner and process group, the stop command, and what stopping cleans up.
24
+
25
+ Give every socket, session, display, device and port a name unique to this work, so parallel targets never collide.
26
+
27
+ ## Start and share
28
+
29
+ 1. Check the task list for a target for this work. If one is there, run its readiness probe and reuse it; start a second only after the first is confirmed gone.
30
+ 2. Dispatch Worker.operations to start the target in the background per the record and wait for the probe. It reads this file with `read`, so put the record and this file's absolute path in its brief: the record carries the values, and this file's "Target record" section is the only list of its fields. Its report carries the completed record and says whether it started the target or reused one. Record that in the task list.
31
+ 3. Tell every visual specialist, as a constraint, to use that target and start none of its own. Worker.visual and Worker.operations produce the captures; Reviewer.visual has no shell, judges those captures (or for web inspects the URL through T3 Code's browser tools, when enabled) and lists the captures it judged from.
32
+ 4. A specialist that finds the target down, or no record in its criteria, reports the inspection as blocked; have Worker.operations restart it.
33
+
34
+ ## Platforms
35
+
36
+ Flags change between versions, so verify each against the installed one before relying on it.
37
+
38
+ - Web: the documented dev command, or for a static or single-file build a static file server over its output folder, answering at a URL. A headless browser varies the viewport, color scheme, reduced motion and forced colors, and takes screenshots.
39
+ - Terminal UI: run it in a terminal multiplexer session at a fixed size and send keys. Capture text frames with and without escape sequences, and render image frames through a scripted terminal recorder. Vary the environment for color tiers, `NO_COLOR` and locale.
40
+ - Linux desktop: run under a virtual X display or a headless Wayland compositor, with screenshots and synthetic input. Rendering is software-only, so an app that needs the GPU fails. Theme and scale variables are toolkit-specific, so read them from the detected toolkit.
41
+ - Android: an SDK emulator, fast only with KVM, so check acceleration first. A debug bridge sets the night mode, font scale and display size variants and takes screenshots.
42
+ - iOS: the Simulator, which runs on macOS with Xcode only. Its control tool sets appearance, content size and increased contrast, and takes screenshots.
43
+ - macOS and Windows desktop: only on a machine with an interactive desktop session; macOS also needs the Screen Recording permission.
44
+
45
+ ## Environment and blocked targets
46
+
47
+ A headless Linux machine or container fully supports web and terminal UI, supports Linux desktop with software rendering, supports Android only with KVM, and cannot run iOS, macOS or Windows targets. When a target cannot run, Worker.operations reports it blocked with the reason and what would unblock it (an interactive desktop session, KVM, a device). You then judge from the closest honest substitute, if any, and say so in the report: a web build of a native app is not the native render.
48
+
49
+ ## Stop
50
+
51
+ Only the owner stops a target. When the visual work ends (the review accepted, or the work abandoned), dispatch Worker.operations to stop it, naming the record. It stops the recorded process group only when it started it for this work, confirms the port, socket, session or device is released and reports; a target someone else started, which the start report marks as reused, stays running. Record that the target is stopped.
@@ -0,0 +1,37 @@
1
+ ---
2
+ # Generated by packages/integrations/pi/build.ts from packages/runtime/src/instructions/kimi-k3.1/skills/evidence-judging/SKILL.md; edit the source and rebuild.
3
+ name: evidence-judging
4
+ description: "Use when a specialist report carries a verdict the root must accept or reject: a blocking review finding, a research claim with conflicting sources or numbers, prose written for people, or a material design choice. Holds how the root judges each from compact evidence the specialists produce, so the heavy work stays on the smaller models."
5
+ ---
6
+
7
+ # Judging on evidence
8
+
9
+ You stay the judge and specialists do the heavy work. Judge from compact evidence a specialist produced (a reproduction, trace, quoted source, screenshot verdict or diff summary), never from raw logs or whole files: the evidence is small enough to weigh, and the tokens go to the cheaper models.
10
+
11
+ Find the verdict's kind below and apply its rule.
12
+
13
+ ## Review findings
14
+
15
+ A blocking finding starts a repair only with evidence:
16
+
17
+ - a reproduction, from a reviewer with a shell;
18
+ - a file:line trace (for a vulnerability, source to sink), from a reviewer without one;
19
+ - for a visual finding, a Reviewer.visual observation (viewport, interaction, visible result) or a finding of your own final pass that cites the capture path and what it shows.
20
+
21
+ Send an unproven finding back to the same reviewer for that evidence, since a claim that cannot be reproduced or traced is a guess and a repair on it risks a regression.
22
+
23
+ ## Research
24
+
25
+ Pick the authoritative source among conflicting ones, keep inference labeled as inference, and have a specialist re-derive any number before it is published or decided on, since a copied number carries its source's mistakes.
26
+
27
+ ## Prose for people
28
+
29
+ This covers user docs, the README, PR text and explanatory pages. Reviewer.artifact reviews it and you judge the excerpts it flags, because wording needs a reader's judgment but not your reading of the whole text.
30
+
31
+ ## Design
32
+
33
+ For a choice that changes contracts, architecture or dependencies, your brief asks an explorer for two or three short options with their trade-offs, and you pick or ask the user (`ask_user_question`), because such a choice is costly to undo. Routine choices stay with the writer.
34
+
35
+ ## Debugging
36
+
37
+ Accept a root cause only when the chain closes: a reproduction, the cause it shows, and a fix that makes the reproduction pass. A cause without the fix passing the reproduction is still a hypothesis.
@@ -0,0 +1,44 @@
1
+ ---
2
+ # Generated by packages/integrations/pi/build.ts from packages/runtime/src/instructions/kimi-k3.1/skills/instruction-writing/SKILL.md; edit the source and rebuild.
3
+ name: instruction-writing
4
+ description: "Use when you write or review model-facing text other than a brief: agent prompts, skills, instruction files and workflow-script prompts. Holds the rules drawn from Moonshot's prompting guidance for Kimi K3.1, each tagged with its source page."
5
+ ---
6
+
7
+ # Writing instructions
8
+
9
+ The tag after each rule names its page: P1 Best Practices for Prompts, P2 Kimi K3.1 Pro quickstart, P3 Build an Agent with Kimi K3, P4 Kimi K3 API Tool Calling Best Practices. A rule tagged "house" comes from this project and is not in those pages. A rule tagged with an author comes from the cited study.
10
+
11
+ ## Principles
12
+
13
+ - Write model-facing text in US English, terse and direct. (house)
14
+ - Say what you want explicitly: the model cannot read your mind, so name the action, the format and the threshold. (P1 "Write Clear Instructions")
15
+ - Write each model's instruction set from the `requirements/` tree, the model-agnostic behavior requirements, and the family's `guide.md`, and cover every id; change a behavior in the requirements first, then in the sets. (house)
16
+ - Keep each prompt section in its own file, so a change touches one section, the assembled order stays fixed and only the sections a situation needs are loaded. (house; P1 "Categorize to Identify Instructions Relevant to User Queries")
17
+ - Give the full task, intent and constraints, with the reason beside each rule, so the reader can apply it beyond the example. Say what to do rather than what to avoid, and scope each broad rule. (P1 "Including More Details in Your Request"; the positive phrasing is house)
18
+ - Write calmly in imperative verbs, with no capital-letter emphasis or "if in doubt" defaults, which push models to overreach. Give a concrete threshold instead of "important" or "minor". (house)
19
+ - Put the full task with its reasons in every brief. A brief for an agent that is not a holyagent specialist also carries three rules: keep working until the task is done, stop and report once it is done and checked, and run a real check before done. A holyagent specialist's own text already holds those three. (house)
20
+
21
+ ## Prompt shape
22
+
23
+ - Keep the system prompt to a role, a workflow and quality boundaries, and leave argument details to the tool description and schema: a long prompt that repeats tool behavior dilutes the rules that matter. (P3 "Design the Prompt")
24
+ - Assign the role in the system message. (P1 "Requesting the Model to Assume a Role")
25
+ - Write the workflow as numbered steps: explicit steps are easier to follow and give better output. (P1 "Clearly Define the Steps")
26
+ - Add a constraint when a format, compliance or audience need appears, not ahead of it. (P3 "Design the Prompt")
27
+ - Put situation-specific rules in a skill that loads when the situation arises, and leave them out of the always-on prompt. (P1 "Categorize to Identify Instructions Relevant to User Queries"; P3 "Custom Tools and Optimization")
28
+ - Separate instructions, context and inputs with consistent headings, lists or tags, and put long inputs before the question. (P1 "Using Delimiters"; the long-input placement is house, carried over from the Claude set)
29
+ - Show the output format you want. Add an example only for a style that is hard to describe, and make a few diverse ones then: general guidance is usually more efficient than showing every permutation. (P1 "Provide Examples of Desired Output")
30
+ - Set output length in paragraphs or bullets, not in words, which the model follows less precisely. (P1 "Specify the Desired Length")
31
+ - Keep what the runtime can enforce (required arguments, enums, allowed values) in the tool schema, not in prose. (P3 "Run and Troubleshoot")
32
+
33
+ ## Reasoning and tools
34
+
35
+ - Leave thinking effort to the route: thinking is always on, and `reasoning_effort` (low, high or max) is set before the conversation starts. The parameter is the documented control, so do not rely on prose such as "think harder" or "think less" to change it. (P2 "Reasoning effort" and "FAQ"; P4 "Pick the reasoning effort for the task")
36
+ - Ask for a short explanation or summary of actions, not the reasoning. The reasoning arrives in its own channel, and the answer carries the conclusion and its evidence. (P2 "Streaming"; the refusal risk of asking for reasoning is from the Claude set, by inference)
37
+ - Require a real check before "done" for runnable changes, not a syntax-only check or one that failed to start, and have the reader name any check it did not run. (house)
38
+ - Leave out text that discourages tool use. The model answers from memory unless told to retrieve, so tell the reader to look up facts that may have changed (versions, flags, limits, prices) even when it feels sure, without searching every question. (P4 "Use tool_choice to force first-turn retrieval"; the instruction is the prose stand-in, since forced tool use is not relied on here)
39
+ - Say when to delegate (large, independent, parallel work) and when to work directly: split the work into retrieve, analyze and deliver, give retrieval and deterministic work to tools and judgment to the model. Independent calls run together and dependent ones in order. (P3 "Break Down the Task")
40
+ - Mark outside text, such as pasted content, as data that may carry instructions the user did not write, and answer from supplied reference text, with a stated fallback when the answer is not in it. (P1 "Guide the Model to Use Reference Text"; the injection warning is house)
41
+
42
+ ## Context files
43
+
44
+ - When you write or edit a context file (AGENTS.md, CLAUDE.md or similar), leave out content that changes or that the agent can discover from the repository (code and documentation paths, directory listings, codebase overviews) and include only instructions the code, README and docs do not already give (conventions, non-functional requirements, commands and tools to use). The repository's own convention for context files comes first; change an existing file that departs from this only when the user asks. (Gloaguen et al., arXiv 2602.11988)
@@ -0,0 +1,132 @@
1
+ ---
2
+ # Generated by packages/integrations/pi/build.ts from packages/runtime/src/instructions/kimi-k3.1/skills/mobile-design/SKILL.md; edit the source and rebuild.
3
+ name: mobile-design
4
+ description: "Use when building, reshaping or judging the visual design of a phone or tablet app on iOS, iPadOS or Android. Holds the shared design core, rules shared by both platforms, an iOS and iPadOS section, an Android section, a refuse list and the capture checklist."
5
+ ---
6
+
7
+ # Mobile design
8
+
9
+ Rules for phone and tablet apps, judged on what renders. Apply the shared part and the section of each OS the app ships on; never carry one OS's conventions to the other.
10
+
11
+ ## Shared core
12
+
13
+ Judge every rule on the rendered result, from the captures. The one exception is the rules under Direction before code, which are checked as a plan in the worker's report or `DESIGN.md`, not on a render.
14
+
15
+ Two tags mark rules that are not judged from a capture:
16
+
17
+ - `(behavior check)` marks a rule no capture can show (a file, a process, an input sequence). Worker.operations runs it and reports it, and nobody infers it from a still.
18
+ - `(preference)` marks taste: list it, do not repair it.
19
+
20
+ A violation of any other rule is judged by this definition:
21
+
22
+ A discrepancy is material, and starts a repair whatever its size, when it affects any of these: acceptance; hierarchy or composition; legibility (cramped, overlapping, clipped or disappearing text); responsiveness at a viewport or size the criteria list; whether text and numbers state the content correctly (a title that misstates what it covers); accessibility; interaction correctness; adherence to a reference; obvious production quality. Unnecessary text, headings, cards or badges are design defects. Only pure preference, with none of these effects, stays unrepaired: list it apart, marked optional.
23
+
24
+ A number is binding only where a platform guideline fixes it; every other number is a default, marked `(default)`, that the design may override with a stated reason.
25
+
26
+ Apply the skill's capture checklist on the final captures: the worker before reporting, the reviewer in its findings and the root in its own final pass. Check your own work as it takes shape, from captures wherever the environment can produce them. Report only checks actually run, and name each check not run.
27
+
28
+ ### Direction before code
29
+
30
+ - When the brief leaves out the subject, the audience or the main job, confirm them with the user when one can answer, and otherwise state them as a proposal in the plan; remembered preferences or project context are a starting hint. The brief's own words outrank every avoid list below.
31
+ - Let the subject supply the look: its trade, materials and idiom decide the visual choices, and the brief's real content stays in the work from start to finish. A ferry timetable and a toddler's game should look nothing alike.
32
+ - Choose palette, type and layout on purpose and for this brief alone, accept visual risk when it earns its place, and treat each project as a chance to try something new instead of repeating what you do best.
33
+ - Sketch a plan before building, in this order:
34
+ 1. A small named palette: four to six colors, each with a value and a role.
35
+ 2. The type roles.
36
+ 3. A layout idea in one sentence, compared through rough ASCII wireframes, with how the content aligns (left, centered or justified).
37
+ 4. Two or three principles.
38
+ 5. An audit with two questions: "would I make this for any similar product?" and the competitor test (drop an idea that still works with a competitor's name on it).
39
+ 6. A rewrite of what fails, with a note of what changed and why.
40
+ 7. Code only from the revised plan.
41
+ - Say whether this is a refinement, which preserves the existing design, or a redesign, which replaces it.
42
+
43
+ ### Platform fidelity over invention
44
+
45
+ - Use the platform's own components, navigation and conventions unless the brief gives a reason not to, and brand through the layer the platform leaves open.
46
+ - Ported-from-a-website test: a fluent user of the platform never pauses at an off-spec control.
47
+ - Rules here are platform concepts. Detect the project's stack and map each rule onto it; never assume one.
48
+
49
+ ### Design record
50
+
51
+ - Read `DESIGN.md` at the project root before UI work and create or update it after. It holds: platform and stack, direction, color roles, type roles, spacing and shape, components and states, do and don't, and a brief log of the options already tried, so later passes explore new ground. Note a changed decision instead of silently overwriting it. (behavior check)
52
+
53
+ ### Spend boldness in one place
54
+
55
+ - Make one detail per screen the memorable one and keep the rest calm and restrained. Strip ornament that does nothing for the brief, and before finishing remove one accessory more, filling the gap with scale, real content or a real image so the screen is not left thin. (preference)
56
+ - A labeled gray placeholder beats drawn art or emoji used as icons. (preference)
57
+
58
+ ### Structure and content
59
+
60
+ - A border, divider, outline, label, eyebrow or number belongs only where it tells the reader something true about the content. Numbers mark a real sequence (steps, a timeline) and nothing else, so confirm it is one first. An eyebrow over every heading, all-caps labels and labels that say nothing are decoration, not structure.
61
+ - With no real content in the brief, invent specific copy from the subject: generic words flatten a design as much as a generic layout does.
62
+
63
+ ### Copy
64
+
65
+ - Interface text exists to help someone understand and act, so treat it as part of the design. Decide what the screen must convey and the shortest way to convey it, with one job for each piece of text.
66
+ - Speak in the user's terms, calling a thing what the user calls it ("saved searches", not "query presets"). Say what a thing is or does without selling it; concrete beats clever.
67
+ - Set text in sentence case unless the platform sets its own casing, leave out padding, keep the tone conversational and in step with the brand and its readers, and write in the active voice with everyday verbs.
68
+ - A control names its outcome ("Send invoice", not "Submit"), and each action carries one name from first label to confirmation: the Duplicate button leads to a "Duplicated" confirmation.
69
+ - When something fails or nothing is there yet, point the way. An error states what happened and how to recover, speaks as the interface and not as a person, and neither apologizes nor stays vague; an empty state invites the first action.
70
+
71
+ ### Quality floor, unannounced
72
+
73
+ - Text contrast is at least 4.5:1 and non-text control contrast at least 3:1. Color is never the only signal, and the colors work together as a palette.
74
+ - Every state exists and is captured where reachable: hover or press, focus, disabled, loading, empty, error and long content.
75
+ - The system's reduced-motion, larger-text and high-contrast settings, where the platform has them, change the render; under reduced motion, movement becomes a fade or nothing.
76
+
77
+ ## Shared mobile rules
78
+
79
+ - Adapt to the window size class, never the device, and name layout variants by class, not "tablet". Panes take the width they are given; extra width adds context and does not stretch content.
80
+ - System-bar and safe-area insets apply once per screen. Backgrounds draw edge to edge, and touch targets stay out of gesture areas. Symptom: content under a bar or doubled padding.
81
+ - Gestures supplement visible controls and never replace them.
82
+ - Refresh never clears existing content; skeletons are for the cold load only. Capture mid-refresh.
83
+ - Keyboard: "Next" moves through fields, and "Done" on the last dismisses the keyboard and keeps the text. (behavior check)
84
+ - After a refresh or rotation, focus and selection stay on the same item, not the same position. (behavior check)
85
+ - Haptics reach only the holder and sound reaches the room, so feedback scales with rarity. One action produces one feedback, never a doubled buzz or sound. (behavior check)
86
+ - Every interactive element has a label unique within its collection. A row reads as one announcement and exposes a multi-action row's actions by name. (behavior check)
87
+
88
+ ## iOS and iPadOS
89
+
90
+ - Targets are 44×44 pt. 28×28 pt is the stated minimum for dense controls. Pad about 12 pt around bezeled and about 24 pt around unbezeled elements.
91
+ - Use the system text styles, 17 pt by default and 11 pt at least, with no light weights. Text scales to at least 200%, custom fonts included.
92
+ - At accessibility text sizes truncate as little as possible, allow as many lines as needed, stack rows vertically and scale meaningful icons with the text. Capture that size.
93
+ - Tab bars hold sections, never actions. Never hide or disable a tab, avoid a "More" overflow, and use single-word labels.
94
+ - A visible Back button stays, and the edge swipe is a shortcut. On iPad prefer the tab bar, which may become a sidebar of at most two levels.
95
+ - A sheet holds one scoped task at a time. Cancel goes leading and Done trailing, never Cancel, Done and Back together, and a swipe-dismiss that would lose changes asks first. (behavior check)
96
+ - Liquid Glass (iOS 26 and later): glass is the control and navigation layer, never the content layer, and custom glass is not stacked on glass. Use the regular variant by default and the clear variant only over rich media. Tint only the primary action's background, and strip custom bar backgrounds and borders. Corners are concentric: inner radius equals outer radius minus padding.
97
+ - iOS 27 guidance on scroll edges, sidebars, tab bars, menus, search and icons is not encoded here; judge those on a render of the target OS.
98
+ - Color is semantic. Every custom color has light, dark and increased-contrast variants.
99
+ - Aim for 7:1 on small text, and offer no in-app appearance switch. (preference)
100
+ - Common actions use system symbols matched to the text weight.
101
+ - Motion is purposeful, optional and cancelable; under Reduce Motion movement becomes a fade. Capture with the setting on.
102
+
103
+ ## Android
104
+
105
+ - Window size classes in dp. Width: compact below 600, medium 600 to 839, expanded 840 to 1199, large 1200 to 1599, extra-large 1600 and up. Height: compact below 480, medium 480 to 899, expanded 900 and up. The layout is re-evaluated on every resize, fold or split-screen change. (behavior check)
106
+ - One primary navigation surface at a time. Compact uses a navigation bar. Medium uses a bar or a rail, by whether horizontal or vertical space matters more. Expanded and up use a rail. Prefer the expanded rail over a drawer, which Material 3 Expressive no longer recommends.
107
+ - Targets are at least 48×48 dp with 8 dp or more between them; pointer targets are at least 44 dp.
108
+ - Edge to edge is enforced from Android 15: content draws behind the system bars, bar icons keep contrast, interactive content is inset, and a scrim sits where content scrolls under a bar.
109
+ - Predictive back is on by default: the back swipe previews the destination and lands where the preview showed. Custom back behavior goes through the platform's back handling. (behavior check)
110
+ - Color and type use Material roles, never raw values. Type roles are Display, Headline, Title, Body and Label in large, medium and small; adjust line height and tracking before sizes. An "on" color sits on its paired fill, and container colors are fills, not text colors. Light and dark use the same roles. Contrast levels are standard, medium and high, and each is judged in light and dark.
111
+ - Choose components by behavior. Expressive motion is for a few moments and the rest stays calm. (preference)
112
+
113
+ ## Refuse list
114
+
115
+ Unless the brief asks for it, avoid:
116
+
117
+ - a card around every row, and a FAB for a minor action (preference)
118
+ - chips used as buttons
119
+ - a "Materialized" screen of radii and pastels (preference)
120
+ - iOS navigation patterns on Android, or Material navigation on iOS
121
+ - a hamburger drawer where an expanded rail fits
122
+ - a custom control where the system one exists (the ported-from-a-website test)
123
+
124
+ ## Capture checklist
125
+
126
+ Capture each size class the brief targets (at least compact and one wider class). For each class capture:
127
+
128
+ - light and dark;
129
+ - the largest standard text size and an accessibility text size;
130
+ - reduced motion on.
131
+
132
+ Also capture, on iOS, increased contrast; on both, a refresh in progress, a sheet or back transition, and the keyboard open. Capture both OSes when the app ships on both.
@@ -0,0 +1,17 @@
1
+ ---
2
+ # Generated by packages/integrations/pi/build.ts from packages/runtime/src/instructions/kimi-k3.1/skills/state-mode/SKILL.md; edit the source and rebuild.
3
+ name: state-mode
4
+ description: "Use before a clone's first Intent, to choose where holyagent state lives. Holds the signals that pick the state mode (branch, work or local) and the command that records it."
5
+ ---
6
+
7
+ # State mode
8
+
9
+ Once per clone, before the first Intent, set the mode with `holyagent state mode <mode>` (the `holyagent` wrapper, through bash); bare, it reads the mode (unset is `branch`). A mode moves no records, so change it only while the clone holds none.
10
+
11
+ Take the first signal that applies, in this order:
12
+
13
+ 1. The user's words.
14
+ 2. `local` when the repository is not the account owner's (a fork, no push access or another owner): state stays in the work tree, excluded through `.git/info/exclude`, in no commit, PR or remote branch. When git already tracks state there, `local` refuses: ask the user through `ask_user_question`, recommending a fork (where `local` applies), and record the answer.
15
+ 3. `work` when `git ls-files .holyagent ':!.holyagent/config.json'` lists files: `vcs commit` stages changed state files with the work.
16
+ 4. `local`, likewise, when CONTRIBUTING, AGENTS.md or CLAUDE.md ask for independent PRs from the base.
17
+ 5. `branch` otherwise: state lives on `holyagent/state` in one shared worktree, committed by every command. Work branches never carry it: keep it out of work merges and settle a diverged one with plain Git there.
@@ -0,0 +1,150 @@
1
+ ---
2
+ # Generated by packages/integrations/pi/build.ts from packages/runtime/src/instructions/kimi-k3.1/skills/tui-design/SKILL.md; edit the source and rebuild.
3
+ name: tui-design
4
+ description: "Use when building, reshaping or judging a terminal UI or a command-line tool's interactive and piped output. Holds the shared design core, terminal rules for layout, input, state, hygiene, width, glyphs, color and accessibility, a refuse list and the capture checklist."
5
+ ---
6
+
7
+ # Terminal UI design
8
+
9
+ Rules for full-screen terminal apps and line-based tools, judged on text frames and image frames. Terminal behavior that no still shows is a behavior check that Worker.operations runs in a terminal session by interrupting and killing the app.
10
+
11
+ ## Shared core
12
+
13
+ Judge every rule on the rendered result, from the captures. The one exception is the rules under Direction before code, which are checked as a plan in the worker's report or `DESIGN.md`, not on a render.
14
+
15
+ Two tags mark rules that are not judged from a capture:
16
+
17
+ - `(behavior check)` marks a rule no capture can show (a file, a process, an input sequence). Worker.operations runs it and reports it, and nobody infers it from a still.
18
+ - `(preference)` marks taste: list it, do not repair it.
19
+
20
+ A violation of any other rule is judged by this definition:
21
+
22
+ A discrepancy is material, and starts a repair whatever its size, when it affects any of these: acceptance; hierarchy or composition; legibility (cramped, overlapping, clipped or disappearing text); responsiveness at a viewport or size the criteria list; whether text and numbers state the content correctly (a title that misstates what it covers); accessibility; interaction correctness; adherence to a reference; obvious production quality. Unnecessary text, headings, cards or badges are design defects. Only pure preference, with none of these effects, stays unrepaired: list it apart, marked optional.
23
+
24
+ A number is binding only where a platform guideline fixes it; every other number is a default, marked `(default)`, that the design may override with a stated reason.
25
+
26
+ Apply the skill's capture checklist on the final captures: the worker before reporting, the reviewer in its findings and the root in its own final pass. Check your own work as it takes shape, from captures wherever the environment can produce them. Report only checks actually run, and name each check not run.
27
+
28
+ ### Direction before code
29
+
30
+ - When the brief leaves out the subject, the audience or the main job, confirm them with the user when one can answer, and otherwise state them as a proposal in the plan; remembered preferences or project context are a starting hint. The brief's own words outrank every avoid list below.
31
+ - Let the subject supply the look: its trade, materials and idiom decide the visual choices, and the brief's real content stays in the work from start to finish. A ferry timetable and a toddler's game should look nothing alike.
32
+ - Choose palette, type and layout on purpose and for this brief alone, accept visual risk when it earns its place, and treat each project as a chance to try something new instead of repeating what you do best.
33
+ - Sketch a plan before building, in this order:
34
+ 1. A small named palette: four to six colors, each with a value and a role.
35
+ 2. The type roles.
36
+ 3. A layout idea in one sentence, compared through rough ASCII wireframes, with how the content aligns (left, centered or justified).
37
+ 4. Two or three principles.
38
+ 5. An audit with two questions: "would I make this for any similar product?" and the competitor test (drop an idea that still works with a competitor's name on it).
39
+ 6. A rewrite of what fails, with a note of what changed and why.
40
+ 7. Code only from the revised plan.
41
+ - Say whether this is a refinement, which preserves the existing design, or a redesign, which replaces it.
42
+
43
+ ### Platform fidelity over invention
44
+
45
+ - Use the platform's own components, navigation and conventions unless the brief gives a reason not to, and brand through the layer the platform leaves open.
46
+ - Ported-from-a-website test: a fluent user of the platform never pauses at an off-spec control.
47
+ - Rules here are platform concepts. Detect the project's stack and map each rule onto it; never assume one.
48
+
49
+ ### Design record
50
+
51
+ - Read `DESIGN.md` at the project root before UI work and create or update it after. It holds: platform and stack, direction, color roles, type roles, spacing and shape, components and states, do and don't, and a brief log of the options already tried, so later passes explore new ground. Note a changed decision instead of silently overwriting it. (behavior check)
52
+
53
+ ### Spend boldness in one place
54
+
55
+ - Make one detail per screen the memorable one and keep the rest calm and restrained. Strip ornament that does nothing for the brief, and before finishing remove one accessory more, filling the gap with scale, real content or a real image so the screen is not left thin. (preference)
56
+ - A labeled gray placeholder beats drawn art or emoji used as icons. (preference)
57
+
58
+ ### Structure and content
59
+
60
+ - A border, divider, outline, label, eyebrow or number belongs only where it tells the reader something true about the content. Numbers mark a real sequence (steps, a timeline) and nothing else, so confirm it is one first. An eyebrow over every heading, all-caps labels and labels that say nothing are decoration, not structure.
61
+ - With no real content in the brief, invent specific copy from the subject: generic words flatten a design as much as a generic layout does.
62
+
63
+ ### Copy
64
+
65
+ - Interface text exists to help someone understand and act, so treat it as part of the design. Decide what the screen must convey and the shortest way to convey it, with one job for each piece of text.
66
+ - Speak in the user's terms, calling a thing what the user calls it ("saved searches", not "query presets"). Say what a thing is or does without selling it; concrete beats clever.
67
+ - Set text in sentence case unless the platform sets its own casing, leave out padding, keep the tone conversational and in step with the brand and its readers, and write in the active voice with everyday verbs.
68
+ - A control names its outcome ("Send invoice", not "Submit"), and each action carries one name from first label to confirmation: the Duplicate button leads to a "Duplicated" confirmation.
69
+ - When something fails or nothing is there yet, point the way. An error states what happened and how to recover, speaks as the interface and not as a person, and neither apologizes nor stays vague; an empty state invites the first action.
70
+
71
+ ### Quality floor, unannounced
72
+
73
+ - Text contrast is at least 4.5:1 and non-text control contrast at least 3:1. Color is never the only signal, and the colors work together as a palette.
74
+ - Every state exists and is captured where reachable: hover or press, focus, disabled, loading, empty, error and long content.
75
+ - The system's reduced-motion, larger-text and high-contrast settings, where the platform has them, change the render; under reduced motion, movement becomes a fade or nothing.
76
+
77
+ ## Terminal rules
78
+
79
+ ### Layout follows the work
80
+
81
+ - Map the job to a layout: a list or table with a detail view, one focused form, a log or stream, or a dashboard.
82
+ - The layout meets an 80×24 floor and degrades gracefully below it, with no tearing or lost input.
83
+ - Run a clutter audit before adding a border or a panel. Borders are rare and use real box-drawing characters: heavy for the focused pane, light for the rest.
84
+
85
+ ### Input and focus
86
+
87
+ - One element owns input at a time, and the focused one is visibly marked.
88
+ - Ctrl-C always exits, `q` quits where nothing is being edited, `?` shows help sized to the window, and `-h` or `--help` works. (behavior check)
89
+ - Pasted text is text, never commands. (behavior check)
90
+ - A resize reflows every screen. Capture before and after.
91
+
92
+ ### State
93
+
94
+ - A slow reply never overwrites a newer one. (behavior check)
95
+ - Selection stays on the same item when the list reloads or re-sorts. (behavior check)
96
+ - Durable errors stay retrievable in a log or status view, not only in a toast that vanishes.
97
+ - Log lines never tear through the drawn screen.
98
+
99
+ ### Terminal hygiene
100
+
101
+ - After the app exits, is interrupted or crashes, the shell works normally: echo on, the main screen back, the cursor visible. (behavior check)
102
+ - Untrusted text never changes colors or moves the cursor. (behavior check)
103
+ - Do not assume alternate-screen support; an inline mode is valid.
104
+
105
+ ### Width and glyphs
106
+
107
+ - Measure and truncate by grapheme cells, never bytes or code points. Test real text with East Asian, emoji sequences and variation selectors; treat ambiguous width as narrow unless known.
108
+ - Read the locale (LC_ALL, then LC_CTYPE, then LANG). When it is not UTF-8, the whole glyph set is ASCII, never a mix, and an ASCII override always exists. (behavior check)
109
+ - Nerd Font glyphs are opt-in, and a private-use glyph is never the only carrier of meaning.
110
+
111
+ ### Color
112
+
113
+ - Precedence is flag, then config, then environment, then TTY detection. A non-empty NO_COLOR removes added color but keeps bold and underline; FORCE_COLOR forces color; empty variables count as unset. When both are set NO_COLOR wins, an accessibility choice this skill makes because its sources disagree; an explicit flag beats both. (behavior check)
114
+ - Capability tier: COLORTERM of truecolor or 24bit, then a TERM ending in 256color, then 16 colors; TERM=dumb or no TTY gets none. COLORTERM is a hint that SSH and multiplexers lose. (behavior check)
115
+ - Detect a light or dark background with a bounded query and default to dark.
116
+ - At most three semantic colors plus one accent. (default)
117
+ - Status colors pair with text or a shape. Both light and dark backgrounds stay legible.
118
+
119
+ ### Piped and scripted output
120
+
121
+ - Primary output goes to stdout and messages to stderr. With no TTY there is no animation, prompt or full-screen UI. (behavior check)
122
+ - Offer `--json`, `--plain` and `--no-input`, with JSON bypassing all formatting; page only on a TTY. (behavior check)
123
+ - First output appears within 100 ms. (default) (behavior check)
124
+
125
+ ### Accessibility
126
+
127
+ - A linear, line-based mode exists: no decorative boxes, no redraw of unchanged content, static progress text instead of spinners, tables as "Header: value" lines, results left in scrollback.
128
+ - A reduced-motion switch exists. Independently updating content sits in a scrolling region instead of repainting the screen.
129
+ - A link label is followed by its full URL.
130
+
131
+ ## Refuse list
132
+
133
+ Unless the brief asks for it, avoid:
134
+
135
+ - boxes around everything, or nested borders
136
+ - emoji or private-use glyphs as the only meaning
137
+ - a spinner with no static fallback
138
+ - color as the only status signal
139
+ - a full-screen UI where a line of output would do (preference)
140
+
141
+ ## Capture checklist
142
+
143
+ Capture text frames (with and without escapes) and image frames at 80×24 and a large size. Vary:
144
+
145
+ - the color tier: truecolor, 256 color, 16 color and NO_COLOR;
146
+ - light and dark backgrounds;
147
+ - an ASCII locale;
148
+ - piped output.
149
+
150
+ Also capture a resize, the help view and the error view.