shingan: Command for Claude Code

.claude/commands/add-test-fixture-and-go-test-for-langgraph-js-rule.md

add-test-fixture-and-go-test-for-langgraph-js-rule is a command for Claude Code from hatyibei/shingan. It costs 33 tokens per session (304 once invoked), scanned A, original, MIT.

A command workflow for adding a LangGraph.js test example and corresponding Go test assertions. LangGraph.js is the JavaScript target whose code patterns the rule checks.

In plain words
What is it for?
Use it to add vulnerability or safe-code fixtures and verify rule behavior with Go tests.
Why use it?
It gives a consistent path for testing whether a detection rule correctly flags unsafe code and ignores safe code.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Reuse

Borrowing it

Nothing to install: this file belongs to hatyibei/shingan. 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/hatyibei/shingan/main/.claude/commands/add-test-fixture-and-go-test-for-langgraph-js-rule.md
Clone the repo
git clone --depth 1 https://github.com/hatyibei/shingan

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 add-test-fixture-and-go-test-for-langgraph-js-rule

README.md
[![agentmods](https://agentmods.dev/badge/commands/hatyibei/shingan/add-test-fixture-and-go-test-for-langgraph-js-rule/github.svg)](https://agentmods.dev/commands/hatyibei/shingan/add-test-fixture-and-go-test-for-langgraph-js-rule)
Your own site
<a href="https://agentmods.dev/commands/hatyibei/shingan/add-test-fixture-and-go-test-for-langgraph-js-rule"><img src="https://agentmods.dev/badge/commands/hatyibei/shingan/add-test-fixture-and-go-test-for-langgraph-js-rule/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-test-fixture-and-go-test-for-langgraph-js-rule

Your own site · 80×15
<a href="https://agentmods.dev/commands/hatyibei/shingan/add-test-fixture-and-go-test-for-langgraph-js-rule"><img src="https://agentmods.dev/badge/commands/hatyibei/shingan/add-test-fixture-and-go-test-for-langgraph-js-rule.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 304 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.00033 $0.00304
Opus 5 $0.00016 $0.00152
Sonnet 5 $0.00007 $0.00061
Haiku 4.5 $0.00003 $0.00030

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

Security

Grade A, and why

add-test-fixture-and-go-test-for-langgraph-js-rule 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 11d 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/add-test-fixture-and-go-test-for-langgraph-js-rule.md · 36 lines

What it actually says

/add-test-fixture-and-go-test-for-langgraph-js-rule

Use this workflow when working on add-test-fixture-and-go-test-for-langgraph-js-rule in shingan.

Goal

Adds a new test fixture (typically a *_vuln.ts or *_safe.ts file) for langgraph-js, and updates Go tests to assert correct rule firing or non-firing.

Common Files

  • testdata/langgraphjs/*.ts
  • infrastructure/parser/langgraphjs_test.go

Suggested Sequence

  1. Understand the current state and failure mode before editing.
  2. Make the smallest coherent change that satisfies the workflow goal.
  3. Run the most relevant verification for touched files.
  4. Summarize what changed and what still needs review.

Typical Commit Signals

  • Create or update a test fixture in testdata/langgraphjs/ (e.g., prompt_injection_vuln.ts).
  • Update infrastructure/parser/langgraphjs_test.go to add or broaden test assertions for the fixture.
  • Run Go tests to verify correct rule behavior.

Notes

  • Treat this as a scaffold, not a hard-coded script.
  • Update the command if the workflow evolves materially.
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. 11d ago First seen · 36 lines · 33 tokens per session scan A a173b7bd751a

Subscribe to this mod's changes

add-test-fixture-and-go-test-for-langgraph-js-rule is a command published in the GitHub repository hatyibei/shingan (2 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 304 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.