Auto-generate project rules for your AI coding agent
Create an accurate AGENTS.md or Cursor rules file from your actual repo.
Who: vibe coders using Cursor / Claude Code · Tools: any coding agent
Prompt
Inspect this repository: package files, folder structure, configs, test setup, and 5 representative source files.
Write a concise agent rules file (AGENTS.md / .cursor/rules) under 80 lines covering:
- stack and versions, how to install, run, test, lint
- folder conventions and where new code goes
- code style patterns you actually observed (not generic advice)
- things to never do (e.g. edit generated files, commit secrets)
- definition of done for a change
Only state facts you verified in the repo. List anything you were unsure about at the end as questions.
Steps
- Open the repo in your agent and paste the prompt.
- Answer its questions, then save the file to the repo root.
- Re-run monthly or after big refactors.
Why it works: agents follow repo-specific rules far better than generic ones.
From the Tender Venture family (disclosure: Charging4ward is my other project): want a working starter app plus a build plan written for your own idea? That’s the $19 Charging4ward Starter Build: a working template with agent rules like these already set up, a plan for your idea, a setup walkthrough and security checks.