# Cursor Rules

> Project, user, and team rules that the Cursor SDK and Agent load — `.cursor/rules/*.mdc`, `AGENTS.md`, and the legacy `.cursorrules`. Use when authoring rules that the SDK will pick up via `local.settingSources`, or when writing rule frontmatter with the right type (always / auto-attached / agent-requested / manual).

- **Type:** Skill
- **Install:** `agentstack add skill-hktitan-cursor-sdk-cursor-rules`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [HKTITAN](https://agentstack.voostack.com/s/hktitan)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [HKTITAN](https://github.com/HKTITAN)
- **Source:** https://github.com/HKTITAN/cursor-sdk/tree/main/skills/cursor-rules
- **Website:** https://skills.sh/hktitan/cursor-sdk

## Install

```sh
agentstack add skill-hktitan-cursor-sdk-cursor-rules
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# cursor-rules

Rules are how you bake context into a project so every Agent run starts with the right instructions. The SDK reads them through `local.settingSources` — see [[../cursor-sdk/references/local-options]].

## When to use

- Adding repo-level coding conventions an SDK agent should follow
- Writing per-folder `AGENTS.md` for nested context
- Migrating from `.cursorrules` to `.cursor/rules/*.mdc`
- Choosing between always-on, auto-attached, agent-requested, and manual rules

## File locations

- [[references/file-locations]] — `.cursor/rules/`, `AGENTS.md`, legacy `.cursorrules`
- [[references/scope-and-precedence]] — team / project / user, hierarchy

## Authoring `.mdc` rules

- [[references/mdc-frontmatter]] — `description`, `globs`, `alwaysApply`
- [[references/rule-types]] — Always / Auto-attached / Agent-requested / Manual
- [[references/glob-patterns]] — `**/*.tsx`, comma-separated lists

## `AGENTS.md`

- [[references/agents-md]] — markdown-only, nested per directory
- [[references/agents-md-vs-rules]] — when to pick which

## SDK integration

- [[references/sdk-integration]] — `settingSources` and what loads where
- [[references/limitations]] — Tab and Inline Edit don't read rules

## Cross-links

- SDK setting sources → [[../cursor-sdk/references/local-options]]
- Hooks (sibling .cursor/ feature) → [[../cursor-hooks/SKILL]]
- Skills (sibling .cursor/ feature) → [[../cursor-skills-system/SKILL]]

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [HKTITAN](https://github.com/HKTITAN)
- **Source:** [HKTITAN/cursor-sdk](https://github.com/HKTITAN/cursor-sdk)
- **License:** MIT
- **Homepage:** https://skills.sh/hktitan/cursor-sdk

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-hktitan-cursor-sdk-cursor-rules
- Seller: https://agentstack.voostack.com/s/hktitan
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
