agentscribe / rules
Cursor rule3 starsChanged 4 months agoMITView on GitHub
Project rules generated by agentscribe
- Reads credentials
- Installs packages
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 1,533 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 repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
The file
We split this agentscribe.mdc into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 43
Keep runtime dependencies at zero (the only exception is the tomli backport on Python < 3.11).
- Very specific: line 50
Run the full suite with pytest before considering a change done.
- Very specific: line 51
Add or update tests in tests/ for any behavior you change.
- Distinctive: line 52
Every CLI command and lint rule should have coverage.
- Very specific: line 56
Do not commit secrets, credentials, or .env files.
- Very specific: line 58
Do not hand-edit generated files (CLAUDE.md, .cursor/rules/agentscribe.mdc, .github/copilot-instructions.md).
- Distinctive: line 60
Do not introduce new third-party runtime dependencies.
- Distinctive: line 63
When suggesting edits in Cursor, prefer small, reviewable diffs.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 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: Project rules generated by agentscribe globs: alwaysApply: true --- <!-- Generated by agentscribe from AGENTS.md. Do not edit directly; edit AGENTS.md and run `agentscribe sync`. --> # agentscribe > Guidance for AI coding agents working in this repository. > This file is the single source of truth. The tool-specific files > (`CLAUDE.md`, `.cursor/rules/`, `.github/copilot-instructions.md`) are > generated from it by `agentscribe sync` — never edit them by hand. ## Overview agentscribe is a small CLI + library that generates tool-specific AI instruction files (CLAUDE.md, Cursor rules, Copilot instructions, ...) from a single `AGENTS.md`, and validates that source. The code lives under `src/agentscribe/`: - `config.py` — load configuration from `agentscribe.toml` or `[tool.agentscribe]`. - `source.py` — parse the source and apply `agentscribe:only/except/ignore` scoping. - `targets.py` — the registry of output files and how each is formatted. - `sync.py` — plan, write, and drift-check target files. - `lint.py` — conservative static checks over the source. - `detect.py` / `templates.py` — power `agentscribe init`. - `cli.py` — argparse front end. ## Setup & commands | Task | Command | | --- | --- | | Install (editable, with dev deps) | `pip install -e ".[dev]"` | | Run tests | `pytest` | | Lint | `ruff check .` | | Format | `ruff format .` | | Run the tool | `agentscribe <command>` (e.g. `agentscribe sync`) | ## Code style & conventions - Target Python 3.9+. Every module starts with `from __future__ import annotations` so built-in generics (`list[str]`) are safe in annotations. - Keep runtime dependencies at zero (the only exception is the `tomli` backport on Python < 3.11). Do not add dependencies without strong justification. - Match the surrounding style; keep functions small and pure where possible. - Generated output must stay deterministic: LF line endings, stable ordering. ## Testing - Run the full suite with `pytest` before considering a change done. - Add or update tests in `tests/` for any behavior you change. - Every CLI command and lint rule should have coverage. ## Do not - Do not commit secrets, credentials, or `.env` files. The linter flags common token shapes; do not add real tokens even as examples. - Do not hand-edit generated files (`CLAUDE.md`, `.cursor/rules/agentscribe.mdc`, `.github/copilot-instructions.md`); edit this file and run `agentscribe sync`. - Do not introduce new third-party runtime dependencies. <!-- Cursor-specific note: this project uses the modern .mdc rules format. --> When suggesting edits in Cursor, prefer small, reviewable diffs.
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.

