agentic-ui-contract

Use this when building or refactoring toward agentic product behavior.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "agentic-ui-contract" with this command: npx skills add phrazzld/claude-config/phrazzld-claude-config-agentic-ui-contract

Agentic UI Contract

Use this when building or refactoring toward agentic product behavior.

Core Contract

  • Model decides WHAT to do.

  • Tools decide HOW it is done.

  • UI schema decides HOW it is rendered.

This gives open-ended behavior without fragile freeform execution.

Architecture Shape

  • Planner layer (LLM): intent interpretation + tool selection + sequencing.

  • Tool layer (deterministic): typed side effects and data reads.

  • UI contract layer (typed blocks): constrained rendering catalog.

  • Control layer: auth, guardrails, tracing, evals, fallback.

Rules

  • Never let model write directly to persistence.

  • Never trust model-generated metrics; compute metrics deterministically.

  • Keep tool interfaces deep (few, meaningful tools), avoid tiny tool explosions.

  • Keep UI blocks strict and versionable.

  • Treat planner failure as recoverable; fallback to deterministic behavior.

Implementation Workflow

  • Define typed block schema first.

  • Define deep tool surface second.

  • Implement server planner tool loop third.

  • Keep client thin: send messages, render blocks, apply client actions.

  • Add traces and eval fixtures before widening scope.

Readiness Checklist

  • Tool args validated with schema.

  • Tool outputs deterministic and structured.

  • Planner cannot bypass tools for data claims.

  • UI renders only whitelisted block types.

  • Planner + tool traces available per turn.

  • Deterministic fallback path exists.

Anti-Patterns

  • Regex parser as primary intelligence layer.

  • Model directly composing arbitrary UI markup/components.

  • Over-fragmented tools that mirror internal implementation.

  • Allowing model narration to replace data tool calls.

  • No eval harness for prompt/tool regressions.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

changelog-automation

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

marketing-ops

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

agent-tools

No summary provided by upstream source.

Repository SourceNeeds Review