077-Frank-RAG方案设计工具

077-Frank-RAG方案设计工具 is a skill for Claude Code, Codex from frank666199/frank-presales-skills. It costs 0 tokens per session (664 once invoked), scanned A, original, MIT.

A design guide for a RAG knowledge base. RAG, or retrieval-augmented generation, finds relevant passages in company documents and gives them to an AI model before it writes an answer.

In plain words
What is it for?
Use it to design document cleaning and splitting, vector search, hybrid retrieval, reranking, prompt templates, answer generation, and end-to-end evaluation.
Why use it?
It helps plan document processing, search, ranking, answer generation, technology choices, and measurable quality checks in one workflow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to design document cleaning and splitting, vector search, hybrid retrieval, reranking, prompt templates, answer generation, and end-to-end evaluation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/frank666199/frank-presales-skills/077-frank-rag
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.

Any agent
npx skills add frank666199/frank-presales-skills --skill 077-frank-rag
Clone the repo
git clone --depth 1 https://github.com/frank666199/frank-presales-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 077-Frank-RAG方案设计工具

README.md
[![agentmods](https://agentmods.dev/badge/skills/frank666199/frank-presales-skills/077-frank-rag/github.svg)](https://agentmods.dev/skills/frank666199/frank-presales-skills/077-frank-rag)
Your own site
<a href="https://agentmods.dev/skills/frank666199/frank-presales-skills/077-frank-rag"><img src="https://agentmods.dev/badge/skills/frank666199/frank-presales-skills/077-frank-rag/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 077-Frank-RAG方案设计工具

Your own site · 80×15
<a href="https://agentmods.dev/skills/frank666199/frank-presales-skills/077-frank-rag"><img src="https://agentmods.dev/badge/skills/frank666199/frank-presales-skills/077-frank-rag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 664 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.1 $0.00000 $0.00664
Opus 5 $0.00000 $0.00332
Sonnet 5 $0.00000 $0.00133
Haiku 4.5 $0.00000 $0.00066

Measured 8d ago against content hash 1d17108b3264, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

077-Frank-RAG方案设计工具 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 8d 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.

维度7-AI-Projects/077-Frank-RAG方案设计工具/SKILL.md · 90 lines

What it actually says

Skill: Frank-RAG方案设计工具

Profile

  • Author: Frank
  • Version: 1.0.0
  • Language: 中文
  • Category: 维度7 - AI项目专精
  • Description: 生成企业知识库RAG方案,含分块/嵌入/检索/重排/生成全流程

When to Use

AI项目中需要设计RAG知识库方案


Input Requirements

  • 知识库规模
  • 文档类型
  • 检索精度要求

Workflow

  1. 设计文档处理流程:加载→清洗→分块→元数据标注
  2. 选择嵌入模型:开源(BGE/M3E) vs 商业(OpenAI)
  3. 设计向量数据库方案:Milvus/Pinecone/Weaviate
  4. 规划检索策略:稠密检索+稀疏检索+混合检索
  5. 设计重排序方案:Cross-encoder/Cohere Rerank
  6. 设计生成方案:Prompt模板+上下文组装+答案生成
  7. 制定评估方案:检索准确率+生成质量+端到端评估
  8. 输出RAG方案设计文档

Output Format

RAG方案设计文档(含全流程设计+技术选型+评估方案)


Output Template

RAG环节 | 技术方案 | 选型理由 | 参数配置 | 性能指标 | 备选方案

Example

字段 内容
分块策略 语义分块(512 token)

Constraints

  • 技术选型有对比分析
  • 评估方案可量化
  • 方案可落地

Quality Criteria

  • 全流程覆盖
  • 技术选型合理
  • 评估方案科学

Applicable Scenarios

  • G端政府项目: 部分适用
  • B端企业项目: 部分适用
  • AI智能项目: 适用

Usage

方式1:Claude Code / Cursor / Codex

将本SKILL.md内容复制到Agent技能配置区,通过技能名触发。

方式2:飞书妙搭 / 扣子

将SKILL.md内容粘贴到Agent提示词配置区,设置触发词为技能名。

方式3:独立使用

直接复制本文件内容到AI对话中,按Workflow步骤执行。


Frank专属售前技能 | 维度7: AI项目专精 | 编号: 077 基于"Frank售前解决方案Skills工具集 v1.0"与实操提示词融合优化生成

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. 8d ago First seen · 90 lines · 0 tokens per session scan A 1d17108b3264

Subscribe to this mod's changes

077-Frank-RAG方案设计工具 is a skill published in the GitHub repository frank666199/frank-presales-skills (11 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 664 tokens. 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-09-03.

Related

Other skills, from other repositories

polaris-datainsight-doc-extract

Extract structured data from Office documents (DOCX, PPTX, XLSX, HWP, HWPX) using the Polaris AI DataInsight Doc Extract API. Use when the user wants to parse, analyze, or extract text, tables, charts, images, or shapes from document files. Invoke this skill whenever the user mentions extracting content from Word…

eric861129/SKILLS_All-in-one · 141 tokens

markitdown

Convert heterogeneous documents and selected URIs to Markdown with Microsoft MarkItDown for text analysis, search, and LLM/RAG ingestion. Covers safe local conversion, streams, Office/PDF/data formats, batch workflows, plugins, vision OCR, Azure extraction, and the official MCP server.

K-Dense-AI/scientific-agent-skills · 61 tokens

llamaindex

Data framework for building LLM applications with RAG. Specializes in document ingestion (300+ connectors), indexing, and querying. Features vector indices, query engines, agents, and multi-modal support. Use for document Q&A, chatbots, knowledge retrieval, or building RAG pipelines. Best for data-centric LLM…

davila7/claude-code-templates · 70 tokens

azure-ai

Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.

microsoft/skills · 76 tokens

kb-retriever

A retrieval and question-answering assistant for a local folder of documents, including Markdown, text, PDFs, and spreadsheets.

ConardLi/garden-skills · 105 tokens

bailian-kb

A command-line manager for Alibaba Cloud Bailian knowledge bases, which are collections of documents prepared for search and question answering. It handles the stored documents, search services, text chunks, and data-centre files rather than everyday searches.

modelstudioai/cli · 234 tokens