Agent skill

Cursor Rules

by spiriMirror in spiriMirror/libuipc

How to add or edit Cursor rules in our project. An agent skill from spiriMirror/libuipc.

Apache-2.0Auto-check passedAgent Workflows

Install Cursor Rules

skills CLI
$ npx skills add spiriMirror/libuipc --skill cursor-rules -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install spiriMirror/libuipc cursor-rules --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/spiriMirror/libuipc.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/cursor-rules .claude/skills/cursor-rules && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cursor-rules
GitHub stars
335
Token cost
~265 tokens
SKILL.md length
73 words
Files
1
Skills in repo
16
Repo updated
First seen
Licence
Apache-2.0

At a glance

How to add or edit Cursor rules in our project. An agent skill from spiriMirror/libuipc.

  • Works in 5 steps: Always place rule files in… → Follow the naming convention → Directory structure → …
  • Tasks that involve Agent instruction files
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cursor Rules is an agent skill from spiriMirror/libuipc. How to add or edit Cursor rules in our project

Its SKILL.md is about 270 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Agent instruction files. The repository describes itself as: A Modern Python and C++20 Library of Unified Incremental Potential Contact. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Agent instruction files

Example prompts

  • “/cursor-rules”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Always place rule files in PROJECT_ROOT/.cursor/rules/
  2. Follow the naming convention
  3. Directory structure
  4. Never place rule files
  5. Cursor rules have the following structure

What it can do on your machine

Read from SKILL.md and the folder at commit 9c748a7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cursor Rules loads about 265 tokens when it runs. Until then it costs about 15 tokens; SKILL.md has 73 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~15
When it runs · the whole SKILL.md, loaded when a task matches
~265

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from spiriMirror/libuipc at commit 9c748a7, republished under its Apache-2.0 licence (© spiriMirror). 73 words, ~265 tokens.

Download SKILL.mdSave it as .claude/skills/cursor-rules/SKILL.md (or your agent's skills folder).
name
cursor-rules
description
How to add or edit Cursor rules in our project

Cursor Rules Location

How to add new cursor rules to the project

  1. Always place rule files in PROJECT_ROOT/.cursor/rules/:

    .cursor/rules/
    ├── your-rule-name.mdc
    ├── another-rule.mdc
    └── ...
  2. Follow the naming convention:

    • Use kebab-case for filenames
    • Always use .mdc extension
    • Make names descriptive of the rule's purpose
  3. Directory structure:

    PROJECT_ROOT/
    ├── .cursor/
    │   └── rules/
    │       ├── your-rule-name.mdc
    │       └── ...
    └── ...
  4. Never place rule files:

    • In the project root
    • In subdirectories outside .cursor/rules
    • In any other location
  5. Cursor rules have the following structure:

---
description: Short description of the rule's purpose
globs: optional/path/pattern/**/*
alwaysApply: false
---
# Rule Title

Main content explaining the rule with markdown formatting.

1. Step-by-step instructions
2. Code examples
3. Guidelines

© spiriMirror, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .cursor/skills/cursor-rules of spiriMirror/libuipc.

Open the folder on GitHubat commit 9c748a7

Compare with similar skills

Cursor Rules next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cursor Rules compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cursor Rules this skillspiriMirror/libuipc335—~265Automated safety check: PassApache-2.0
Using Agent Skillsaddyosmani/agent-skills103k4 repos~2.4kAutomated safety check: PassMIT
Claude ReflectBayramAnnakov/claude-reflect1.7k2 repos~627Automated safety check: PassMIT
Writing For Agentsbestofjs/bestofjs3.1k19 repos~2.7kAutomated safety check: PassMIT
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Task Observerrebelytics/one-skill-to-rule-them-all3.2k1 repos~12kAutomated safety check: PassCC-BY-4.0

Similar skills

  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    103k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Claude Reflect

    BayramAnnakov/claude-reflect

    Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md.

    1.7k GitHub starsUsed in 2 repos~627 tokens
    Agent WorkflowsAuto-check passed
  • Writing For Agents

    bestofjs/bestofjs

    Writing documents for agents. An agent skill from bestofjs/bestofjs.

    3.1k GitHub starsUsed in 19 repos~2.7k tokens
    Agent WorkflowsAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed
  • Task Observer

    rebelytics/one-skill-to-rule-them-all

    Monitors task execution for skill improvement opportunities.

    3.2k GitHub starsUsed in 1 repo~12k tokens
    Agent WorkflowsAuto-check passed
  • SkillOpt Sleep Cycle

    microsoft/SkillOpt

    Official

    Runs an on-demand or nightly sleep cycle that reviews past Claude Code sessions and proposes validated updates to CLAUDE.md and skills.

    18k GitHub stars~2.3k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from spiriMirror/libuipc

All 16 skills in this repo
  • GPU Optimization

    spiriMirror/libuipc

    GPU optimization workflow using uipc.profile, uipc.profile.nsight, and Nsight Compute CLI.

    335 GitHub stars~3.6k tokensUpdated 5 days ago
    Auto-check passed
  • Review PR

    spiriMirror/libuipc

    Review a libuipc pull request end-to-end: checkout the PR, summarize changes, list files for the human reviewer, and perform a domain-aware AI review covering physics correctness, backend…

    335 GitHub stars~1.7k tokensUpdated 5 days ago
    Auto-check passed
  • Xmake Workflow

    spiriMirror/libuipc

    Build and test the libuipc project using XMake. An agent skill from spiriMirror/libuipc.

    335 GitHub stars~588 tokensUpdated 5 days ago
    Auto-check passed
  • Cmake Workflow

    spiriMirror/libuipc

    Build and test the libuipc project using CMake. An agent skill from spiriMirror/libuipc.

    335 GitHub stars~321 tokensUpdated 5 days ago
    Auto-check passed
  • Document

    spiriMirror/libuipc

    Documentation style guide and rules for creating documentation

    335 GitHub stars~930 tokensUpdated 5 days ago
    Auto-check passed
  • Fix Issue

    spiriMirror/libuipc

    Fix a GitHub issue with proper branch, testing, and PR workflow

    335 GitHub stars~421 tokensUpdated 5 days ago
    Auto-check passed

Categories

Questions about Cursor Rules

What does Cursor Rules do?

How to add or edit Cursor rules in our project. An agent skill from spiriMirror/libuipc. Cursor Rules is an agent skill from spiriMirror/libuipc.

When should I use Cursor Rules?

Cursor Rules fits situations like: tasks that involve Agent instruction files.

How do I install Cursor Rules in Claude Code?

Run `npx skills add spiriMirror/libuipc --skill cursor-rules -a claude-code`. Or copy the skill folder (.cursor/skills/cursor-rules in spiriMirror/libuipc) into .claude/skills/cursor-rules in your project. Claude Code loads it when a task matches its description.

How do I install Cursor Rules in Codex?

Run `npx skills add spiriMirror/libuipc --skill cursor-rules -a codex`. Or copy the skill folder (.cursor/skills/cursor-rules in spiriMirror/libuipc) into .agents/skills/cursor-rules in your project. Codex loads it when a task matches its description.

Can I use Cursor Rules in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add spiriMirror/libuipc --skill cursor-rules -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cursor-rules, .gemini/skills/cursor-rules, .github/skills/cursor-rules and .opencode/skills/cursor-rules in your project.

What does Cursor Rules need to run?

SKILL.md names no scripts, command-line tools or credentials: Cursor Rules is instructions for the agent only.

Does Cursor Rules access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cursor Rules safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cursor Rules use?

Cursor Rules is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cursor Rules use?

About 265 tokens (SKILL.md is roughly 1.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cursor Rules?

Skills that share tags, products or a category with Cursor Rules: Using Agent Skills (addyosmani/agent-skills, 103k stars), Claude Reflect (BayramAnnakov/claude-reflect, 1.7k stars), Writing For Agents (bestofjs/bestofjs, 3.1k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cursor Rules?

spiriMirror (a GitHub organization) maintains it in spiriMirror/libuipc, which has 335 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 3, 2026.

Source: spiriMirror/libuipc on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.