DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to design an agent task input with full states with Bricks

Get a Task Input component that covers loading, cancellation, invalid input, and recovery.

Short answer: Install the skill with npx skills add kostja94/bricks --skill component-builder; then describe the task surface and where the input sits in the existing page or workspace; Have the agent load the Task Input reference and list the states it will implement before coding. All steps.

Who it is forA product engineer adding an AI task box to an internal tool who needs the component to handle failures, not only the happy path.

The problemAgent-generated task inputs often omit loading, cancellation, invalid input, or result recovery.

The outcomeA Task Input component with the expected interaction states, built from the project's own primitives and checked inside its real page.

What you need first

  • A project codebase with routes, components, design tokens, and a frontend framework the agent can read
  • A coding agent that can run shell commands such as npx in the project
  • Node.js and npm, needed for npx and for npm test in the Bricks repo

Steps

  1. Install the skill with npx skills add kostja94/bricks --skill component-builder.
  2. Describe the task surface and where the input sits in the existing page or workspace.
  3. Have the agent load the Task Input reference and list the states it will implement before coding.
  4. Review the states for loading, cancellation, invalid input, and result recovery, then ask for the verified build.

Prompt for your agent

Use the component-builder skill from kostja94/bricks to build a Task Input for <target project>. Cover loading, cancellation, invalid input, and result recovery, reusing the project's existing primitives. Verify the component inside its real page and report which states were tested.

Caveat. The README gives Task Input as an example of a component that needs these states, but it does not provide a ready-made agent backend, so you still wire the behavior to your own tools.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for kostja94/bricks and "Design an agent task input with full states"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer