Overview
A request such as "Build me a beautiful site" is highly subjective. A prompt-contract skill can begin by examining the existing business site, identifying implicit assumptions, and drafting a contract.
A resulting contract may define:
- A single-page marketing site.
- A specific business purpose.
- Smooth scroll animations.
- A maximum amount of code.
- Required sections.
- Hover states and fade-in behavior.
- Mobile compatibility.
- A failure condition if the result resembles a generic template.
- A failure condition if animations are poor or the site breaks on mobile.
The user can review the contract before approving implementation.
A second example chains reverse prompting and the prompt-contract skill. The agent first asks about purpose, architecture, visual style, and copy. It then creates a contract for a light, minimal, high-end site. Because the desired aesthetic and structure have been clarified, the completed site is much closer to the intended outcome: a white interface, restrained design, clear service information, testimonials, and a call to action.
The improved result is not caused by a magical design prompt. It is caused by removing ambiguity before execution.