UsageMIT · agent-agnostic

Guides

Usage guide

How to write briefs that produce strong routes, enforce packs during implementation, and run the review loop without regenerating on every tweak.

Write briefs that compile well

DZINE routes your brief through product-aware intelligence — not generic “make it modern” prompts. Include enough context that the contract can enforce proof, hierarchy, and action priority.

Compile example
npx dzine-skill compile "public docs site for a design-contract CLI used by AI builders" --contract --out dzine-pack

Brief ingredients

  • Product type — SaaS, docs, commerce, trust center, dashboard, portfolio…
  • Audience — who must understand the page in five seconds
  • Proof — artifacts, metrics, customer logos, live demos
  • Primary action — one main CTA per viewport
  • Constraints — austere vs editorial, mobile-first, accessibility bar

Brief examples

WeakStrong
modern AI homepageSOC2-ready observability platform pricing page for platform engineers
nice docs siteAPI reference for a design-contract CLI with install path and score workflow
premium brand sitequiet-luxury hospitality booking site with proof-first hero and single reserve CTA

Use the pack during implementation

FileAgent should
design-contract.jsonTreat as source of truth; never contradict clause paths
DESIGN.mdRead before writing components; follow forbidden patterns
route.jsonImplement sections in order with stated jobs
tokens.cssMap tokens into your framework theme
scorecard.mdRun after first pass; fix [FAIL] rows only

Review loop

  1. Generate pack with --write-build-pack.
  2. Inspect contract-preview.html and DESIGN.md before coding.
  3. Implement with agent; commit pack beside app.
  4. lint then score against dev URL.
  5. repair → agent patches → re-score.

Common mistakes

  • One-shot prompt — asking the agent to design and build without a pack.
  • Vague briefs — lint fails or produces generic routes.
  • Polish without proof — pretty UI that fails hierarchy and action gates.
  • Compressed mobile — stacking desktop columns instead of designing mobile.
  • Ignoring scorecard — subjective “make it nicer” instead of clause repair.

CLI reference · Agent handoff