mcp-probe-kit 3.0.15 → 3.0.16
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/README.md +17 -11
- package/build/lib/skill-bridge.d.ts +31 -0
- package/build/lib/skill-bridge.js +100 -0
- package/build/resources/ui-ux-data/charts.json +302 -0
- package/build/resources/ui-ux-data/colors.json +1058 -0
- package/build/resources/ui-ux-data/icons.json +1102 -0
- package/build/resources/ui-ux-data/landing.json +262 -0
- package/build/resources/ui-ux-data/metadata.json +6 -0
- package/build/resources/ui-ux-data/products.json +1058 -0
- package/build/resources/ui-ux-data/react-performance.json +574 -0
- package/build/resources/ui-ux-data/stacks/astro.json +266 -0
- package/build/resources/ui-ux-data/stacks/flutter.json +626 -0
- package/build/resources/ui-ux-data/stacks/html-tailwind.json +662 -0
- package/build/resources/ui-ux-data/stacks/jetpack-compose.json +626 -0
- package/build/resources/ui-ux-data/stacks/nextjs.json +218 -0
- package/build/resources/ui-ux-data/stacks/nuxt-ui.json +14 -0
- package/build/resources/ui-ux-data/stacks/nuxtjs.json +182 -0
- package/build/resources/ui-ux-data/stacks/react-native.json +350 -0
- package/build/resources/ui-ux-data/stacks/react.json +530 -0
- package/build/resources/ui-ux-data/stacks/shadcn.json +566 -0
- package/build/resources/ui-ux-data/stacks/svelte.json +134 -0
- package/build/resources/ui-ux-data/stacks/swiftui.json +26 -0
- package/build/resources/ui-ux-data/stacks/vue.json +170 -0
- package/build/resources/ui-ux-data/styles.json +1610 -0
- package/build/resources/ui-ux-data/typography.json +743 -0
- package/build/resources/ui-ux-data/ui-reasoning.json +1431 -0
- package/build/resources/ui-ux-data/ux-guidelines.json +1190 -0
- package/build/resources/ui-ux-data/web-interface.json +389 -0
- package/build/schemas/ui-ux-schemas.js +1 -1
- package/build/tools/start_product.js +8 -1
- package/build/tools/start_ui.js +14 -3
- package/build/tools/ui-ux-tools.js +21 -17
- package/build/utils/ui-data-loader.d.ts +18 -2
- package/build/utils/ui-data-loader.js +74 -12
- package/docs/i18n/en.json +2 -2
- package/docs/i18n/ja.json +2 -2
- package/docs/i18n/ko.json +2 -2
- package/docs/i18n/zh-CN.json +2 -2
- package/package.json +2 -1
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"No": "1",
|
|
4
|
+
"Category": "Architecture",
|
|
5
|
+
"Guideline": "Use Islands Architecture",
|
|
6
|
+
"Description": "Astro's partial hydration only loads JS for interactive components",
|
|
7
|
+
"Do": "Interactive components with client directives",
|
|
8
|
+
"Don't": "Hydrate entire page like traditional SPA",
|
|
9
|
+
"Code Good": "<Counter client:load />",
|
|
10
|
+
"Code Bad": "Everything as client component",
|
|
11
|
+
"Severity": "High",
|
|
12
|
+
"Docs URL": "https://docs.astro.build/en/concepts/islands/"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"No": "2",
|
|
16
|
+
"Category": "Architecture",
|
|
17
|
+
"Guideline": "Default to zero JS",
|
|
18
|
+
"Description": "Astro ships zero JS by default - add only when needed",
|
|
19
|
+
"Do": "Static components without client directive",
|
|
20
|
+
"Don't": "Add client:load to everything",
|
|
21
|
+
"Code Good": "<Header /> (static)",
|
|
22
|
+
"Code Bad": "<Header client:load /> (unnecessary)",
|
|
23
|
+
"Severity": "High",
|
|
24
|
+
"Docs URL": "https://docs.astro.build/en/basics/astro-components/"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"No": "3",
|
|
28
|
+
"Category": "Architecture",
|
|
29
|
+
"Guideline": "Choose right client directive",
|
|
30
|
+
"Description": "Different directives for different hydration timing",
|
|
31
|
+
"Do": "client:visible for below-fold client:idle for non-critical",
|
|
32
|
+
"Don't": "client:load for everything",
|
|
33
|
+
"Code Good": "<Comments client:visible />",
|
|
34
|
+
"Code Bad": "<Comments client:load />",
|
|
35
|
+
"Severity": "Medium",
|
|
36
|
+
"Docs URL": "https://docs.astro.build/en/reference/directives-reference/#client-directives"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"No": "4",
|
|
40
|
+
"Category": "Architecture",
|
|
41
|
+
"Guideline": "Use content collections",
|
|
42
|
+
"Description": "Type-safe content management for blogs docs",
|
|
43
|
+
"Do": "Content collections for structured content",
|
|
44
|
+
"Don't": "Loose markdown files without schema",
|
|
45
|
+
"Code Good": "const posts = await getCollection('blog')",
|
|
46
|
+
"Code Bad": "import.meta.glob('./posts/*.md')",
|
|
47
|
+
"Severity": "High",
|
|
48
|
+
"Docs URL": "https://docs.astro.build/en/guides/content-collections/"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"No": "5",
|
|
52
|
+
"Category": "Architecture",
|
|
53
|
+
"Guideline": "Define collection schemas",
|
|
54
|
+
"Description": "Zod schemas for content validation",
|
|
55
|
+
"Do": "Schema with required fields and types",
|
|
56
|
+
"Don't": "No schema validation",
|
|
57
|
+
"Code Good": "defineCollection({ schema: z.object({...}) })",
|
|
58
|
+
"Code Bad": "defineCollection({})",
|
|
59
|
+
"Severity": "High",
|
|
60
|
+
"Docs URL": "https://docs.astro.build/en/guides/content-collections/#defining-a-collection-schema"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"No": "6",
|
|
64
|
+
"Category": "Routing",
|
|
65
|
+
"Guideline": "Use file-based routing",
|
|
66
|
+
"Description": "Create routes by adding .astro files in pages/",
|
|
67
|
+
"Do": "pages/ directory for routes",
|
|
68
|
+
"Don't": "Manual route configuration",
|
|
69
|
+
"Code Good": "src/pages/about.astro",
|
|
70
|
+
"Code Bad": "Custom router setup",
|
|
71
|
+
"Severity": "Medium",
|
|
72
|
+
"Docs URL": "https://docs.astro.build/en/basics/astro-pages/"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"No": "7",
|
|
76
|
+
"Category": "Routing",
|
|
77
|
+
"Guideline": "Dynamic routes with brackets",
|
|
78
|
+
"Description": "Use [param] for dynamic routes",
|
|
79
|
+
"Do": "Bracket notation for params",
|
|
80
|
+
"Don't": "Query strings for dynamic content",
|
|
81
|
+
"Code Good": "pages/blog/[slug].astro",
|
|
82
|
+
"Code Bad": "pages/blog.astro?slug=x",
|
|
83
|
+
"Severity": "Medium",
|
|
84
|
+
"Docs URL": "https://docs.astro.build/en/guides/routing/#dynamic-routes"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"No": "8",
|
|
88
|
+
"Category": "Routing",
|
|
89
|
+
"Guideline": "Use getStaticPaths for SSG",
|
|
90
|
+
"Description": "Generate static pages at build time",
|
|
91
|
+
"Do": "getStaticPaths for known dynamic routes",
|
|
92
|
+
"Don't": "Fetch at runtime for static content",
|
|
93
|
+
"Code Good": "export async function getStaticPaths() { return [...] }",
|
|
94
|
+
"Code Bad": "No getStaticPaths with dynamic route",
|
|
95
|
+
"Severity": "High",
|
|
96
|
+
"Docs URL": "https://docs.astro.build/en/reference/api-reference/#getstaticpaths"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"No": "9",
|
|
100
|
+
"Category": "Routing",
|
|
101
|
+
"Guideline": "Enable SSR when needed",
|
|
102
|
+
"Description": "Server-side rendering for dynamic content",
|
|
103
|
+
"Do": "output: 'server' or 'hybrid' for dynamic",
|
|
104
|
+
"Don't": "SSR for purely static sites",
|
|
105
|
+
"Code Good": "export const prerender = false;",
|
|
106
|
+
"Code Bad": "SSR for static blog",
|
|
107
|
+
"Severity": "Medium",
|
|
108
|
+
"Docs URL": "https://docs.astro.build/en/guides/server-side-rendering/"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"No": "10",
|
|
112
|
+
"Category": "Components",
|
|
113
|
+
"Guideline": "Keep .astro for static",
|
|
114
|
+
"Description": "Use .astro components for static content",
|
|
115
|
+
"Do": "Astro components for layout structure",
|
|
116
|
+
"Don't": "React/Vue for static markup",
|
|
117
|
+
"Code Good": "<Layout><slot /></Layout>",
|
|
118
|
+
"Code Bad": "<ReactLayout>{children}</ReactLayout>",
|
|
119
|
+
"Severity": "High",
|
|
120
|
+
"Docs URL": ""
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"No": "11",
|
|
124
|
+
"Category": "Components",
|
|
125
|
+
"Guideline": "Use framework components for interactivity",
|
|
126
|
+
"Description": "React Vue Svelte for complex interactivity",
|
|
127
|
+
"Do": "Framework component with client directive",
|
|
128
|
+
"Don't": "Astro component with inline scripts",
|
|
129
|
+
"Code Good": "<ReactCounter client:load />",
|
|
130
|
+
"Code Bad": "<script> in .astro for complex state",
|
|
131
|
+
"Severity": "Medium",
|
|
132
|
+
"Docs URL": "https://docs.astro.build/en/guides/framework-components/"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"No": "12",
|
|
136
|
+
"Category": "Components",
|
|
137
|
+
"Guideline": "Pass data via props",
|
|
138
|
+
"Description": "Astro components receive props in frontmatter",
|
|
139
|
+
"Do": "Astro.props for component data",
|
|
140
|
+
"Don't": "Global state for simple data",
|
|
141
|
+
"Code Good": "const { title } = Astro.props;",
|
|
142
|
+
"Code Bad": "Import global store",
|
|
143
|
+
"Severity": "Low",
|
|
144
|
+
"Docs URL": "https://docs.astro.build/en/basics/astro-components/#component-props"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"No": "13",
|
|
148
|
+
"Category": "Components",
|
|
149
|
+
"Guideline": "Use slots for composition",
|
|
150
|
+
"Description": "Named and default slots for flexible layouts",
|
|
151
|
+
"Do": "<slot /> for child content",
|
|
152
|
+
"Don't": "Props for HTML content",
|
|
153
|
+
"Code Good": "<slot name=\"header\" />",
|
|
154
|
+
"Code Bad": "<Component header={<div>...</div>} />",
|
|
155
|
+
"Severity": "Medium",
|
|
156
|
+
"Docs URL": "https://docs.astro.build/en/basics/astro-components/#slots"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"No": "14",
|
|
160
|
+
"Category": "Components",
|
|
161
|
+
"Guideline": "Colocate component styles",
|
|
162
|
+
"Description": "Scoped styles in component file",
|
|
163
|
+
"Do": "<style> in same .astro file",
|
|
164
|
+
"Don't": "Separate CSS files for component styles",
|
|
165
|
+
"Code Good": "<style> .card { } </style>",
|
|
166
|
+
"Code Bad": "import './Card.css'",
|
|
167
|
+
"Severity": "Low",
|
|
168
|
+
"Docs URL": ""
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"No": "15",
|
|
172
|
+
"Category": "Styling",
|
|
173
|
+
"Guideline": "Use scoped styles by default",
|
|
174
|
+
"Description": "Astro scopes styles to component automatically",
|
|
175
|
+
"Do": "<style> for component-specific styles",
|
|
176
|
+
"Don't": "Global styles for everything",
|
|
177
|
+
"Code Good": "<style> h1 { } </style> (scoped)",
|
|
178
|
+
"Code Bad": "<style is:global> for everything",
|
|
179
|
+
"Severity": "Medium",
|
|
180
|
+
"Docs URL": "https://docs.astro.build/en/guides/styling/#scoped-styles"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"No": "16",
|
|
184
|
+
"Category": "Styling",
|
|
185
|
+
"Guideline": "Use is:global sparingly",
|
|
186
|
+
"Description": "Global styles only when truly needed",
|
|
187
|
+
"Do": "is:global for base styles or overrides",
|
|
188
|
+
"Don't": "is:global for component styles",
|
|
189
|
+
"Code Good": "<style is:global> body { } </style>",
|
|
190
|
+
"Code Bad": "<style is:global> .card { } </style>",
|
|
191
|
+
"Severity": "Medium",
|
|
192
|
+
"Docs URL": ""
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"No": "17",
|
|
196
|
+
"Category": "Styling",
|
|
197
|
+
"Guideline": "Integrate Tailwind properly",
|
|
198
|
+
"Description": "Use @astrojs/tailwind integration",
|
|
199
|
+
"Do": "Official Tailwind integration",
|
|
200
|
+
"Don't": "Manual Tailwind setup",
|
|
201
|
+
"Code Good": "npx astro add tailwind",
|
|
202
|
+
"Code Bad": "Manual PostCSS config",
|
|
203
|
+
"Severity": "Low",
|
|
204
|
+
"Docs URL": "https://docs.astro.build/en/guides/integrations-guide/tailwind/"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"No": "18",
|
|
208
|
+
"Category": "Styling",
|
|
209
|
+
"Guideline": "Use CSS variables for theming",
|
|
210
|
+
"Description": "Define tokens in :root",
|
|
211
|
+
"Do": "CSS custom properties for themes",
|
|
212
|
+
"Don't": "Hardcoded colors everywhere",
|
|
213
|
+
"Code Good": ":root { --primary: #3b82f6; }",
|
|
214
|
+
"Code Bad": "color: #3b82f6; everywhere",
|
|
215
|
+
"Severity": "Medium",
|
|
216
|
+
"Docs URL": ""
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"No": "19",
|
|
220
|
+
"Category": "Data",
|
|
221
|
+
"Guideline": "Fetch in frontmatter",
|
|
222
|
+
"Description": "Data fetching in component frontmatter",
|
|
223
|
+
"Do": "Top-level await in frontmatter",
|
|
224
|
+
"Don't": "useEffect for initial data",
|
|
225
|
+
"Code Good": "const data = await fetch(url)",
|
|
226
|
+
"Code Bad": "client-side fetch on mount",
|
|
227
|
+
"Severity": "High",
|
|
228
|
+
"Docs URL": "https://docs.astro.build/en/guides/data-fetching/"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"No": "20",
|
|
232
|
+
"Category": "Data",
|
|
233
|
+
"Guideline": "Use Astro.glob for local files",
|
|
234
|
+
"Description": "Import multiple local files",
|
|
235
|
+
"Do": "Astro.glob for markdown/data files",
|
|
236
|
+
"Don't": "Manual imports for each file",
|
|
237
|
+
"Code Good": "const posts = await Astro.glob('./posts/*.md')",
|
|
238
|
+
"Code Bad": "import post1; import post2;",
|
|
239
|
+
"Severity": "Medium",
|
|
240
|
+
"Docs URL": ""
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"No": "21",
|
|
244
|
+
"Category": "Data",
|
|
245
|
+
"Guideline": "Prefer content collections over glob",
|
|
246
|
+
"Description": "Type-safe collections for structured content",
|
|
247
|
+
"Do": "getCollection() for blog/docs",
|
|
248
|
+
"Don't": "Astro.glob for structured content",
|
|
249
|
+
"Code Good": "await getCollection('blog')",
|
|
250
|
+
"Code Bad": "await Astro.glob('./blog/*.md')",
|
|
251
|
+
"Severity": "High",
|
|
252
|
+
"Docs URL": ""
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"No": "22",
|
|
256
|
+
"Category": "Data",
|
|
257
|
+
"Guideline": "Use environment variables correctly",
|
|
258
|
+
"Description": "Import.meta.env for env vars",
|
|
259
|
+
"Do": "PUBLIC_ prefix for client vars",
|
|
260
|
+
"Don't": "Expose secrets to client",
|
|
261
|
+
"Code Good": "import.meta.env.PUBLIC_API_URL",
|
|
262
|
+
"Code Bad": "import.meta.env.SECRET in client",
|
|
263
|
+
"Severity": "High",
|
|
264
|
+
"Docs URL": "https://docs.astro.build/en/guides/environment-variables/"
|
|
265
|
+
}
|
|
266
|
+
]
|