agentleFS
r2hu1r2hu1/openbots/.agents/skills/ai-sdk/SKILL.md

ai-sdk

Skill4 starsChanged 59 days agoNo licenceView on GitHub

Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".

  • Reads credentials
  • Installs packages

33 other projects use a version of this, 28 of them edited; 28 of 28 edited versions we compared changed its rules.

How people change it

28 of 28 edited versions changed its rules, and some changes recur.

Of the 28 edited versions we compared: 28 made changes of their own.

Rules people drop

  1. A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
  2. A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
  3. A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
  4. A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
  5. A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
  6. A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
  7. A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
  8. A rule we can't quote: its licence doesn't allow itdropped by 22 of 28

Rules people add

  1. Search bundled docs and source in node_modules/ai/:added by 22 of 28
  2. Before searching docs, check if node_modules/ai/docs/ exists. If not, install only the ai package using the project's package manager (e.g., pnpm add ai).added by 20 of 28
  3. Do not install other packages at this stage. Provider packages (e.g., @ai-sdk/openai) and client packages (e.g., @ai-sdk/react) should be installed later when needed based on user requirements.added by 20 of 28
  4. Ensure ai package is installed (see Prerequisites)added by 20 of 28
  5. Search node_modules/ai/docs/ and node_modules/ai/src/ for current APIsadded by 20 of 28
  6. If not found locally, search ai-sdk.dev documentation (instructions below)added by 20 of 28
  7. Never rely on memory - always verify against source code or docsadded by 20 of 28
  8. useChat has changed significantly - check [Common Errors](references/common-errors.md) before writing client codeadded by 20 of 28

We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.

Adopted by

Most recently taken up by

Used with

Projects with it also use ai-elements, zod and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    ai-elements

    Build AI chat interfaces using ai-elements components — conversations, messages, tool displays, prompt inputs, and more. Use when the user wants to build a chatbot, AI assistant UI, or any AI-powered chat interface.

    Also in 4 projects that use this

  • leonaaardobSkill

    zod

    Complete Zod validation library documentation. Use when working with Zod schema validation, TypeScript type inference, form validation, API validation, error handling, or data parsing. Covers schema definition, refinements, transforms, error customization, and ecosystem integrations.

    Also in 3 projects that use this

  • SentrySkill

    vercel-composition-patterns

    Also in 5 projects that use this

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 7 projects that use this

  • MicrosoftSkill

    playwright-cli

    Automate browser interactions, test web pages and work with Playwright tests.

    Also in 3 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 3 projects that use this

  • +1 more from vercel

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 31 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

No licence file, so all rights are reserved — read it at the source. We count its rules but don't quote them. Read them on GitHub.

“Common” is measured: kept by at least 6 in 10 of the 31 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.