How_to_implment_PL_in_Antlr4: Command for Claude Code

.claude/commands/gs.md

gs is a command for Claude Code from whtoo/How_to_implment_PL_in_Antlr4. It costs 13 tokens per session (1,224 once invoked), scanned A, original, BSD-3-Clause.

A Git status command that groups staged, unstaged, and untracked files by project area and file type. Git is a tool for tracking changes to source code and other files.

In plain words
What is it for?
It shows brief or detailed change lists and can include the contents of the changes.
Why use it?
It turns a long raw status listing into a quick summary of what has changed and whether each change is staged for a commit.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/whtoo/How_to_implment_PL_in_Antlr4/main/.claude/commands/gs.md
Clone the repo
git clone --depth 1 https://github.com/whtoo/How_to_implment_PL_in_Antlr4

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 gs

README.md
[![agentmods](https://agentmods.dev/badge/commands/whtoo/how_to_implment_pl_in_antlr4/gs.svg)](https://agentmods.dev/commands/whtoo/how_to_implment_pl_in_antlr4/gs)
Your own site
<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>
Per session 13 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,224 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.00013 $0.01224
Opus 5 $0.00006 $0.00612
Sonnet 5 $0.00003 $0.00245
Haiku 4.5 $0.00001 $0.00122

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

Security

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.

.claude/commands/gs.md · 176 lines

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)

Read the full file on GitHub · 176 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. 3d ago First seen · 176 lines · 13 tokens per session scan A 01ea5f9c6d9e

Subscribe to this mod's changes

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.