repogrammar-cli

A set of instructions for changes to the RepoGrammar command-line interface, which is a text-based way to run RepoGrammar commands.

In plain words
What is it for?
Use it when editing the CLI, its README examples, its MCP mapping, or command names and options.
Why use it?
It keeps CLI commands, options, documentation, tests, and the MCP-to-CLI mapping aligned when the interface changes.

Skill for Claude CodeCodex

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 skills/sioyooo/repogrammar/repogrammar-cli
Any agent
npx skills add SioYooo/RepoGrammar --skill repogrammar-cli
Clone the repo
git clone --depth 1 https://github.com/SioYooo/RepoGrammar

Made for: Claude Code, Codex.

Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 383 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.00036 $0.00383
Opus 5 $0.00018 $0.00192
Sonnet 5 $0.00007 $0.00077
Haiku 4.5 $0.00004 $0.00038

Measured yesterday against content hash fd51c4d8b9f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

repogrammar-cli 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 yesterday.

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.

.agents/skills/repogrammar-cli/SKILL.md · 58 lines

What it actually says

Purpose

Keep the CLI aligned with RepoGrammar's implementation-pattern family identity.

Trigger conditions

Use when editing src/rust/interfaces/cli/, README command examples, MCP-to-CLI mapping, or any CLI command name or option.

Required reading

  • docs/specifications/cli.md
  • docs/specifications/mcp-api.md
  • docs/decisions/ADR-0006-pattern-family-cli.md

Preconditions

  • Confirm the command is pattern-family-first.
  • Confirm it does not add callers, callees, impact, affected, node, or explore as a top-level v0.1 command.

Step-by-step procedure

  1. Map new query behavior to pattern-family concepts.
  2. Keep graph navigation under a future secondary namespace if needed.
  3. Keep CLI commands human-facing and multi-command while mapping MCP to the default repogrammar_context operation model.
  4. Add option parsing tests.
  5. Add not-implemented behavior when storage or indexing is not ready.
  6. Update README, CLI specification, MCP mapping, and CHANGELOG as needed.

Required verification

Run the full Rust quality gates and repo-guard check.

Documentation updates

Update docs/specifications/cli.md and every affected command example.

Commit requirements

Commit CLI code, tests, and docs together.

Completion report

Report changed commands, changed options, and whether behavior is implemented or only a safe command contract.

Failure and rollback handling

If a command would shift the product toward generic call-graph analysis, stop and require an ADR before proceeding.

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. yesterday First seen · 58 lines · 36 tokens per session scan A fd51c4d8b9f4

Subscribe to this mod's changes

repogrammar-cli is a skill published in the GitHub repository SioYooo/RepoGrammar (0 stars, last pushed 19d ago), licensed MIT. It adds 36 tokens to every session and 383 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

od-contribute

One-click contribution flow for OpenDesign (nexu-io/open-design) — even for non-coders. Pick one of four cards (ship a Skill or Design System you made with OD; translate docs; fix a typo / write a blog; report a bug), the agent validates and opens a PR (or issue) for you. Trigger words contribute to open design, ship…

nexu-io/open-design · 104 tokens

clinical-case-report

Structured medical case presentation for clinical rounds, conferences, and documentation. Generates SOAP-format or narrative case reports with physiologically accurate vitals, labs, and evidence-based plans. Use when the brief mentions "case report", "case presentation", "SOAP note", "clinical case", "ward rounds"…

nexu-io/open-design · 73 tokens

critique

Run a 5-dimension expert design review on any HTML artifact in the project — Philosophy / Visual hierarchy / Detail / Functionality / Innovation, each scored 0–10. Outputs a single self-contained HTML report with a radar chart, evidence-backed scores, and three lists: Keep / Fix / Quick-wins. Use when the brief asks…

nexu-io/open-design · 107 tokens

github-dashboard

GitHub repository analytics dashboard — stars, forks, contributors, issues, pull requests, recent activity, and top contributors. Use when the brief asks for a GitHub repo dashboard, open-source growth report, repository health page, or GitHub analytics view.

nexu-io/open-design · 55 tokens

dating-web

A consumer-feeling dating / matchmaking dashboard — left rail navigation, ticker bar of community signals, headline KPIs, a 30-day mutual-matches bar chart, and a match-rate trend block. Editorial typography, restrained accent. Use when the brief asks for a "dating site", "matchmaking", "community dashboard", "social…

nexu-io/open-design · 87 tokens

dcf-valuation

Discounted cash flow valuation and intrinsic value analysis for public companies. Use when the brief asks for DCF, fair value, intrinsic value, price target, undervalued or overvalued analysis, or "what is this company worth?".

nexu-io/open-design · 55 tokens