agent-ui-workflows
Build or modify Fleet Pi's React Agent Elements UI, including InputBar controls, tool cards, question prompts, resource drawer, model picker, mode selector, and streaming state.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-11
- Stars
- ★ 9
- Forks
- 0
01 前言 Front Matter
- name
- agent-ui-workflows
- description
- Build or modify Fleet Pi's React Agent Elements UI, including InputBar controls, tool cards, question prompts, resource drawer, model picker, mode selector, and streaming state.
03 SKILL.md 正文
Agent UI Workflows
Use this skill for UI changes in the chat surface or shared Agent Elements package.
Key Files
- Chat page composition:
apps/web/src/routes/index.tsx - Chat message and tool types:
@workspace/pi-protocol/chat-types(shim:packages/hax-design/src/components/agent-elements/chat-types.ts) - Input composer:
packages/hax-design/src/components/agent-elements/input-bar.tsx - Mode and model controls:
packages/hax-design/src/components/agent-elements/input/ - Tool dispatch:
packages/hax-design/src/components/agent-elements/tools/tool-renderer.tsx - Tool metadata:
packages/hax-design/src/components/agent-elements/tools/tool-registry.ts - Question prompt:
packages/hax-design/src/components/agent-elements/question/
Design Rules
- Keep controls compact and scannable; this is an operational coding tool, not a landing page.
- Use existing Agent Elements primitives and direct-file imports.
- Prefer icon buttons with
aria-labelandtitlefor compact actions. - Keep
InputBarmode/model controls insideleftActions. - Avoid editing
apps/web/src/routeTree.gen.tsmanually.
Validation
pnpm --filter web typecheck
pnpm --filter @workspace/ui typecheck
pnpm --filter web lint
pnpm --filter @workspace/ui lint
04 同仓库更多 Skills
memory-synthesis
Distil daily notes, finished plans, and reports into short, grounded updates to memory/project/. Use when raw notes pile up or the user asks to consolidate memory.
execution-plan
Write a resumable plan under plans/active/ for multi-step work, then keep its progress and decision logs current. Use when a task spans several steps or sessions.
doc-gardening
Clean up stale, duplicated, or contradictory notes in this workspace. Use when memory or plans feel noisy or out of date.
memory-synthesis
Distil daily notes, finished plans, and reports into short, grounded updates to agent-workspace/memory/project/.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
execution-plan
Write a resumable plan under agent-workspace/plans/ for multi-step work and keep its progress and decision logs current.