ask-ai

A setup guide for adding a retrieval-augmented AI chat to @farming-labs/docs, a documentation system for several web frameworks. It covers chat display, providers, models, prompts, questions, and environment variables.

In plain words
What is it for?
Use it to enable search or floating chat in Next.js, SvelteKit, Astro, or Nuxt documentation sites. It also helps configure providers, API keys, suggested questions, and result limits.
Why use it?
It helps you configure the chat without having to work out each available setting or framework-specific setup yourself.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/farming-labs/docs/ask-ai
Any agent
npx skills add farming-labs/docs --skill ask-ai
Clone the repo
git clone --depth 1 https://github.com/farming-labs/docs

Made for: Claude Code, Codex.

Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,662 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00083 $0.01662
Opus 5 $0.00042 $0.00831
Sonnet 5 $0.00017 $0.00332
Haiku 4.5 $0.00008 $0.00166

Measured 2d ago against content hash e135fff74bf6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ask-ai scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/astro/.agents/skills/ask-ai/SKILL.md · 202 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 202 lines · 83 tokens per session scan A e135fff74bf6

Subscribe to this mod's changes

ask-ai is a skill published in the GitHub repository farming-labs/docs (53 stars, last pushed 11d ago), with no licence file. It adds 83 tokens to every session and 1,662 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

rag-knowledge

Work with the RAG knowledge base — ingest documents, run semantic search, manage collections, or add a sync source/connector (Google Drive, S3). Use when populating or debugging the knowledge base, tuning retrieval, or adding a new document source. This project uses {{ cookiecutter.vectorstore }} + {{…

vstorm-co/full-stack-ai-agent-template · 76 tokens

common-llm-security

OWASP LLM Top 10 (2025) audit checklist for AI applications, agent tools, RAG pipelines, and prompt construction. Use when performing any security review touching LLM client code, prompt templates, agent tools, or vector stores.

HoangNguyen0403/agent-skills-standard · 56 tokens

postgres-semantic-search

PostgreSQL-based semantic and hybrid search with pgvector and ParadeDB. Use when implementing vector search, semantic search, hybrid search, or full-text search in PostgreSQL. Covers pgvector indexing, hybrid FTS/BM25 + RRF, ParadeDB, reranking, halfvec, multilingual search, query translation, and domain evals.…

laguagu/claude-code-nextjs-skills · 228 tokens

rag-agent-builder

Build Retrieval-Augmented Generation (RAG) applications that combine LLM capabilities with external knowledge sources. Covers vector databases, embeddings, retrieval strategies, and response generation. Use when building document Q&A systems, knowledge base applications, enterprise search, or combining LLMs with…

Aniket-a14/SRA · 61 tokens

astro

Build content-focused websites with Astro — zero JS by default, islands architecture, multi-framework components, and Markdown/MDX support.

tmolavi/mcp-agent-skills-hub · 28 tokens

rag-prep

Prepare and clean a document so it works well in a RAG source (NotebookLM, Claude Projects/Cowork, any retrieval backend). Use when the user wants to "подготовить документ под RAG / NotebookLM", "почистить исходник для базы знаний", "разбить на чанки / структурировать под retrieval", "prep doc for RAG", "make this…

sanic732/P2P-4PDA-edition · 168 tokens