@techwavedev/agi-agent-kit 1.1.7 → 1.2.1
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.
Potentially problematic release.
This version of @techwavedev/agi-agent-kit might be problematic. Click here for more details.
- package/CHANGELOG.md +82 -1
- package/README.md +190 -12
- package/bin/init.js +30 -2
- package/package.json +6 -3
- package/templates/base/AGENTS.md +54 -23
- package/templates/base/README.md +325 -0
- package/templates/base/directives/memory_integration.md +95 -0
- package/templates/base/execution/memory_manager.py +309 -0
- package/templates/base/execution/session_boot.py +218 -0
- package/templates/base/execution/session_init.py +320 -0
- package/templates/base/skill-creator/SKILL_skillcreator.md +23 -36
- package/templates/base/skill-creator/scripts/init_skill.py +18 -135
- package/templates/skills/ec/README.md +31 -0
- package/templates/skills/ec/aws/SKILL.md +1020 -0
- package/templates/skills/ec/aws/defaults.yaml +13 -0
- package/templates/skills/ec/aws/references/common_patterns.md +80 -0
- package/templates/skills/ec/aws/references/mcp_servers.md +98 -0
- package/templates/skills/ec/aws-terraform/SKILL.md +349 -0
- package/templates/skills/ec/aws-terraform/references/best_practices.md +394 -0
- package/templates/skills/ec/aws-terraform/references/checkov_reference.md +337 -0
- package/templates/skills/ec/aws-terraform/scripts/configure_mcp.py +150 -0
- package/templates/skills/ec/confluent-kafka/SKILL.md +655 -0
- package/templates/skills/ec/confluent-kafka/references/ansible_playbooks.md +792 -0
- package/templates/skills/ec/confluent-kafka/references/ec_deployment.md +579 -0
- package/templates/skills/ec/confluent-kafka/references/kraft_migration.md +490 -0
- package/templates/skills/ec/confluent-kafka/references/troubleshooting.md +778 -0
- package/templates/skills/ec/confluent-kafka/references/upgrade_7x_to_8x.md +488 -0
- package/templates/skills/ec/confluent-kafka/scripts/kafka_health_check.py +435 -0
- package/templates/skills/ec/confluent-kafka/scripts/upgrade_preflight.py +568 -0
- package/templates/skills/ec/confluent-kafka/scripts/validate_config.py +455 -0
- package/templates/skills/ec/consul/SKILL.md +427 -0
- package/templates/skills/ec/consul/references/acl_setup.md +168 -0
- package/templates/skills/ec/consul/references/ha_config.md +196 -0
- package/templates/skills/ec/consul/references/troubleshooting.md +267 -0
- package/templates/skills/ec/consul/references/upgrades.md +213 -0
- package/templates/skills/ec/consul/scripts/consul_health_report.py +530 -0
- package/templates/skills/ec/consul/scripts/consul_status.py +264 -0
- package/templates/skills/ec/consul/scripts/generate_values.py +170 -0
- package/templates/skills/ec/documentation/SKILL.md +351 -0
- package/templates/skills/ec/documentation/references/best_practices.md +201 -0
- package/templates/skills/ec/documentation/scripts/analyze_code.py +307 -0
- package/templates/skills/ec/documentation/scripts/detect_changes.py +460 -0
- package/templates/skills/ec/documentation/scripts/generate_changelog.py +312 -0
- package/templates/skills/ec/documentation/scripts/sync_docs.py +272 -0
- package/templates/skills/ec/documentation/scripts/update_skill_docs.py +366 -0
- package/templates/skills/ec/gitlab/SKILL.md +529 -0
- package/templates/skills/ec/gitlab/references/agent_installation.md +416 -0
- package/templates/skills/ec/gitlab/references/api_reference.md +508 -0
- package/templates/skills/ec/gitlab/references/gitops_flux.md +465 -0
- package/templates/skills/ec/gitlab/references/troubleshooting.md +518 -0
- package/templates/skills/ec/gitlab/scripts/generate_agent_values.py +329 -0
- package/templates/skills/ec/gitlab/scripts/gitlab_agent_status.py +414 -0
- package/templates/skills/ec/jira/SKILL.md +484 -0
- package/templates/skills/ec/jira/references/jql_reference.md +148 -0
- package/templates/skills/ec/jira/scripts/add_comment.py +91 -0
- package/templates/skills/ec/jira/scripts/bulk_log_work.py +124 -0
- package/templates/skills/ec/jira/scripts/create_ticket.py +162 -0
- package/templates/skills/ec/jira/scripts/get_ticket.py +191 -0
- package/templates/skills/ec/jira/scripts/jira_client.py +383 -0
- package/templates/skills/ec/jira/scripts/log_work.py +154 -0
- package/templates/skills/ec/jira/scripts/search_tickets.py +104 -0
- package/templates/skills/ec/jira/scripts/update_comment.py +67 -0
- package/templates/skills/ec/jira/scripts/update_ticket.py +161 -0
- package/templates/skills/ec/karpenter/SKILL.md +301 -0
- package/templates/skills/ec/karpenter/references/ec2nodeclasses.md +421 -0
- package/templates/skills/ec/karpenter/references/migration.md +396 -0
- package/templates/skills/ec/karpenter/references/nodepools.md +400 -0
- package/templates/skills/ec/karpenter/references/troubleshooting.md +359 -0
- package/templates/skills/ec/karpenter/scripts/generate_ec2nodeclass.py +187 -0
- package/templates/skills/ec/karpenter/scripts/generate_nodepool.py +245 -0
- package/templates/skills/ec/karpenter/scripts/karpenter_status.py +359 -0
- package/templates/skills/ec/opensearch/SKILL.md +720 -0
- package/templates/skills/ec/opensearch/references/ml_neural_search.md +576 -0
- package/templates/skills/ec/opensearch/references/operator.md +532 -0
- package/templates/skills/ec/opensearch/references/query_dsl.md +532 -0
- package/templates/skills/ec/opensearch/scripts/configure_mcp.py +148 -0
- package/templates/skills/ec/victoriametrics/SKILL.md +598 -0
- package/templates/skills/ec/victoriametrics/references/kubernetes.md +531 -0
- package/templates/skills/ec/victoriametrics/references/prometheus_migration.md +333 -0
- package/templates/skills/ec/victoriametrics/references/troubleshooting.md +442 -0
- package/templates/skills/knowledge/SKILLS_CATALOG.md +274 -4
- package/templates/skills/knowledge/intelligent-routing/SKILL.md +237 -164
- package/templates/skills/knowledge/parallel-agents/SKILL.md +345 -73
- package/templates/skills/knowledge/plugin-discovery/SKILL.md +582 -0
- package/templates/skills/knowledge/plugin-discovery/scripts/platform_setup.py +1083 -0
- package/templates/skills/knowledge/design-md/README.md +0 -34
- package/templates/skills/knowledge/design-md/SKILL.md +0 -193
- package/templates/skills/knowledge/design-md/examples/DESIGN.md +0 -154
- package/templates/skills/knowledge/notebooklm-mcp/SKILL.md +0 -71
- package/templates/skills/knowledge/notebooklm-mcp/assets/example_asset.txt +0 -24
- package/templates/skills/knowledge/notebooklm-mcp/references/api_reference.md +0 -34
- package/templates/skills/knowledge/notebooklm-mcp/scripts/example.py +0 -19
- package/templates/skills/knowledge/react-components/README.md +0 -36
- package/templates/skills/knowledge/react-components/SKILL.md +0 -53
- package/templates/skills/knowledge/react-components/examples/gold-standard-card.tsx +0 -80
- package/templates/skills/knowledge/react-components/package-lock.json +0 -231
- package/templates/skills/knowledge/react-components/package.json +0 -16
- package/templates/skills/knowledge/react-components/resources/architecture-checklist.md +0 -15
- package/templates/skills/knowledge/react-components/resources/component-template.tsx +0 -37
- package/templates/skills/knowledge/react-components/resources/stitch-api-reference.md +0 -14
- package/templates/skills/knowledge/react-components/resources/style-guide.json +0 -27
- package/templates/skills/knowledge/react-components/scripts/fetch-stitch.sh +0 -30
- package/templates/skills/knowledge/react-components/scripts/validate.js +0 -68
- package/templates/skills/knowledge/self-update/SKILL.md +0 -60
- package/templates/skills/knowledge/self-update/scripts/update_kit.py +0 -103
- package/templates/skills/knowledge/stitch-loop/README.md +0 -54
- package/templates/skills/knowledge/stitch-loop/SKILL.md +0 -235
- package/templates/skills/knowledge/stitch-loop/examples/SITE.md +0 -73
- package/templates/skills/knowledge/stitch-loop/examples/next-prompt.md +0 -25
- package/templates/skills/knowledge/stitch-loop/resources/baton-schema.md +0 -61
- package/templates/skills/knowledge/stitch-loop/resources/site-template.md +0 -104
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""
|
|
3
|
-
Script: update_kit.py
|
|
4
|
-
Purpose: Update AGI Agent Kit to the latest version
|
|
5
|
-
|
|
6
|
-
Usage:
|
|
7
|
-
python3 skills/self-update/scripts/update_kit.py [--check-only] [--force]
|
|
8
|
-
|
|
9
|
-
Arguments:
|
|
10
|
-
--check-only Only check for updates, don't install
|
|
11
|
-
--force Skip confirmation prompt
|
|
12
|
-
|
|
13
|
-
Exit Codes:
|
|
14
|
-
0 - Success (or no update needed)
|
|
15
|
-
1 - Error during update
|
|
16
|
-
"""
|
|
17
|
-
|
|
18
|
-
import argparse
|
|
19
|
-
import json
|
|
20
|
-
import subprocess
|
|
21
|
-
import sys
|
|
22
|
-
from pathlib import Path
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
def run_cmd(cmd: list, capture=True) -> tuple:
|
|
26
|
-
"""Run command and return (success, output)"""
|
|
27
|
-
try:
|
|
28
|
-
result = subprocess.run(cmd, capture_output=capture, text=True)
|
|
29
|
-
return result.returncode == 0, result.stdout.strip()
|
|
30
|
-
except Exception as e:
|
|
31
|
-
return False, str(e)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
def get_installed_version(root: Path) -> str:
|
|
35
|
-
"""Get installed version from .agi.json"""
|
|
36
|
-
agi_json = root / ".agi.json"
|
|
37
|
-
if agi_json.exists():
|
|
38
|
-
try:
|
|
39
|
-
data = json.loads(agi_json.read_text())
|
|
40
|
-
return data.get("version", "unknown")
|
|
41
|
-
except:
|
|
42
|
-
pass
|
|
43
|
-
return "unknown"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
def get_latest_version() -> str:
|
|
47
|
-
"""Get latest version from NPM"""
|
|
48
|
-
success, output = run_cmd(["npm", "view", "@techwavedev/agi-agent-kit", "version"])
|
|
49
|
-
return output if success else "unknown"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
def main():
|
|
53
|
-
parser = argparse.ArgumentParser(description=__doc__)
|
|
54
|
-
parser.add_argument('--check-only', action='store_true', help='Only check for updates')
|
|
55
|
-
parser.add_argument('--force', action='store_true', help='Skip confirmation')
|
|
56
|
-
args = parser.parse_args()
|
|
57
|
-
|
|
58
|
-
root = Path(__file__).resolve().parent.parent.parent.parent
|
|
59
|
-
|
|
60
|
-
print("🔍 Checking versions...")
|
|
61
|
-
installed = get_installed_version(root)
|
|
62
|
-
latest = get_latest_version()
|
|
63
|
-
|
|
64
|
-
print(f" Installed: {installed}")
|
|
65
|
-
print(f" Latest: {latest}")
|
|
66
|
-
|
|
67
|
-
if installed == latest:
|
|
68
|
-
print("\n✅ Already up to date!")
|
|
69
|
-
sys.exit(0)
|
|
70
|
-
|
|
71
|
-
if args.check_only:
|
|
72
|
-
if installed != latest and latest != "unknown":
|
|
73
|
-
print(f"\n📦 Update available: {installed} → {latest}")
|
|
74
|
-
print(" Run without --check-only to update")
|
|
75
|
-
sys.exit(0)
|
|
76
|
-
|
|
77
|
-
# Confirm update
|
|
78
|
-
if not args.force:
|
|
79
|
-
print(f"\n📦 Update available: {installed} → {latest}")
|
|
80
|
-
response = input("Proceed with update? [y/N]: ").strip().lower()
|
|
81
|
-
if response != 'y':
|
|
82
|
-
print("Update cancelled.")
|
|
83
|
-
sys.exit(0)
|
|
84
|
-
|
|
85
|
-
# Run update
|
|
86
|
-
print("\n🚀 Updating AGI Agent Kit...")
|
|
87
|
-
print(" Running: npx @techwavedev/agi-agent-kit@latest init --pack=full\n")
|
|
88
|
-
|
|
89
|
-
result = subprocess.run(
|
|
90
|
-
["npx", "@techwavedev/agi-agent-kit@latest", "init", "--pack=full"],
|
|
91
|
-
cwd=root
|
|
92
|
-
)
|
|
93
|
-
|
|
94
|
-
if result.returncode == 0:
|
|
95
|
-
print("\n✅ Update complete!")
|
|
96
|
-
print(" Run 'python3 execution/system_checkup.py' to verify")
|
|
97
|
-
else:
|
|
98
|
-
print("\n❌ Update failed. Check output above.")
|
|
99
|
-
sys.exit(1)
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
if __name__ == '__main__':
|
|
103
|
-
main()
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Stitch Build Loop Skill
|
|
2
|
-
|
|
3
|
-
Teaches agents to iteratively build websites using Stitch with an autonomous baton-passing loop pattern.
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx add-skill google-labs-code/stitch-skills --skill stitch-loop --global
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## What It Does
|
|
12
|
-
|
|
13
|
-
Enables continuous, autonomous website development through a "baton" system:
|
|
14
|
-
|
|
15
|
-
1. Agent reads task from `next-prompt.md`
|
|
16
|
-
2. Generates page via Stitch MCP tools
|
|
17
|
-
3. Integrates into site structure
|
|
18
|
-
4. Writes next task to continue the loop
|
|
19
|
-
|
|
20
|
-
## Prerequisites
|
|
21
|
-
|
|
22
|
-
- Stitch MCP Server access
|
|
23
|
-
- A `DESIGN.md` file (generate with the `design-md` skill)
|
|
24
|
-
- A `SITE.md` file for project context
|
|
25
|
-
|
|
26
|
-
## Example Prompt
|
|
27
|
-
|
|
28
|
-
```text
|
|
29
|
-
Read my next-prompt.md and generate the page using Stitch, then prepare the next iteration.
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Skill Structure
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
stitch-loop/
|
|
36
|
-
├── SKILL.md — Core pattern instructions
|
|
37
|
-
├── README.md — This file
|
|
38
|
-
├── resources/
|
|
39
|
-
│ ├── baton-schema.md — Baton file format spec
|
|
40
|
-
│ └── site-template.md — SITE.md/DESIGN.md templates
|
|
41
|
-
└── examples/
|
|
42
|
-
├── next-prompt.md — Example baton
|
|
43
|
-
└── SITE.md — Example site constitution
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Works With
|
|
47
|
-
|
|
48
|
-
- **`design-md` skill**: Generate `DESIGN.md` from existing Stitch screens
|
|
49
|
-
- **CI/CD**: GitHub Actions can trigger new iterations on push
|
|
50
|
-
- **Agent chains**: Dispatch to other agents (Jules, etc.)
|
|
51
|
-
|
|
52
|
-
## Learn More
|
|
53
|
-
|
|
54
|
-
See [SKILL.md](./SKILL.md) for complete instructions.
|
|
@@ -1,235 +0,0 @@
|
|
|
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
|
-
- "qdrant-memory"
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
# Stitch Build Loop
|
|
14
|
-
|
|
15
|
-
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.
|
|
16
|
-
|
|
17
|
-
## Overview
|
|
18
|
-
|
|
19
|
-
The Build Loop pattern enables continuous, autonomous website development through a "baton" system. Each iteration:
|
|
20
|
-
|
|
21
|
-
1. Reads the current task from a baton file (`next-prompt.md`)
|
|
22
|
-
2. Generates a page using Stitch MCP tools
|
|
23
|
-
3. Integrates the page into the site structure
|
|
24
|
-
4. Writes the next task to the baton file for the next iteration
|
|
25
|
-
|
|
26
|
-
## Prerequisites
|
|
27
|
-
|
|
28
|
-
**Required:**
|
|
29
|
-
|
|
30
|
-
- Access to the Stitch MCP Server
|
|
31
|
-
- A Stitch project (existing or will be created)
|
|
32
|
-
- A `DESIGN.md` file (generate one using the `design-md` skill if needed)
|
|
33
|
-
- A `SITE.md` file documenting the site vision and roadmap
|
|
34
|
-
|
|
35
|
-
**Optional:**
|
|
36
|
-
|
|
37
|
-
- Chrome DevTools MCP Server — enables visual verification of generated pages
|
|
38
|
-
- Qdrant Memory Skill — enables semantic context retrieval and long-term memory
|
|
39
|
-
|
|
40
|
-
## The Baton System
|
|
41
|
-
|
|
42
|
-
The `next-prompt.md` file acts as a relay baton between iterations:
|
|
43
|
-
|
|
44
|
-
```markdown
|
|
45
|
-
---
|
|
46
|
-
page: about
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
A page describing how jules.top tracking works.
|
|
50
|
-
|
|
51
|
-
**DESIGN SYSTEM (REQUIRED):**
|
|
52
|
-
[Copy from DESIGN.md Section 6]
|
|
53
|
-
|
|
54
|
-
**Page Structure:**
|
|
55
|
-
|
|
56
|
-
1. Header with navigation
|
|
57
|
-
2. Explanation of tracking methodology
|
|
58
|
-
3. Footer with links
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
**Critical rules:**
|
|
62
|
-
|
|
63
|
-
- The `page` field in YAML frontmatter determines the output filename
|
|
64
|
-
- The prompt content must include the design system block from `DESIGN.md`
|
|
65
|
-
- You MUST update this file before completing your work to continue the loop
|
|
66
|
-
|
|
67
|
-
## Execution Protocol
|
|
68
|
-
|
|
69
|
-
### Step 1: Read the Baton
|
|
70
|
-
|
|
71
|
-
Parse `next-prompt.md` to extract:
|
|
72
|
-
|
|
73
|
-
- **Page name** from the `page` frontmatter field
|
|
74
|
-
- **Prompt content** from the markdown body
|
|
75
|
-
|
|
76
|
-
### Step 2: Consult Context Files
|
|
77
|
-
|
|
78
|
-
Before generating, read these files:
|
|
79
|
-
|
|
80
|
-
| File | Purpose |
|
|
81
|
-
| ----------- | --------------------------------------------------------------------- |
|
|
82
|
-
| `SITE.md` | Site vision, **Stitch Project ID**, existing pages (sitemap), roadmap |
|
|
83
|
-
| `DESIGN.md` | Required visual style for Stitch prompts |
|
|
84
|
-
|
|
85
|
-
### Step 2.5: Consult Memory (Optional)
|
|
86
|
-
|
|
87
|
-
If the **Qdrant Memory Skill** is available, retrieve relevant context to ensure consistency:
|
|
88
|
-
|
|
89
|
-
1. **Retrieve Context**: Call `qdrant_search_memory` (or `retrieve_context` script) with technical queries related to the current task.
|
|
90
|
-
- Example query: "navigation structure", "footer design", "auth flow pattern"
|
|
91
|
-
- Filter by project if applicable.
|
|
92
|
-
2. **Check Decisions**: Look for past architectural decisions (`type: "decision"`) that might impact this page.
|
|
93
|
-
|
|
94
|
-
**Important checks:**
|
|
95
|
-
|
|
96
|
-
- Section 4 (Sitemap) — Do NOT recreate pages that already exist
|
|
97
|
-
- Section 5 (Roadmap) — Pick tasks from here if backlog exists
|
|
98
|
-
- Section 6 (Creative Freedom) — Ideas for new pages if roadmap is empty
|
|
99
|
-
|
|
100
|
-
### Step 3: Generate with Stitch
|
|
101
|
-
|
|
102
|
-
Use the Stitch MCP tools to generate the page:
|
|
103
|
-
|
|
104
|
-
1. **Discover namespace**: Run `list_tools` to find the Stitch MCP prefix
|
|
105
|
-
2. **Get or create project**:
|
|
106
|
-
- If `stitch.json` exists, use the `projectId` from it
|
|
107
|
-
- Otherwise, call `[prefix]:create_project` and save the ID to `stitch.json`
|
|
108
|
-
3. **Generate screen**: Call `[prefix]:generate_screen_from_text` with:
|
|
109
|
-
- `projectId`: The project ID
|
|
110
|
-
- `prompt`: The full prompt from the baton (including design system block)
|
|
111
|
-
- `deviceType`: `DESKTOP` (or as specified)
|
|
112
|
-
4. **Retrieve assets**: Call `[prefix]:get_screen` to get:
|
|
113
|
-
- `htmlCode.downloadUrl` — Download and save as `queue/{page}.html`
|
|
114
|
-
- `screenshot.downloadUrl` — Download and save as `queue/{page}.png`
|
|
115
|
-
|
|
116
|
-
### Step 4: Integrate into Site
|
|
117
|
-
|
|
118
|
-
1. Move generated HTML from `queue/{page}.html` to `site/public/{page}.html`
|
|
119
|
-
2. Fix any asset paths to be relative to the public folder
|
|
120
|
-
3. Update navigation:
|
|
121
|
-
- Find existing placeholder links (e.g., `href="#"`) and wire them to the new page
|
|
122
|
-
- Add the new page to the global navigation if appropriate
|
|
123
|
-
4. Ensure consistent headers/footers across all pages
|
|
124
|
-
|
|
125
|
-
### Step 4.5: Visual Verification (Optional)
|
|
126
|
-
|
|
127
|
-
If the **Chrome DevTools MCP Server** is available, verify the generated page:
|
|
128
|
-
|
|
129
|
-
1. **Check availability**: Run `list_tools` to see if `chrome*` tools are present
|
|
130
|
-
2. **Start dev server**: Use Bash to start a local server (e.g., `npx serve site/public`)
|
|
131
|
-
3. **Navigate to page**: Call `[chrome_prefix]:navigate` to open `http://localhost:3000/{page}.html`
|
|
132
|
-
4. **Capture screenshot**: Call `[chrome_prefix]:screenshot` to capture the rendered page
|
|
133
|
-
5. **Visual comparison**: Compare against the Stitch screenshot (`queue/{page}.png`) for fidelity
|
|
134
|
-
6. **Stop server**: Terminate the dev server process
|
|
135
|
-
|
|
136
|
-
> **Note:** This step is optional. If Chrome DevTools MCP is not installed, skip to Step 5.
|
|
137
|
-
|
|
138
|
-
### Step 5: Update Site Documentation
|
|
139
|
-
|
|
140
|
-
Modify `SITE.md`:
|
|
141
|
-
|
|
142
|
-
- Add the new page to Section 4 (Sitemap) with `[x]`
|
|
143
|
-
- Remove any idea you consumed from Section 6 (Creative Freedom)
|
|
144
|
-
- Update Section 5 (Roadmap) if you completed a backlog item
|
|
145
|
-
|
|
146
|
-
### Step 5.5: Store Memory (Optional)
|
|
147
|
-
|
|
148
|
-
If **Qdrant Memory Skill** is available:
|
|
149
|
-
|
|
150
|
-
1. **Store Completion**: Use `qdrant_store_memory` to record the completion of the page.
|
|
151
|
-
- Content: "Completed page: {page}. Implemented features: [list features]."
|
|
152
|
-
- Metadata: `type: "milestone"`, `page: "{page}"`
|
|
153
|
-
2. **Store Decisions**: If you made any structural or design decisions (e.g., "Standardized footer links"), store them:
|
|
154
|
-
- Metadata: `type: "decision"`, `topic: "navigation"`
|
|
155
|
-
|
|
156
|
-
### Step 6: Prepare the Next Baton (Critical)
|
|
157
|
-
|
|
158
|
-
**You MUST update `next-prompt.md` before completing.** This keeps the loop alive.
|
|
159
|
-
|
|
160
|
-
1. **Decide the next page**:
|
|
161
|
-
- Check `SITE.md` Section 5 (Roadmap) for pending items
|
|
162
|
-
- If empty, pick from Section 6 (Creative Freedom)
|
|
163
|
-
- Or invent something new that fits the site vision
|
|
164
|
-
2. **Write the baton** with proper YAML frontmatter:
|
|
165
|
-
|
|
166
|
-
```markdown
|
|
167
|
-
---
|
|
168
|
-
page: achievements
|
|
169
|
-
---
|
|
170
|
-
|
|
171
|
-
A competitive achievements page showing developer badges and milestones.
|
|
172
|
-
|
|
173
|
-
**DESIGN SYSTEM (REQUIRED):**
|
|
174
|
-
[Copy the entire design system block from DESIGN.md]
|
|
175
|
-
|
|
176
|
-
**Page Structure:**
|
|
177
|
-
|
|
178
|
-
1. Header with title and navigation
|
|
179
|
-
2. Badge grid showing unlocked/locked states
|
|
180
|
-
3. Progress bars for milestone tracking
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
## File Structure Reference
|
|
184
|
-
|
|
185
|
-
```
|
|
186
|
-
project/
|
|
187
|
-
├── next-prompt.md # The baton — current task
|
|
188
|
-
├── stitch.json # Stitch project ID (persist this!)
|
|
189
|
-
├── DESIGN.md # Visual design system (from design-md skill)
|
|
190
|
-
├── SITE.md # Site vision, sitemap, roadmap
|
|
191
|
-
├── queue/ # Staging area for Stitch output
|
|
192
|
-
│ ├── {page}.html
|
|
193
|
-
│ └── {page}.png
|
|
194
|
-
└── site/public/ # Production pages
|
|
195
|
-
├── index.html
|
|
196
|
-
└── {page}.html
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
## Orchestration Options
|
|
200
|
-
|
|
201
|
-
The loop can be driven by different orchestration layers:
|
|
202
|
-
|
|
203
|
-
| Method | How it works |
|
|
204
|
-
| ----------------- | ------------------------------------------------------ |
|
|
205
|
-
| **CI/CD** | GitHub Actions triggers on `next-prompt.md` changes |
|
|
206
|
-
| **Human-in-loop** | Developer reviews each iteration before continuing |
|
|
207
|
-
| **Agent chains** | One agent dispatches to another (e.g., Jules API) |
|
|
208
|
-
| **Manual** | Developer runs the agent repeatedly with the same repo |
|
|
209
|
-
|
|
210
|
-
The skill is orchestration-agnostic — focus on the pattern, not the trigger mechanism.
|
|
211
|
-
|
|
212
|
-
## Design System Integration
|
|
213
|
-
|
|
214
|
-
This skill works best with the `design-md` skill:
|
|
215
|
-
|
|
216
|
-
1. **First time setup**: Generate `DESIGN.md` using the `design-md` skill from an existing Stitch screen
|
|
217
|
-
2. **Every iteration**: Copy Section 6 ("Design System Notes for Stitch Generation") into your baton prompt
|
|
218
|
-
3. **Consistency**: All generated pages will share the same visual language
|
|
219
|
-
|
|
220
|
-
## Common Pitfalls
|
|
221
|
-
|
|
222
|
-
- ❌ Forgetting to update `next-prompt.md` (breaks the loop)
|
|
223
|
-
- ❌ Recreating a page that already exists in the sitemap
|
|
224
|
-
- ❌ Not including the design system block in the prompt
|
|
225
|
-
- ❌ Leaving placeholder links (`href="#"`) instead of wiring real navigation
|
|
226
|
-
- ❌ Forgetting to persist `stitch.json` after creating a new project
|
|
227
|
-
|
|
228
|
-
## Troubleshooting
|
|
229
|
-
|
|
230
|
-
| Issue | Solution |
|
|
231
|
-
| ----------------------- | ---------------------------------------------------------- |
|
|
232
|
-
| Stitch generation fails | Check that the prompt includes the design system block |
|
|
233
|
-
| Inconsistent styles | Ensure DESIGN.md is up-to-date and copied correctly |
|
|
234
|
-
| Loop stalls | Verify `next-prompt.md` was updated with valid frontmatter |
|
|
235
|
-
| Navigation broken | Check all internal links use correct relative paths |
|
|
@@ -1,73 +0,0 @@
|
|
|
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.
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
|
@@ -1,61 +0,0 @@
|
|
|
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
|
|
@@ -1,104 +0,0 @@
|
|
|
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
|
-
```
|