Borrowing it
Nothing to install: this file belongs to whtoo/How_to_implment_PL_in_Antlr4. 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/whtoo/How_to_implment_PL_in_Antlr4/main/.claude/commands/gs.mdgit clone --depth 1 https://github.com/whtoo/How_to_implment_PL_in_Antlr4Wrote 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/whtoo/how_to_implment_pl_in_antlr4/gs)<a href="https://agentmods.dev/commands/whtoo/how_to_implment_pl_in_antlr4/gs"><img src="https://agentmods.dev/badge/commands/whtoo/how_to_implment_pl_in_antlr4/gs.svg" alt="Measured on agentmods" 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.00013 | $0.01224 |
| Opus 5 | $0.00006 | $0.00612 |
| Sonnet 5 | $0.00003 | $0.00245 |
| Haiku 4.5 | $0.00001 | $0.00122 |
Grade A, and why
gs 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 3d 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 — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Git Status 快速命令
命令用途
快速查看 git 状态,按EP和类型分类显示修改文件。
使用方式
/gs [详细程度]
参数说明
详细程度
- 无参数 /
short- 显示简要分类 full/detail- 显示完整状态diff- 显示变更内容
执行流程
1. 获取git状态
git status --short
2. 分类整理
按以下规则分类:
- 已暂存: 绿色 M 标记
- 未暂存: 红色 M 标记
- 未跟踪: ?? 标记
- 按EP和文件类型分组
3. 格式化输出
📊 Git 状态概览
✅ 已暂存 (Staged) - 3 files
EP18:
✓ ep18/src/main/java/.../CymbolStackVM.java
✓ ep18/src/test/.../VMTest.java
文档:
✓ README.md
🔄 未暂存 (Modified) - 2 files
EP21:
✗ ep21/src/main/java/.../SSAGraph.java
✗ ep21/src/test/.../SSATest.java
❓ 未跟踪 (Untracked) - 1 file
新建:
? docs/NEW_EP.md
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
总计: 6 files (3 staged, 2 modified, 1 untracked)
示例
示例1: 简要状态
/gs
执行结果:
📊 Git 状态概览
🔄 未暂存 (Modified) - 2 files
EP21:
✗ ep21/src/main/java/.../SSAGraph.java
✗ ep21/src/test/.../SSATest.java
总计: 2 files (0 staged, 2 modified, 0 untracked)
示例2: 完整状态
/gs full
执行结果:
📊 Git 状态概览
✅ 已暂存 (Staged) - 3 files
EP18:
✓ ep18/src/main/java/.../CymbolStackVM.java (12 lines changed)
✓ ep18/src/test/.../VMTest.java (5 lines changed)
文档:
✓ README.md (3 lines changed)
🔄 未暂存 (Modified) - 2 files
EP21:
✗ ep21/src/main/java/.../SSAGraph.java (24 lines changed)
✗ ep21/src/test/.../SSATest.java (8 lines changed)
❓ 未跟踪 (Untracked) - 1 file
新建:
? docs/NEW_EP.md
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
总计: 6 files (3 staged, 2 modified, 1 untracked)
当前分支: feature/ssa-optimization
上游分支: origin/feature/ssa-optimization
最新提交: feat(ep21): implement SSA transformation
示例3: 显示变更内容
/gs diff
执行结果:
📊 变更内容
🔄 ep21/src/main/java/.../SSAGraph.java
@@ -45,7 +45,9 @@
public void buildSSA() {
this.blocks = cfg.getBasicBlocks();
- computeDominanceFrontier();
+ // 先计算支配边界
+ computeDominanceFrontier();
+ insertPhiFunctions();
}
状态符号说明
| 符号 | 含义 |
|---|---|
| ✅ / ✓ | 已暂存 (Staged) |
| 🔄 / ✗ | 未暂存 (Modified) |
| ❓ / ? | 未跟踪 (Untracked) |
| 🗑️ / D | 已删除 (Deleted) |
| ➕ / A | 新增 (Added) |
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.
- 3d ago First seen · 176 lines · 13 tokens per session scan A 01ea5f9c6d9e
gs is a command published in the GitHub repository whtoo/How_to_implment_PL_in_Antlr4 (34 stars, last pushed 3mo ago), licensed BSD-3-Clause. It adds 13 tokens to every session and 1,224 once invoked, about $0.0001 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-09-04.
Other commands, from other repositories
commit
A command that examines staged Git changes and proposes a commit message using the Conventional Commits format, such as feat, fix, or docs. Git is a tool for tracking changes to code.
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
release-notes
Generate consistent, well-structured release notes from git history. Triggered on release tags following semver patterns (v..) to produce categorized changelog with breaking changes, features, fixes, and contributor attribution.
doctor
Diagnosticar y reparar problemas del framework Don Cheli, git y entorno. Usa cuando el usuario dice "doctor", "problemas del framework", "don cheli no funciona", "repair Don Cheli", "debug setup", "setup broken", "framework broken", "reparar entorno". Detecta y repara issues de configuración, git y dependencias…
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
handoff
Export a Waybill Bundle by default, or import one when requested.