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.
Files changed (60) hide show
  1. package/.claude/skills/agent-browser-skill/SKILL.md +252 -0
  2. package/.claude/skills/real-prototypes-skill/.gitignore +188 -0
  3. package/.claude/skills/real-prototypes-skill/ACCESSIBILITY.md +668 -0
  4. package/.claude/skills/real-prototypes-skill/INSTALL.md +259 -0
  5. package/.claude/skills/real-prototypes-skill/LICENSE +21 -0
  6. package/.claude/skills/real-prototypes-skill/PUBLISH.md +310 -0
  7. package/.claude/skills/real-prototypes-skill/QUICKSTART.md +240 -0
  8. package/.claude/skills/real-prototypes-skill/README.md +442 -0
  9. package/.claude/skills/real-prototypes-skill/SKILL.md +375 -0
  10. package/.claude/skills/real-prototypes-skill/capture/capture-engine.js +1153 -0
  11. package/.claude/skills/real-prototypes-skill/capture/config.schema.json +170 -0
  12. package/.claude/skills/real-prototypes-skill/cli.js +596 -0
  13. package/.claude/skills/real-prototypes-skill/docs/TROUBLESHOOTING.md +278 -0
  14. package/.claude/skills/real-prototypes-skill/docs/schemas/capture-config.md +167 -0
  15. package/.claude/skills/real-prototypes-skill/docs/schemas/design-tokens.md +183 -0
  16. package/.claude/skills/real-prototypes-skill/docs/schemas/manifest.md +169 -0
  17. package/.claude/skills/real-prototypes-skill/examples/CLAUDE.md.example +73 -0
  18. package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/CLAUDE.md +136 -0
  19. package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/FEATURES.md +222 -0
  20. package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/README.md +82 -0
  21. package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/references/design-tokens.json +87 -0
  22. package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/references/screenshots/homepage-viewport.png +0 -0
  23. package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/references/screenshots/prototype-chatbot-final.png +0 -0
  24. package/.claude/skills/real-prototypes-skill/examples/amazon-chatbot/references/screenshots/prototype-fullpage-v2.png +0 -0
  25. package/.claude/skills/real-prototypes-skill/references/accessibility-fixes.md +298 -0
  26. package/.claude/skills/real-prototypes-skill/references/accessibility-report.json +253 -0
  27. package/.claude/skills/real-prototypes-skill/scripts/CAPTURE-ENHANCEMENTS.md +344 -0
  28. package/.claude/skills/real-prototypes-skill/scripts/IMPLEMENTATION-SUMMARY.md +517 -0
  29. package/.claude/skills/real-prototypes-skill/scripts/QUICK-START.md +229 -0
  30. package/.claude/skills/real-prototypes-skill/scripts/QUICKSTART-layout-analysis.md +148 -0
  31. package/.claude/skills/real-prototypes-skill/scripts/README-analyze-layout.md +407 -0
  32. package/.claude/skills/real-prototypes-skill/scripts/analyze-layout.js +880 -0
  33. package/.claude/skills/real-prototypes-skill/scripts/capture-platform.js +203 -0
  34. package/.claude/skills/real-prototypes-skill/scripts/comprehensive-capture.js +597 -0
  35. package/.claude/skills/real-prototypes-skill/scripts/create-manifest.js +338 -0
  36. package/.claude/skills/real-prototypes-skill/scripts/enterprise-pipeline.js +428 -0
  37. package/.claude/skills/real-prototypes-skill/scripts/extract-tokens.js +468 -0
  38. package/.claude/skills/real-prototypes-skill/scripts/full-site-capture.js +738 -0
  39. package/.claude/skills/real-prototypes-skill/scripts/generate-tailwind-config.js +296 -0
  40. package/.claude/skills/real-prototypes-skill/scripts/integrate-accessibility.sh +161 -0
  41. package/.claude/skills/real-prototypes-skill/scripts/manifest-schema.json +302 -0
  42. package/.claude/skills/real-prototypes-skill/scripts/setup-prototype.sh +167 -0
  43. package/.claude/skills/real-prototypes-skill/scripts/test-analyze-layout.js +338 -0
  44. package/.claude/skills/real-prototypes-skill/scripts/test-validation.js +307 -0
  45. package/.claude/skills/real-prototypes-skill/scripts/validate-accessibility.js +598 -0
  46. package/.claude/skills/real-prototypes-skill/scripts/validate-manifest.js +499 -0
  47. package/.claude/skills/real-prototypes-skill/scripts/validate-output.js +361 -0
  48. package/.claude/skills/real-prototypes-skill/scripts/validate-prerequisites.js +319 -0
  49. package/.claude/skills/real-prototypes-skill/scripts/verify-layout-analysis.sh +77 -0
  50. package/.claude/skills/real-prototypes-skill/templates/dashboard-widget.tsx.template +91 -0
  51. package/.claude/skills/real-prototypes-skill/templates/data-table.tsx.template +193 -0
  52. package/.claude/skills/real-prototypes-skill/templates/form-section.tsx.template +250 -0
  53. package/.claude/skills/real-prototypes-skill/templates/modal-dialog.tsx.template +239 -0
  54. package/.claude/skills/real-prototypes-skill/templates/nav-item.tsx.template +265 -0
  55. package/.claude/skills/real-prototypes-skill/validation/validation-engine.js +559 -0
  56. package/.env.example +74 -0
  57. package/LICENSE +21 -0
  58. package/README.md +444 -0
  59. package/bin/cli.js +319 -0
  60. 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
+ }