WeReply: Command for Claude Code

.claude/commands/context-prime.md

context-prime is a command for Claude Code from cacr92/WeReply. It costs 0 tokens per session (1,044 once invoked), scanned A, original, MIT.

A command that loads project context, including the project structure, technology stack, modules, and development rules. It is described for a specific feed-formula optimization desktop application.

In plain words
What is it for?
Loading the application overview, source layout, core features, coding rules, database details, and testing target.
Why use it?
It helps an agent quickly understand that project before making changes.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; names the TodoWrite tool; mentions Claude Code.

This is cacr92/WeReply's own configuration. It tells Claude Code how to work on WeReply 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 WeReply configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cacr92/WeReply. 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/cacr92/WeReply/main/.claude/commands/context-prime.md
Clone the repo
git clone --depth 1 https://github.com/cacr92/WeReply

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 context-prime

README.md
[![agentmods](https://agentmods.dev/badge/commands/cacr92/wereply/context-prime.svg)](https://agentmods.dev/commands/cacr92/wereply/context-prime)
Your own site
<a href="https://agentmods.dev/commands/cacr92/wereply/context-prime"><img src="https://agentmods.dev/badge/commands/cacr92/wereply/context-prime.svg" alt="Measured on agentmods" 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 1,044 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.01044
Opus 5 $0.00000 $0.00522
Sonnet 5 $0.00000 $0.00209
Haiku 4.5 $0.00000 $0.00104

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

Security

Grade A, and why

context-prime 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 6d 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/context-prime.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/context-prime - 项目上下文加载

用途

快速加载项目结构和关键信息,建立开发上下文。

加载内容

1. 项目概览

## 项目信息
- 名称: CaCrFeedFormula(饲料配方优化系统)
- 类型: Tauri 桌面应用
- 技术栈: Rust 2021 + React 19 + TypeScript 5.8
- 数据库: SQLite + SQLx
- 优化引擎: HiGHS 1.12

2. 项目结构

cacrfeedformula/
├── src/                    # Rust 后端
│   ├── ai/                # AI 服务
│   ├── database/          # 数据库管理
│   ├── formula/           # 配方优化核心
│   ├── material/          # 原料管理
│   ├── species/           # 品种管理
│   ├── factory/           # 工厂管理
│   ├── premix/            # 预混料设计
│   ├── profit/            # 盈亏测算
│   ├── prediction/        # 营养预测
│   └── production_batch/  # 生产批次
├── frontend/              # React 前端
│   └── src/
│       ├── components/    # 组件
│       └── bindings.ts    # 类型绑定
├── migrations/            # 数据库迁移
└── .claude/              # Claude Code ���置
    ├── rules/            # 开发规范
    ├── skills/           # 技能文件
    ├── commands/         # 命令文件
    └── hooks/            # 钩子配置

3. 核心功能模块

  • 配方优化: 线性规划优化、手工配方、预混料反向计算
  • 数据管理: 原料、品种、工厂、生产批次、库存
  • 分析决策: 盈亏测算、营养预测、敏感性分析
  • AI 助手: 上下文感知的专业配方咨询

4. 关键规范

  • 禁止 console.log(使用 message 组件)
  • 禁止 as any(使用精确类型)
  • 使用 SQLx 参数化查询
  • 使用 specta 类型绑定
  • 80% 测试覆盖率要求

5. 开发工作流

1. 需求分析
2. 任务分解
3. 创建 TodoWrite
4. 执行前说明
5. 标记完成状态
6. 逻辑验证
7. 代码审查

6. 提交前检查

  • cargo clippy 无警告
  • npm run lint 无错误
  • 测试覆盖率 >= 80%
  • 无硬编码密钥
  • 已更新 CHANGELOG.md
  • 使用 LSP 评估影响

快速参考

Rust 命令

cargo clippy              # 代码检查
cargo test               # 运行测试
cargo tarpaulin          # 测试覆盖率
cargo audit              # 安全审计
cargo run                # 运行应用

TypeScript 命令

npm run lint             # ESLint 检查
npm test                 # 运行测试
npm run test:coverage    # 测试覆盖率
npm run dev              # 开发模式
npm run build            # 构建

Tauri 命令

cargo tauri dev          # 开发模式
cargo tauri build        # 构建应用

相关文档

  • .claude/CLAUDE.md - 核心规则
  • .claude/rules/ - 详细规范
  • .claude/INTEGRATION_SUMMARY.md - 配置整合说明
  • CHANGELOG.md - 变更日志

Read the full file on GitHub · 126 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. 6d ago First seen · 126 lines · 0 tokens per session scan A 3535ac1ff13f

Subscribe to this mod's changes

context-prime is a command published in the GitHub repository cacr92/WeReply (6 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,044 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-31.