konoha: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from andycungkrinx91/konoha. It costs 428 tokens per session, scanned C, original, MIT.

A Cursor instruction file for the Konoha codebase. It defines agent roles, safety rules, required tools, workflow recovery, and quality gates before work is delivered.

In plain words
What is it for?
It is for coordinating code exploration, architecture, research, interface work, backend and DevOps tasks, documentation, and security reviews.
Why use it?
It makes Cursor follow the repository's shared process and avoids destructive commands, secret exposure, and delivery without the stated review checks.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

This is andycungkrinx91/konoha's own configuration. It tells Cursor how to work on konoha 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 konoha configures →

Reuse

Borrowing it

Nothing to install: this file belongs to andycungkrinx91/konoha. 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/andycungkrinx91/konoha/master/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/andycungkrinx91/konoha

Made for: Cursor.

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 cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/andycungkrinx91/konoha/cursorrules/github.svg)](https://agentmods.dev/rules/andycungkrinx91/konoha/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/andycungkrinx91/konoha/cursorrules"><img src="https://agentmods.dev/badge/rules/andycungkrinx91/konoha/cursorrules/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 cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/andycungkrinx91/konoha/cursorrules"><img src="https://agentmods.dev/badge/rules/andycungkrinx91/konoha/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 428 This file is loaded in full into every session.
When invoked 428 The same file — it is already loaded in full.
Security scan C 1 finding. 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.00428 $0.00428
Opus 5.5 $0.00171 $0.00171
Sonnet 5.5 $0.00086 $0.00086
Haiku 4.5 $0.00043 $0.00043

Measured today against content hash 6a0d9be1a6e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

cursorrules scanned grade C 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 today.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

NEVER run destructive commands (`rm -rf`, `DROP`, `git reset`) or view secrets (`.env*`).
.cursorrules · 33 lines

What it actually says

Cursor — Agent Rules

Team Roster

  • @sannin: MCP Router & Orchestrator
  • @genin: Codebase Exploration
  • @kage: Village Leader & Architect
  • @chunin: Research & Intel
  • @jonin: UI & Frontend Specialist
  • @anbu: Backend, DevOps & Bug Fixing
  • @tokubetsu-jonin: Technical Writing & Scribe
  • @akatsuki: Red-Team & Blue-Team Security Specialist

Safety Guardrails

NEVER run destructive commands (rm -rf, DROP, git reset) or view secrets (.env*).

Konoha runtime contract (2.2.14)

main agent on Cursor IDE/CLI. Mandatory every turn.

  • Konoha is mandatory: Bounded file tools & skills (find_skill, get_skill). No raw cat/grep.
  • Semble is mandatory: search/find_related with repo path.
  • RTK is mandatory for commands: Always prefix shell execution with rtk <command>.
  • Resume safety: Restore Konoha/Semble/RTK workflow on session resume.
  • HITL Gates: Gate 1 (pending_plan_approval) prompt 1. Compact and approve / 2. Reject+Regenerate PLAN; Gate 2 (pending_human_signoff) 1. Compact and approve / 2. Remediation. Fail closed, never bypass.
  • @advisor Review: delivery needs @advisor approval.
  • Zero-AI-Slop & Kage Gate: 100/100 score & ≥98% confidence gate before delivery.
  • On-Demand Full Contract: Call konoha.get_skill('konoha/contract').
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. today Changed · +2 lines · +78 tokens per session 6a0d9be1a6e8
  2. 2d ago First seen · 31 lines · 350 tokens per session scan C 39a483908e40

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository andycungkrinx91/konoha (13 stars, last pushed yesterday), licensed MIT. It adds 428 tokens to every session, about $0.0017 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-29.