tracepilot-gemini-cli: Command for Claude Code

.gemini/commands/strict-development-rules.md

strict-development-rules is a command for Claude Code, Gemini CLI from priyanshuchawda/tracepilot-gemini-cli. It costs 0 tokens per session (2,023 once invoked), scanned A, a copy of strict-development-rules, Apache-2.0.

A set of rules for changing code in the Gemini CLI project. It defines required testing practices for asynchronous code, user-interface rendering, snapshots, and repeated test cases.

In plain words
What is it for?
Implementing or reviewing Gemini CLI code changes and writing tests that follow the project's required utilities and patterns.
Why use it?
It helps prevent flaky tests, misleading snapshots, and warnings caused by changing interface state incorrectly.

Command for Claude CodeGemini CLI

Written for Gemini CLI and Claude Code: installed under .gemini/, but also a Claude Code command (commands/*.md). Also seen: mentions Gemini CLI.

This is priyanshuchawda/tracepilot-gemini-cli's own configuration. It tells Claude Code and Gemini CLI how to work on tracepilot-gemini-cli 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 tracepilot-gemini-cli configures →

Reuse

Borrowing it

Nothing to install: this file belongs to priyanshuchawda/tracepilot-gemini-cli. 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/priyanshuchawda/tracepilot-gemini-cli/main/.gemini/commands/strict-development-rules.md
Clone the repo
git clone --depth 1 https://github.com/priyanshuchawda/tracepilot-gemini-cli

Made for: Claude Code, Gemini CLI.

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 strict-development-rules

README.md
[![agentmods](https://agentmods.dev/badge/commands/priyanshuchawda/tracepilot-gemini-cli/strict-development-rules/github.svg)](https://agentmods.dev/commands/priyanshuchawda/tracepilot-gemini-cli/strict-development-rules)
Your own site
<a href="https://agentmods.dev/commands/priyanshuchawda/tracepilot-gemini-cli/strict-development-rules"><img src="https://agentmods.dev/badge/commands/priyanshuchawda/tracepilot-gemini-cli/strict-development-rules/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 strict-development-rules

Your own site · 80×15
<a href="https://agentmods.dev/commands/priyanshuchawda/tracepilot-gemini-cli/strict-development-rules"><img src="https://agentmods.dev/badge/commands/priyanshuchawda/tracepilot-gemini-cli/strict-development-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 2,023 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00000 $0.02023
Opus 5.5 $0.00000 $0.00809
Sonnet 5.5 $0.00000 $0.00405
Haiku 4.5 $0.00000 $0.00202

Measured 1mo ago against content hash 373969348168, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

strict-development-rules scanned grade A with 1 finding 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 1mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Mock critical dependencies (`fs`, `os`, `child_process`) ONLY at the top of
Origin

This is a copy

100% identical to strict-development-rules — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.gemini/commands/strict-development-rules.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gemini CLI Strict Development Rules

These rules apply strictly to all code modifications and additions within the Gemini CLI project.

Testing Guidelines

  • Async/Await: Always use waitFor from packages/cli/src/test-utils/async.ts instead of vi.waitFor for all waitFor calls within packages/cli. NEVER use fixed waits (e.g., await delay(100)). Always use waitFor with a predicate to ensure tests are stable and fast. Using the wrong waitFor can result in flaky tests and act warnings.
  • React Testing: Use act to wrap all blocks in tests that change component state. Use render or renderWithProviders from packages/cli/src/test-utils/render.tsx instead of render from ink-testing-library directly. This prevents spurious act warnings. If test cases specify providers directly, consider whether the existing renderWithProviders should be modified.
  • Snapshots: Use toMatchSnapshot to verify that rendering works as expected rather than matching against the raw content of the output. When modifying snapshots, verify the changes are intentional and do not hide underlying bugs.
  • Parameterized Tests: Use parameterized tests where it reduces duplicated lines. Give the parameters explicit types to ensure the tests are type-safe.
  • Mocks Management:
    • Mock critical dependencies (fs, os, child_process) ONLY at the top of the file. Ideally, avoid mocking these dependencies altogether.
    • Reuse existing mocks and fakes rather than creating new ones.
    • Avoid mocking the file system whenever possible. If using the real file system is too difficult, consider writing an integration test instead.
    • Always call vi.restoreAllMocks() in afterEach to prevent test pollution.
    • Use vi.useFakeTimers() for tests involving time-based logic to avoid flakiness.
  • Typing in Tests: Avoid using any in tests; prefer proper types or unknown with narrowing.

React Guidelines (packages/cli)

Read the full file on GitHub · 159 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. 1mo ago First seen · 159 lines · 0 tokens per session scan A 373969348168

Subscribe to this mod's changes

strict-development-rules is a command published in the GitHub repository priyanshuchawda/tracepilot-gemini-cli (1 stars, last pushed 4mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,023 tokens. A static security scan graded it A with 1 finding (runs shell commands). It is 100% identical to strict-development-rules, differing in 0 lines, and is treated as a copy.