ask-ai

Configure an AI chat in documentation projects using docs as context.

52|7|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/farming-labs/docs --skill ask-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ask-ai
Source: https://github.com/farming-labs/docs/tree/main/examples/astro/.agents/skills/ask-ai
Command: npx skills add https://github.com/farming-labs/docs --skill ask-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure and integrate an AI-powered chat into documentation projects so users can ask questions and get answers derived from the docs context.

Core Features & Use Cases

  • Mode options include "search" and "floating" with configurable floatingStyle, position, and user-facing controls.
  • Supports multiple providers and models, with suggestedQuestions to guide user interactions.
  • Encompasses environment-variable-friendly API key management, systemPrompt customization, and maxResults tuning for secure, scalable deployments.

Quick Start

Enable AI chat by turning on ai.enabled in your docs.config.ts and supply the OPENAI API key via environment variables.

Frequently Asked Questions about ask-ai

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add an AI chat to my documentation project?

You configure a built-in AI chat by enabling ai.enabled in docs.config.ts and supplying your OpenAI API key via environment variables to answer user questions using your docs as context.

Can I use AI chat with Next.js, SvelteKit, Astro, and Nuxt documentation?

Yes, the AI chat configuration supports Next.js, SvelteKit, Astro, and Nuxt contexts, allowing you to integrate context-aware question answering across these documentation frameworks.

What display modes are available for integrating an AI chatbot in docs?

The AI chat supports search and floating modes, with configurable floating styles and positions, plus user-facing controls and suggested questions to guide interactions within your documentation.

How do I manage API keys and system prompts for a documentation chatbot?

You manage API keys securely using environment variables and customize the chatbot behavior by defining a systemPrompt, tuning maxResults, and selecting specific providers and models in the configuration.

Are suggested questions supported when configuring an AI assistant for docs?

Yes, suggestedQuestions are supported to guide user interactions, helping visitors navigate your documentation context efficiently by providing predefined prompts within the chat interface.