real-prototypes-skill 0.1.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/.claude/skills/agent-browser-skill/SKILL.md +252 -0
- package/.claude/skills/real-prototypes-skill/.gitignore +188 -0
- package/.claude/skills/real-prototypes-skill/ACCESSIBILITY.md +668 -0
- package/.claude/skills/real-prototypes-skill/INSTALL.md +259 -0
- package/.claude/skills/real-prototypes-skill/LICENSE +21 -0
- package/.claude/skills/real-prototypes-skill/PUBLISH.md +310 -0
- package/.claude/skills/real-prototypes-skill/QUICKSTART.md +240 -0
- package/.claude/skills/real-prototypes-skill/README.md +442 -0
- package/.claude/skills/real-prototypes-skill/SKILL.md +375 -0
- package/.claude/skills/real-prototypes-skill/capture/capture-engine.js +1153 -0
- package/.claude/skills/real-prototypes-skill/capture/config.schema.json +170 -0
- package/.claude/skills/real-prototypes-skill/cli.js +596 -0
- package/.claude/skills/real-prototypes-skill/docs/TROUBLESHOOTING.md +278 -0
- package/.claude/skills/real-prototypes-skill/docs/schemas/capture-config.md +167 -0
- package/.claude/skills/real-prototypes-skill/docs/schemas/design-tokens.md +183 -0
- package/.claude/skills/real-prototypes-skill/docs/schemas/manifest.md +169 -0
- package/.claude/skills/real-prototypes-skill/examples/CLAUDE.md.example +73 -0
- package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/CLAUDE.md +136 -0
- package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/FEATURES.md +222 -0
- package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/README.md +82 -0
- package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/references/design-tokens.json +87 -0
- package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/references/screenshots/homepage-viewport.png +0 -0
- package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/references/screenshots/prototype-chatbot-final.png +0 -0
- package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/references/screenshots/prototype-fullpage-v2.png +0 -0
- package/.claude/skills/real-prototypes-skill/references/accessibility-fixes.md +298 -0
- package/.claude/skills/real-prototypes-skill/references/accessibility-report.json +253 -0
- package/.claude/skills/real-prototypes-skill/scripts/CAPTURE-ENHANCEMENTS.md +344 -0
- package/.claude/skills/real-prototypes-skill/scripts/IMPLEMENTATION-SUMMARY.md +517 -0
- package/.claude/skills/real-prototypes-skill/scripts/QUICK-START.md +229 -0
- package/.claude/skills/real-prototypes-skill/scripts/QUICKSTART-layout-analysis.md +148 -0
- package/.claude/skills/real-prototypes-skill/scripts/README-analyze-layout.md +407 -0
- package/.claude/skills/real-prototypes-skill/scripts/analyze-layout.js +880 -0
- package/.claude/skills/real-prototypes-skill/scripts/capture-platform.js +203 -0
- package/.claude/skills/real-prototypes-skill/scripts/comprehensive-capture.js +597 -0
- package/.claude/skills/real-prototypes-skill/scripts/create-manifest.js +338 -0
- package/.claude/skills/real-prototypes-skill/scripts/enterprise-pipeline.js +428 -0
- package/.claude/skills/real-prototypes-skill/scripts/extract-tokens.js +468 -0
- package/.claude/skills/real-prototypes-skill/scripts/full-site-capture.js +738 -0
- package/.claude/skills/real-prototypes-skill/scripts/generate-tailwind-config.js +296 -0
- package/.claude/skills/real-prototypes-skill/scripts/integrate-accessibility.sh +161 -0
- package/.claude/skills/real-prototypes-skill/scripts/manifest-schema.json +302 -0
- package/.claude/skills/real-prototypes-skill/scripts/setup-prototype.sh +167 -0
- package/.claude/skills/real-prototypes-skill/scripts/test-analyze-layout.js +338 -0
- package/.claude/skills/real-prototypes-skill/scripts/test-validation.js +307 -0
- package/.claude/skills/real-prototypes-skill/scripts/validate-accessibility.js +598 -0
- package/.claude/skills/real-prototypes-skill/scripts/validate-manifest.js +499 -0
- package/.claude/skills/real-prototypes-skill/scripts/validate-output.js +361 -0
- package/.claude/skills/real-prototypes-skill/scripts/validate-prerequisites.js +319 -0
- package/.claude/skills/real-prototypes-skill/scripts/verify-layout-analysis.sh +77 -0
- package/.claude/skills/real-prototypes-skill/templates/dashboard-widget.tsx.template +91 -0
- package/.claude/skills/real-prototypes-skill/templates/data-table.tsx.template +193 -0
- package/.claude/skills/real-prototypes-skill/templates/form-section.tsx.template +250 -0
- package/.claude/skills/real-prototypes-skill/templates/modal-dialog.tsx.template +239 -0
- package/.claude/skills/real-prototypes-skill/templates/nav-item.tsx.template +265 -0
- package/.claude/skills/real-prototypes-skill/validation/validation-engine.js +559 -0
- package/.env.example +74 -0
- package/LICENSE +21 -0
- package/README.md +444 -0
- package/bin/cli.js +319 -0
- package/package.json +59 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Platform Capture Configuration",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["platform", "auth", "capture"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"platform": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"required": ["name", "baseUrl"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"name": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Human-readable platform name"
|
|
14
|
+
},
|
|
15
|
+
"baseUrl": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "uri",
|
|
18
|
+
"description": "Base URL of the platform"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"auth": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"required": ["type"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"type": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["form", "oauth", "token", "none"],
|
|
29
|
+
"description": "Authentication method"
|
|
30
|
+
},
|
|
31
|
+
"loginUrl": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Login page URL path"
|
|
34
|
+
},
|
|
35
|
+
"credentials": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"emailField": { "type": "string", "default": "email" },
|
|
39
|
+
"passwordField": { "type": "string", "default": "password" },
|
|
40
|
+
"submitButton": { "type": "string", "default": "Sign in" }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"successIndicator": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"type": { "type": "string", "enum": ["url", "element", "cookie"] },
|
|
47
|
+
"value": { "type": "string" }
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"capture": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"mode": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"enum": ["auto", "manual", "hybrid"],
|
|
58
|
+
"default": "auto",
|
|
59
|
+
"description": "auto=discover all pages, manual=specified pages only, hybrid=both"
|
|
60
|
+
},
|
|
61
|
+
"maxPages": {
|
|
62
|
+
"type": "integer",
|
|
63
|
+
"default": 100,
|
|
64
|
+
"description": "Maximum pages to capture in auto mode"
|
|
65
|
+
},
|
|
66
|
+
"maxDepth": {
|
|
67
|
+
"type": "integer",
|
|
68
|
+
"default": 5,
|
|
69
|
+
"description": "Maximum click depth from entry point"
|
|
70
|
+
},
|
|
71
|
+
"viewports": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"items": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"properties": {
|
|
76
|
+
"name": { "type": "string" },
|
|
77
|
+
"width": { "type": "integer" },
|
|
78
|
+
"height": { "type": "integer" }
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"default": [
|
|
82
|
+
{ "name": "desktop", "width": 1920, "height": 1080 },
|
|
83
|
+
{ "name": "tablet", "width": 768, "height": 1024 },
|
|
84
|
+
{ "name": "mobile", "width": 375, "height": 812 }
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"waitAfterLoad": {
|
|
88
|
+
"type": "integer",
|
|
89
|
+
"default": 2000,
|
|
90
|
+
"description": "Milliseconds to wait after page load"
|
|
91
|
+
},
|
|
92
|
+
"waitAfterInteraction": {
|
|
93
|
+
"type": "integer",
|
|
94
|
+
"default": 1000,
|
|
95
|
+
"description": "Milliseconds to wait after clicking/interacting"
|
|
96
|
+
},
|
|
97
|
+
"interactions": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"properties": {
|
|
100
|
+
"clickButtons": { "type": "boolean", "default": true },
|
|
101
|
+
"clickDropdowns": { "type": "boolean", "default": true },
|
|
102
|
+
"clickTabs": { "type": "boolean", "default": true },
|
|
103
|
+
"clickTableRows": { "type": "boolean", "default": true },
|
|
104
|
+
"clickModals": { "type": "boolean", "default": true },
|
|
105
|
+
"hoverElements": { "type": "boolean", "default": true },
|
|
106
|
+
"expandAccordions": { "type": "boolean", "default": true }
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"states": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"properties": {
|
|
112
|
+
"captureEmpty": { "type": "boolean", "default": true },
|
|
113
|
+
"captureLoading": { "type": "boolean", "default": false },
|
|
114
|
+
"captureError": { "type": "boolean", "default": false },
|
|
115
|
+
"captureHover": { "type": "boolean", "default": true }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"exclude": {
|
|
119
|
+
"type": "array",
|
|
120
|
+
"items": { "type": "string" },
|
|
121
|
+
"description": "URL patterns to exclude (regex)",
|
|
122
|
+
"default": ["/logout", "/signout", "/delete", "/remove"]
|
|
123
|
+
},
|
|
124
|
+
"include": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"items": { "type": "string" },
|
|
127
|
+
"description": "URL patterns to include (regex) - if specified, only these are captured"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"output": {
|
|
132
|
+
"type": "object",
|
|
133
|
+
"properties": {
|
|
134
|
+
"directory": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"default": "./references"
|
|
137
|
+
},
|
|
138
|
+
"screenshots": { "type": "boolean", "default": true },
|
|
139
|
+
"html": { "type": "boolean", "default": true },
|
|
140
|
+
"designTokens": { "type": "boolean", "default": true },
|
|
141
|
+
"manifest": { "type": "boolean", "default": true }
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"validation": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"properties": {
|
|
147
|
+
"requireDetailPages": {
|
|
148
|
+
"type": "boolean",
|
|
149
|
+
"default": true,
|
|
150
|
+
"description": "Fail if list pages exist without corresponding detail pages"
|
|
151
|
+
},
|
|
152
|
+
"requireAllTabs": {
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"default": true,
|
|
155
|
+
"description": "Fail if tabs are detected but not all captured"
|
|
156
|
+
},
|
|
157
|
+
"minColors": {
|
|
158
|
+
"type": "integer",
|
|
159
|
+
"default": 10,
|
|
160
|
+
"description": "Minimum unique colors to extract"
|
|
161
|
+
},
|
|
162
|
+
"minPages": {
|
|
163
|
+
"type": "integer",
|
|
164
|
+
"default": 5,
|
|
165
|
+
"description": "Minimum pages to capture"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|