project-level Cursor ruleA

project-level from metagit-ai/metagit-cli is a Cursor rule: instructions the Cursor agent follows in that repo.

Install it, pinned
mdr add metagit-ai/metagit-cli/.cursor/rules/project-level.mdc@git:20260604.31a4e7d

Pins git:20260604.31a4e7d in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
Cursor rule
Repository
metagit-ai/metagit-cli
Path
.cursor/rules/project-level.mdc
Versions recorded
5
Latest version
git:20260604.31a4e7d, committed Jun 4, 2026
First version recorded
Jul 23, 2025
Size
6,309 bytes
Repository stars
4
License
MIT

Metagit.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

You are an expert in Python, YAML configurations, and AI toolchain integration. Your role is to assist developers working on their projects, ensuring code quality, and maintainability.

## Code Style and Structure

- Write Python code compliant with PEP 8 and optimized for readability and maintainability.
- Use type hints for all function parameters and return types.
- Always strongly type variables using the pydantic library for data structures.
- Always use Protocol definitions for interface definitions.
- Maintain a component driven project structure with each component in their own directory within the src/metagit/core path.
- Avoid duplication by using clear, modular code organization.
- All file paths should be constructed using os.path.join() instead of string concatenation.
- All library and class imports must be at the top of the file and never be imported on-demand.
- Remove all unused imports from each python file after editing them.
- Never assign variable names which are unused, instead assign these variables as '_'.
- Unit tests are expected for all functions and class methods and are to be stored centrally in the tests folder.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add metagit-ai/metagit-cli/.cursor/rules/project-level.mdc@sha256:2df5d682de7b4e51

The line at the top of this page pins the label git:20260604.31a4e7d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_o5ot2gh7k7otlnn4.svg)](https://markdownregistry.com/a/art_o5ot2gh7k7otlnn4)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Jul 23, 2025 and Jun 4, 2026, about one every 79 days.

versioncommittedcommitsizeaudit
git:20260604.31a4e7d latest2026-06-04 31a4e7d 6,309 BA view · diff
git:20260521.7be45452026-05-21 7be4545 6,068 BA view · diff
git:20260515.ba408ae2026-05-15 ba408ae 5,986 BA view · diff
git:20250723.a11ddd42025-07-23 a11ddd4 5,628 BA view · diff
git:20250723.e7c16272025-07-23 e7c1627 5,999 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (6309 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

metagit-ai/metagit-cli · 4 stars · license MIT · pushed 2026-11-03 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_o5ot2gh7k7otlnn4
GET https://markdownregistry.com/api/v1/resolve?ref=metagit-ai/metagit-cli/.cursor/rules/project-level.mdc
GET https://markdownregistry.com/api/v1/blob/2df5d682de7b4e515a9a95e8f8af8f07e63bc39bf1d38dfea7bff113580edd1a

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: Cursor rules vs AGENTS.md · which agent file does what.

More from metagit-ai/metagit-cli

gitnexus-cli SKILL.md skill
metagit-ai/metagit-cli · .agents/skills/gitnexus-cli/SKILL.md · Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate…
git:20260907.a6ce61c · audit A · 4 stars
gitnexus-debugging SKILL.md skill
metagit-ai/metagit-cli · .agents/skills/gitnexus-debugging/SKILL.md · Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: "Why is X failing?"…
git:20260907.a6ce61c · audit A · 4 stars
gitnexus-exploring SKILL.md skill
metagit-ai/metagit-cli · .agents/skills/gitnexus-exploring/SKILL.md · Use when the user asks how code works, wants to understand architecture, trace execution flows, or explore unfamiliar…
git:20260907.a6ce61c · audit A · 4 stars
gitnexus-guide SKILL.md skill
metagit-ai/metagit-cli · .agents/skills/gitnexus-guide/SKILL.md · Use when the user asks about GitNexus itself — available tools, how to query the knowledge graph, MCP resources, graph…
git:20260907.a6ce61c · audit A · 4 stars
gitnexus-impact-analysis SKILL.md skill
metagit-ai/metagit-cli · .agents/skills/gitnexus-impact-analysis/SKILL.md · Use when the user wants to know what will break if they change something, or needs safety analysis before editing code…
git:20260907.a6ce61c · audit A · 4 stars
gitnexus-refactoring SKILL.md skill
metagit-ai/metagit-cli · .agents/skills/gitnexus-refactoring/SKILL.md · Use when the user wants to rename, extract, split, move, or restructure code safely. Examples: "Rename this function"…
git:20260907.a6ce61c · audit A · 4 stars
gitnexus-cli SKILL.md skill
metagit-ai/metagit-cli · .agents/skills/gitnexus/gitnexus-cli/SKILL.md · Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate…
git:20260625.aebf5ae · audit A · 4 stars
gitnexus-debugging SKILL.md skill
metagit-ai/metagit-cli · .agents/skills/gitnexus/gitnexus-debugging/SKILL.md · Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: "Why is X failing?"…
git:20260625.aebf5ae · audit A · 4 stars
gitnexus-exploring SKILL.md skill
metagit-ai/metagit-cli · .agents/skills/gitnexus/gitnexus-exploring/SKILL.md · Use when the user asks how code works, wants to understand architecture, trace execution flows, or explore unfamiliar…
git:20260625.aebf5ae · audit A · 4 stars
gitnexus-guide SKILL.md skill
metagit-ai/metagit-cli · .agents/skills/gitnexus/gitnexus-guide/SKILL.md · Use when the user asks about GitNexus itself — available tools, how to query the knowledge graph, MCP resources, graph…
git:20260625.aebf5ae · audit A · 4 stars
gitnexus-impact-analysis SKILL.md skill
metagit-ai/metagit-cli · .agents/skills/gitnexus/gitnexus-impact-analysis/SKILL.md · Use when the user wants to know what will break if they change something, or needs safety analysis before editing code…
git:20260625.aebf5ae · audit A · 4 stars
gitnexus-refactoring SKILL.md skill
metagit-ai/metagit-cli · .agents/skills/gitnexus/gitnexus-refactoring/SKILL.md · Use when the user wants to rename, extract, split, move, or restructure code safely. Examples: "Rename this function"…
git:20260625.aebf5ae · audit A · 4 stars

Every file in metagit-ai/metagit-cli

Browse by kind, by grade A, or by owner.