AGENT SKILL

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
所属仓库
Qredence/fleet-pi
最近更新
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-label and title for compact actions.
  • Keep InputBar mode/model controls inside leftActions.
  • Avoid editing apps/web/src/routeTree.gen.ts manually.

Validation

pnpm --filter web typecheck
pnpm --filter @workspace/ui typecheck
pnpm --filter web lint
pnpm --filter @workspace/ui lint

04 同仓库更多 Skills