AgentX: Command for Claude Code

.claude/commands/rag-publish-todo-list.md

rag-publish-todo-list is a command for Claude Code from lucky-aeon/AgentX. It costs 0 tokens per session (2,684 once invoked), scanned A, original, Apache-2.0.

A Chinese TODO list for implementing RAG publishing and installation. It covers database tables, domain services, fixed data copies, vector-data separation, application services, and APIs.

In plain words
What is it for?
Use it to plan or verify RAG market publishing, version snapshots, installation and removal, vector searches, data consistency checks, and Java service and controller work.
Why use it?
It gives developers a staged view of the work and records which parts are complete. This reduces the chance of missing supporting pieces such as rollback, validation, or cleanup.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is lucky-aeon/AgentX's own configuration. It tells Claude Code how to work on AgentX itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything AgentX configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/lucky-aeon/AgentX/master/.claude/commands/rag-publish-todo-list.md
Clone the repo
git clone --depth 1 https://github.com/lucky-aeon/AgentX

Made for: Claude Code.

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 rag-publish-todo-list

README.md
[![agentmods](https://agentmods.dev/badge/commands/lucky-aeon/agentx/rag-publish-todo-list/github.svg)](https://agentmods.dev/commands/lucky-aeon/agentx/rag-publish-todo-list)
Your own site
<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.

agentmods 80×15 button for rag-publish-todo-list

Your own site · 80×15
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,684 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.02684
Opus 5 $0.00000 $0.01342
Sonnet 5 $0.00000 $0.00537
Haiku 4.5 $0.00000 $0.00268

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

Security

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.

.claude/commands/rag-publish-todo-list.md · 276 lines

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 组件
  • 实现卡片交互逻辑(下拉菜单模式)
  • 添加卡片状态显示
  • 实现点击跳转到详情页面

Read the full file on GitHub · 276 lines

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. 10d ago First seen · 276 lines · 0 tokens per session scan A ed5ab35dfd0b

Subscribe to this mod's changes

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.