oblt-aw / rules
Cursor rule2 starsChanged 30 days agoApache-2.0View on GitHub
GOLD — mandatory local pre-commit (actionlint/ruff/mypy/…) before every commit or push.
- Commits and pushes
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,157 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/fail-closed-e2e-gates.mdcCursor rule
- .cursor/rules/new-org-key-checklist.mdcCursor rule
- .cursor/rules/protected-oblt-aw-workflow.mdcCursor rule
- copilot-reviewSkill
- code-reviewSkill
The file
We split this ci-precommit-before-push.mdc into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Before any of these:
- Distinctive: line 24
Use the exact touched paths (new, modified, deleted→related).
- Very specific: line 26
If many files changed, pre-commit run --all-files is acceptable and stricter.
- Very specific: line 38
When offering or performing commit/push/PR, state in one line that pre-commit passed on the touched files (hook list not required).
≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: GOLD — mandatory local pre-commit (actionlint/ruff/mypy/…) before every commit or push. alwaysApply: true --- # GOLD rule — pre-commit before commit / push **Highest-priority CI hygiene rule for this repository.** It overrides the urge to “pytest passed, ship it.” ## Non-negotiable Before **any** of these: - `git commit` (when the agent is creating the commit) - `git push` - `gh pr create` / updating a PR with new commits you **must** run and pass: ```bash pre-commit run --files <all-paths-changed-in-this-change-set> ``` Use the exact touched paths (new, modified, deleted→related). That matches CI’s **Pre-commit** job (yamllint, **actionlint**/shellcheck-in-workflows, ruff, ruff format, **mypy**, license headers, yaml/json hygiene). If many files changed, `pre-commit run --all-files` is acceptable and stricter. ## Forbidden shortcuts - Treating **pytest alone** as authorization to commit or push - Skipping **actionlint** because “the YAML looks fine” - Skipping **mypy** because “types look fine” - Pushing after a known red Pre-commit “to fix in a follow-up” - Committing/pushing first, then running pre-commit only after CI fails ## Mandatory report When offering or performing commit/push/PR, **state in one line** that pre-commit passed on the touched files (hook list not required). If it failed, **stop**, paste the failing hook output, fix, re-run, then proceed. ## Install (humans and agents) ```bash pre-commit install --hook-type pre-commit --hook-type pre-push ``` `pre-push` is configured in [.pre-commit-config.yaml](../../.pre-commit-config.yaml) so a bare `git push` also runs the gate after install.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

