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.
git clone --depth 1 https://github.com/an8079/take-skillsWrote 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.
[](https://agentmods.dev/commands/an8079/take-skills/takes-rag)<a href="https://agentmods.dev/commands/an8079/take-skills/takes-rag"><img src="https://agentmods.dev/badge/commands/an8079/take-skills/takes-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.
<a href="https://agentmods.dev/commands/an8079/take-skills/takes-rag"><img src="https://agentmods.dev/badge/commands/an8079/take-skills/takes-rag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00038 | $0.00777 |
| Opus 5 | $0.00019 | $0.00388 |
| Sonnet 5 | $0.00008 | $0.00155 |
| Haiku 4.5 | $0.00004 | $0.00078 |
Grade A, and why
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 9d 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.
What it actually says
/rag - RAG 项目设计
与用户讨论并设计 RAG (Retrieval Augmented Generation) 项目架构。
使用方式
/rag
或
RAG设计
开始RAG设计
设计RAG系统
工作流程
- 需求讨论 - 与用户讨论 RAG 使用场景和需求
- 数据源分析 - 分析数据源类型和查询模式
- 架构设计 - 设计 RAG Pipeline 和工作流
- 组件选型 - 推荐 Embedding、Vector DB、Retrieval 策略
- 技术方案 - 提供完整的实现建议
讨论内容
LangGraph 工作流设计
- Supervisor-Worker 模式
- 状态持久化与 Checkpointing
- 条件边与路由逻辑
- 子图设计
LangFuse 集成方案
- 追踪配置与装饰器使用
- 评估指标设计
- Prompt 版本管理
- 成本分析
LangSmith 监控配置
- 项目与数据集设置
- 评估链构建
- 反馈收集
- A/B 测试
LangChain 组件选型
- Embedding 模型选择(OpenAI BGE、Cohere)
- Vector Database 对比与选型
- Chunking 策略设计
- Reranking 策略
RAG 架构设计
- 向量数据库选型(Pinecone、Milvus、Qdrant、Chroma、FAISS)
- Embedding 模型选择
- Chunking 策略
- Retrieval 和 Reranking 策略
- LangGraph 状态机设计
输出内容
RAG 架构设计文档,包含:
| 内容 | 说明 |
|---|---|
| 向量数据库选型建议 | 根据规模、成本、性能需求推荐 |
| Embedding 模型选择 | 中文/英文、精度/速度权衡 |
| Chunking 策略 | 根据文档类型推荐分块策略 |
| Retrieval 策略 | Naive RAG、GraphRAG、Hybrid Search 等 |
| Reranking 策略 | BGE Reranker、Cohere Rerank |
| LangGraph 工作流 | 状态定义、节点设计、边设计 |
| 监控方案 | LangFuse/LangSmith 配置建议 |
使用技能
skills/rag-design/SKILL.md- RAG 设计知识库
示例场景
场景 1: 企业内部知识库
用户: 我们想做一个法律文档问答系统
/rag → 讨论 → 推荐 GraphRAG + LangGraph + Qdrant + BGE
场景 2: 客服机器人
用户: 需要做一个实时客服系统
/rag → 讨论 → 推荐 Hybrid Search + Pinecone + Redis 缓存
场景 3: 多语言文档检索
用户: 我们的文档有中英文
/rag → 讨论 → 推荐 Cohere Embed + Weaviate + Hybrid Search
提示: /rag 是设计讨论模式,不会自动执行代码。讨论完成后,你可以使用 /plan 进入计划阶段。
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.
- 9d ago First seen · 114 lines · 38 tokens per session scan A e69e3fc069f1
rag is a command published in the GitHub repository an8079/take-skills (4 stars, last pushed 5mo ago), licensed MIT. It adds 38 tokens to every session and 777 once invoked, about $0.0002 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-31.
Other commands, from other repositories
querying
Query documents from a search index using type-safe filters with support for pagination, sorting, field selection, scoring, and highlighting. Count matching documents efficiently without returning results.
agent
Add an AI agent / RAG backend (@convex-dev/agent) to the Convex app.
ingest
Manually add knowledge to the Weaviate store.
inference.embed
Embed one or more texts into vectors.
vector.batch_exists
Check existence for multiple vector keys.
vector.batch_upsert
Upsert multiple vectors in one itemwise batch.