@aiworkbench/vibe-cli 0.0.5 → 0.0.6
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/dist/index.js +32 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7287,6 +7287,33 @@ cleanups.forEach((fn) => fn());
|
|
|
7287
7287
|
| "Unresolved external" build warning | Dependency not in Vite external config | Add to \`rollupOptions.external\` or bundle it |
|
|
7288
7288
|
| HMR not reflecting changes | Custom element re-registration conflict | Hard refresh the page (Cmd+Shift+R / Ctrl+Shift+R) |
|
|
7289
7289
|
|
|
7290
|
+
## Skills Reference
|
|
7291
|
+
|
|
7292
|
+
This project includes detailed skill guides for specific topics. Skills are **not loaded by
|
|
7293
|
+
default** to keep context focused. **Load the relevant skill before writing code** whenever the
|
|
7294
|
+
user's request touches that area. When in doubt, load the skill — it's better to have the
|
|
7295
|
+
reference than to guess.
|
|
7296
|
+
|
|
7297
|
+
| Skill | Load when… |
|
|
7298
|
+
|-------|-----------|
|
|
7299
|
+
| \`bridge-usage\` | Using any bridge capability (auth, api, storage, events, theme, toast, navigation) |
|
|
7300
|
+
| \`component-patterns\` | Creating or modifying components, lifecycle hooks, shadow DOM patterns |
|
|
7301
|
+
| \`manifest-guide\` | Editing manifest.json, adding or changing permissions |
|
|
7302
|
+
| \`security-rules\` | Reviewing code for policy violations, or unsure if a pattern is allowed |
|
|
7303
|
+
| \`vite-config\` | Changing build configuration, adding Vite plugins, optimizing bundles |
|
|
7304
|
+
| \`accessibility\` | Adding interactive elements, forms, ARIA attributes, keyboard navigation |
|
|
7305
|
+
| \`error-handling\` | Implementing try/catch, error boundaries, or graceful degradation |
|
|
7306
|
+
| \`performance\` | Optimizing bundle size, render performance, or memory usage |
|
|
7307
|
+
| \`debugging\` | Troubleshooting issues, tracing bridge calls, fixing HMR problems |
|
|
7308
|
+
| \`navigation-patterns\` | Building multi-view UIs, tabs, wizards, or steppers (no URL routing) |
|
|
7309
|
+
| \`asset-handling\` | Working with images, SVGs, fonts, or other static assets |
|
|
7310
|
+
| \`host-design-system\` | Styling components to match the host application's design tokens and visual language |
|
|
7311
|
+
${testing ? `| \`testing-guide\` | Writing or modifying tests, mocking the bridge, test setup |
|
|
7312
|
+
` : ""}
|
|
7313
|
+
**How to use skills:** Read the skill file for the relevant topic before implementing. Multiple
|
|
7314
|
+
skills can apply to a single task — for example, building a new form might involve
|
|
7315
|
+
\`component-patterns\`, \`accessibility\`, and \`bridge-usage\` (if the form submits via the bridge API).
|
|
7316
|
+
|
|
7290
7317
|
## Build & Dev
|
|
7291
7318
|
- \`bun run dev\` — Start Vite dev server with hot reload
|
|
7292
7319
|
- \`bun run build\` — Production build (ES module, < 50kb gzipped)
|
|
@@ -7659,6 +7686,11 @@ var SKILL_DEFS = [
|
|
|
7659
7686
|
name: "asset-handling",
|
|
7660
7687
|
description: "Inline SVGs, imported data URLs, and CDN patterns for production assets",
|
|
7661
7688
|
generate: generateAssetHandling
|
|
7689
|
+
},
|
|
7690
|
+
{
|
|
7691
|
+
name: "host-design-system",
|
|
7692
|
+
description: "Host app design tokens, typography, spacing, colors, and component patterns",
|
|
7693
|
+
generate: generateHostDesignSystem
|
|
7662
7694
|
}
|
|
7663
7695
|
];
|
|
7664
7696
|
async function writeFolderSkill(baseDir, skill, content) {
|