hktitan/cursor-sdk · Archived

cursor-rules

Project, user, and team rules that the Cursor SDK and Agent load — `.cursor/rules/*.mdc`, `AGENTS.md`, and the legacy `.cursorrules`.

First seen May 3, 2026

Installation

$ npx skills add hktitan/cursor-sdk --skill cursor-rules

Summary

  • 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).

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from hktitan/cursor-sdk · top by installs.

npx skills add hktitan/cursor-sdk

Browse all from hktitan/cursor-sdk

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents cursor
More metadata
internal
source
https://cursor.com/docs/context/rules

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,900 B
  • docs SUMMARY.md 340 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 4 installs

SKILL.md

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]]