agent-instructions

agent-instructions is a cursor rule for Cursor from wanghao9610/STAR. It costs 2,075 tokens per session, scanned A, original, MIT.

Rules that guide an AI coding agent’s behavior, such as thinking through assumptions, choosing simple solutions, and making small targeted changes.

In plain words
What is it for?
Use them to set expectations for how an agent plans work, handles uncertainty, edits files, and keeps changes focused.
Why use it?
They reduce avoidable coding mistakes and discourage unrequested refactoring or speculative features.

Cursor rule for Cursor

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

Good fit Use them to set expectations for how an agent plans work, handles uncertainty, edits files, and keeps changes focused.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/wanghao9610/star/agent-instructions
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.

Clone the repo
git clone --depth 1 https://github.com/wanghao9610/STAR

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 agent-instructions

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/wanghao9610/star/agent-instructions"><img src="https://agentmods.dev/badge/rules/wanghao9610/star/agent-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,075 This file is loaded in full into every session.
When invoked 2,075 The same file — it is already loaded in full.
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.02075 $0.02075
Opus 5.5 $0.00830 $0.00830
Sonnet 5.5 $0.00415 $0.00415
Haiku 4.5 $0.00208 $0.00208

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

Security

Grade A, and why

agent-instructions 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 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.

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.

.cursor/rules/agent-instructions.mdc · 110 lines

How it starts

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

Project constraints for completing the user's task with proportionate care.

1. Think Before Coding

Resolve routine details. Surface consequential uncertainty.

  • Use project conventions for routine, reversible details and continue; state assumptions that affect the result.
  • Ask when the answer would change the research objective, acceptance criteria, key inputs, cost, or authority. While waiting, continue independent work already authorized.
  • If a simpler approach exists, say so. Push back when warranted.

2. Simplicity First

Minimum code that solves the problem. Nothing speculative.

  • Nothing beyond what was asked: no extra features, no abstractions for single-use code, no "flexibility" or configurability nobody requested, no error handling for impossible scenarios.
  • If you write 200 lines and it could be 50, rewrite it.

3. Surgical Changes

Touch only what you must. Clean up only your own mess.

  • Don't "improve" adjacent code, comments, or formatting; don't refactor what isn't broken.
  • Match existing style, even if you'd do it differently.
  • Remove imports, variables, and functions that YOUR changes left unused.
  • Pre-existing dead code: mention it, don't delete it unless asked.

The test: Every changed line should trace directly to the user's request.

4. Goal-Driven Execution

Define completion and carry the authorized task through verification.

  • Identify the requested outcome and the evidence that establishes it. Use a regression test for a behavioral bug when practical; a small documentation or formatting change may need only a direct inspection.
  • For substantial multi-step work, state the actions and completion check. Existing explicit authorization remains valid for its stated scope; do not ask for the same approval again. A request to inspect, explain, or review without changes ends with that deliverable and never starts a writing successor.

5. Research Workflow

This project uses the STAR research workflow. Its records are files, not chat history.

Read the full file on GitHub · 110 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. today Changed · +2 tokens per session 2ef9b00aa72e
  2. 6d ago Changed · +1 lines 0a2426b1e425
  3. 1mo ago Changed · -2 tokens per session fa8e10fb598f
  4. 2mo ago Changed · +24 tokens per session 41fef3c22f3f
  5. 2mo ago Changed · +34 tokens per session e9f9e72446f2
  6. 2mo ago Changed · -64 tokens per session a7ff78b3f3b3
  7. 2mo ago Changed · +1 lines · +321 tokens per session 5db72526a63b
  8. 3mo ago First seen · 108 lines · 1,760 tokens per session scan A f55847fffaa2

Subscribe to this mod's changes

agent-instructions is a cursor rule published in the GitHub repository wanghao9610/STAR (54 stars, last pushed yesterday), licensed MIT. It adds 2,075 tokens to every session, about $0.0083 per session on Opus 5.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-30.

Related

agent-instructions compared with cursor rules from other repositories

agent-instructions next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-instructionswanghao9610/STARCursor rule54yesterdayMITA2,075Cursor
token-efficiencyrohitg00/pro-workflowCursor rule3.0k2mo agononeB353Cursor
repository-layouthlalljie/agent-workflow-presetsCursor rule21mo agoMITA230Cursor
ponytailDietrichGebert/ponytailCursor rule202k9d agoMITA604Cursor
angular-20angular/angularCursor rule102ktodayMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Cursor