gentle-pi 4.5.1 → 4.7.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.
- package/README.md +17 -15
- package/assets/agents/gentle-ai-explore.md +1 -0
- package/assets/agents/gentle-ai-verify.md +8 -1
- package/assets/agents/gentle-ai-worker.md +4 -0
- package/assets/agents/jd-fix-agent.md +1 -0
- package/assets/agents/jd-judge-a.md +1 -0
- package/assets/agents/jd-judge-b.md +1 -0
- package/assets/design-canvas/canvas.css +13 -1
- package/assets/design-canvas/canvas.js +11 -2
- package/assets/install-wizard/wizard.js +1 -0
- package/assets/migrations/agent-body-history.json +162 -0
- package/assets/orchestrator-delegation-reference.md +7 -7
- package/assets/orchestrator-delegation.md +3 -3
- package/assets/orchestrator-full-delegation-card.md +65 -0
- package/assets/orchestrator-full-delegation.md +34 -0
- package/assets/orchestrator-memory.md +3 -3
- package/assets/orchestrator-prompts.md +1 -1
- package/assets/orchestrator-skills.md +1 -1
- package/assets/orchestrator-verification.md +14 -8
- package/assets/orchestrator.md +11 -11
- package/bin/gentle-shell.mjs +225 -82
- package/docs/agent-status.md +61 -0
- package/docs/bundled-install.md +7 -5
- package/docs/ci-performance.md +11 -0
- package/docs/delegated-verification.md +35 -7
- package/docs/fast-mode.md +15 -0
- package/docs/gentle-agents-activity.md +22 -0
- package/docs/gentle-shell.md +113 -25
- package/docs/install-wizard.md +2 -2
- package/docs/mcp-status.md +52 -0
- package/docs/permission-modes.md +9 -4
- package/docs/prompt-budget.md +28 -0
- package/docs/readme-reference.md +154 -50
- package/docs/render-cache-performance.md +11 -1
- package/docs/review-coordinator.md +33 -0
- package/docs/review-request-context.md +19 -0
- package/docs/review-windows-acl.md +18 -0
- package/docs/session-profile-format.md +20 -5
- package/docs/sound-notifications.md +1 -1
- package/docs/star-prompt.md +32 -0
- package/docs/voice.md +6 -3
- package/docs/work-continuity.md +46 -0
- package/docs/yolo-mode.md +5 -5
- package/extensions/ask-user-choice.ts +1 -0
- package/extensions/ask-user-question.ts +2 -0
- package/extensions/child-safety.ts +3 -0
- package/extensions/codegraph-tools.ts +38 -4
- package/extensions/gentle-agent-status.ts +99 -0
- package/extensions/gentle-agents.ts +803 -84
- package/extensions/gentle-ai.ts +2491 -596
- package/extensions/gentle-fast.ts +61 -0
- package/extensions/gentle-guide.ts +174 -0
- package/extensions/gentle-herdr-activity.ts +21 -1
- package/extensions/gentle-herdr-agent.ts +144 -0
- package/extensions/gentle-program-identity.ts +61 -0
- package/extensions/gentle-shell.ts +895 -120
- package/extensions/gentle-star-prompt.ts +334 -0
- package/extensions/gentle-stats.ts +5 -5
- package/extensions/gentle-todo.ts +59 -23
- package/extensions/gentle-tps.ts +48 -0
- package/extensions/history/store.ts +18 -12
- package/extensions/quiet-tools.ts +38 -8
- package/extensions/skill-registry.ts +210 -21
- package/extensions/startup-banner.ts +69 -10
- package/lib/agent-assets.ts +74 -17
- package/lib/agent-profile-pin.ts +3 -3
- package/lib/agent-profiles.ts +161 -3
- package/lib/agent-status.ts +105 -0
- package/lib/agents-config.ts +58 -3
- package/lib/agents-history.ts +24 -5
- package/lib/agents-keys.ts +8 -16
- package/lib/agents-messaging.ts +47 -5
- package/lib/agents-protocol.ts +80 -4
- package/lib/agents-runner.ts +287 -15
- package/lib/agents-view.ts +6 -1
- package/lib/agents-widget.ts +132 -9
- package/lib/auto-permission-runtime.ts +1 -1
- package/lib/bounded-writer-admission.ts +13 -1
- package/lib/bridge-cost.ts +28 -0
- package/lib/card-content-policy.ts +8 -6
- package/lib/codemode-renderer.ts +16 -0
- package/lib/command-palette-catalog.ts +1 -0
- package/lib/command-palette.ts +154 -25
- package/lib/context-backstop.ts +14 -5
- package/lib/destructive-command-guard.ts +48 -4
- package/lib/execution-surface-guard.ts +20 -0
- package/lib/exploration-budget.ts +64 -0
- package/lib/gentle-ai-binary.ts +1 -1
- package/lib/gentle-design.ts +3 -0
- package/lib/gentle-guide.ts +201 -0
- package/lib/gentle-shell-bundled.ts +6 -19
- package/lib/gentle-shell-launcher.ts +47 -8
- package/lib/herdr-activity.ts +23 -5
- package/lib/herdr-busy.ts +45 -0
- package/lib/herdr-task-summary-policy.ts +85 -0
- package/lib/image-attachments.ts +33 -0
- package/lib/image-disk-cache.ts +137 -0
- package/lib/inprocess-reviewer.ts +282 -132
- package/lib/jobs-sidebar-state.ts +5 -6
- package/lib/jobs-view.ts +198 -11
- package/lib/jobs-widget.ts +16 -52
- package/lib/keymaps-customize.ts +81 -0
- package/lib/keymaps.ts +291 -0
- package/lib/model-fallback-notice.ts +61 -0
- package/lib/model-fallback-policy.ts +141 -0
- package/lib/model-fallback-store.ts +143 -0
- package/lib/model-routing-authority.ts +32 -6
- package/lib/nan-provider.ts +3 -2
- package/lib/native-choice-list.ts +20 -2
- package/lib/native-review-cli.ts +103 -21
- package/lib/notification-customize.ts +48 -51
- package/lib/openai-fast-tier.ts +22 -0
- package/lib/orchestrator-discovery.ts +5 -1
- package/lib/orchestrator-fallback.ts +75 -0
- package/lib/orchestrator-mode-policy.ts +105 -0
- package/lib/pasted-image-paths.ts +113 -0
- package/lib/questionnaire/questionnaire-view.ts +225 -18
- package/lib/rdd-mode-control.ts +32 -0
- package/lib/reply-language-anchor.ts +104 -0
- package/lib/review-blocker.ts +92 -0
- package/lib/review-candidate-symlink-scan.ts +136 -0
- package/lib/review-candidate-view-owner.ts +85 -44
- package/lib/review-candidate-view.ts +10 -7
- package/lib/review-continuation-registry.ts +99 -0
- package/lib/review-coordinator.ts +163 -0
- package/lib/review-failure-facts.ts +49 -0
- package/lib/review-host-relay.ts +51 -11
- package/lib/review-integration-v2.ts +29 -8
- package/lib/review-relay-phase-timing.ts +45 -0
- package/lib/review-repository.ts +5 -0
- package/lib/review-start-context.ts +17 -0
- package/lib/session-profile-append-controller.ts +21 -6
- package/lib/session-profile-authority.ts +119 -0
- package/lib/session-profile-binding.ts +54 -5
- package/lib/session-profile-freeze.ts +107 -9
- package/lib/session-profile-integration.ts +313 -0
- package/lib/session-profile-persistence.ts +63 -9
- package/lib/shell-bar.ts +269 -72
- package/lib/shell-card.ts +26 -6
- package/lib/shell-changes.ts +2 -0
- package/lib/shell-page.ts +120 -0
- package/lib/shell-panel.ts +163 -0
- package/lib/shell-prompt.ts +53 -1
- package/lib/shell-sidebar-layout.ts +198 -53
- package/lib/shell-sidebar.ts +61 -1
- package/lib/shell-stats.ts +123 -0
- package/lib/shell-todo.ts +79 -1
- package/lib/shell-usage.ts +12 -2
- package/lib/star-prompt.ts +197 -0
- package/lib/verifier-admission.ts +18 -8
- package/lib/verifier-settle-reminder.ts +64 -0
- package/lib/vim-editor-adapter.ts +6 -1
- package/lib/visual-customization-policy.ts +67 -12
- package/lib/visual-customize-view.ts +373 -40
- package/lib/visual-layout-preview.ts +47 -0
- package/lib/visual-profiles.ts +2 -2
- package/lib/windows-session-transport.ts +53 -2
- package/lib/yolo-session-policy.ts +68 -16
- package/package.json +2 -1
- package/runtime/gentle-ai-binary.mjs +1 -1
- package/runtime/gentle-shell-bundled.mjs +6 -19
- package/runtime/gentle-shell-launcher.mjs +46 -7
- package/runtime/native-review-cli.mjs +100 -18
- package/runtime/review-integration-v2.mjs +29 -8
- package/runtime/windows-session-transport.ps1 +60 -3
- package/scripts/bootstrap.sh +4 -1
- package/scripts/build-full-delegation-card.mjs +175 -0
- package/scripts/bundled-install.mjs +38 -8
- package/scripts/download-progress.mjs +68 -0
- package/scripts/gentle-ai-installer.mjs +41 -18
- package/scripts/gentle-ai-proxy.mjs +294 -0
- package/scripts/install-gentle-ai.mjs +14 -1
- package/scripts/installer-preflight.mjs +6 -6
- package/scripts/installer-runner.mjs +27 -12
- package/scripts/installer-server.mjs +8 -7
- package/scripts/pi-update.mjs +113 -3
- package/scripts/render-cache-host.mjs +72 -0
- package/scripts/render-cache-performance-worker.mjs +5 -4
- package/scripts/render-cache-performance.mjs +6 -1
- package/scripts/run-test-suite.mjs +41 -13
- package/scripts/shell-snapshot.mjs +340 -0
- package/scripts/test-packed-runner.mjs +1 -1
- package/scripts/update-agent-body-history.mjs +41 -0
- package/scripts/verify-installer-tap.mjs +45 -0
- package/scripts/verify-package-files.mjs +14 -2
- package/scripts/voice-worker.cjs +32 -6
- package/skills/design/SKILL.md +11 -8
- package/skills/gentle-ai/SKILL.md +4 -4
- package/skills/gentle-ui-design/SKILL.md +46 -0
- package/skills/gentle-ui-design/references/adaptive-interfaces.md +46 -0
- package/skills/gentle-ui-design/references/browse-and-compare.md +62 -0
- package/skills/gentle-ui-design/references/composition-and-feedback.md +56 -0
- package/skills/gentle-ui-design/references/task-and-content.md +60 -0
- package/skills/skill-registry/SKILL.md +4 -2
- package/skills/tui-design/NOTICE.md +5 -0
- package/skills/tui-design/SKILL.md +56 -0
- package/skills/tui-design/references/commands.md +75 -0
- package/skills/tui-design/references/critique.md +48 -0
- package/skills/tui-design/references/design-doc.md +44 -0
- package/skills/tui-design/references/terminal-craft.md +64 -0
- package/skills/tui-design/references/visual-loop.md +32 -0
- package/skills/work-unit-commits/SKILL.md +6 -7
- package/tests/agent-home.test.ts +28 -9
- package/tests/agent-profiles-workflow.test.ts +163 -0
- package/tests/agent-risk-escalation.test.ts +1 -1
- package/tests/agent-status.test.ts +143 -0
- package/tests/agents-config.test.ts +96 -0
- package/tests/agents-history.test.ts +31 -0
- package/tests/agents-jobs-frames.test.ts +93 -0
- package/tests/agents-prompt-lifecycle-runtime.test.ts +376 -0
- package/tests/agents-protocol.test.ts +53 -1
- package/tests/agents-runner-drain.test.ts +193 -0
- package/tests/agents-runner.test.ts +345 -4
- package/tests/agents-view.test.ts +27 -0
- package/tests/agents-widget.test.ts +312 -10
- package/tests/append-system-prompt-route.test.ts +4 -1
- package/tests/ask-user-choice.test.ts +4 -3
- package/tests/ask-user-question.test.ts +97 -0
- package/tests/auto-permission-runtime.test.ts +1 -1
- package/tests/autonomous-guard.test.ts +346 -10
- package/tests/bounded-scan-contract.test.ts +39 -0
- package/tests/bounded-stop-contract.test.ts +43 -3
- package/tests/bridge-cost.test.ts +47 -0
- package/tests/bundled-install.test.ts +36 -9
- package/tests/card-content-policy.test.ts +3 -3
- package/tests/chained-pr-skill.test.ts +8 -6
- package/tests/child-safety.test.ts +11 -0
- package/tests/ci-concurrency.test.ts +11 -0
- package/tests/ci-merge-base-identity.test.ts +114 -0
- package/tests/codegraph-tools.test.ts +80 -5
- package/tests/codemode-rendering.test.ts +22 -2
- package/tests/command-palette.test.ts +300 -3
- package/tests/commit-slice-signal.test.ts +11 -9
- package/tests/delegate-for-reason-contract.test.ts +8 -7
- package/tests/design-canvas-assets.test.ts +185 -2
- package/tests/destructive-command-guard.test.ts +52 -0
- package/tests/download-progress.test.ts +71 -0
- package/tests/execution-surface-guard.test.ts +55 -0
- package/tests/exploration-budget.test.ts +128 -0
- package/tests/fixtures/agent-assets/gentle-ai-worker.strict-tdd-era.md +122 -0
- package/tests/fixtures/measure-orchestrator-prompt.mjs +2 -1
- package/tests/fixtures/primary-session-prompt/gentleman.golden.md +26 -14
- package/tests/fixtures/proxy-tls/proxy.crt +19 -0
- package/tests/fixtures/proxy-tls/proxy.key +28 -0
- package/tests/fixtures/session-profile-v1/gentle-ai-reviewer.ts +89 -0
- package/tests/fixtures/session-profile-v1/replay.ts +172 -0
- package/tests/fixtures/session-profile-v1/session-profile-authority.ts +113 -0
- package/tests/fixtures/session-profile-v1/session-profile-binding.ts +83 -0
- package/tests/fixtures/session-profile-v1/session-profile-disk-reader.ts +182 -0
- package/tests/fixtures/session-profile-v1/session-profile-freeze.ts +290 -0
- package/tests/fixtures/session-profile-v1/session-profile-persistence.ts +195 -0
- package/tests/fixtures/session-profile-v1/v1-inputs.ts +16 -0
- package/tests/fixtures/windows-pipe-availability.ps1 +26 -0
- package/tests/fixtures/windows-session-bootstrap.ps1 +6 -2
- package/tests/full-delegation-closure.test.ts +131 -0
- package/tests/full-delegation-notices.test.ts +76 -0
- package/tests/generic-agent-tools.test.ts +3 -3
- package/tests/gentle-agent-status.test.ts +74 -0
- package/tests/gentle-agents-child-jobs.test.ts +237 -0
- package/tests/gentle-agents.test.ts +1491 -38
- package/tests/gentle-ai-binary.test.ts +3 -1
- package/tests/gentle-ai-elapsed-store.test.ts +19 -0
- package/tests/gentle-ai-exploration-budget.test.ts +151 -0
- package/tests/gentle-ai-installer.test.ts +134 -51
- package/tests/gentle-ai-proxy.test.ts +434 -0
- package/tests/gentle-ai.test.ts +1101 -52
- package/tests/gentle-design.test.ts +21 -0
- package/tests/gentle-fast.test.ts +73 -0
- package/tests/gentle-guide.test.ts +208 -0
- package/tests/gentle-herdr-activity.test.ts +80 -3
- package/tests/gentle-herdr-agent.test.ts +111 -0
- package/tests/gentle-program-identity.test.ts +197 -0
- package/tests/gentle-shell-bin.test.ts +172 -26
- package/tests/gentle-shell-bundled.test.ts +207 -31
- package/tests/gentle-shell-launcher.test.ts +93 -10
- package/tests/gentle-shell.test.ts +1937 -66
- package/tests/gentle-stats.test.ts +15 -2
- package/tests/gentle-todo.test.ts +67 -4
- package/tests/gentle-tps.test.ts +123 -0
- package/tests/gentle-ui-design-skill.test.ts +59 -0
- package/tests/herdr-busy.test.ts +59 -0
- package/tests/herdr-task-summary-policy.test.ts +132 -0
- package/tests/history-store-private-mode.test.ts +40 -0
- package/tests/image-disk-cache.test.ts +163 -0
- package/tests/image-paste-chips.test.ts +42 -0
- package/tests/independent-recovery-delivery.test.ts +83 -0
- package/tests/inprocess-reviewer.test.ts +298 -4
- package/tests/installer-posix-bootstrap.test.ts +68 -6
- package/tests/installer-preflight.test.ts +5 -4
- package/tests/installer-runner.test.ts +79 -44
- package/tests/installer-server.test.ts +14 -11
- package/tests/installer-windows-diagnostics.test.ts +4 -5
- package/tests/isolated-config-home.ts +28 -0
- package/tests/jobs-view.test.ts +260 -6
- package/tests/jobs-widget.test.ts +25 -37
- package/tests/keymaps-customize.test.ts +114 -0
- package/tests/keymaps.test.ts +103 -0
- package/tests/maintainer/mcp-status.maintest.ts +88 -0
- package/tests/maintainer/pi-update-source.maintest.ts +116 -0
- package/tests/modal-mouse-boundaries.test.ts +136 -0
- package/tests/model-fallback-notice.test.ts +45 -0
- package/tests/model-fallback-policy.test.ts +83 -0
- package/tests/model-fallback-store.test.ts +111 -0
- package/tests/model-routing-authority.test.ts +178 -2
- package/tests/nan-provider.test.ts +4 -4
- package/tests/native-choice-list.test.ts +77 -2
- package/tests/native-review-capability-contract.test.ts +7 -1
- package/tests/native-review-cli.test.ts +269 -1
- package/tests/no-self-pause-contract.test.ts +22 -0
- package/tests/notification-customize.test.ts +58 -34
- package/tests/odd-routing-canonical-ratchet.test.ts +6 -6
- package/tests/odd-routing-contract.test.ts +1 -1
- package/tests/orchestrator-budget.test.ts +7 -2
- package/tests/orchestrator-delegation-mode.test.ts +153 -0
- package/tests/orchestrator-fallback.test.ts +82 -0
- package/tests/orchestrator-mode-policy.test.ts +175 -0
- package/tests/orchestrator-prompt-budget.test.ts +133 -0
- package/tests/orchestrator-rdd-ownership.test.ts +2 -2
- package/tests/package-manifest.test.ts +169 -14
- package/tests/pasted-image-paths.test.ts +118 -0
- package/tests/permission-allowlist.test.ts +202 -0
- package/tests/persona-reply-language.test.ts +20 -1
- package/tests/pi-update-launcher.test.ts +40 -8
- package/tests/pi-update-source.test.ts +162 -0
- package/tests/pnpm-workspace-config.test.ts +58 -0
- package/tests/primary-session-prompt.test.ts +13 -0
- package/tests/profile-fast-tier.test.ts +311 -0
- package/tests/profile-pin.test.ts +29 -2
- package/tests/profile-tier-footer.test.ts +84 -0
- package/tests/profiles-panel-delegation-mode.test.ts +422 -0
- package/tests/questionnaire-view.test.ts +265 -0
- package/tests/quiet-bash-runtime.test.ts +1 -1
- package/tests/quiet-tool-rendering.test.ts +48 -0
- package/tests/rdd-aware-verification-contract.test.ts +16 -11
- package/tests/rdd-customize.test.ts +287 -0
- package/tests/rdd-mode-cache.test.ts +450 -0
- package/tests/rdd-mode-control.test.ts +407 -0
- package/tests/rdd-mode-scope-regression.test.ts +137 -0
- package/tests/rdd-off-independent-regression.test.ts +69 -0
- package/tests/rdd-status-line.test.ts +18 -0
- package/tests/render-cache-performance.test.ts +171 -2
- package/tests/reply-language-anchor.test.ts +173 -0
- package/tests/review-agent-end-preflight.test.ts +1 -1
- package/tests/review-blocker.test.ts +193 -0
- package/tests/review-candidate-owner-retry.test.ts +1 -1
- package/tests/review-candidate-owner-sweep.test.ts +93 -0
- package/tests/review-candidate-symlink-scan.test.ts +157 -0
- package/tests/review-candidate-view.test.ts +52 -1
- package/tests/review-candidate-windows-boundary.test.ts +131 -0
- package/tests/review-candidate-windows-probe.test.ts +63 -0
- package/tests/review-committed-restart-ack.test.ts +129 -0
- package/tests/review-continuation-registry.test.ts +76 -0
- package/tests/review-controller-native-routing.test.ts +381 -11
- package/tests/review-controller-workspace-root.test.ts +230 -3
- package/tests/review-controller.test.ts +96 -11
- package/tests/review-coordinator-runtime.test.ts +117 -0
- package/tests/review-coordinator.test.ts +195 -0
- package/tests/review-failure-facts.test.ts +87 -0
- package/tests/review-gate.test.ts +24 -0
- package/tests/review-host-relay-routing.test.ts +258 -4
- package/tests/review-host-relay.test.ts +39 -0
- package/tests/review-inspect-preflight.test.ts +197 -0
- package/tests/review-integration-v2-forward.test.ts +59 -0
- package/tests/review-integration-v2.test.ts +46 -3
- package/tests/review-json-arguments.test.ts +65 -10
- package/tests/review-last-event-closure.test.ts +68 -0
- package/tests/review-loadout-rdd-off-sdk.test.ts +65 -31
- package/tests/review-owner-identity.test.ts +60 -24
- package/tests/review-relay-phase-timing.test.ts +128 -0
- package/tests/review-relay-transport-agent.test.ts +12 -2
- package/tests/review-repository.test.ts +52 -1
- package/tests/review-reviewer-evidence.test.ts +183 -0
- package/tests/review-risk-assessment.test.ts +74 -3
- package/tests/review-session-standing-permission-controller.test.ts +21 -1
- package/tests/review-sidebar-state.test.ts +5 -5
- package/tests/review-start-context.test.ts +19 -0
- package/tests/review-tool-prose-budget.test.ts +121 -0
- package/tests/run-test-suite.test.ts +183 -6
- package/tests/runtime-harness.mjs +4 -1
- package/tests/sensitive-path-tools.test.ts +250 -0
- package/tests/session-profile-append-controller-pi.test.ts +60 -31
- package/tests/session-profile-append-controller.test.ts +63 -0
- package/tests/session-profile-authority.test.ts +259 -0
- package/tests/session-profile-binding.test.ts +34 -1
- package/tests/session-profile-disk-reader-pi.test.ts +58 -16
- package/tests/session-profile-extension.test.ts +615 -0
- package/tests/session-profile-freeze.test.ts +110 -2
- package/tests/session-profile-integration.test.ts +857 -0
- package/tests/session-profile-persistence.test.ts +57 -0
- package/tests/session-profile-v1-compat.test.ts +255 -0
- package/tests/shell-bar.test.ts +274 -72
- package/tests/shell-card.test.ts +13 -1
- package/tests/shell-page.test.ts +108 -0
- package/tests/shell-panel.test.ts +360 -0
- package/tests/shell-prompt.test.ts +54 -0
- package/tests/shell-render-cache.test.ts +5 -0
- package/tests/shell-sidebar-fullscreen.test.ts +13 -1
- package/tests/shell-sidebar-layout.test.ts +447 -44
- package/tests/shell-sidebar-scroll-benchmark.test.ts +1 -1
- package/tests/shell-stats.test.ts +90 -0
- package/tests/shell-surface-transparent.test.ts +89 -0
- package/tests/shell-todo.test.ts +12 -0
- package/tests/shell-usage.test.ts +14 -0
- package/tests/skill-registry.test.ts +902 -2
- package/tests/star-prompt.test.ts +470 -0
- package/tests/startup-banner.test.ts +209 -2
- package/tests/startup-home-repo.test.ts +2 -0
- package/tests/support/review-coordinator-runtime.ts +69 -0
- package/tests/task-size-routing-contract.test.ts +50 -4
- package/tests/verifier-admission.test.ts +49 -0
- package/tests/verifier-settle-reminder.test.ts +281 -0
- package/tests/verify-first-launch-contract.test.ts +134 -8
- package/tests/verify-installer-tap.test.ts +57 -0
- package/tests/vim-editor-adapter.test.ts +2 -2
- package/tests/visual-customization-policy.test.ts +95 -8
- package/tests/visual-customize-view.test.ts +818 -9
- package/tests/visual-layout-preview.test.ts +42 -0
- package/tests/visual-profiles.test.ts +11 -0
- package/tests/voice-worker.test.ts +73 -2
- package/tests/windows-session-bootstrap.test.ts +105 -2
- package/tests/windows-session-transport.test.ts +126 -0
- package/tests/work-continuity-contract.test.ts +114 -0
- package/tests/writer-feature-document-admission.test.ts +92 -0
- package/tests/writer-surfaces.test.ts +12 -10
- package/tests/yolo-customize.test.ts +57 -15
- package/tests/yolo-mode-runtime.test.ts +4 -2
- package/tests/yolo-mode.test.ts +39 -20
- package/tests/yolo-session-policy.test.ts +270 -1
|
@@ -13,11 +13,11 @@ When asked who or what you are, answer as el Gentleman: a Pi-specific coding-age
|
|
|
13
13
|
|
|
14
14
|
## Compact Rules
|
|
15
15
|
|
|
16
|
-
- Clarify scope, constraints, acceptance criteria, and non-goals
|
|
16
|
+
- Clarify scope, constraints, acceptance criteria, and non-goals when needed for the human to understand the action or to resolve consequential uncertainty. Reuse what is already established; after informed approval, proceed without repeating the clarification unless new consequential uncertainty appears.
|
|
17
17
|
- Size every task by the orchestrator's Task Size section: understood, contained risk, and resumable from the original request plus `git diff`. Counts of files, commands, tests, or fixes never decide it. Track only large work in its task document and mirror.
|
|
18
18
|
- For behavior changes with applicable runnable deterministic tests and a clear expected outcome, use test-first by default: observe RED, GREEN, relevant alternate cases, then REFACTOR and record evidence. Test presence alone does not establish applicability. For passive documentation, non-testable changes, an unavailable runner, or no meaningful RED, state why and run proportionate ordinary functional or structural verification. Never invent RED/GREEN, skip checks, or require a chat/TUI toggle.
|
|
19
19
|
- Keep one parent session responsible for orchestration; child subagents should receive concrete phase work and must not spawn more subagents.
|
|
20
|
-
- Parent-only delegation triggers fire one mechanism at a time: an open decision (ask), understanding beyond the evidence budget (explore), a named high-risk item (independent verifier
|
|
20
|
+
- Parent-only delegation triggers fire one mechanism at a time: an open decision (ask), understanding beyond the evidence budget (explore), a named high-risk item (independent verifier; assess `escalate` when RDD is on or unknown), a large task (track), a writer reason (parallel units or context), tooling/worktree incidents, or a parent context past the context backstop.
|
|
21
21
|
- Parallel writers only with disjoint Allowed edit surfaces (runtime-enforced) or isolated worktrees.
|
|
22
22
|
- Forecast review workload before large changes; ask before producing oversized or multi-area diffs.
|
|
23
23
|
- Keep dangerous-command safety independent and authoritative.
|
|
@@ -43,9 +43,9 @@ clarify → scout/context-builder when context-heavy → inline, or a writer onl
|
|
|
43
43
|
|
|
44
44
|
Hard delegation triggers:
|
|
45
45
|
|
|
46
|
-
- **Evidence-budget rule**: read inline only when the evidence fits one parallel batch of at most 3 calls, ~10k tokens (grep and line ranges, never whole large files). When understanding needs more reading or more than ~5 sequential lookups, delegate one explorer that returns a handoff of at most ~2k tokens with `path:line` evidence.
|
|
46
|
+
- **Evidence-budget rule**: read inline only when the evidence fits one parallel batch of at most 3 calls, ~10k tokens (grep and line ranges, never whole large files). Reassess cumulative discovery after each batch; do not reset the budget. When understanding needs more reading or more than ~5 sequential lookups, delegate one explorer that returns a handoff of at most ~2k tokens with `path:line` evidence. A fired trigger overrides initial task size; read-only restricts mutation, not exploration. Preparation for an already understood inline write stays inline, not further discovery. A known small targeted question within budget stays inline; do not re-read what the handoff covered beyond one spot check.
|
|
47
47
|
- **Writer rule**: a writer only for a reason (parallel units launched together, or context); size and file count never fire it.
|
|
48
|
-
- **Verification rule**: a change that touches a named high-risk item gets an independent verifier (assess `escalate`); otherwise the change's own focused test and suite run inline.
|
|
48
|
+
- **Verification rule**: a change that touches a named high-risk item gets an independent verifier (assess `escalate` when RDD is on or unknown); otherwise the change's own focused test and suite run inline.
|
|
49
49
|
- **Incident rule**: after wrong cwd, accidental worktree/repo mutation, merge recovery, confusing test command, or environment workaround, diagnose separately.
|
|
50
50
|
- **Context backstop**: when the runtime signals the context backstop (measured parent context past the smaller of an absolute cap and a fraction of the model's context window), pause and delegate the next bounded unit that needs several steps to a non-review subagent; small edits stay inline. Keep command output bounded (counts, `--stat`, `tail`).
|
|
51
51
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gentle-ui-design
|
|
3
|
+
description: "Trigger: product interface design, web UI, design critique, browsing experience, responsive layout. Guide usable interfaces for the current project."
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
metadata:
|
|
6
|
+
author: gentleman-programming
|
|
7
|
+
version: "1.0"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Activation Contract
|
|
11
|
+
|
|
12
|
+
Use for web and product interfaces when shaping, implementing, or assessing a user experience. Pair with `gentle-design` when producing artboards: gentle-design owns delivery, this skill owns UX quality. Use `gentle-ai-tui-design` for terminal interfaces.
|
|
13
|
+
|
|
14
|
+
## Hard Rules
|
|
15
|
+
|
|
16
|
+
- Keep a read-only critique read-only; do not install tools or dependencies for this guidance.
|
|
17
|
+
- Establish the user's job and success condition before appearance. Ask only when missing intent would materially change a decision.
|
|
18
|
+
- Reuse the project's brand, components, and platform conventions; avoid universal aesthetic bans.
|
|
19
|
+
- Do not invent evidence or conceal inaccessible controls. Model real content ranges and states; this guidance adds no hooks, detectors, or mandatory tool chains.
|
|
20
|
+
|
|
21
|
+
## Decision Gates
|
|
22
|
+
|
|
23
|
+
| Need or symptom | Load and apply |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| Unclear purpose, weak copy, or generic direction | `references/task-and-content.md` |
|
|
26
|
+
| Search, large collections, or difficult comparison | `references/browse-and-compare.md` |
|
|
27
|
+
| Flat hierarchy, clutter, or weak feedback | `references/composition-and-feedback.md` |
|
|
28
|
+
| Narrow screens, input access, or missing states | `references/adaptive-interfaces.md` |
|
|
29
|
+
|
|
30
|
+
## Execution Steps
|
|
31
|
+
|
|
32
|
+
1. Identify the audience, primary job, constraints, and likely content sizes; inspect existing project conventions when available.
|
|
33
|
+
2. Load only the relevant references and select defaults or justified exceptions for the task.
|
|
34
|
+
3. Apply the project's visual language and account for touch, keyboard, focus, contrast, and reduced motion.
|
|
35
|
+
4. Inspect visually when useful and authorized; report observations rather than implying an inspection occurred.
|
|
36
|
+
|
|
37
|
+
## Output Contract
|
|
38
|
+
|
|
39
|
+
Summarize design choices and tradeoffs, files changed if any, checks actually performed, and important unknowns.
|
|
40
|
+
|
|
41
|
+
## References
|
|
42
|
+
|
|
43
|
+
- `references/task-and-content.md` — purpose, information architecture, art direction, and truthful copy.
|
|
44
|
+
- `references/browse-and-compare.md` — search, collection scale, comparison, and navigation state.
|
|
45
|
+
- `references/composition-and-feedback.md` — hierarchy, density, color, type, and visual feedback.
|
|
46
|
+
- `references/adaptive-interfaces.md` — responsive behavior, accessible interaction, and states.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Adaptive interfaces
|
|
2
|
+
|
|
3
|
+
## Design the states people encounter
|
|
4
|
+
|
|
5
|
+
| State | Show | Avoid |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| Empty collection | What belongs here and a first action when permitted | Pretending a search failed when no records exist |
|
|
8
|
+
| No results | The active query or filters and a clear way to broaden them | Erasing the user's criteria or presenting a blank panel |
|
|
9
|
+
| Loading | What is being loaded and stable space for content where useful | A blank screen that looks broken or blocking unrelated tasks |
|
|
10
|
+
| Partial or stale | Which information is incomplete or when it was last updated, if known | Presenting an old total as a current fact |
|
|
11
|
+
| Error | What failed, whether data was saved, and an available recovery action | A generic error that leaves the outcome ambiguous |
|
|
12
|
+
| Zero or missing | A real `0` for zero; a clear missing or unavailable label otherwise | Inventing data or treating missing values as zero |
|
|
13
|
+
|
|
14
|
+
For example, `No bookings yet` can offer `Create booking`, while `No bookings match “lathe”` can offer `Clear search`.
|
|
15
|
+
If a save fails, retain the user's input when possible and say whether a retry is safe.
|
|
16
|
+
Do not claim an action succeeded until the result is known.
|
|
17
|
+
|
|
18
|
+
## Reorganize for the context
|
|
19
|
+
|
|
20
|
+
A desktop navigation rail squeezed into a phone can leave neither navigation nor content usable.
|
|
21
|
+
Replace it with a clearly labeled navigation control or a compact top-level pattern appropriate to the platform;
|
|
22
|
+
keep the active location and core action reachable. A persistent rail remains useful when the available width supports it.
|
|
23
|
+
For a wide comparison table, prioritize identifying fields and the most important comparison in a stacked mobile row,
|
|
24
|
+
or allow clearly indicated horizontal scrolling when preserving column comparison is essential.
|
|
25
|
+
Do not silently hide the data required for a decision.
|
|
26
|
+
|
|
27
|
+
Allow long names, translated labels, and text at 200% zoom to wrap or reflow without clipping essential content.
|
|
28
|
+
A fixed-height action button that truncates its label is not a reliable shortcut; allow its height to grow.
|
|
29
|
+
Keep meaningful order in the DOM aligned with the reading and keyboard order when layouts rearrange.
|
|
30
|
+
Visual inspection at representative sizes can reveal awkward reflow, but no particular tool chain or inspection ceremony is required by this guidance.
|
|
31
|
+
|
|
32
|
+
## Make interaction accessible
|
|
33
|
+
|
|
34
|
+
Use semantic links for navigation, buttons for actions, and labeled form controls for input.
|
|
35
|
+
Ensure keyboard access to essential actions; do not depend on hover to reveal them.
|
|
36
|
+
Keep focus visible and distinct from selection. When an overlay opens, move focus to an appropriate control;
|
|
37
|
+
when it closes, return focus to its trigger when possible. Where a dialog supports Escape, make that behavior predictable and avoid discarding work without warning.
|
|
38
|
+
Expose errors and status changes to assistive technology in context without repeatedly announcing unchanged content.
|
|
39
|
+
|
|
40
|
+
A practical touch target goal is approximately 44 by 44 CSS pixels when space permits.
|
|
41
|
+
WCAG 2.2 AA's target-size criterion uses a 24 by 24 CSS-pixel minimum with defined spacing and other exceptions;
|
|
42
|
+
these dimensions alone do not establish compliance. If a compact control is necessary, preserve adequate separation and an accessible name.
|
|
43
|
+
Do not rely on a tiny icon's painted size to imply an equally tiny hit area.
|
|
44
|
+
|
|
45
|
+
Respect `prefers-reduced-motion` for nonessential movement and avoid making animation the only signal of a state change.
|
|
46
|
+
A reduced-motion setting can remove travel or use an immediate state change while preserving the same information and functionality.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Browse and compare
|
|
2
|
+
|
|
3
|
+
## Choose a representation
|
|
4
|
+
|
|
5
|
+
The representation should expose the property that makes a choice possible.
|
|
6
|
+
|
|
7
|
+
| User need | Default | Why | Useful exception |
|
|
8
|
+
| --- | --- | --- | --- |
|
|
9
|
+
| Compare several attributes | Compact aligned rows or a table | Values remain in predictable positions | Use cards when records have genuinely different structures |
|
|
10
|
+
| Judge appearance | Previews with names and selection state | The visual is part of the decision | Rows can work when a small thumbnail is sufficient |
|
|
11
|
+
| Scan mixed summaries | Cards with a meaningful shared structure | Each record can carry a short explanation and action | Do not wrap every field in its own card |
|
|
12
|
+
|
|
13
|
+
Keep identifying text, important status, and the selection or detail action visible.
|
|
14
|
+
Do not hide an essential attribute behind hover or require opening every record to compare it.
|
|
15
|
+
When compact rows become cramped on mobile, keep the identifier, most important value, and primary action visible;
|
|
16
|
+
move secondary fields into a readable second line or detail view, not an inaccessible horizontal strip.
|
|
17
|
+
|
|
18
|
+
## Search and filter without surprises
|
|
19
|
+
|
|
20
|
+
State what search covers when scope is not obvious: `Search titles and authors` is clearer than an unlabeled magnifying glass.
|
|
21
|
+
Distinguish a relevance-ranked result set from a date- or name-sorted list with a visible sort label.
|
|
22
|
+
Do not imply that a partial client-side subset is the entire catalog.
|
|
23
|
+
Where results can be filtered, put relevant controls next to the results, show a count when available, and expose active filters as removable chips or equivalent controls.
|
|
24
|
+
Provide a reset action when filters can prevent recovery.
|
|
25
|
+
On no results, retain the query and filters, explain that no matches were found, and offer a way to broaden or clear them.
|
|
26
|
+
An empty catalog is a different state: show how to add or obtain the first item when the user can do so.
|
|
27
|
+
|
|
28
|
+
## Choose how results are loaded
|
|
29
|
+
|
|
30
|
+
| Pattern | Good fit | Cost and required context |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| Pagination | Comparing or returning to a known portion of results | Expose current page and navigation; restore the selected page on return |
|
|
33
|
+
| Load more | Sequential exploration when users may want to keep earlier results | Make loading explicit and retain the existing list; offer a way back to the prior position |
|
|
34
|
+
| Virtualized list | Many visible or loaded rows where rendering cost matters | Preserve keyboard access, focus, accessible item semantics, and a stable return position |
|
|
35
|
+
| Infinite scroll | A continuous feed where exact return positions matter less | Make restoration reliable and keep footer or other essential controls reachable; otherwise prefer explicit loading |
|
|
36
|
+
|
|
37
|
+
Bound the rendered items to what the interface can use; separately decide whether the data source should query and return only the needed subset.
|
|
38
|
+
Virtualizing a list can reduce rendered elements without reducing data transferred or backend work.
|
|
39
|
+
Use the actual architecture and measurements to choose; these patterns do not promise a particular performance result.
|
|
40
|
+
For planning, 10,000 entries is an illustrative scale, not a claim about a project or a mandatory fixture.
|
|
41
|
+
|
|
42
|
+
## Worked example: a large collection
|
|
43
|
+
|
|
44
|
+
Before: a supply catalog loads every item, draws a separate card for each one, hides unmatched cards after filtering,
|
|
45
|
+
and opens details without remembering the list. A user cannot tell which search fields were used or where they were on return.
|
|
46
|
+
|
|
47
|
+
After: search names its scope, a visible count and removable material filter describe the result set,
|
|
48
|
+
and compact rows align name, availability, and location. The server supplies a page of matching records when supported;
|
|
49
|
+
the interface renders that page and labels the current page and sort order. Opening a record retains the query and filters.
|
|
50
|
+
On return, restore the page, scroll position, and focus to the originating item when possible; if the item vanished, return focus to the results heading and explain the change.
|
|
51
|
+
This is a design for a hypothetical catalog, not a claim about its implementation or performance.
|
|
52
|
+
|
|
53
|
+
On a narrow screen, place search first, expose filters through a labeled control with an active-filter count,
|
|
54
|
+
and stack each row's secondary fields below its name. Keep availability and the detail action visible without hover.
|
|
55
|
+
Use a full table or persistent filter rail instead when the viewport and task genuinely support them.
|
|
56
|
+
|
|
57
|
+
## Preserve navigational context
|
|
58
|
+
|
|
59
|
+
Encode shareable query, filter, sort, and page state in the URL where the product supports it.
|
|
60
|
+
Browser back and a return from detail should recover the user's place rather than silently resetting the list.
|
|
61
|
+
Scroll and focus may be local history state rather than shareable URL parameters; restore both deliberately.
|
|
62
|
+
For changing datasets, handle missing pages or items honestly instead of presenting a stale count as current.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Composition and feedback
|
|
2
|
+
|
|
3
|
+
## Establish hierarchy
|
|
4
|
+
|
|
5
|
+
Give each text role a job: page title identifies the place, section headings describe groups,
|
|
6
|
+
body text carries information, and labels name controls. Make these roles visibly distinct using the existing type system.
|
|
7
|
+
When every line is bold and oversized, users cannot tell which element leads; reserve the strongest emphasis for the current task or heading.
|
|
8
|
+
A dense incident list may need compact headings; a long policy explanation needs more comfortable measure and line-height.
|
|
9
|
+
Do not replace the project's fonts merely to follow a trend.
|
|
10
|
+
|
|
11
|
+
Use alignment to make relationships visible. Align comparable numeric columns consistently,
|
|
12
|
+
and keep units and precision understandable; do not make `9`, `12`, and `105` difficult to compare through inconsistent placement.
|
|
13
|
+
Use a consistent left edge for related labels and values unless the content or reading direction calls for another arrangement.
|
|
14
|
+
Allow headings to wrap naturally instead of forcing an arbitrary line count.
|
|
15
|
+
|
|
16
|
+
For a hypothetical interface, a 16px body with a 24px line-height and a modestly larger section heading can be a starting example,
|
|
17
|
+
not a brand token or universal scale. Check the actual font, content, platform, and viewport.
|
|
18
|
+
Likewise, repeated 8px and 16px spacing might create a useful rhythm in one project;
|
|
19
|
+
use existing tokens first and adjust the relationship when the content needs it.
|
|
20
|
+
Optically balance the whole composition: a short title and a dense table need different surrounding space,
|
|
21
|
+
without enforcing arbitrary percentages or symmetrical empty areas.
|
|
22
|
+
|
|
23
|
+
## Group without visual noise
|
|
24
|
+
|
|
25
|
+
Place related elements closer together than unrelated groups; use headings and alignment before adding containers.
|
|
26
|
+
Nested cards around each label, value, and action make the structure harder to scan and consume space.
|
|
27
|
+
Replace them with one meaningful group and aligned content. A nested boundary is useful when it separates a distinct interactive region or changes the interpretation of the contents.
|
|
28
|
+
|
|
29
|
+
Use borders, surfaces, and shadows to reveal actual boundaries or elevation, not to make every element equally prominent.
|
|
30
|
+
A clear table header and row separators may be enough for comparison; a card may be useful when each item is a standalone task.
|
|
31
|
+
Match density to frequency and consequence: repeated expert work often benefits from compact rows,
|
|
32
|
+
while infrequent or consequential choices may need more explanation and spacing.
|
|
33
|
+
|
|
34
|
+
Decorative KPI tiles can push the task off screen while answering no question.
|
|
35
|
+
For a room-booking tool, show **Next available: 14:30** if it changes a decision;
|
|
36
|
+
do not add invented trend tiles merely to make the page look like a dashboard.
|
|
37
|
+
An overview metric is appropriate when users can act on it and understand its scope and freshness.
|
|
38
|
+
Avoid turning every word into a pill, badge, or icon: use these for meaningful state or recognition,
|
|
39
|
+
and retain labels when icons alone would be ambiguous. An icon-only control needs an accessible name.
|
|
40
|
+
|
|
41
|
+
## Color and feedback
|
|
42
|
+
|
|
43
|
+
Use color roles to distinguish actions, information, and states within the existing palette.
|
|
44
|
+
Do not convey status only by color: add a readable label, shape, or other cue.
|
|
45
|
+
As accessibility targets, normal text generally needs at least 4.5:1 contrast;
|
|
46
|
+
large text generally needs 3:1, and visual information needed to identify controls and states generally needs 3:1 against adjacent colors, subject to applicable exceptions.
|
|
47
|
+
These ratios alone do not establish accessibility or standards conformance. Decorative elements are not the same as required control boundaries.
|
|
48
|
+
Tiny, low-contrast metadata is especially easy to lose; increase contrast or make the information less prominent by placement rather than making it unreadable.
|
|
49
|
+
|
|
50
|
+
Show selected, disabled, hover, and keyboard focus as distinct states. Focus must remain visible against its surroundings and must not be confused with selection.
|
|
51
|
+
Explain why an action is unavailable when the reason is not apparent and give a path to resolve it when possible.
|
|
52
|
+
Use the platform's disabled behavior intentionally: a disabled control may not receive keyboard focus, so put necessary explanation where it can be found.
|
|
53
|
+
|
|
54
|
+
Use movement to clarify a change or preserve orientation, not to delay routine work.
|
|
55
|
+
Avoid animating every row or adding a pause merely to suggest polish; a short transition can be useful when it makes a change easier to follow.
|
|
56
|
+
Honor reduced-motion preferences and keep the result understandable without animation.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Task and content
|
|
2
|
+
|
|
3
|
+
## Start with the job
|
|
4
|
+
|
|
5
|
+
Choose the first screen by what the person needs to do, not by a favorite page template.
|
|
6
|
+
A single product may contain several of these jobs; identify the leading job for the current surface.
|
|
7
|
+
|
|
8
|
+
| Job | Give priority to | A useful outcome |
|
|
9
|
+
| --- | --- | --- |
|
|
10
|
+
| Find | Search scope, filters, recognizable results | Reach the intended item without inspecting every entry |
|
|
11
|
+
| Compare | Shared attributes and a stable order | Understand meaningful differences before choosing |
|
|
12
|
+
| Act | Current state, the primary action, and consequences | Complete the operation without losing context |
|
|
13
|
+
| Read | A clear heading, readable text, and wayfinding | Understand the information and find a passage again |
|
|
14
|
+
| Decide | The proposition, relevant evidence, and next step | Make a choice with the information available |
|
|
15
|
+
|
|
16
|
+
For a work surface, put the working controls and current material in the initial viewport.
|
|
17
|
+
A large promotional hero ahead of an existing user's records makes a routine action take longer.
|
|
18
|
+
A compact orientation banner can help a new user, but it should not permanently displace the work.
|
|
19
|
+
For a public introduction, a prominent opening can instead explain what the offering does and for whom.
|
|
20
|
+
|
|
21
|
+
Arrange navigation around the objects and tasks people recognize.
|
|
22
|
+
For example, a shared workshop app could group **Reservations**, **Tools**, and **Members** rather than burying them under internal department names.
|
|
23
|
+
Keep the main action near its object: **Reserve tool** belongs with availability, not inside an unrelated settings menu.
|
|
24
|
+
If an action has an irreversible consequence, show that consequence before it is committed.
|
|
25
|
+
Avoid showing several equally prominent primary actions when one is the normal next step; preserve alternatives as clearly labeled secondary actions.
|
|
26
|
+
|
|
27
|
+
## Specific, truthful content
|
|
28
|
+
|
|
29
|
+
Use exact labels that predict the outcome and match what the system actually does.
|
|
30
|
+
A generic label forces the user to open or guess; a specific one makes the choice legible.
|
|
31
|
+
|
|
32
|
+
| Weak | Better when accurate | Why |
|
|
33
|
+
| --- | --- | --- |
|
|
34
|
+
| `Continue` | `Review reservation` | Names the next stage without promising completion |
|
|
35
|
+
| `Manage` | `Change pickup time` | Explains which operation is available |
|
|
36
|
+
| `Something went wrong` | `Reservation not saved. Try again.` | States the consequence and a useful next action |
|
|
37
|
+
| `The future of shared spaces` | `Book workshop tools for your next project` | Identifies the audience's activity |
|
|
38
|
+
|
|
39
|
+
Do not invent customer identities, quotes, usage figures, charts, or claims of measured results.
|
|
40
|
+
Use real evidence only when it is available and appropriate to disclose.
|
|
41
|
+
Label illustrative records as demonstration data and avoid presenting them as actual customers or outcomes.
|
|
42
|
+
If no evidence exists, explain the capability plainly instead of manufacturing social proof.
|
|
43
|
+
When the actual next action depends on missing product intent, ask that focused question rather than assembling a broad questionnaire.
|
|
44
|
+
|
|
45
|
+
## Give the interface a reasoned visual idea
|
|
46
|
+
|
|
47
|
+
Take a cue from the subject and make it useful across the surface, not just in a headline.
|
|
48
|
+
For a workshop booking page, a calm timetable with clear availability can express the practical, shared nature of the service;
|
|
49
|
+
for a reading archive, a quiet index and legible excerpts may communicate its purpose more effectively.
|
|
50
|
+
Use the project's established palette, type, shapes, and components as the starting vocabulary.
|
|
51
|
+
A coherent direction comes from decisions about emphasis, content, and layout, not merely from removing shadows or decoration.
|
|
52
|
+
|
|
53
|
+
Inventory authentic material already available before deciding that a design needs prominent imagery.
|
|
54
|
+
An accurate diagram, product image, or real document can explain an offering; a fabricated screenshot or unrelated stock image can mislead.
|
|
55
|
+
When suitable assets are unavailable, use a purposeful text-led composition instead of pretending the product has imagery it does not.
|
|
56
|
+
Do not fetch remote assets automatically. If sourcing is explicitly authorized, track the relevant usage rights.
|
|
57
|
+
|
|
58
|
+
Let content dictate whether sections vary or repeat.
|
|
59
|
+
A narrative can change rhythm when its subject changes; a sequence of comparable options benefits from the same structure.
|
|
60
|
+
Neither a different layout for every section nor identical blocks everywhere is a universal rule.
|
|
@@ -15,9 +15,10 @@ Use this skill after installing, removing, creating, moving, or renaming skills,
|
|
|
15
15
|
|
|
16
16
|
- The registry is an index, not a compiler or summary. `SKILL.md` remains the source of truth.
|
|
17
17
|
- Do not generate or inject compact rules by default; preserve author intent by passing exact skill paths to subagents.
|
|
18
|
-
- Always write `.atl/skill-registry.md
|
|
18
|
+
- Always write `.atl/skill-registry.md`.
|
|
19
19
|
- Save the registry to Engram as `topic_key: skill-registry` when available, with `capture_prompt: false`.
|
|
20
20
|
- Skip `sdd-*`, `_shared`, and `skill-registry`; deduplicate by skill name, preferring project-level skills over user-level skills.
|
|
21
|
+
- The registry mirrors Pi's runtime-resolved skill set (`before_agent_start.systemPromptOptions.skills`) as the authority for skill name, scope, and disablement. The loose scan still walks the known agent roots, which include the Pi-managed `~/.pi/agent/skills` and `.pi/skills`; every path Pi resolved is suppressed from the loose results, so a skill Pi hides (`disableModelInvocation` or an excluded name) is never re-indexed as active. Never rescan `node_modules` or reparse `pi.skills` yourself.
|
|
21
22
|
- Add `.atl/` to `.gitignore` when possible unless explicitly disabled.
|
|
22
23
|
|
|
23
24
|
## Decision Gates
|
|
@@ -25,13 +26,14 @@ Use this skill after installing, removing, creating, moving, or renaming skills,
|
|
|
25
26
|
| Situation | Action |
|
|
26
27
|
| --- | --- |
|
|
27
28
|
| Same skill exists globally and in project | Keep the project-level skill |
|
|
29
|
+
| Pi-resolved skill and loose scan share a path | Keep the Pi-resolved record (exact path and source metadata); when Pi filtered that path out, suppress it instead of indexing it as an active row |
|
|
28
30
|
| Same skill exists in multiple global locations | Keep the first source in scan order |
|
|
29
31
|
| No skills found | Write an empty registry so agents stop searching blindly |
|
|
30
32
|
| Agent will delegate work | Select matching registry rows and pass their `SKILL.md` paths |
|
|
31
33
|
|
|
32
34
|
## Execution Steps
|
|
33
35
|
|
|
34
|
-
1. Scan
|
|
36
|
+
1. Scan the known user and project loose-scan directories for `*/SKILL.md`, including the Pi-managed `~/.pi/agent/skills` and `.pi/skills`; the runtime capture suppresses every path Pi already resolved, so a Pi-hidden skill never becomes an active row. npm-package and package-declared (`pi.skills`) skills arrive through the extension's runtime capture, not through this scan.
|
|
35
37
|
2. Read frontmatter only as needed to extract `name` and `description` trigger text.
|
|
36
38
|
3. Render `.atl/skill-registry.md` with scanned sources, registry contract, skill name, trigger/description, scope, and exact path.
|
|
37
39
|
4. Persist to Engram when available using `title: skill-registry`, `topic_key: skill-registry`, `type: config`, and `capture_prompt: false`.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Notice
|
|
2
|
+
|
|
3
|
+
This skill is original text. Its methodology (named design commands, scored critique with P0-P3 severities, operate-mode guidance, product and design context files, anti-pattern catalog) is inspired by impeccable by Paul Bakaus, licensed under Apache-2.0: https://github.com/pbakaus/impeccable
|
|
4
|
+
|
|
5
|
+
No impeccable files are redistributed here, and the impeccable name is used only for attribution.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gentle-ai-tui-design
|
|
3
|
+
description: "Trigger: terminal UI design, TUI redesign, Gentle Shell look, IDE in a terminal, sidebar/status bar polish, critique TUI. Design, critique and refine terminal UIs with visual proof."
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
metadata:
|
|
6
|
+
author: gentleman-programming
|
|
7
|
+
version: "1.0"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Activation Contract
|
|
11
|
+
|
|
12
|
+
Use for designing, reviewing or refining a terminal interface (panels, rails, status bars, cards, prompts), especially Gentle Shell. The target feel is an IDE inside a terminal: dense, calm, developer-first, never a costume of retro TUI chrome. Not for web pages (use `gentle-design`).
|
|
13
|
+
|
|
14
|
+
## Hard Rules
|
|
15
|
+
|
|
16
|
+
- Never judge a terminal UI from code or memory: capture it (`references/visual-loop.md`) and look at the PNG before and after every change.
|
|
17
|
+
- Read `references/terminal-craft.md` before any UI edit; it is the floor, not a suggestion.
|
|
18
|
+
- Operate mode: familiarity beats expression. Use IDE vocabulary (panes, tree, tabs, status bar, command palette); the brand lives in palette, density and one signature move.
|
|
19
|
+
- Every row costs. Hierarchy comes from color role, weight and alignment, never from blank rows or nested boxes.
|
|
20
|
+
- Say each fact once per screen. Data shown in the header never repeats in a panel.
|
|
21
|
+
- One command, one target. Refinement preserves the system; redesign replaces it. Never polish a look being thrown away.
|
|
22
|
+
- Rendering stays cheap: no I/O or recomputation in render paths, cache keyed on everything that changes output (style, width, theme).
|
|
23
|
+
- Mockups (via `gentle-design`) must be terminal-expressible: monospace cell grid in `ch` units, only fg/bg colors, bold/dim/italic/underline/strikethrough, box-drawing and glyphs.
|
|
24
|
+
|
|
25
|
+
## Decision Gates
|
|
26
|
+
|
|
27
|
+
| Ask | Command | Load |
|
|
28
|
+
|-----|---------|------|
|
|
29
|
+
| No product/design context yet | `document` | `references/design-doc.md` |
|
|
30
|
+
| New surface or redesign | `shape`, then mockups, then implement | `references/commands.md` |
|
|
31
|
+
| "How does it look / what is wrong" | `critique` | `references/critique.md` |
|
|
32
|
+
| Too busy, wasted space, redundant | `distill` / `layout` / `quieter` | `references/commands.md` |
|
|
33
|
+
| Flat, no hierarchy, unreadable | `typeset` / `colorize` / `bolder` | `references/commands.md` |
|
|
34
|
+
| Edge cases, narrow terminals, long text | `harden` / `adapt` | `references/commands.md` |
|
|
35
|
+
| Final pass before commit | `polish` | `references/commands.md` |
|
|
36
|
+
|
|
37
|
+
## Execution Steps
|
|
38
|
+
|
|
39
|
+
1. Load `DESIGN.md` context if the project has one; otherwise propose `document` first.
|
|
40
|
+
2. Capture the current state with the visual loop at the shipped sizes (wide 180x50, breakpoint 140, narrow 80x24).
|
|
41
|
+
3. Run the chosen command against one named target; write findings before changing code.
|
|
42
|
+
4. Change, re-capture, compare against the previous PNG and the brief; iterate at most 3 rounds, then report.
|
|
43
|
+
5. End every refine command with `polish` checks and the repository's focused tests (render counts, overflow).
|
|
44
|
+
|
|
45
|
+
## Output Contract
|
|
46
|
+
|
|
47
|
+
Return: target, command run, before/after PNG paths, findings fixed with P0-P3 tags, findings left open, and checks run.
|
|
48
|
+
|
|
49
|
+
## References
|
|
50
|
+
|
|
51
|
+
- `references/terminal-craft.md`: floor rules and terminal anti-patterns.
|
|
52
|
+
- `references/commands.md`: command playbooks adapted to terminals.
|
|
53
|
+
- `references/critique.md`: scored critique and severity rubric.
|
|
54
|
+
- `references/design-doc.md`: DESIGN.md shape for a terminal product.
|
|
55
|
+
- `references/visual-loop.md`: screenshot harness and comparison loop.
|
|
56
|
+
- `NOTICE.md`: attribution.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Command Playbooks (terminal)
|
|
2
|
+
|
|
3
|
+
Each command takes one named target (a panel, a bar, a card type). Every refine command finishes with `polish`.
|
|
4
|
+
|
|
5
|
+
## shape (plan before code)
|
|
6
|
+
|
|
7
|
+
- Ask 2-3 questions per round: purpose, who uses it and how often, what success looks like; then content ranges, states and width limits.
|
|
8
|
+
- Output a brief: goal, users and frequency, content inventory with ranges, states, layout at each width, keyboard/mouse model, open questions. No code.
|
|
9
|
+
|
|
10
|
+
## distill (remove what does not earn its rows)
|
|
11
|
+
|
|
12
|
+
- One primary goal per panel; say each fact once per screen.
|
|
13
|
+
- Flatten nesting; delete group titles that only restate the content.
|
|
14
|
+
- Collapse finished or idle content to a summary row.
|
|
15
|
+
- Keep the fixed rail; distill its contents, not its existence.
|
|
16
|
+
|
|
17
|
+
## layout (spacing and rhythm)
|
|
18
|
+
|
|
19
|
+
- Squint test first; fix order before decoration.
|
|
20
|
+
- Group by proximity, then separators, boxes last.
|
|
21
|
+
- Tight inside groups, one consistent gap between groups.
|
|
22
|
+
- Align values in a column; use tabular alignment for numbers and durations.
|
|
23
|
+
- Predictable structure is the affordance: same section shape everywhere.
|
|
24
|
+
|
|
25
|
+
## typeset (hierarchy without font sizes)
|
|
26
|
+
|
|
27
|
+
- Define 3-4 roles: title (bold or accent), value (normal), label (dim), meta (dim italic or muted).
|
|
28
|
+
- Apply each role identically everywhere it repeats.
|
|
29
|
+
- Prose wraps at 60-80 columns; chrome truncates.
|
|
30
|
+
|
|
31
|
+
## quieter (tone down)
|
|
32
|
+
|
|
33
|
+
- Fewer background tints, flatter surfaces, fewer accent uses, no decorative motion.
|
|
34
|
+
- Keep a few anchors (the accent on the active item) so it still has a point of view.
|
|
35
|
+
|
|
36
|
+
## bolder (amplify one thing)
|
|
37
|
+
|
|
38
|
+
- Touch only the named target; amplify what the system already owns.
|
|
39
|
+
- Commit to one move and quiet everything around it.
|
|
40
|
+
- Skeleton test: the structure must read with placeholder text.
|
|
41
|
+
|
|
42
|
+
## colorize (roles, not swatches)
|
|
43
|
+
|
|
44
|
+
- Map every color to a role from the theme; accents only for action, selection and state.
|
|
45
|
+
- Add a second neutral for side panels and bars; check contrast on it.
|
|
46
|
+
- Pair every state color with a glyph or word.
|
|
47
|
+
|
|
48
|
+
## clarify (copy)
|
|
49
|
+
|
|
50
|
+
- Controls name their action; errors say what failed, why, and how to recover.
|
|
51
|
+
- Empty states distinguish first use, nothing yet and failure.
|
|
52
|
+
- Loading names the real operation; never fake progress.
|
|
53
|
+
- One term per concept across the whole shell.
|
|
54
|
+
|
|
55
|
+
## harden (edge cases)
|
|
56
|
+
|
|
57
|
+
- Long paths and branch names, emoji and CJK widths, 0/1/1000 items, very long tasks.
|
|
58
|
+
- Missing data, failed commands, permission errors: one failing part never blanks the whole surface.
|
|
59
|
+
- Resize during render; collapsed and expanded transitions.
|
|
60
|
+
|
|
61
|
+
## adapt (other sizes)
|
|
62
|
+
|
|
63
|
+
- Rethink per width, do not scale: wide (rail visible), breakpoint (exactly at and below it), narrow 80x24.
|
|
64
|
+
- Decide what moves to the status bar or a key when the rail disappears.
|
|
65
|
+
|
|
66
|
+
## polish (final pass)
|
|
67
|
+
|
|
68
|
+
- Classify each drift: missing token, one-off value, concept mismatch, local defect.
|
|
69
|
+
- Triage: broken task, missing states, flow drift, visual, cleanup.
|
|
70
|
+
- One glyph family; every control has all its states; no stray colors.
|
|
71
|
+
- Re-capture and compare with the brief and the previous PNG.
|
|
72
|
+
|
|
73
|
+
## document (context)
|
|
74
|
+
|
|
75
|
+
- Write or update `DESIGN.md` per `design-doc.md`; never overwrite an existing one silently.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Critique (scored)
|
|
2
|
+
|
|
3
|
+
Judge from a screenshot, not from code. Write the design assessment first, then check measurable evidence (overflow, contrast, render counts) so the evidence does not anchor the judgment.
|
|
4
|
+
|
|
5
|
+
## Health score
|
|
6
|
+
|
|
7
|
+
Score each heuristic 0-4 (0 broken, 2 workable, 4 excellent); mark `n/a` and renormalize to /40 when one does not apply.
|
|
8
|
+
|
|
9
|
+
1. Visibility of system status (live work, progress, mode, permissions).
|
|
10
|
+
2. Match with developer expectations (IDE and terminal conventions).
|
|
11
|
+
3. User control (collapse, scroll, escape, undo of view changes).
|
|
12
|
+
4. Consistency (glyphs, roles, section shapes, terms).
|
|
13
|
+
5. Error prevention (dangerous modes visible, confirmations where needed).
|
|
14
|
+
6. Recognition over recall (hints where the action is, palette discoverability).
|
|
15
|
+
7. Efficiency for experts (keyboard paths, density, no wasted rows).
|
|
16
|
+
8. Minimalist design (each fact once, no decoration).
|
|
17
|
+
9. Error recovery (messages with cause and next step).
|
|
18
|
+
10. Help and documentation (discoverable keys and commands).
|
|
19
|
+
|
|
20
|
+
Bands: 36-40 excellent, 28-35 good, 20-27 acceptable, 12-19 poor, under 12 critical.
|
|
21
|
+
|
|
22
|
+
## Cognitive load check
|
|
23
|
+
|
|
24
|
+
Single focus, chunks of 4 or fewer, clear grouping, visible hierarchy, one decision at a time, 4 or fewer options per decision, no need to remember across screens, progressive disclosure. 0-1 failures is low load; 4 or more is critical.
|
|
25
|
+
|
|
26
|
+
## Personas
|
|
27
|
+
|
|
28
|
+
- Power user: lives on the keyboard, wants density and zero repetition.
|
|
29
|
+
- Keyboard/accessibility: contrast, focus visibility, no color-only state.
|
|
30
|
+
- Stress tester: long sessions, 50 agents, 200 todos, narrow terminal.
|
|
31
|
+
|
|
32
|
+
## Severity
|
|
33
|
+
|
|
34
|
+
- P0 blocking: the task cannot be done or the UI breaks (rail disappears, content unreadable).
|
|
35
|
+
- P1 major: significant difficulty or contrast failure. Tie-breaker: would a user report it? Then at least P1.
|
|
36
|
+
- P2 minor: a workaround exists.
|
|
37
|
+
- P3 polish.
|
|
38
|
+
|
|
39
|
+
## Report shape
|
|
40
|
+
|
|
41
|
+
1. Target, sizes captured, PNG paths.
|
|
42
|
+
2. Health score table and total.
|
|
43
|
+
3. Specificity verdict: could any other TUI ship this unchanged?
|
|
44
|
+
4. What works (2-3).
|
|
45
|
+
5. Priority issues (3-5): `[P?] what / why it matters / fix / command`.
|
|
46
|
+
6. Persona red flags.
|
|
47
|
+
7. Minor observations.
|
|
48
|
+
8. 2-4 questions with concrete options, last.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# DESIGN.md for a terminal product
|
|
2
|
+
|
|
3
|
+
Keep it at the project root or `design/DESIGN.md`. Describe first, then give the exact value in parentheses, and say where and why each token is used. Add 1-3 named rules per section (`**The One Fact Rule.** ...`). Never overwrite an existing file silently; propose a diff.
|
|
4
|
+
|
|
5
|
+
## Frontmatter tokens
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
colors: # roles mapped to theme color keys, not hex literals
|
|
9
|
+
canvas: ...
|
|
10
|
+
rail: ...
|
|
11
|
+
text: { primary: ..., secondary: ..., muted: ... }
|
|
12
|
+
accent: ...
|
|
13
|
+
state: { success: ..., warning: ..., error: ..., info: ... }
|
|
14
|
+
border: ...
|
|
15
|
+
roles: # type roles as attribute combinations
|
|
16
|
+
title: bold + accent
|
|
17
|
+
value: normal
|
|
18
|
+
label: dim
|
|
19
|
+
meta: dim italic
|
|
20
|
+
glyphs: # one family, by meaning
|
|
21
|
+
done: ✓
|
|
22
|
+
running: ●
|
|
23
|
+
pending: ○
|
|
24
|
+
expanded: ▾
|
|
25
|
+
collapsed: ▸
|
|
26
|
+
spacing: # in cells and rows
|
|
27
|
+
inset: 1 col
|
|
28
|
+
group-gap: 1 row
|
|
29
|
+
section-gap: 1 row
|
|
30
|
+
widths:
|
|
31
|
+
rail: 50
|
|
32
|
+
breakpoint: 140
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Sections (fixed order)
|
|
36
|
+
|
|
37
|
+
1. Overview: product, users, and a one-line north star metaphor (for example "an IDE inside a terminal").
|
|
38
|
+
2. Colors: roles and where each appears.
|
|
39
|
+
3. Type roles: hierarchy and where each role applies.
|
|
40
|
+
4. Layout: panes, rail, status bar, widths and breakpoints.
|
|
41
|
+
5. Surfaces: canvas vs rail vs elevated; how regions separate.
|
|
42
|
+
6. Glyphs: the family and meaning table.
|
|
43
|
+
7. Components: each panel/bar/card with its states.
|
|
44
|
+
8. Do's and Don'ts: named rules and refusals specific to this product.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Terminal Craft Floor
|
|
2
|
+
|
|
3
|
+
Read before any terminal UI edit. Every item is checkable in a screenshot.
|
|
4
|
+
|
|
5
|
+
## The medium
|
|
6
|
+
|
|
7
|
+
- The grid is the cell. Spacing is measured in columns and rows; a blank row is the most expensive spacing unit, a single space column the cheapest.
|
|
8
|
+
- Type roles come from bold, dim, italic, case and color role, not size. Keep roles few (3-4) and identical wherever they repeat.
|
|
9
|
+
- Glyphs are the icon system. Pick one family (for example geometric: `●○◐✓✗▸▾`) and use it everywhere; never mix flower, emoji and geometric glyphs for the same role.
|
|
10
|
+
- Double-width cells (emoji, CJK) break alignment and width budgets; avoid emoji in chrome, measure with `visibleWidth`.
|
|
11
|
+
|
|
12
|
+
## Hierarchy
|
|
13
|
+
|
|
14
|
+
- One primary element per panel, 2-3 secondary, everything else muted.
|
|
15
|
+
- Labels dim, values normal, the one thing that matters bright or accented.
|
|
16
|
+
- Align key/value pairs in a column (`label value`), not label-above-value stacks.
|
|
17
|
+
- Group by proximity first; add a separator only when proximity fails; add a box only when the region is interactive or scrolls independently.
|
|
18
|
+
- Squint test: in a blurred screenshot the order primary > secondary > groups must still read.
|
|
19
|
+
|
|
20
|
+
## Space and density
|
|
21
|
+
|
|
22
|
+
- Density matches frequency of use: always-visible chrome is dense (one row per fact), rarely used detail goes behind a key or expands.
|
|
23
|
+
- Rhythm comes from contrast: tight inside a group, one gap between groups, never the same gap everywhere.
|
|
24
|
+
- Panel chrome budget: header row plus content. Padding rows above, below and between header and body must earn their place.
|
|
25
|
+
- Truncate with `…` rather than wrap in fixed-width rails; wrap only prose.
|
|
26
|
+
- Finished items (done todos, completed agents) collapse to a summary row.
|
|
27
|
+
|
|
28
|
+
## Color roles
|
|
29
|
+
|
|
30
|
+
- Build roles, not swatches: canvas, elevated surface, rail surface (a second neutral, slightly tinted), text primary/secondary/muted, accent (action, selection, focus), success/warning/error/info, border.
|
|
31
|
+
- Accent only for action, selection and live state; one accent hue.
|
|
32
|
+
- Never gray text on a colored background; use a darker shade of the background hue.
|
|
33
|
+
- Never encode state by color alone; pair it with a glyph or word.
|
|
34
|
+
- Dark is designed, not inverted; check contrast of dim text on tinted surfaces.
|
|
35
|
+
|
|
36
|
+
## IDE vocabulary (Operate mode)
|
|
37
|
+
|
|
38
|
+
- Status bar: one row, fixed position, segments separated by thin dividers, most volatile data on the right.
|
|
39
|
+
- Side panel: sections with a one-row header (`▾ NAME count`), collapsible, dense lists below.
|
|
40
|
+
- Panes are separated by a single thin rule or a surface tint, not by framed boxes with gaps.
|
|
41
|
+
- Keyboard hints live in the status bar or appear on focus/hover, not repeated in every header.
|
|
42
|
+
- Command palette and slash commands are the navigation model; do not invent new affordances.
|
|
43
|
+
|
|
44
|
+
## Refuse (terminal anti-patterns)
|
|
45
|
+
|
|
46
|
+
- Boxes inside boxes, or a card per tiny fact.
|
|
47
|
+
- A colored side bar (`▌`/`┃`) on every item as decoration.
|
|
48
|
+
- Blank rows as the main hierarchy tool; monotonous spacing.
|
|
49
|
+
- Text flush against a colored band with no inset cell.
|
|
50
|
+
- The same fact shown twice on one screen (header and panel).
|
|
51
|
+
- Redundant labels repeated 3+ times in one panel; words like "Collapse" where a glyph says it.
|
|
52
|
+
- Letter-spaced or ALL CAPS body text.
|
|
53
|
+
- Decorative animation; spinners or pulses only for genuinely live work.
|
|
54
|
+
- Retro costume: fake function-key bars, ASCII art banners, neon-on-black palettes chosen for vibe.
|
|
55
|
+
- Colors outside the theme tokens.
|
|
56
|
+
- Copy tells: em-dash chains, marketing words, aphorisms in status text.
|
|
57
|
+
|
|
58
|
+
## Verify
|
|
59
|
+
|
|
60
|
+
- Contrast of dim and muted text on every surface it appears on.
|
|
61
|
+
- Every interactive row has default, hover, focus, selected, disabled and loading looks.
|
|
62
|
+
- Long values (paths, branch names), empty states, 0 and 1000 items, narrow widths.
|
|
63
|
+
- No line exceeds its column budget (an overflowing rail line can disable the whole rail in Gentle Shell).
|
|
64
|
+
- Render cost: unchanged frames re-render nothing; style and width changes invalidate caches.
|