maintain-project-rules
4
总安装量
2
周安装量
#53690
全站排名
安装命令
npx skills add https://github.com/janjaszczak/cursor --skill maintain-project-rules
Agent 安装分布
opencode
2
gemini-cli
2
claude-code
2
github-copilot
2
codex
2
kimi-cli
2
Skill 文档
maintain-project-rules
Activation gate
Use if:
- User asks to audit or maintain project rules, check prefix convention, or sync doc/rules.md.
- Context involves
.cursor/rules/, rule files (.mdc), or conventions from cursor-rules-principles / retro.
Source of truth
- cursor-rules-principles.md (in repo or ~/.cursor) â prefix table 000â500, general principles. See reference.md for full prefix table.
- commands/retro.md (PROJECT RULES section) â prefixes 000/050/100/200/900, flat .mdc, no subfolders in rules.
Procedure
-
Resolve paths
- PROJECT_ROOT:
git rev-parse --show-toplevel - PROJECT_CURSOR_DIR:
${PROJECT_ROOT}/.cursor - PROJECT_RULES_DIR:
${PROJECT_CURSOR_DIR}/rules - If PROJECT_RULES_DIR does not exist, report “No .cursor/rules in this repo” and stop.
- PROJECT_ROOT:
-
Audit
- List all
*.mdcin PROJECT_RULES_DIR (flat; no subfolders per convention). - For each file: name, prefix vs principles/retro, frontmatter (
description,alwaysApply,globs), line count (~<50 preferred), overlap with other rules (duplicate or near-duplicate content). - Flag: missing prefix, wrong prefix slot, missing/invalid frontmatter, oversized file, duplicate content.
- List all
-
Proposals
- RENAME: file without numeric prefix â suggest prefix from reference.md / retro.
- MERGE: two or more rules with overlapping scope â suggest target file and sections.
- DELETE: only with clear justification (obsolete, fully merged); do not execute without user confirmation.
- Do not delete, move, or rename until user confirms.
-
Sync doc/rules.md
- If repo has
doc/rules.mdordocs/rules.md: update the “Context-Specific Rules” (or equivalent) list to match current.mdcfiles and their globs/scope. Keep doc and rules directory in sync.
- If repo has
Output
- Report: table of files (path, prefix OK?, frontmatter OK?, lines, notes); list of proposals (RENAME/MERGE/DELETE with reason and target).
- Closing line: “Do zastosowania: potwierdź zmiany lub wywoÅaj agenta rules-keeper.”
- No destructive changes without explicit user confirmation.
Reference
For full prefix table and conventions, see reference.md.