Getting it into your agent
There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.
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.
[](https://agentmods.dev/skills/samzong/agent-brains/dify-rag-pm)<a href="https://agentmods.dev/skills/samzong/agent-brains/dify-rag-pm"><img src="https://agentmods.dev/badge/skills/samzong/agent-brains/dify-rag-pm/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/skills/samzong/agent-brains/dify-rag-pm"><img src="https://agentmods.dev/badge/skills/samzong/agent-brains/dify-rag-pm.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.00052 | $0.00466 |
| Opus 5 | $0.00026 | $0.00233 |
| Sonnet 5 | $0.00010 | $0.00093 |
| Haiku 4.5 | $0.00005 | $0.00047 |
Grade A, and why
dify-rag-pm 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
dify-rag-pm Skill
Use this skill when analyzing, planning, designing, or reviewing Dify Dataset / Knowledge / RAG product work.
Trigger Situations
- Dataset lifecycle, source ingestion, document management, indexing, retrieval, metadata, or hit testing.
- Workflow Knowledge Retrieval node fields or runtime behavior.
- KnowledgeFS to Dify Dataset 2.0 mapping.
- Product requirements, user stories, feature matrix, or prototype design for Dataset/RAG.
Workflow
- Read code first.
- Identify the product surface.
- Extract fields and runtime rules.
- Separate current behavior from proposal.
- Translate technical internals into Dify user language.
- Produce field contract and user story map.
- State non-goals and invalid combinations.
Required Evidence
Prefer these source areas:
/Users/x/git/lg/dify/api/models/dataset.py/Users/x/git/lg/dify/api/models/enums.py/Users/x/git/lg/dify/api/services/dataset_service.py/Users/x/git/lg/dify/api/core/rag/retrieval/dataset_retrieval.py/Users/x/git/lg/dify/api/core/workflow/nodes/knowledge_retrieval//Users/x/git/lg/dify/web/models/datasets.ts/Users/x/git/lg/dify/web/app/components/datasets//Users/x/git/lg/dify/web/app/components/workflow/nodes/knowledge-retrieval//Users/x/git/lg/knowledge-fs/packages/core/src/models.ts/Users/x/git/lg/knowledge-fs/packages/api/src/retrieval-types.ts/Users/x/git/lg/knowledge-fs/packages/api/src/gateway-route-schemas.ts
Output Checklist
- Current behavior
- Code evidence
- Product implication
- Dataset 2.0 proposal
- Field contract
- Story map
- Information flow
- Non-goals
- Prototype implications
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 · 54 lines · 52 tokens per session scan A a2f138fa401a
dify-rag-pm is a skill published in the GitHub repository samzong/agent-brains (6 stars, last pushed 3mo ago), licensed MIT. It adds 52 tokens to every session and 466 once invoked, about $0.0003 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 skills, from other repositories
jetson-inference-mem-tune
Pick the serving stack and per-runtime memory flags (vLLM, SGLang, llama.cpp, TensorRT Edge-LLM) for an LLM/VLM workload on any NVIDIA Jetson.
kg-builder
Designs and builds knowledge graphs from documents — ontology modeling with domain/range constraints, entity/relation/event extraction, entity resolution, provenance and supersession, and GraphRAG serving. Use when asked to "build a knowledge graph", "design an ontology", "extract entities and relations", "deduplicate…
rag-auditor
Evaluates RAG pipeline quality across retrieval (precision, recall, MRR) and generation (groundedness, hallucination rate). Triggers on: "audit RAG pipeline", "RAG quality", "hallucination detection", "why is RAG failing", "grounding check". NOT for general architecture audits, use architecture-reviewer.
rag-implementation
Comprehensive guide to implementing RAG systems including vector database selection, chunking strategies, embedding models, and retrieval optimization. Use when building RAG systems, implementing semantic search, optimizing retrieval quality, or debugging RAG performance issues.
wshobson-rag-implementation
Skill "wshobson-rag-implementation" from ItamarZand88/awesome-agent-conventions, covering rag implementation, when to use this skill, core components, 1. vector databases and 2. embeddings.
ai-product
Expert in shipping production-grade AI-powered features — LLM integration patterns, RAG architecture, prompt engineering that scales, AI UX that users trust, safety and guardrails, streaming, and cost optimization.