cursor-best-practices

cursor-best-practices is a skill for Claude Code, Codex from HKTITAN/cursor-best-practices. It costs 106 tokens per session (4,291 once invoked), scanned A, original, MIT.

A guide and set of templates for configuring Cursor, an AI coding editor, in a project. It covers project rules, reusable commands, helper agents, ignored files, and safe ways to use its Agent features.

In plain words
What is it for?
Use it to create a .cursor folder, write rules or AGENTS.md instructions, configure ignored files, define commands or skills, and set up subagents and Cursor workflows.
Why use it?
It helps you avoid guessing where Cursor settings belong or how they interact. It also gives structure for making the editor follow project instructions consistently, including in large codebases and test-driven development (writing tests before code).

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions subagents; mentions AGENTS.md.

Good fit Use it to create a .cursor folder, write rules or AGENTS.md instructions, configure ignored files, define commands or skills, and set up subagents and Cursor workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hktitan/cursor-best-practices/cursor-best-practices
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.

Any agent
npx skills add HKTITAN/cursor-best-practices --skill cursor-best-practices
Clone the repo
git clone --depth 1 https://github.com/HKTITAN/cursor-best-practices

Made for: Claude Code, Codex.

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 cursor-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/hktitan/cursor-best-practices/cursor-best-practices/github.svg)](https://agentmods.dev/skills/hktitan/cursor-best-practices/cursor-best-practices)
Your own site
<a href="https://agentmods.dev/skills/hktitan/cursor-best-practices/cursor-best-practices"><img src="https://agentmods.dev/badge/skills/hktitan/cursor-best-practices/cursor-best-practices/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 cursor-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/hktitan/cursor-best-practices/cursor-best-practices"><img src="https://agentmods.dev/badge/skills/hktitan/cursor-best-practices/cursor-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,291 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.00106 $0.04291
Opus 5 $0.00053 $0.02145
Sonnet 5 $0.00021 $0.00858
Haiku 4.5 $0.00011 $0.00429

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

Security

Grade A, and why

cursor-best-practices 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 9d 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.

cursor-best-practices/SKILL.md · 235 lines

How it starts

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

cursor-best-practices

A structured repository for creating and maintaining Cursor Best Practices optimized for agents and LLMs. This skill provides references/ (on-demand docs) and assets/templates/ (rule, command, and subagent templates) covering rules, commands, skills, subagents, ignore files, Agent security, workflows, and community resources.


When to use

Apply this skill when users:

  • Set up or initialize Cursor, create the .cursor folder, or ask "setup my .cursor folder"
  • Write or edit .cursor/rules, AGENTS.md, or rule frontmatter
  • Create or use slash commands, skills, or subagents
  • Configure .cursorignore or .cursorindexingignore
  • Work with Agent modes (Agent, Ask, Plan, Debug), semantic search, or @mentions
  • Ask about TDD, git-style commands, large codebases, or Cursor workflows
  • Discover rules or MCPs (cursor.directory) or skill recommendations (skills.sh)
  • Ask about plugins, hooks, Cloud Agent, CLI, worktrees, or deeplinks

Rules

Locations: Project .cursor/rules/ (.md/.mdc), user Cursor Settings → Rules, Team dashboard. Precedence: Team → Project → User.

Types and when to use:

Type When to use
Always Apply Must affect every request (e.g. "No any in TS", "Run tests before done"). Use sparingly.
Apply Intelligently General guidance when relevant (e.g. "Prefer functional components").
Apply to Specific Files Use globs (e.g. **/*.test.ts, **/api/**). Rule loads only when those files are in context.
Apply Manually User invokes with @rule-name when needed (e.g. release process, legacy quirks).

Frontmatter: description (keyword-rich, helps relevance), globs (file-specific), alwaysApply (use rarely). Keep each rule <500 lines; split by concern, link to references/. AGENTS.md = project-root plain markdown alternative; no frontmatter.

Best practices: Composable rules, concrete examples. Reference—don't copy—long runbooks. Start simple; add rules when the agent keeps making the same mistake. Migrate legacy .cursorrules to Project Rules or AGENTS.md.

Read the full file on GitHub · 235 lines

Files

What ships with it

49 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 235 lines · 106 tokens per session scan A 63a69c633066

Subscribe to this mod's changes

cursor-best-practices is a skill published in the GitHub repository HKTITAN/cursor-best-practices (5 stars, last pushed 6mo ago), licensed MIT. It adds 106 tokens to every session and 4,291 once invoked, about $0.0005 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

ralph

Persistent completion loop — execute the approved plan step by step until done.

Jkudjo/oh-my-cursor · 16 tokens

noteplan

Read, search, create, and edit NotePlan notes and daily logs directly via the filesystem. Use this skill whenever the user references NotePlan, daily notes, weekly notes, project notes, or wants to check/update their planning. Triggers: 'noteplan', 'daily note', 'today's note', 'weekly note', 'check my notes', 'add to…

jaansokk/cursor_tools · 105 tokens

lno-task-prioritization

Classify tasks as Leverage, Neutral, or Overhead using Shreyas Doshi's LNO framework to maximize impact and reduce stress. Use when the user is planning their week, feeling overwhelmed, prioritizing a to-do list, doing sprint planning, or asking how to spend their time more effectively.

luisabwk/kraken · 70 tokens

dynamic-context

Use when managing context window to optimize token usage and prevent context bloat.

luisabwk/kraken · 14 tokens

waku-computer-use

Control local Mac apps through Waku Computer Use for tasks that require reading or operating app UI. Prefer purpose-built connectors, APIs, or CLIs when available.

egoist/waku · 37 tokens

cursor-delegate

Delegate bounded light-to-medium implementation, investigation, documentation, configuration, testing, and tooling work to Cursor Bridge after the primary agent owns direction and risk boundaries. Also use when the user explicitly asks to create, keep, continue, inspect, or close the same Cursor execution session…

Vanyangyang/cursor-bridge · 163 tokens