You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix skill description, docs, and PromptInput usage across references (#395)
* Fix skill description, docs, and PromptInput usage across references
- Fix SKILL.md frontmatter description to describe user-facing use case
instead of internal library development
- Remove empty "Quick Start" section (header with no content)
- Remove extra consecutive blank lines throughout SKILL.md
- Add package runner note (npx/pnpm dlx/bunx) after install description
- Fix troubleshooting sub-headings from ## to ### (were same level as parent)
- Fix trailing colon to period in theme switching troubleshooting section
- Fix wrong `Input` import to `PromptInput` in 6 skill references and
6 docs pages (conversation, message, suggestion, sources, image,
web-preview) — `Input` export does not exist, likely leftover from rename
- Fix wrong `onSubmit` handler signature in 7 skill references and 7 docs
pages — `PromptInput.onSubmit` passes `(message: PromptInputMessage)`
as the first argument, not a `FormEvent`. Calling `e.preventDefault()`
on a PromptInputMessage object would crash at runtime
* fix: don't overwrite SKILL.md in generate-skills
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
description: Create new AI chat interface components for the ai-elements library following established composable patterns, shadcn/ui integration, and Vercel AI SDK conventions. Use when creating new components in packages/elements/src or when the user asks to add a new component to ai-elements.
185
-
---
186
-
187
-
# AI Elements
188
-
189
-
${transformOverviewMdx(indexContent)}
190
-
191
-
## Usage
192
-
193
-
${transformOverviewMdx(usageContent)}
194
-
195
-
## Troubleshooting
196
-
197
-
${transformOverviewMdx(troubleshootingContent)}
198
-
199
-
## Available Components
151
+
constcleanGeneratedDirs=(): void=>{
152
+
constreferencesDir=join(SKILL_DIR,"references");
153
+
constscriptsDir=join(SKILL_DIR,"scripts");
200
154
201
-
See the \`references/\` folder for detailed documentation on each component.
0 commit comments