Borrowing it
Nothing to install: this file belongs to lucky-aeon/AgentX. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/lucky-aeon/AgentX/master/.claude/commands/rag-publish-todo-list.mdgit clone --depth 1 https://github.com/lucky-aeon/AgentXWrote 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/lucky-aeon/agentx/rag-publish-todo-list)<a href="https://agentmods.dev/commands/lucky-aeon/agentx/rag-publish-todo-list"><img src="https://agentmods.dev/badge/commands/lucky-aeon/agentx/rag-publish-todo-list/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/lucky-aeon/agentx/rag-publish-todo-list"><img src="https://agentmods.dev/badge/commands/lucky-aeon/agentx/rag-publish-todo-list.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.00000 | $0.02684 |
| Opus 5 | $0.00000 | $0.01342 |
| Sonnet 5 | $0.00000 | $0.00537 |
| Haiku 4.5 | $0.00000 | $0.00268 |
Grade A, and why
rag-publish-todo-list 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 10d 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.
How it starts
The opening of the file, as written. The whole thing — 276 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RAG 发布功能 TODO List
阶段一:数据库设计和基础架构 🗄️ ✅ 已完成
1. 数据库表创建
- 创建
rag_versions表(RAG版本主表) - 创建
rag_version_files表(版本文件快照表) - 创建
rag_version_documents表(版本文档单元快照表) - 创建
user_rags表(用户安装的RAG表) - 添加相关索引和约束
- 编写数据库迁移脚本
2. 领域层实现
- 创建
RagVersionEntity实体类 - 创建
RagVersionFileEntity实体类 - 创建
RagVersionDocumentEntity实体类 - 创建
UserRagEntity实体类 - 创建相关的Repository接口
- 实现Repository实现类
3. 基础领域服务
- 创建
RagVersionDomainService - 创建
UserRagDomainService - 实现快照创建核心逻辑
- 实现向量数据复制逻辑
- 实现数据完整性验证
阶段二:快照机制实现 📸 ✅ 已完成
1. 快照创建服务
- 实现文件信息快照复制
- 实现文档内容快照复制
- 实现向量数据命名空间复制
- 实现快照统计信息计算
- 添加快照创建事务管理
2. 向量数据隔离
- 设计向量数据库命名空间策略
- 实现向量数据复制到新命名空间
- 实现向量数据检索适配
- 添加向量数据清理机制
3. 数据一致性保证
- 实现快照完整性验证
- 添加快照创建失败回滚机制
- 实现快照数据校验
- 添加快照创建状态跟踪
阶段三:应用层和API实现 🔧 ✅ 已完成
1. 应用服务层
- 创建
RagPublishAppService - 创建
RagMarketAppService - 实现RAG发布业务逻辑
- 实现RAG安装业务逻辑
- 实现RAG卸载业务逻辑
2. DTO和组装器
- 创建
RagVersionDTO - 创建
UserRagDTO - 创建
RagMarketDTO - 创建
PublishRagRequest - 创建
InstallRagRequest - 创建
ReviewRagVersionRequest - 实现相关的Assembler类
3. 控制器层
- 创建
RagPublishController - 创建
RagMarketController - 实现RAG发布API
- 实现RAG市场API
- 实现RAG安装/卸载API
阶段四:审核机制实现 ✅ 已完成
1. 审核状态管理
- 实现发布状态枚举
- 添加审核状态转换逻辑
- 实现审核时间跟踪
- 添加审核原因记录
2. 管理员审核功能
- 创建管理员审核页面
- 实现审核列表查询
- 实现RAG内容预览
- 实现审核操作(通过/拒绝)
- 实现RAG下架功能
3. 审核流程API
- 创建
AdminRagReviewController - 实现审核列表API
- 实现审核操作API
- 实现审核历史查询API
- 添加审核通知机制
阶段五:前端页面实现 🎨 ✅ 已完成
1. 页面结构重构
- 重构知识库主页面为垂直布局结构(采用工具页面模式)
- 创建
CreatedRagsSection组件 - 创建
InstalledRagsSection组件 - 创建
RecommendedRagsSection组件
2. RAG卡片组件
- 创建
CreatedRagCard组件 - 创建
InstalledRagCard组件 - 创建
MarketRagCard组件 - 实现卡片交互逻辑(下拉菜单模式)
- 添加卡片状态显示
- 实现点击跳转到详情页面
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.
- 10d ago First seen · 276 lines · 0 tokens per session scan A ed5ab35dfd0b
rag-publish-todo-list is a command published in the GitHub repository lucky-aeon/AgentX (839 stars, last pushed 2mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,684 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-08-30.
Other commands, from other repositories
suggest
Suggest the matching Convex component when the user hand-rolls a pattern it already solves (crons, sharded-counter, rate-limiter, storage, search, presence, workflow, RAG, prosemirror-sync). Passive — suggest after the task, never interrupt. Never install without consent.
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.
inference.embed
Embed one or more texts into vectors.
vector.batch_upsert
Upsert multiple vectors in one itemwise batch.
dare-llm-integration
Integração segura e eficiente com LLMs (Gemini, Claude, OpenAI, Ollama) em projetos DARE.