Web Design Skill Practical Manual (Detailed Version)
Tools: Claude Code / OpenCode Goal: Following this guide, you will use AI to generate a high-quality space exploration museum webpage Estimated time: 40-90 minutes
Before We Start - Understanding What We’re Going to Do
Overall Process Overview
|
|
Why “Bare Run” First Before Using Skill?
This is a comparison experiment:
- If you use Skill directly, you won’t appreciate its value
- Let AI work freely first → You’ll see typical AI-style webpages (purple-pink-blue gradients, large rounded cards, emoji icons…)
- Then use Skill to do it again → You’ll witness the same topic, same model producing completely different results
Tools You’ll Need
| Tool | What It Is | Where to Get It |
|---|---|---|
| Terminal | Where you chat with AI | Windows: PowerShell / Terminal; macOS: Terminal |
| Claude Code or OpenCode | AI coding Agent | See installation instructions below |
| Git | Download Skill files from GitHub | winget install Git.Git (Win) / brew install git (macOS) |
| Browser | Preview webpage effects | Chrome / Edge / Firefox |
| Screen recorder (optional) | Record the process | OBS Studio (free) / System built-in |
Confirm Agent is Ready
If You’re Using Claude Code
What it is: Anthropic’s official terminal AI coding tool. You type in the terminal, it helps you read files, write code, and execute commands.
Confirm installation:
Open terminal (Windows: PowerShell, macOS: Terminal), type:
|
|
If it shows a version number (like 1.0.x), it’s installed.
If not installed:
|
|
Confirm API Key is configured:
Claude Code needs an Anthropic API Key. In terminal:
|
|
If you see apiKey is set, you’re good. If not:
|
|
(Replace sk-ant-xxxxx with your real key)
If You’re Using OpenCode
What it is: An open-source terminal AI coding tool by SST team, similar to Claude Code but supports multiple models.
Confirm installation:
|
|
If not installed:
|
|
Create Project Directory
Create Working Folder
|
|
Initialize Git Repository
|
|
Create Initial File
Create an empty HTML file:
Claude Code:
|
|
Then input:
|
|
Or manually:
|
|
Start Local Preview Server
|
|
Visit http://localhost:3000 in your browser.
Download web-design-skill
Clone Repository
|
|
Bare Run Experience - See AI’s “Native Aesthetics”
🎯 Purpose: Let AI generate a webpage using default behavior, observe its “native aesthetics.”
Start Agent (Without Loading Skill)
|
|
Input Design Requirements
|
|
Wait for AI to Generate
This takes about 1-3 minutes.
Check Result
Refresh http://localhost:3000 in your browser.
Observation checklist:
- Colors: Is there a purple-pink-blue gradient?
- Layout: Is it standard “centered title + subtitle”?
- AI-style features: Emoji icons? Large rounded cards?
Save Bare Run Version
|
|
Install Skill to Agent
🎯 Purpose: Inject web-design-skill rules into Agent’s system prompt.
Claude Code - Two Installation Methods
Method A: Write to CLAUDE.md (Recommended, Permanent)
|
|
Method B: Reference in Conversation (Temporary)
|
|
OpenCode - Installation
Method A: Write to AGENTS.md (Recommended)
|
|
Verify Skill is Active
Start Agent, input:
|
|
If Skill is active, AI will mention OKLCH color space, specific font recommendations, and “remove AI-style” rules.
Skill Enhancement - Polish the Premium Feel
🎯 Purpose: Use the same requirements, let Skill guide AI to create a completely different webpage.
Start New Conversation
Important: Must start a new conversation!
Input Design Requirements
This time we deliberately give minimal requirements:
|
|
Phase A: AI Asks Questions
AI may ask clarifying questions first.
Phase B: AI Explains Design System
AI describes its design system before writing code:
|
|
Phase C: AI Outputs V0 (Rough Initial Version)
Check browser, confirm if direction is correct.
Phase D: Iterative Refinement
Give 1-2 feedback points per round.
Phase E: Final Verification
|
|
Save Skill Version
After AI completes, save the final version:
|
|
Compare Two Versions
Open both files in browser:
|
|
Record as Video (Optional)
Suggested Shots
|
|
Appendix A: Common Prompt Templates
Ask AI to Explain Design System First
|
|
Request Quick V0
|
|
Trigger Full Verification
|
|
Final Summary
|
|
Three sentences to remember Skill’s essence:
- Design system first, code second — Wrong direction means wasted code
- Rough V0 first, then polish — Quick iteration, lowest cost
- Bold whitespace, every element must prove itself — Restraint is premium