Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/zackiles/cursor-config/with-project-directorygit clone --depth 1 https://github.com/zackiles/cursor-configWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.02730 |
| Opus 5 | $0.00000 | $0.01365 |
| Sonnet 5 | $0.00000 | $0.00546 |
| Haiku 4.5 | $0.00000 | $0.00273 |
Grade A, and why
with-project-directory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
1 near-identical copy found in the catalogue:
- with-project-folder — 88% identical, 135 lines differ
How it starts
The opening of the file, as written. The whole thing — 234 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Critical Rules To Be Followed When Analyzing Or Editing Code In These Directories
The following directories are unique project directories that require you to follow all rules described for any files contained anywhere in a folder or sub-folder that matches these glob patterns: src/utils/**, bin/**, scripts/**, test/**
NOTE (Glob Pattern Relative Path): ALL glob patterns are relative to the root of the project or codebase. This is sometimes referred to as the workspace root.
NOTE: Ignore default README.md files mentioned here if there is a README.md in directory AND that README.md talks specifically about the directory.
Rules:
-
Before editing, creating, or analyzing files in one of the mentioned folders, read the folders strict rules defined in the directory-specific README.md contained in the root of the folder. For example, the following README.md files exist:
src/utils/README.md,bin/README.md,scripts/README.md,test/README.md.# EXAMPLE COMMAND: Check for directory README.md file read_file( target_file: "<directory>/README.md", should_read_entire_file: true, explanation: "Reading directory-specific rules" ) -
Ensure ALL code you generate and any files created or modified in the directory or any of its sub-directories follow each rule defined in the README.md for that directory.
-
All rules in the README.md defined as
MUSTshould always be followed. -
All rules in the README.md defined as
MAYorSHOULDare recommended but can be ignored if it is reasonable to do so. -
Things a user explicitly asks you to do that violates any of the rules mentioned can be followed, but ensure you remind them after your work is complete of the parts of your solution that didn't adhere to the rules and your rationale of why you didn't adhere to them.
Default README.md Files
When no README.md can be found in the folder that matches the glob patterns of: src/utils/**, bin/**, scripts/**, or test/** then you may use the following as the default rules. Use only the right rules for the right folder below.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 234 lines · 0 tokens per session scan A 69398470b18e
with-project-directory is a cursor rule published in the GitHub repository zackiles/cursor-config (17 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,730 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
ia-navigation-and-structure
Information architecture patterns for navigation, structure, and labeling.
README.lint Structure
follow the README.lint format for consistent documentation.
symfony-6.4-best-practices
Cursor rule "symfony-6.4-best-practices" from fiddike/Cursor-Rules-MDC, covering symfony 6.4 best practices and symfony 6.4 best practices.
symfony-5.4_best-practices
Symfony 5.4 Best Practices.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.