stat

A project-status command for an embedded-software project. It reads saved project notes and shows the current state, progress, next action, or a fuller project overview.

In plain words
What is it for?
Use it to check the current development stage, see the next task, review recent project information, or audit protected areas of the project.
Why use it?
It avoids opening several project files just to find out what is happening. You can choose a brief status or inspect steps, decisions, problems, and context in more detail.

Command

Install

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.

agentmods
npx agentmods add commands/jzl-maker/ea-skill/stat
Clone the repo
git clone --depth 1 https://github.com/jzl-maker/EA-SKILL
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 565 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00565
Opus 5 $0.00000 $0.00282
Sonnet 5 $0.00000 $0.00113
Haiku 4.5 $0.00000 $0.00056

Measured 2d ago against content hash 0bdf994f043f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

stat 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 2d 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.

commands/stat.md · 68 lines

What it actually says

命令: /ea stat (项目状态)

功能

查看项目状态:默认极简(state.md),-v 详细(步骤全表、最近会话、决策、问题、保护区审计)。

触发

/ea stat              # 默认:读 state.md,输出 ≤10 行
/ea stat -v           # 详细:project-spec/最近会话/decisions/problem-log/context
/ea stat steps        # 只显示开发步骤状态表
/ea stat next         # 只显示下一步动作

加载策略

模式 加载文件 用途
默认 state.md + project.json 快速看现在做啥
-v + project-spec.md + context.md + decisions.md + problem-log.md 全景
steps project-spec.md 的步骤表区段 看进度
next state.md 的「下一步动作」区段 极简

执行流程

  1. 【状态目录】 get_state_dir()<STATE_DIR>
  2. 按模式加载对应文件
  3. 输出对应格式

输出格式

默认模式

📍 <项目名> — S<N> <状态>  (embedded)
更新: YYYY-MM-DD   会话: sess-...

下一步:
1. <动作1>

详情: /ea stat -v

-v 模式

📍 <项目名> (embedded) — S<N> <状态>
芯片: <chip> | 工具链: <uv4+openocd+jlink>

━━ 步骤状态 ━━
| S1 | ✅ | 板级驱动 |
| S2 | 🔄 | <当前> |

━━ 工程上下文 ━━
<芯片/外设/模块地图/保护区摘要>

━━ 待解决问题 ━━
<P0/P1 列表>

下一步:
- ...

设计原则

  • ✅ 默认极简 → 用户主动 -v 才详细(渐进式查询)
  • ✅ 嵌入式:-v 并入 context 摘要与保护区提醒

相关文件

  • commands/rec.md — 恢复,加载同样的 state.md
  • templates/state.md — state 模板
  • templates/context.md — 工程上下文模板
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. 2d ago First seen · 68 lines · 0 tokens per session scan A 0bdf994f043f

Subscribe to this mod's changes

stat is a command published in the GitHub repository jzl-maker/EA-SKILL (6 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 565 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.