vercel / vercel/ai-elements

Generate Skills workflow does not watch component docs

Open Beginner friendly
#494 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.4k
Forks
283
Avg merge
32m
Merged PRs (30d)
1

Description

Description

The Generate Skills workflow watches:

apps/docs/content/docs/**/*.mdx

However, packages/scripts/src/generate-skills.ts discovers component references from:

apps/docs/content/components/**/*.mdx

As a result, adding or updating a component MDX file does not trigger skill regeneration. The recently added Question component in #479 is one example: its docs and examples were merged, but skills/ai-elements/references/question.md and the corresponding skill scripts were not generated.

Suggested change

Update .github/workflows/generate-skills.yml to watch the component docs path:

- "apps/docs/content/components/**/*.mdx"

PR #493 regenerates the currently missing artifacts and fixes truncated TypeTable values, but this workflow path should be corrected to prevent future omissions.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open .github/workflows/generate-skills.yml and compare its watched paths with the component discovery path in packages/scripts/src/generate-skills.ts. Add the component MDX glob, then verify that component documentation changes trigger skill generation and that the relevant skill artifacts are produced.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
92/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.