rapid-prototyper

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Rapid Prototyper

快速原型制作工具

Purpose

用途

Fast validation through working prototypes. Creates complete, runnable code to test ideas before committing to full implementation:
  1. Recalls your preferred tech stack from memory
  2. Generates minimal but complete code
  3. Makes it runnable immediately
  4. Gets you visual feedback fast
  5. Saves validated patterns for production
For ADHD users: Immediate gratification - working prototype in minutes, not hours. For aphantasia: Concrete, visual results instead of abstract descriptions. For all users: Validate before investing - fail fast, learn fast.
通过可运行的原型实现快速验证。在投入完整开发前,生成可直接运行的完整代码来测试想法:
  1. 从记忆中调取你偏好的技术栈
  2. 生成精简但完整的代码
  3. 确保代码可立即运行
  4. 快速获得视觉反馈
  5. 保存经验证的模式用于生产环境
针对ADHD用户:即时满足——数分钟内即可得到可运行原型,无需等待数小时。 针对想象障碍用户:提供具体的视觉成果,而非抽象描述。 针对所有用户:在投入资源前先验证——快速试错,快速学习。

Activation Triggers

触发条件

  • User says: "prototype this", "quick demo", "proof of concept", "MVP"
  • User asks: "can we build", "is it possible to", "how would we"
  • User mentions: "try out", "experiment with", "test the idea"
  • Before major feature: proactive offer to prototype first
  • 用户提及:“prototype this”“quick demo”“proof of concept”“MVP”
  • 用户询问:“can we build”“is it possible to”“how would we”
  • 用户提到:“try out”“experiment with”“test the idea”
  • 在开发重大功能前:主动提议先制作原型

Core Workflow

核心工作流

1. Understand Requirements

1. 理解需求

Extract key information:
javascript
{
  feature: "User authentication",
  purpose: "Validate JWT flow works",
  constraints: ["Must work offline", "No external dependencies"],
  success_criteria: ["Login form", "Token storage", "Protected route"]
}
提取关键信息:
javascript
{
  feature: "User authentication",
  purpose: "Validate JWT flow works",
  constraints: ["Must work offline", "No external dependencies"],
  success_criteria: ["Login form", "Token storage", "Protected route"]
}

2. Recall Tech Stack

2. 调取技术栈

Query context-manager:
bash
search memories:
- Type: DECISION, PREFERENCE
- Tags: tech-stack, framework, library
- Project: current project
Example recall:
Found preferences:
- Frontend: React + Vite
- Styling: Tailwind CSS
- State: Zustand
- Backend: Node.js + Express
- Database: PostgreSQL (but skip for prototype)
查询上下文管理器:
bash
search memories:
- Type: DECISION, PREFERENCE
- Tags: tech-stack, framework, library
- Project: current project
调取示例
找到偏好设置:
- 前端:React + Vite
- 样式:Tailwind CSS
- 状态管理:Zustand
- 后端:Node.js + Express
- 数据库:PostgreSQL(原型中可省略)

3. Design Minimal Implementation

3. 设计最小化实现方案

Prototype scope:
  • ✅ Core feature working
  • ✅ Visual interface (if UI feature)
  • ✅ Basic validation
  • ✅ Happy path functional
  • ❌ Error handling (minimal)
  • ❌ Edge cases (skip for speed)
  • ❌ Styling polish (functional only)
  • ❌ Optimization (prototype first)
Example: Auth prototype scope
✅ Include:
- Login form
- Token storage in localStorage
- Protected route example
- Basic validation

❌ Skip:
- Password hashing (use fake tokens)
- Refresh tokens
- Remember me
- Password reset
- Email verification
原型范围
  • ✅ 核心功能可运行
  • ✅ 可视化界面(若为UI功能)
  • ✅ 基础验证
  • ✅ 主流程可用
  • ❌ 错误处理(仅保留最基础部分)
  • ❌ 边缘情况(为了速度暂时忽略)
  • ❌ 样式优化(仅保证功能性)
  • ❌ 性能优化(先完成原型)
示例:身份验证原型范围
✅ 包含:
- 登录表单
- Token存储于localStorage
- 受保护路由示例
- 基础验证

❌ 省略:
- 密码哈希(使用假token)
- 刷新token
- 记住我功能
- 密码重置
- 邮箱验证

4. Generate Prototype

4. 生成原型

Structure:
prototype-{feature}-{timestamp}/
├── README.md              # How to run
├── package.json           # Dependencies
├── index.html             # Entry point
├── src/
│   ├── App.jsx           # Main component
│   ├── components/       # Feature components
│   └── utils/            # Helper functions
└── server.js             # If backend needed
Example: Auth Prototype
package.json
:
json
{
  "name": "auth-prototype",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "vite build"
  },
  "dependencies": {
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-router-dom": "^6.20.0",
    "zustand": "^4.4.7"
  },
  "devDependencies": {
    "@vitejs/plugin-react": "^4.2.1",
    "vite": "^5.0.8"
  }
}
src/App.jsx
:
javascript
import { useState } from 'react';
import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
import { useAuthStore } from './store';

function LoginForm() {
  const [email, setEmail] = useState('');
  const [password, setPassword] = useState('');
  const login = useAuthStore(state => state.login);

  const handleSubmit = (e) => {
    e.preventDefault();
    // Prototype: Accept any credentials
    if (email && password) {
      login({ email, token: 'fake-jwt-token' });
    }
  };

  return (
    <div style={{ maxWidth: 400, margin: '100px auto' }}>
      <h1>Login</h1>
      <form onSubmit={handleSubmit}>
        <input
          type="email"
          value={email}
          onChange={(e) => setEmail(e.target.value)}
          placeholder="Email"
          style={{ display: 'block', width: '100%', margin: '10px 0', padding: 8 }}
        />
        <input
          type="password"
          value={password}
          onChange={(e) => setPassword(e.target.value)}
          placeholder="Password"
          style={{ display: 'block', width: '100%', margin: '10px 0', padding: 8 }}
        />
        <button type="submit" style={{ padding: '10px 20px' }}>
          Login
        </button>
      </form>
    </div>
  );
}

function Dashboard() {
  const { user, logout } = useAuthStore();

  return (
    <div style={{ maxWidth: 800, margin: '50px auto' }}>
      <h1>Dashboard</h1>
      <p>Welcome, {user.email}!</p>
      <p>Token: {user.token}</p>
      <button onClick={logout} style={{ padding: '10px 20px' }}>
        Logout
      </button>
    </div>
  );
}

function ProtectedRoute({ children }) {
  const isAuthenticated = useAuthStore(state => state.isAuthenticated);
  return isAuthenticated ? children : <Navigate to="/login" />;
}

export default function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route path="/login" element={<LoginForm />} />
        <Route
          path="/dashboard"
          element={
            <ProtectedRoute>
              <Dashboard />
            </ProtectedRoute>
          }
        />
        <Route path="/" element={<Navigate to="/dashboard" />} />
      </Routes>
    </BrowserRouter>
  );
}
src/store.js
:
javascript
import { create } from 'zustand';
import { persist } from 'zustand/middleware';

export const useAuthStore = create(
  persist(
    (set) => ({
      user: null,
      isAuthenticated: false,
      login: (user) => set({ user, isAuthenticated: true }),
      logout: () => set({ user: null, isAuthenticated: false }),
    }),
    {
      name: 'auth-storage',
    }
  )
);
README.md
:
markdown
undefined
文件结构
prototype-{feature}-{timestamp}/
├── README.md              # 运行说明
├── package.json           # 依赖配置
├── index.html             # 入口文件
├── src/
│   ├── App.jsx           # 主组件
│   ├── components/       # 功能组件
│   └── utils/            # 辅助函数
└── server.js             # 若需要后端
示例:身份验证原型
package.json
:
json
{
  "name": "auth-prototype",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "vite build"
  },
  "dependencies": {
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-router-dom": "^6.20.0",
    "zustand": "^4.4.7"
  },
  "devDependencies": {
    "@vitejs/plugin-react": "^4.2.1",
    "vite": "^5.0.8"
  }
}
src/App.jsx
:
javascript
import { useState } from 'react';
import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
import { useAuthStore } from './store';

function LoginForm() {
  const [email, setEmail] = useState('');
  const [password, setPassword] = useState('');
  const login = useAuthStore(state => state.login);

  const handleSubmit = (e) => {
    e.preventDefault();
    // Prototype: Accept any credentials
    if (email && password) {
      login({ email, token: 'fake-jwt-token' });
    }
  };

  return (
    <div style={{ maxWidth: 400, margin: '100px auto' }}>
      <h1>Login</h1>
      <form onSubmit={handleSubmit}>
        <input
          type="email"
          value={email}
          onChange={(e) => setEmail(e.target.value)}
          placeholder="Email"
          style={{ display: 'block', width: '100%', margin: '10px 0', padding: 8 }}
        />
        <input
          type="password"
          value={password}
          onChange={(e) => setPassword(e.target.value)}
          placeholder="Password"
          style={{ display: 'block', width: '100%', margin: '10px 0', padding: 8 }}
        />
        <button type="submit" style={{ padding: '10px 20px' }}>
          Login
        </button>
      </form>
    </div>
  );
}

function Dashboard() {
  const { user, logout } = useAuthStore();

  return (
    <div style={{ maxWidth: 800, margin: '50px auto' }}>
      <h1>Dashboard</h1>
      <p>Welcome, {user.email}!</p>
      <p>Token: {user.token}</p>
      <button onClick={logout} style={{ padding: '10px 20px' }}>
        Logout
      </button>
    </div>
  );
}

function ProtectedRoute({ children }) {
  const isAuthenticated = useAuthStore(state => state.isAuthenticated);
  return isAuthenticated ? children : <Navigate to="/login" />;
}

export default function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route path="/login" element={<LoginForm />} />
        <Route
          path="/dashboard"
          element={
            <ProtectedRoute>
              <Dashboard />
            </ProtectedRoute>
          }
        />
        <Route path="/" element={<Navigate to="/dashboard" />} />
      </Routes>
    </BrowserRouter>
  );
}
src/store.js
:
javascript
import { create } from 'zustand';
import { persist } from 'zustand/middleware';

export const useAuthStore = create(
  persist(
    (set) => ({
      user: null,
      isAuthenticated: false,
      login: (user) => set({ user, isAuthenticated: true }),
      logout: () => set({ user: null, isAuthenticated: false }),
    }),
    {
      name: 'auth-storage',
    }
  )
);
README.md
:
markdown
undefined

Auth Prototype

Auth Prototype

Quick prototype to validate JWT authentication flow.
Quick prototype to validate JWT authentication flow.

Run

Run

bash
npm install
npm run dev
bash
npm install
npm run dev

Test

Test

  1. Go to /login
  2. Enter any email and password
  3. Click Login
  4. Should redirect to /dashboard
  5. Refresh page - should stay logged in
  6. Click Logout - should return to /login
  1. Go to /login
  2. Enter any email and password
  3. Click Login
  4. Should redirect to /dashboard
  5. Refresh page - should stay logged in
  6. Click Logout - should return to /login

Notes

Notes

  • Uses fake tokens (no real JWT validation)
  • No password hashing
  • Minimal styling
  • No error handling
  • Uses fake tokens (no real JWT validation)
  • No password hashing
  • Minimal styling
  • No error handling

Next Steps if Validated

Next Steps if Validated

  1. Implement real JWT signing/verification
  2. Add password hashing with bcrypt
  3. Add proper error handling
  4. Add refresh token flow
  5. Add validation and security measures
undefined
  1. Implement real JWT signing/verification
  2. Add password hashing with bcrypt
  3. Add proper error handling
  4. Add refresh token flow
  5. Add validation and security measures
undefined

5. Save to Artifacts

5. 保存到制品库

bash
undefined
bash
undefined

Save complete prototype

保存完整原型

Linux/macOS: ~/.claude-artifacts/prototypes/auth-{timestamp}/

Linux/macOS: ~/.claude-artifacts/prototypes/auth-{timestamp}/

Windows: %USERPROFILE%.claude-artifacts\prototypes\auth-{timestamp}\

Windows: %USERPROFILE%.claude-artifacts\prototypes\auth-{timestamp}\

~/.claude-artifacts/prototypes/auth-{timestamp}/
undefined
~/.claude-artifacts/prototypes/auth-{timestamp}/
undefined

6. Present to User

6. 向用户交付

✅ Auth prototype ready!

📁 Location (Linux/macOS): ~/.claude-artifacts/prototypes/auth-20251017/
📁 Location (Windows): %USERPROFILE%\.claude-artifacts\prototypes\auth-20251017\

🚀 To run:
cd ~/.claude-artifacts/prototypes/auth-20251017
✅ 身份验证原型已准备就绪!

📁 存储位置(Linux/macOS):~/.claude-artifacts/prototypes/auth-20251017/
📁 存储位置(Windows):%USERPROFILE%\.claude-artifacts\prototypes\auth-20251017\

🚀 运行方式:
cd ~/.claude-artifacts/prototypes/auth-20251017

Windows: cd %USERPROFILE%.claude-artifacts\prototypes\auth-20251017

Windows系统:cd %USERPROFILE%.claude-artifacts\prototypes\auth-20251017

npm install npm run dev
🎯 Test flow:
  1. Visit http://localhost:5173/login
  2. Enter any email/password
  3. Click Login → Redirects to Dashboard
  4. Refresh → Stays logged in
  5. Click Logout → Returns to Login
✅ Validates:
  • JWT token flow works
  • Protected routes work
  • State persistence works
  • React Router integration works
❌ Not included (yet):
  • Real JWT validation
  • Password hashing
  • Error handling
  • Production security
Does this validate what you needed?
  • If yes: I'll build production version
  • If no: What needs adjusting?
undefined
npm install npm run dev
🎯 测试流程:
  1. 访问 http://localhost:5173/login
  2. 输入任意邮箱和密码
  3. 点击登录 → 跳转至控制台
  4. 刷新页面 → 保持登录状态
  5. 点击登出 → 返回登录页
✅ 验证内容:
  • JWT token流程可用
  • 受保护路由功能正常
  • 状态持久化有效
  • React Router集成正常
❌ 暂未包含:
  • 真实JWT验证
  • 密码哈希
  • 错误处理
  • 生产环境安全措施
这个原型是否验证了你需要的内容?
  • 若是:我将构建生产版本
  • 若否:需要调整哪些内容?
undefined

Prototype Templates

原型模板

Single-File HTML App

单文件HTML应用

For quick UI demos:
html
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Prototype</title>
  <script src="https://unpkg.com/vue@3"></script>
  <style>
    body { font-family: sans-serif; max-width: 800px; margin: 50px auto; }
  </style>
</head>
<body>
  <div id="app">
    <h1>{{ title }}</h1>
    <button @click="count++">Count: {{ count }}</button>
  </div>

  <script>
    const { createApp } = Vue;
    createApp({
      data() {
        return {
          title: 'Quick Prototype',
          count: 0
        }
      }
    }).mount('#app');
  </script>
</body>
</html>
When to use: UI-only features, visual concepts, no build step needed
用于快速UI演示:
html
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Prototype</title>
  <script src="https://unpkg.com/vue@3"></script>
  <style>
    body { font-family: sans-serif; max-width: 800px; margin: 50px auto; }
  </style>
</head>
<body>
  <div id="app">
    <h1>{{ title }}</h1>
    <button @click="count++">Count: {{ count }}</button>
  </div>

  <script>
    const { createApp } = Vue;
    createApp({
      data() {
        return {
          title: 'Quick Prototype',
          count: 0
        }
      }
    }).mount('#app');
  </script>
</body>
</html>
适用场景:纯UI功能、视觉概念演示,无需构建步骤

React + Vite

React + Vite

For complex UI with state management:
bash
npm create vite@latest prototype-name -- --template react
cd prototype-name
npm install
用于带状态管理的复杂UI:
bash
npm create vite@latest prototype-name -- --template react
cd prototype-name
npm install

Add feature code

添加功能代码

npm run dev

**When to use**: Multi-component features, routing, state management
npm run dev

**适用场景**:多组件功能、路由、状态管理

Node.js Script

Node.js脚本

For backend/API prototypes:
javascript
// prototype.js
import express from 'express';

const app = express();
app.use(express.json());

app.post('/api/users', (req, res) => {
  // Prototype logic
  res.json({ success: true, user: req.body });
});

app.listen(3000, () => {
  console.log('Prototype running on http://localhost:3000');
});
When to use: API endpoints, data processing, backend logic
用于后端/API原型:
javascript
// prototype.js
import express from 'express';

const app = express();
app.use(express.json());

app.post('/api/users', (req, res) => {
  // Prototype logic
  res.json({ success: true, user: req.body });
});

app.listen(3000, () => {
  console.log('Prototype running on http://localhost:3000');
});
适用场景:API端点、数据处理、后端逻辑

Python Script

Python脚本

For data analysis/processing:
python
undefined
用于数据分析/处理:
python
undefined

prototype.py

prototype.py

def process_data(data): # Prototype logic return [item * 2 for item in data]
if name == 'main': sample = [1, 2, 3, 4, 5] result = process_data(sample) print(f"Input: {sample}") print(f"Output: {result}")

**When to use**: Data processing, algorithms, automation
def process_data(data): # Prototype logic return [item * 2 for item in data]
if name == 'main': sample = [1, 2, 3, 4, 5] result = process_data(sample) print(f"Input: {sample}") print(f"Output: {result}")

**适用场景**:数据处理、算法、自动化

Context Integration

上下文集成

Recall Preferences

调取偏好设置

Before creating prototype:
javascript
// Query context-manager
const techStack = searchMemories({
  type: 'DECISION',
  tags: ['tech-stack', 'framework'],
  project: currentProject
});

const preferences = searchMemories({
  type: 'PREFERENCE',
  tags: ['coding-style', 'libraries'],
  project: currentProject
});

// Apply to prototype
const config = {
  framework: techStack.frontend || 'React',
  styling: techStack.styling || 'inline-styles',
  state: techStack.state || 'useState',
  build: techStack.build || 'Vite'
};
生成原型前:
javascript
// 查询上下文管理器
const techStack = searchMemories({
  type: 'DECISION',
  tags: ['tech-stack', 'framework'],
  project: currentProject
});

const preferences = searchMemories({
  type: 'PREFERENCE',
  tags: ['coding-style', 'libraries'],
  project: currentProject
});

// 应用到原型生成
const config = {
  framework: techStack.frontend || 'React',
  styling: techStack.styling || 'inline-styles',
  state: techStack.state || 'useState',
  build: techStack.build || 'Vite'
};

Save Validated Patterns

保存经验证的模式

After user validates prototype:
bash
User: "This works perfectly! Build the production version"
用户验证原型后:
bash
用户:“这个完全可用!构建生产版本”

Save pattern as PROCEDURE

将模式保存为PROCEDURE

remember: Authentication flow pattern Type: PROCEDURE Tags: auth, jwt, react-router, zustand Content: Validated pattern for JWT auth:
  • Zustand store with persist middleware
  • React Router protected routes
  • Token in localStorage
  • Login/logout flow Works well, use for production
undefined
记录:身份验证流程模式 类型:PROCEDURE 标签:auth, jwt, react-router, zustand 内容:经验证的JWT认证模式:
  • 使用persist中间件的Zustand存储
  • React Router受保护路由
  • Token存储于localStorage
  • 登录/登出流程 验证有效,可用于生产环境
undefined

Learn from Iterations

从迭代中学习

Track what gets changed:
javascript
// If user asks for modifications
"Can you add password validation?"
"Make the form prettier"
"Add loading state"

// Track patterns
if (commonRequest) {
  saveMemory({
    type: 'PREFERENCE',
    content: 'User commonly requests password validation in prototypes',
    tags: ['prototyping', 'validation']
  });

  // Auto-include in future prototypes
}
跟踪用户的修改请求:
javascript
// 若用户要求修改
“能否添加密码验证?”
“让表单更美观一些”
“添加加载状态”

// 跟踪模式
if (commonRequest) {
  saveMemory({
    type: 'PREFERENCE',
    content: '用户通常会要求在原型中添加密码验证',
    tags: ['prototyping', 'validation']
  });

  // 未来原型中自动包含该功能
}

Integration with Other Skills

与其他技能的集成

Context Manager

上下文管理器

Recalls tech stack:
Query for DECISION with tags: [tech-stack, framework]
Query for PREFERENCE with tags: [libraries, tools]
Apply to prototype generation
Saves validated patterns:
After user validates prototype
Save pattern as PROCEDURE
Tag with feature name and tech stack
调取技术栈:
查询标签为[tech-stack, framework]的DECISION类型记录
查询标签为[libraries, tools]的PREFERENCE类型记录
应用到原型生成
保存经验证的模式:
用户验证原型后
将模式保存为PROCEDURE
标记功能名称和技术栈

Rapid Production Build

快速生产构建

After validation:
User: "Build it properly"
→ Use validated prototype as reference
→ Add error handling
→ Add tests (via testing-builder)
→ Add proper styling
→ Add security measures
→ Create production version
验证完成后:
用户:“按标准流程构建”
→ 以经验证的原型为参考
→ 添加错误处理
→ 添加测试(通过测试构建工具)
→ 添加完善的样式
→ 添加安全措施
→ 创建生产版本

Browser App Creator

浏览器应用创建工具

For standalone tools:
If prototype should be standalone tool:
→ Invoke browser-app-creator
→ Convert prototype to polished single-file app
→ Save to artifacts/browser-apps/
用于独立工具:
若原型需作为独立工具:
→ 调用浏览器应用创建工具
→ 将原型转换为 polished 单文件应用
→ 保存到 artifacts/browser-apps/

Success Patterns

成功模式

Quick Validation (5 minutes)

快速验证(5分钟)

Scope: Single feature, visual feedback Deliverable: Working demo Example: "Does this button style work?"
html
<!DOCTYPE html>
<html>
<body>
  <button style="background: #3b82f6; color: white; padding: 12px 24px; border: none; border-radius: 8px; font-size: 16px; cursor: pointer;">
    Click Me
  </button>
</body>
</html>
范围:单一功能、视觉反馈 交付物:可运行演示 示例:“这个按钮样式是否可行?”
html
<!DOCTYPE html>
<html>
<body>
  <button style="background: #3b82f6; color: white; padding: 12px 24px; border: none; border-radius: 8px; font-size: 16px; cursor: pointer;">
    Click Me
  </button>
</body>
</html>

Feature Prototype (15-30 minutes)

功能原型(15-30分钟)

Scope: Complete feature with interactions Deliverable: Multi-file app Example: "User authentication flow"
See full auth prototype above.
范围:带交互的完整功能 交付物:多文件应用 示例:“用户身份验证流程”
详见上文的完整身份验证原型。

Architecture Validation (30-60 minutes)

架构验证(30-60分钟)

Scope: System design, integration points Deliverable: Working system with multiple components Example: "Microservices communication pattern"
javascript
// api-gateway.js
// orchestrator.js
// user-service.js
// Complete working system
范围:系统设计、集成点 交付物:包含多组件的可运行系统 示例:“微服务通信模式”
javascript
// api-gateway.js
// orchestrator.js
// user-service.js
// 完整可运行系统

Prototype Checklist

原型检查清单

Before generating: ✅ Requirements clear ✅ Tech stack recalled ✅ Scope defined (minimal but complete) ✅ Success criteria established
While generating: ✅ Focus on happy path ✅ Make it runnable immediately ✅ Include clear instructions ✅ Use simple, obvious code
After generating: ✅ Test that it runs ✅ Verify success criteria met ✅ Provide clear next steps ✅ Ask for validation
生成前: ✅ 需求明确 ✅ 技术栈已调取 ✅ 范围已定义(精简但完整) ✅ 成功标准已确立
生成中: ✅ 聚焦主流程 ✅ 确保可立即运行 ✅ 包含清晰的说明文档 ✅ 使用简洁易懂的代码
生成后: ✅ 测试代码可正常运行 ✅ 验证成功标准已满足 ✅ 提供清晰的下一步计划 ✅ 请求用户验证

Quick Reference

快速参考

When to Prototype

何时制作原型

SituationPrototype?
New feature idea✅ Yes - validate before building
Bug fix❌ No - fix directly
Refactoring✅ Yes - test new pattern
UI tweak✅ Yes - visual confirmation
Performance optimization❌ No - measure first
New technology✅ Yes - learn by doing
场景是否需要原型
新功能想法✅ 是 - 构建前先验证
Bug修复❌ 否 - 直接修复
代码重构✅ 是 - 测试新模式
UI调整✅ 是 - 视觉确认
性能优化❌ 否 - 先做性能度量
新技术尝试✅ 是 - 在实践中学习

Trigger Phrases

触发短语

  • "prototype this"
  • "quick demo"
  • "proof of concept"
  • "can we build"
  • "how would we"
  • "test the idea"
  • "prototype this"
  • "quick demo"
  • "proof of concept"
  • "can we build"
  • "how would we"
  • "test the idea"

File Locations

文件位置

  • Prototypes:
    ~/.claude-artifacts/prototypes/
    (Linux/macOS) or
    %USERPROFILE%\.claude-artifacts\prototypes\
    (Windows)
  • Validated patterns:
    ~/.claude-memories/procedures/
    (Linux/macOS) or
    %USERPROFILE%\.claude-memories\procedures\
    (Windows) - tagged "prototype-validated"
  • 原型文件
    ~/.claude-artifacts/prototypes/
    (Linux/macOS)或
    %USERPROFILE%\.claude-artifacts\prototypes\
    (Windows)
  • 经验证的模式
    ~/.claude-memories/procedures/
    (Linux/macOS)或
    %USERPROFILE%\.claude-memories\procedures\
    (Windows) - 标记为"prototype-validated"

Success Criteria

成功标准

✅ Prototype runs immediately (no setup friction) ✅ Visually demonstrates the concept ✅ Tests core functionality ✅ Takes <30 minutes to create ✅ Clear README with instructions ✅ User can validate yes/no quickly
✅ 原型可立即运行(无设置障碍) ✅ 直观演示概念 ✅ 测试核心功能 ✅ 生成时间<30分钟 ✅ 包含清晰的README说明 ✅ 用户可快速完成是/否验证