executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
lov-integrate-agent-uiux把 Agent 对话记录、工具过程、状态、Markdown 与输入区集成进 React Native 或 React 应用;触发语包括“接入 AI 对话 UI”与 "integrate agent chat UI"。
Independent GitHub snapshot · Automated classification · Original documentation governs
Integrate a production-shaped Agent conversation surface into an existing app. The deliverable includes a normalized transcript contract, accessible UI components, target-stack adapters, and a verification report.
Read skill.yaml on every invocation. Resolve user, brand, workspace, shared
preferences, and skills.lov-integrate-agent-uiux records without copying
personal values into this portable source. Persist only direct durable user
statements through scripts/profile_store.py, then report the saved Profile path.
See references/user-profile.md.
Read references/skill-composition.md before composing adjacent capabilities.
Sibling Skills are optional artifact handoffs and never hidden dependencies.
Resolve SKILL_DIR from the active Skill context, then verify:
$SKILL_DIR/scripts/agent_uiux.py$SKILL_DIR/assets/common$SKILL_DIR/assets/react-native$SKILL_DIR/assets/react$SKILL_DIR/references/integration-contract.md$SKILL_DIR/references/yoda-mobile-patterns.md$SKILL_DIR/references/acceptance-checklist.mdscripts/profile_store.py read --skill-id lov-integrate-agent-uiux --pretty when a Profile is configured.references/integration-contract.md and
references/yoda-mobile-patterns.md before designing the adapter.Run the deterministic audit:
python3 "$SKILL_DIR/scripts/agent_uiux.py" audit <project-path> --format json
Confirm the detected stack, source root, package manager, existing design tokens, message data source, send/retry contract, realtime mechanism, and test commands. If the stack is not React Native/Expo or React Web, use the neutral contract as the implementation source and state that the bundled scaffold is unavailable.
Create one adapter from the host's transport/domain objects to AgentMessage,
AgentSessionState, AgentAttachment, and PendingInteraction. Keep API calls,
SSE/WebSocket/polling, persistence, and provider-specific fields outside the UI
components. Preserve stable message and tool-call IDs.
Required semantic coverage:
Preview first:
python3 "$SKILL_DIR/scripts/agent_uiux.py" scaffold <project-path> --dry-run
Then scaffold into the detected source tree:
python3 "$SKILL_DIR/scripts/agent_uiux.py" scaffold <project-path>
Use --stack react-native or --stack react only to override a wrong detection.
Use --component-dir <relative-path> to follow an established component layout.
The command refuses occupied targets; do not use --force without explicit user
authorization. Import files directly from their source modules rather than
adding a re-export barrel when the host forbids re-exports.
AgentConversation.AgentUiTheme; do not hard-code product branding.Run the structural verifier:
python3 "$SKILL_DIR/scripts/agent_uiux.py" verify <project-path>
Then run the host's format, lint, typecheck, tests, and build commands. Exercise the smallest real end-to-end conversation covering user text, assistant Markdown, a running then completed tool group, a pending interaction, send failure/retry, and a final response. For native mobile changes, follow the host repository's real-device requirement; a static build is not device verification.
Apply every item in references/acceptance-checklist.md. Record the real input,
minimum prompt, output paths, commands, and observed evidence in the task result.
Do not invent screenshots, scores, latency wins, or device proof.
Return:
react, react-native; Expo is supported but optional.react, react-dom; no UI or Markdown package is required.