SKILL.md--- name: create-issue-interaction-ui description: > Add a new Paperclip issue-thread interaction kind end-to-end. Use when repo work introduces or extends interaction cards like request_confirmation, checkbox confirmations, ask_user_questions, or suggest_tasks. --- # Create a new issue-thread interaction UI (Developer/maintainer skill) Developer/maintainer skill. Do NOT install this on production Paperclip agents. This skill walks a Paperclip contributor through introducing a new issue-thread interaction kind from shared contract to issue-detail wiring, helpers, and docs. It is intentionally a developer/maintainer skill: the audience is a human or coding agent making code changes inside `paperclipai/paperclip`, not the operational agents that run inside a deployed Paperclip company. Do NOT install this on production Paperclip agents. This guide is for repository contributors changing Paperclip itself. ## When to use - A new interaction kind is being introduced (compact picker, structured rating, in-thread approval card, etc.). - An existing interaction needs a parallel variant with a distinct payload shape, validation, or resolution outcome (and `ask_user_questions` is the wrong fit because option count, target binding, or result shape differs). - A reviewer asks for "the same audit, staleness, supersede, and continuation semantics as the other interactions" on a new card. ## When NOT to use - Adding fields to an existing interaction kind that does not need a new payload schema. Patch the existing validators/UI in place instead. - Changing how Paperclip agents *call* interactions. Update `skills/paperclip` or `references/api-reference.md`; that is agent guidance, not card work. - Building a non-thread UI (issue detail sidebar, project board widget, etc.). Those have their own component conventions. ## Mental model Every issue-thread interaction has five moving parts: | Layer | Owns | |--------------|---------------------------------------------------------------------------------------------------| | Shared | Kind constant, payload/result interfaces, Zod validators, exported types, shared-test coverage. | | Server | Service create/accept/reject/respond, staleness, supersede, idempotency, activity log, wake send. | | UI | Card pending/resolved/stale states, fixtures, Storybook, issue-thread/IssueDetail wiring. | | Channels | Complete question/context, native response or Paperclip handoff, callback authorization, and settled provider cards. | | Helpers/Docs | CLI command, MCP tool, plugin SDK type+host+testing path, `skills/paperclip` guidance. | Use the current `ISSUE_THREAD_INTERACTION_KINDS` as the inventory. Pick the closest existing kind and reuse its plumbing rather than inventing parallel mechanics: - `request_confirmation` — single yes/no bound to a `target` with stale/supersede. - `request_checkbox_confirmation` — bounded multi-select again