solmate-skills 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +90 -0
- package/README.md +42 -0
- package/bin/cli.js +85 -0
- package/design-md/README.md +34 -0
- package/design-md/SKILL.md +172 -0
- package/design-md/examples/DESIGN.md +154 -0
- package/dev-conventions/SKILL.md +305 -0
- package/enhance-prompt/README.md +34 -0
- package/enhance-prompt/SKILL.md +204 -0
- package/enhance-prompt/references/KEYWORDS.md +114 -0
- package/implementation-workflow/SKILL.md +131 -0
- package/init-skills.sh +41 -0
- package/manage-collaboration/SKILL.md +50 -0
- package/manage-docs/SKILL.md +389 -0
- package/manage-skills/SKILL.md +52 -0
- package/obsidian-sync/SKILL.md +44 -0
- package/old_AGENTS.md +124 -0
- package/package.json +31 -0
- package/react-components/README.md +36 -0
- package/react-components/SKILL.md +47 -0
- package/react-components/examples/gold-standard-card.tsx +80 -0
- package/react-components/package.json +16 -0
- package/react-components/resources/architecture-checklist.md +15 -0
- package/react-components/resources/component-template.tsx +37 -0
- package/react-components/resources/stitch-api-reference.md +14 -0
- package/react-components/resources/style-guide.json +27 -0
- package/react-components/scripts/fetch-stitch.sh +30 -0
- package/react-components/scripts/validate.js +68 -0
- package/remotion/README.md +105 -0
- package/remotion/SKILL.md +393 -0
- package/remotion/examples/WalkthroughComposition.tsx +78 -0
- package/remotion/examples/screens.json +56 -0
- package/remotion/resources/composition-checklist.md +124 -0
- package/remotion/resources/screen-slide-template.tsx +123 -0
- package/remotion/scripts/download-stitch-asset.sh +38 -0
- package/shadcn-ui/README.md +248 -0
- package/shadcn-ui/SKILL.md +326 -0
- package/shadcn-ui/examples/auth-layout.tsx +177 -0
- package/shadcn-ui/examples/data-table.tsx +313 -0
- package/shadcn-ui/examples/form-pattern.tsx +177 -0
- package/shadcn-ui/resources/component-catalog.md +481 -0
- package/shadcn-ui/resources/customization-guide.md +516 -0
- package/shadcn-ui/resources/migration-guide.md +463 -0
- package/shadcn-ui/resources/setup-guide.md +412 -0
- package/shadcn-ui/scripts/verify-setup.sh +134 -0
- package/stitch-loop/README.md +54 -0
- package/stitch-loop/SKILL.md +203 -0
- package/stitch-loop/examples/SITE.md +73 -0
- package/stitch-loop/examples/next-prompt.md +25 -0
- package/stitch-loop/resources/baton-schema.md +61 -0
- package/stitch-loop/resources/site-template.md +104 -0
- package/verify-docs/SKILL.md +34 -0
- package/verify-drizzle-schema/SKILL.md +44 -0
- package/verify-implementation/SKILL.md +39 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: stitch-loop
|
|
3
|
+
description: Teaches agents to iteratively build websites using Stitch with an autonomous baton-passing loop pattern
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- "stitch*:*"
|
|
6
|
+
- "chrome*:*"
|
|
7
|
+
- "Read"
|
|
8
|
+
- "Write"
|
|
9
|
+
- "Bash"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Stitch Build Loop
|
|
13
|
+
|
|
14
|
+
You are an **autonomous frontend builder** participating in an iterative site-building loop. Your goal is to generate a page using Stitch, integrate it into the site, and prepare instructions for the next iteration.
|
|
15
|
+
|
|
16
|
+
## Overview
|
|
17
|
+
|
|
18
|
+
The Build Loop pattern enables continuous, autonomous website development through a "baton" system. Each iteration:
|
|
19
|
+
1. Reads the current task from a baton file (`next-prompt.md`)
|
|
20
|
+
2. Generates a page using Stitch MCP tools
|
|
21
|
+
3. Integrates the page into the site structure
|
|
22
|
+
4. Writes the next task to the baton file for the next iteration
|
|
23
|
+
|
|
24
|
+
## Prerequisites
|
|
25
|
+
|
|
26
|
+
**Required:**
|
|
27
|
+
- Access to the Stitch MCP Server
|
|
28
|
+
- A Stitch project (existing or will be created)
|
|
29
|
+
- A `DESIGN.md` file (generate one using the `design-md` skill if needed)
|
|
30
|
+
- A `SITE.md` file documenting the site vision and roadmap
|
|
31
|
+
|
|
32
|
+
**Optional:**
|
|
33
|
+
- Chrome DevTools MCP Server — enables visual verification of generated pages
|
|
34
|
+
|
|
35
|
+
## The Baton System
|
|
36
|
+
|
|
37
|
+
The `next-prompt.md` file acts as a relay baton between iterations:
|
|
38
|
+
|
|
39
|
+
```markdown
|
|
40
|
+
---
|
|
41
|
+
page: about
|
|
42
|
+
---
|
|
43
|
+
A page describing how jules.top tracking works.
|
|
44
|
+
|
|
45
|
+
**DESIGN SYSTEM (REQUIRED):**
|
|
46
|
+
[Copy from DESIGN.md Section 6]
|
|
47
|
+
|
|
48
|
+
**Page Structure:**
|
|
49
|
+
1. Header with navigation
|
|
50
|
+
2. Explanation of tracking methodology
|
|
51
|
+
3. Footer with links
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**Critical rules:**
|
|
55
|
+
- The `page` field in YAML frontmatter determines the output filename
|
|
56
|
+
- The prompt content must include the design system block from `DESIGN.md`
|
|
57
|
+
- You MUST update this file before completing your work to continue the loop
|
|
58
|
+
|
|
59
|
+
## Execution Protocol
|
|
60
|
+
|
|
61
|
+
### Step 1: Read the Baton
|
|
62
|
+
|
|
63
|
+
Parse `next-prompt.md` to extract:
|
|
64
|
+
- **Page name** from the `page` frontmatter field
|
|
65
|
+
- **Prompt content** from the markdown body
|
|
66
|
+
|
|
67
|
+
### Step 2: Consult Context Files
|
|
68
|
+
|
|
69
|
+
Before generating, read these files:
|
|
70
|
+
|
|
71
|
+
| File | Purpose |
|
|
72
|
+
|------|---------|
|
|
73
|
+
| `SITE.md` | Site vision, **Stitch Project ID**, existing pages (sitemap), roadmap |
|
|
74
|
+
| `DESIGN.md` | Required visual style for Stitch prompts |
|
|
75
|
+
|
|
76
|
+
**Important checks:**
|
|
77
|
+
- Section 4 (Sitemap) — Do NOT recreate pages that already exist
|
|
78
|
+
- Section 5 (Roadmap) — Pick tasks from here if backlog exists
|
|
79
|
+
- Section 6 (Creative Freedom) — Ideas for new pages if roadmap is empty
|
|
80
|
+
|
|
81
|
+
### Step 3: Generate with Stitch
|
|
82
|
+
|
|
83
|
+
Use the Stitch MCP tools to generate the page:
|
|
84
|
+
|
|
85
|
+
1. **Discover namespace**: Run `list_tools` to find the Stitch MCP prefix
|
|
86
|
+
2. **Get or create project**:
|
|
87
|
+
- If `stitch.json` exists, use the `projectId` from it
|
|
88
|
+
- Otherwise, call `[prefix]:create_project` and save the ID to `stitch.json`
|
|
89
|
+
3. **Generate screen**: Call `[prefix]:generate_screen_from_text` with:
|
|
90
|
+
- `projectId`: The project ID
|
|
91
|
+
- `prompt`: The full prompt from the baton (including design system block)
|
|
92
|
+
- `deviceType`: `DESKTOP` (or as specified)
|
|
93
|
+
4. **Retrieve assets**: Call `[prefix]:get_screen` to get:
|
|
94
|
+
- `htmlCode.downloadUrl` — Download and save as `queue/{page}.html`
|
|
95
|
+
- `screenshot.downloadUrl` — Download and save as `queue/{page}.png`
|
|
96
|
+
|
|
97
|
+
### Step 4: Integrate into Site
|
|
98
|
+
|
|
99
|
+
1. Move generated HTML from `queue/{page}.html` to `site/public/{page}.html`
|
|
100
|
+
2. Fix any asset paths to be relative to the public folder
|
|
101
|
+
3. Update navigation:
|
|
102
|
+
- Find existing placeholder links (e.g., `href="#"`) and wire them to the new page
|
|
103
|
+
- Add the new page to the global navigation if appropriate
|
|
104
|
+
4. Ensure consistent headers/footers across all pages
|
|
105
|
+
|
|
106
|
+
### Step 4.5: Visual Verification (Optional)
|
|
107
|
+
|
|
108
|
+
If the **Chrome DevTools MCP Server** is available, verify the generated page:
|
|
109
|
+
|
|
110
|
+
1. **Check availability**: Run `list_tools` to see if `chrome*` tools are present
|
|
111
|
+
2. **Start dev server**: Use Bash to start a local server (e.g., `npx serve site/public`)
|
|
112
|
+
3. **Navigate to page**: Call `[chrome_prefix]:navigate` to open `http://localhost:3000/{page}.html`
|
|
113
|
+
4. **Capture screenshot**: Call `[chrome_prefix]:screenshot` to capture the rendered page
|
|
114
|
+
5. **Visual comparison**: Compare against the Stitch screenshot (`queue/{page}.png`) for fidelity
|
|
115
|
+
6. **Stop server**: Terminate the dev server process
|
|
116
|
+
|
|
117
|
+
> **Note:** This step is optional. If Chrome DevTools MCP is not installed, skip to Step 5.
|
|
118
|
+
|
|
119
|
+
### Step 5: Update Site Documentation
|
|
120
|
+
|
|
121
|
+
Modify `SITE.md`:
|
|
122
|
+
- Add the new page to Section 4 (Sitemap) with `[x]`
|
|
123
|
+
- Remove any idea you consumed from Section 6 (Creative Freedom)
|
|
124
|
+
- Update Section 5 (Roadmap) if you completed a backlog item
|
|
125
|
+
|
|
126
|
+
### Step 6: Prepare the Next Baton (Critical)
|
|
127
|
+
|
|
128
|
+
**You MUST update `next-prompt.md` before completing.** This keeps the loop alive.
|
|
129
|
+
|
|
130
|
+
1. **Decide the next page**:
|
|
131
|
+
- Check `SITE.md` Section 5 (Roadmap) for pending items
|
|
132
|
+
- If empty, pick from Section 6 (Creative Freedom)
|
|
133
|
+
- Or invent something new that fits the site vision
|
|
134
|
+
2. **Write the baton** with proper YAML frontmatter:
|
|
135
|
+
|
|
136
|
+
```markdown
|
|
137
|
+
---
|
|
138
|
+
page: achievements
|
|
139
|
+
---
|
|
140
|
+
A competitive achievements page showing developer badges and milestones.
|
|
141
|
+
|
|
142
|
+
**DESIGN SYSTEM (REQUIRED):**
|
|
143
|
+
[Copy the entire design system block from DESIGN.md]
|
|
144
|
+
|
|
145
|
+
**Page Structure:**
|
|
146
|
+
1. Header with title and navigation
|
|
147
|
+
2. Badge grid showing unlocked/locked states
|
|
148
|
+
3. Progress bars for milestone tracking
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## File Structure Reference
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
project/
|
|
155
|
+
├── next-prompt.md # The baton — current task
|
|
156
|
+
├── stitch.json # Stitch project ID (persist this!)
|
|
157
|
+
├── DESIGN.md # Visual design system (from design-md skill)
|
|
158
|
+
├── SITE.md # Site vision, sitemap, roadmap
|
|
159
|
+
├── queue/ # Staging area for Stitch output
|
|
160
|
+
│ ├── {page}.html
|
|
161
|
+
│ └── {page}.png
|
|
162
|
+
└── site/public/ # Production pages
|
|
163
|
+
├── index.html
|
|
164
|
+
└── {page}.html
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Orchestration Options
|
|
168
|
+
|
|
169
|
+
The loop can be driven by different orchestration layers:
|
|
170
|
+
|
|
171
|
+
| Method | How it works |
|
|
172
|
+
|--------|--------------|
|
|
173
|
+
| **CI/CD** | GitHub Actions triggers on `next-prompt.md` changes |
|
|
174
|
+
| **Human-in-loop** | Developer reviews each iteration before continuing |
|
|
175
|
+
| **Agent chains** | One agent dispatches to another (e.g., Jules API) |
|
|
176
|
+
| **Manual** | Developer runs the agent repeatedly with the same repo |
|
|
177
|
+
|
|
178
|
+
The skill is orchestration-agnostic — focus on the pattern, not the trigger mechanism.
|
|
179
|
+
|
|
180
|
+
## Design System Integration
|
|
181
|
+
|
|
182
|
+
This skill works best with the `design-md` skill:
|
|
183
|
+
|
|
184
|
+
1. **First time setup**: Generate `DESIGN.md` using the `design-md` skill from an existing Stitch screen
|
|
185
|
+
2. **Every iteration**: Copy Section 6 ("Design System Notes for Stitch Generation") into your baton prompt
|
|
186
|
+
3. **Consistency**: All generated pages will share the same visual language
|
|
187
|
+
|
|
188
|
+
## Common Pitfalls
|
|
189
|
+
|
|
190
|
+
- ❌ Forgetting to update `next-prompt.md` (breaks the loop)
|
|
191
|
+
- ❌ Recreating a page that already exists in the sitemap
|
|
192
|
+
- ❌ Not including the design system block in the prompt
|
|
193
|
+
- ❌ Leaving placeholder links (`href="#"`) instead of wiring real navigation
|
|
194
|
+
- ❌ Forgetting to persist `stitch.json` after creating a new project
|
|
195
|
+
|
|
196
|
+
## Troubleshooting
|
|
197
|
+
|
|
198
|
+
| Issue | Solution |
|
|
199
|
+
|-------|----------|
|
|
200
|
+
| Stitch generation fails | Check that the prompt includes the design system block |
|
|
201
|
+
| Inconsistent styles | Ensure DESIGN.md is up-to-date and copied correctly |
|
|
202
|
+
| Loop stalls | Verify `next-prompt.md` was updated with valid frontmatter |
|
|
203
|
+
| Navigation broken | Check all internal links use correct relative paths |
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
stitch-project-id: 13534454087919359824
|
|
3
|
+
---
|
|
4
|
+
# Project Vision & Constitution
|
|
5
|
+
|
|
6
|
+
> **AGENT INSTRUCTION:** Read this file before every iteration. It serves as the project's "Long-Term Memory." If `next-prompt.md` is empty, pick the highest priority item from Section 5 OR invent a new page that fits the project vision.
|
|
7
|
+
|
|
8
|
+
## 1. Core Identity
|
|
9
|
+
* **Project Name:** Oakwood Furniture Co.
|
|
10
|
+
* **Stitch Project ID:** `13534454087919359824`
|
|
11
|
+
* **Mission:** A premium online furniture showroom showcasing handcrafted, sustainable wood furniture.
|
|
12
|
+
* **Target Audience:** Design-conscious homeowners, interior designers, eco-minded buyers.
|
|
13
|
+
* **Voice:** Warm, refined, artisanal, and trustworthy.
|
|
14
|
+
|
|
15
|
+
## 2. Visual Language (Stitch Prompt Strategy)
|
|
16
|
+
*Strictly adhere to these descriptive rules when prompting Stitch. Do NOT use code.*
|
|
17
|
+
|
|
18
|
+
* **The "Vibe" (Adjectives):**
|
|
19
|
+
* *Primary:* **Warm** (Inviting, cozy, natural materials).
|
|
20
|
+
* *Secondary:* **Minimal** (Clean layouts, breathing room, gallery-like).
|
|
21
|
+
* *Tertiary:* **Artisanal** (Handcrafted feel, attention to detail).
|
|
22
|
+
|
|
23
|
+
* **Color Philosophy (Semantic):**
|
|
24
|
+
* **Backgrounds:** Warm barely-there cream (#FCFAFA). Soft, inviting canvas.
|
|
25
|
+
* **Accents:** Deep muted teal-navy (#294056) for CTAs and highlights.
|
|
26
|
+
* **Text:** Charcoal near-black (#2C2C2C) for headlines, soft gray (#6B6B6B) for body.
|
|
27
|
+
|
|
28
|
+
## 3. Architecture & File Structure
|
|
29
|
+
* **Root:** `site/public/`
|
|
30
|
+
* **Asset Flow:** Stitch generates to `queue/` -> Validate -> Move to `site/public/`.
|
|
31
|
+
* **Navigation Strategy:**
|
|
32
|
+
* **Global Header:** Logo, Shop, Collections, About, Contact.
|
|
33
|
+
* **Global Footer:** Sustainability, Craftsmanship, Shipping Info, Social Links.
|
|
34
|
+
|
|
35
|
+
## 4. Live Sitemap (Current State)
|
|
36
|
+
*The Agent MUST update this section when a new page is successfully merged.*
|
|
37
|
+
|
|
38
|
+
* [x] `index.html` - Homepage with hero and featured collections.
|
|
39
|
+
* [x] `collections.html` - Overview of furniture categories.
|
|
40
|
+
* [x] `about.html` - Our story and craftsmanship philosophy.
|
|
41
|
+
* [ ] `contact.html` - Contact form and showroom locations.
|
|
42
|
+
|
|
43
|
+
## 5. The Roadmap (Backlog)
|
|
44
|
+
*If `next-prompt.md` is empty or completed, pick the next task from here.*
|
|
45
|
+
|
|
46
|
+
### High Priority
|
|
47
|
+
- [ ] **Product Detail Page:** Template for individual furniture items.
|
|
48
|
+
- [ ] **Contact Page:** Contact form with showroom map.
|
|
49
|
+
|
|
50
|
+
### Medium Priority
|
|
51
|
+
- [ ] **Sustainability Page:** Our commitment to eco-friendly practices.
|
|
52
|
+
- [ ] **Care Guide:** How to maintain wood furniture.
|
|
53
|
+
|
|
54
|
+
## 6. Creative Freedom Guidelines
|
|
55
|
+
*When the backlog is empty, follow these guidelines to innovate.*
|
|
56
|
+
|
|
57
|
+
1. **Stay On-Brand:** New pages must fit the "Warm + Minimal + Artisanal" vibe.
|
|
58
|
+
2. **Enhance the Core:** Support the furniture shopping experience.
|
|
59
|
+
3. **Naming Convention:** Use lowercase, descriptive filenames.
|
|
60
|
+
|
|
61
|
+
### Ideas to Explore
|
|
62
|
+
*Pick one, build it, then REMOVE it from this list.*
|
|
63
|
+
|
|
64
|
+
- [ ] `materials.html` - Showcase of wood types and finishes
|
|
65
|
+
- [ ] `custom.html` - Custom furniture ordering process
|
|
66
|
+
- [ ] `gallery.html` - Customer homes featuring our furniture
|
|
67
|
+
- [ ] `blog.html` - Design tips and furniture care articles
|
|
68
|
+
|
|
69
|
+
## 7. Rules of Engagement
|
|
70
|
+
1. Do not recreate pages in Section 4.
|
|
71
|
+
2. Always update `next-prompt.md` before completing.
|
|
72
|
+
3. Consume ideas from Section 6 when you use them.
|
|
73
|
+
4. Keep the loop moving.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
page: contact
|
|
3
|
+
---
|
|
4
|
+
A warm, inviting contact page for Oakwood Furniture Co.
|
|
5
|
+
|
|
6
|
+
**DESIGN SYSTEM (REQUIRED):**
|
|
7
|
+
- Platform: Web, Desktop-first
|
|
8
|
+
- Theme: Light, minimal, photography-first
|
|
9
|
+
- Background: Warm barely-there cream (#FCFAFA)
|
|
10
|
+
- Surface: Crisp very light gray (#F5F5F5) for cards
|
|
11
|
+
- Primary Accent: Deep muted teal-navy (#294056) for buttons and links
|
|
12
|
+
- Text Primary: Charcoal near-black (#2C2C2C) for headlines
|
|
13
|
+
- Text Secondary: Soft warm gray (#6B6B6B) for body copy
|
|
14
|
+
- Font: Modern sans-serif (Manrope or similar), clean and approachable
|
|
15
|
+
- Buttons: Subtly rounded corners (8px), comfortable padding
|
|
16
|
+
- Cards: Gently rounded corners (12px), whisper-soft shadows on hover
|
|
17
|
+
- Layout: Centered content, max-width container, generous whitespace
|
|
18
|
+
- No harsh shadows, no aggressive colors - serene and trustworthy
|
|
19
|
+
|
|
20
|
+
**Page Structure:**
|
|
21
|
+
1. **Header:** Navigation with logo, Shop, Collections, About, Contact (active)
|
|
22
|
+
2. **Hero Section:** Warm headline "Get in Touch" with a brief welcome message
|
|
23
|
+
3. **Contact Form:** Name, email, message fields with the teal-navy submit button
|
|
24
|
+
4. **Showroom Info:** Address, hours, and an embedded map or beautiful showroom photo
|
|
25
|
+
5. **Footer:** Sustainability, Craftsmanship, Shipping links, and social icons
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Baton File Schema
|
|
2
|
+
|
|
3
|
+
The baton file (`next-prompt.md`) is the communication mechanism between loop iterations. It tells the next agent what to build.
|
|
4
|
+
|
|
5
|
+
## Format
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
---
|
|
9
|
+
page: <filename-without-extension>
|
|
10
|
+
---
|
|
11
|
+
<prompt-content>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Fields
|
|
15
|
+
|
|
16
|
+
### Frontmatter (YAML)
|
|
17
|
+
|
|
18
|
+
| Field | Type | Required | Description |
|
|
19
|
+
|-------|------|----------|-------------|
|
|
20
|
+
| `page` | string | Yes | Output filename (without `.html` extension) |
|
|
21
|
+
|
|
22
|
+
### Body (Markdown)
|
|
23
|
+
|
|
24
|
+
The body contains the full Stitch prompt, which must include:
|
|
25
|
+
|
|
26
|
+
1. **One-line description** with vibe/atmosphere keywords
|
|
27
|
+
2. **Design System block** (required) — copied from `DESIGN.md` Section 6
|
|
28
|
+
3. **Page Structure** — numbered list of sections/components
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
|
|
32
|
+
```markdown
|
|
33
|
+
---
|
|
34
|
+
page: achievements
|
|
35
|
+
---
|
|
36
|
+
A competitive, gamified achievements page with terminal aesthetics.
|
|
37
|
+
|
|
38
|
+
**DESIGN SYSTEM (REQUIRED):**
|
|
39
|
+
- Platform: Web, Desktop-first
|
|
40
|
+
- Theme: Dark, minimal, data-focused
|
|
41
|
+
- Background: Deep charcoal/near-black (#0f1419)
|
|
42
|
+
- Primary Accent: Teal/Cyan (#2dd4bf)
|
|
43
|
+
- Text Primary: White (#ffffff)
|
|
44
|
+
- Font: Clean sans-serif (Inter, SF Pro, or system default)
|
|
45
|
+
- Layout: Centered content, max-width container
|
|
46
|
+
|
|
47
|
+
**Page Structure:**
|
|
48
|
+
1. Header with title "Achievements" and navigation
|
|
49
|
+
2. Badge grid showing locked/unlocked states with icons
|
|
50
|
+
3. Progress section with milestone bars
|
|
51
|
+
4. Footer with links to other pages
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Validation Rules
|
|
55
|
+
|
|
56
|
+
Before completing an iteration, validate your baton:
|
|
57
|
+
|
|
58
|
+
- [ ] `page` frontmatter field exists and is a valid filename
|
|
59
|
+
- [ ] Prompt includes the design system block
|
|
60
|
+
- [ ] Prompt describes a page NOT already in `SITE.md` sitemap
|
|
61
|
+
- [ ] Prompt includes specific page structure details
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Site Template
|
|
2
|
+
|
|
3
|
+
Use these templates when setting up a new project for the build loop.
|
|
4
|
+
|
|
5
|
+
## SITE.md Template
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Project Vision & Constitution
|
|
9
|
+
|
|
10
|
+
> **AGENT INSTRUCTION:** Read this file before every iteration. It serves as the project's "Long-Term Memory."
|
|
11
|
+
|
|
12
|
+
## 1. Core Identity
|
|
13
|
+
* **Project Name:** [Your project name]
|
|
14
|
+
* **Stitch Project ID:** [Your Stitch project ID]
|
|
15
|
+
* **Mission:** [What the site achieves]
|
|
16
|
+
* **Target Audience:** [Who uses this site]
|
|
17
|
+
* **Voice:** [Tone and personality descriptors]
|
|
18
|
+
|
|
19
|
+
## 2. Visual Language
|
|
20
|
+
*Reference these descriptors when prompting Stitch.*
|
|
21
|
+
|
|
22
|
+
* **The "Vibe" (Adjectives):**
|
|
23
|
+
* *Primary:* [Main aesthetic keyword]
|
|
24
|
+
* *Secondary:* [Supporting aesthetic]
|
|
25
|
+
* *Tertiary:* [Additional flavor]
|
|
26
|
+
|
|
27
|
+
## 3. Architecture & File Structure
|
|
28
|
+
* **Root:** `site/public/`
|
|
29
|
+
* **Asset Flow:** Stitch generates to `queue/` → Validate → Move to `site/public/`
|
|
30
|
+
* **Navigation Strategy:** [How nav works]
|
|
31
|
+
|
|
32
|
+
## 4. Live Sitemap (Current State)
|
|
33
|
+
*Update this when a new page is successfully merged.*
|
|
34
|
+
|
|
35
|
+
* [x] `index.html` - [Description]
|
|
36
|
+
* [ ] `about.html` - [Description]
|
|
37
|
+
|
|
38
|
+
## 5. The Roadmap (Backlog)
|
|
39
|
+
*Pick the next task from here if available.*
|
|
40
|
+
|
|
41
|
+
### High Priority
|
|
42
|
+
- [ ] [Task description]
|
|
43
|
+
- [ ] [Task description]
|
|
44
|
+
|
|
45
|
+
### Medium Priority
|
|
46
|
+
- [ ] [Task description]
|
|
47
|
+
|
|
48
|
+
## 6. Creative Freedom Guidelines
|
|
49
|
+
*When the backlog is empty, follow these guidelines to innovate.*
|
|
50
|
+
|
|
51
|
+
1. **Stay On-Brand:** New pages must fit the established vibe
|
|
52
|
+
2. **Enhance the Core:** Support the site mission
|
|
53
|
+
3. **Naming Convention:** Use lowercase, descriptive filenames
|
|
54
|
+
|
|
55
|
+
### Ideas to Explore
|
|
56
|
+
*Pick one, build it, then REMOVE it from this list.*
|
|
57
|
+
|
|
58
|
+
- [ ] `stats.html` - [Description]
|
|
59
|
+
- [ ] `settings.html` - [Description]
|
|
60
|
+
|
|
61
|
+
## 7. Rules of Engagement
|
|
62
|
+
1. Do not recreate pages in Section 4
|
|
63
|
+
2. Always update `next-prompt.md` before completing
|
|
64
|
+
3. Consume ideas from Section 6 when you use them
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## DESIGN.md Template
|
|
68
|
+
|
|
69
|
+
Generate this using the `design-md` skill from an existing Stitch screen, or create manually:
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
# Design System: [Project Name]
|
|
73
|
+
**Project ID:** [Stitch Project ID]
|
|
74
|
+
|
|
75
|
+
## 1. Visual Theme & Atmosphere
|
|
76
|
+
[Describe mood, density, aesthetic philosophy]
|
|
77
|
+
|
|
78
|
+
## 2. Color Palette & Roles
|
|
79
|
+
- **[Descriptive Name]** (#hexcode) – [Functional role]
|
|
80
|
+
- **[Descriptive Name]** (#hexcode) – [Functional role]
|
|
81
|
+
|
|
82
|
+
## 3. Typography Rules
|
|
83
|
+
[Font family, weights, sizes, spacing]
|
|
84
|
+
|
|
85
|
+
## 4. Component Stylings
|
|
86
|
+
* **Buttons:** [Shape, color, behavior]
|
|
87
|
+
* **Cards:** [Corners, background, shadows]
|
|
88
|
+
* **Inputs:** [Stroke, background, focus states]
|
|
89
|
+
|
|
90
|
+
## 5. Layout Principles
|
|
91
|
+
[Whitespace strategy, margins, grid alignment]
|
|
92
|
+
|
|
93
|
+
## 6. Design System Notes for Stitch Generation
|
|
94
|
+
**Copy this block into every baton prompt:**
|
|
95
|
+
|
|
96
|
+
**DESIGN SYSTEM (REQUIRED):**
|
|
97
|
+
- Platform: [Web/Mobile], [Desktop/Mobile]-first
|
|
98
|
+
- Theme: [Dark/Light], [descriptors]
|
|
99
|
+
- Background: [Description] (#hex)
|
|
100
|
+
- Primary Accent: [Description] (#hex)
|
|
101
|
+
- Text Primary: [Description] (#hex)
|
|
102
|
+
- Font: [Description]
|
|
103
|
+
- Layout: [Description]
|
|
104
|
+
```
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-docs
|
|
3
|
+
description: 프로젝트 문서가 레이어링 구조와 메타데이터 표준을 준수하는지 검증합니다.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 문서 구조 검증 (Template)
|
|
7
|
+
|
|
8
|
+
## 목적
|
|
9
|
+
|
|
10
|
+
프로젝트의 모든 문서가 SSOT(Single Source of Truth) 표준을 유지하도록 합니다:
|
|
11
|
+
|
|
12
|
+
1. **폴더 구조 준수** — `docs/` 하위가 프로젝트에서 정의한 레이어링 규칙을 따르는지.
|
|
13
|
+
2. **메타데이터 표준** — 모든 `.md` 파일 상단에 생성/수정일이 명시되어 있는지.
|
|
14
|
+
3. **네이밍 컨벤션** — 파일명 순번(Numbering) 규칙 준수 여부.
|
|
15
|
+
|
|
16
|
+
## 실행 시점
|
|
17
|
+
|
|
18
|
+
- 새 문서 생성 혹은 기존 문서 수정 후
|
|
19
|
+
- PR 전 문서 정합성 점검 시
|
|
20
|
+
|
|
21
|
+
## Workflow
|
|
22
|
+
|
|
23
|
+
### Step 0: 프로젝트 기준 문서(AGENTS.md 등) 참조
|
|
24
|
+
`AGENTS.md`나 `COLLABORATION_GUIDE.md`를 먼저 읽어 현재 프로젝트의 문서 계층과 네이밍 규칙을 파악합니다.
|
|
25
|
+
|
|
26
|
+
### Step 1: 폴더 및 파일 네이밍 검사
|
|
27
|
+
탐색된 규칙에 따라 `docs/` 하위의 폴더명과 파일명이 정해진 순번 접두사(`01_`, `02_` 등)를 사용하는지 체크합니다.
|
|
28
|
+
|
|
29
|
+
### Step 2: 필수 필드 누락 검사
|
|
30
|
+
`Created:`, `Last Updated:` 등 필수 메타데이터가 파일 상단에 존재하는지 확인합니다.
|
|
31
|
+
|
|
32
|
+
## Exceptions
|
|
33
|
+
1. `docs/00_ARCHIVE/`: 아카이브 폴더는 형식 검사를 완화합니다.
|
|
34
|
+
2. `README.md`, `LICENSE` 등 루트의 표준 파일은 제외합니다.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-drizzle-schema
|
|
3
|
+
description: Drizzle ORM 스키마가 설계 문서와 일치하고 프로젝트 기술 표준을 따르는지 검증합니다.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Drizzle 스키마 검증 (Template)
|
|
7
|
+
|
|
8
|
+
## 목적
|
|
9
|
+
|
|
10
|
+
Drizzle 기반 DB 스키마의 정합성과 품질을 유지합니다:
|
|
11
|
+
|
|
12
|
+
1. **설계 일치성** — `schema.ts`가 아키텍처 명세서와 일치하는지.
|
|
13
|
+
2. **기술 표준 준수** — Zod, Luxon 등 프로젝트에서 정의한 핵심 라이브러리 연동 여부.
|
|
14
|
+
3. **관계 무결성** — 외래키(references) 및 인덱스 정의의 누락 확인.
|
|
15
|
+
|
|
16
|
+
## 실행 시점
|
|
17
|
+
|
|
18
|
+
- DB 스키마 파일 수정 후
|
|
19
|
+
- 마이그레이션 생성 전
|
|
20
|
+
- PR 전 최종 DB 무결성 체크 시
|
|
21
|
+
|
|
22
|
+
## Related Files
|
|
23
|
+
|
|
24
|
+
| File | Purpose |
|
|
25
|
+
|------|---------|
|
|
26
|
+
| `[DB_SCHEMA_PATH]` | 실제 구현된 Drizzle 스키마 파일 (예: web/src/db/schema.ts) |
|
|
27
|
+
| `[ARCHITECTURE_SPEC_PATH]` | 기술 설계 문서 (예: docs/03_Technical_Specs/01_ARCHITECTURE.md) |
|
|
28
|
+
|
|
29
|
+
## Workflow
|
|
30
|
+
|
|
31
|
+
### Step 0: 동적 파일 탐색
|
|
32
|
+
프로젝트 구조에 맞춰 `db/schema.ts` 또는 `db/schema/*.ts` 파일을 자동으로 탐색합니다.
|
|
33
|
+
|
|
34
|
+
### Step 1: 스키마-명세 대조
|
|
35
|
+
설계 문서에서 정의된 테이블/필드가 코드에 모두 구현되어 있는지 `grep`으로 확인합니다.
|
|
36
|
+
|
|
37
|
+
### Step 2: 공통 필드 및 타입 규칙 검증
|
|
38
|
+
`id`, `createdAt`, `updatedAt` 등 공통 필드 컨벤션과 Drizzle 핵심 타입 사용 여부를 체크합니다.
|
|
39
|
+
|
|
40
|
+
### Step 3: 외래키 및 인덱스 체크
|
|
41
|
+
테이블 간의 `references()` 정의가 유효하게 설정되었는지 확인합니다.
|
|
42
|
+
|
|
43
|
+
## Exceptions
|
|
44
|
+
1. **Third-party Tables**: 외부 라이브러리(Auth.js 등)에서 제공하는 고정 스키마는 검증에서 제외합니다.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-implementation
|
|
3
|
+
description: 프로젝트의 모든 verify 스킬을 동적으로 탐색하여 순차 실행하고 통합 검증 보고서를 생성합니다.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
argument-hint: "[선택사항: 특정 verify 스킬 이름]"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# 구현 검증 (Master Template)
|
|
9
|
+
|
|
10
|
+
## 목적
|
|
11
|
+
|
|
12
|
+
프로젝트에 존재하는 모든 `verify-*` 스킬을 동적으로 탐색하여 순차적으로 실행하고 통합 검증을 수행합니다.
|
|
13
|
+
|
|
14
|
+
## 실행 대상 스킬 (Dynamic)
|
|
15
|
+
|
|
16
|
+
| # | 스킬 | 설명 |
|
|
17
|
+
|---|------|------|
|
|
18
|
+
| * | `verify-*` | `.agent/skills` 또는 `.claude/commands`에서 자동 탐색 |
|
|
19
|
+
|
|
20
|
+
## 워크플로우
|
|
21
|
+
|
|
22
|
+
### Step 1: 동적 스킬 탐색
|
|
23
|
+
`.agent/skills/` 및 `.claude/commands/` 하위의 `verify-*` 패턴을 탐색합니다.
|
|
24
|
+
|
|
25
|
+
### Step 2: 순차 실행
|
|
26
|
+
각 스킬의 `Workflow`, `Exceptions`, `Related Files`를 파싱하여 개별 검사를 수행합니다.
|
|
27
|
+
|
|
28
|
+
### Step 3: 통합 보고서 생성
|
|
29
|
+
PASS/FAIL 통계와 발견된 이슈 목록을 생성합니다.
|
|
30
|
+
|
|
31
|
+
### Step 4: 수정 옵션 제공
|
|
32
|
+
자동 수정 또는 개별 수정을 사용자에게 제안합니다.
|
|
33
|
+
|
|
34
|
+
### Step 5: 수정 적용 및 재검증
|
|
35
|
+
수정이 적용된 경우 해당 스킬을 다시 실행하여 통과 여부를 최종 확인합니다.
|
|
36
|
+
|
|
37
|
+
## 예외사항
|
|
38
|
+
1. **자기 자신** (`verify-implementation`)은 실행 대상에서 제외.
|
|
39
|
+
2. **관리 스킬** (`manage-skills` 등)은 `verify-`로 시작하지 않으므로 제외.
|