Fresh drop on r/PromptEngineering: a repo of rules, skills, and courses you can pull into your own projects. It’s called Doctrina, and it packages engineering habits in a form your AI assistant can follow. The creator, u/jabbottiii, built it as education material with human-in-the-loop guard rails.
I like this one because it goes after a boring chore. You start a new project, then type the same instructions about testing, commits, and dependencies all over again. A shared rule library can shrink that to a copy and a quick edit.
What’s new in Doctrina
The post’s author aims for professionally written rules and skills with flexibility and sound engineering concepts. Here’s what I found in the repo’s overview:
- Rules for writing, testing, commits, dependencies, pair programming, front-end work, and more.
- Language rules for Python, TypeScript, Rust, Kotlin, Java, Swift, and Lua, plus a Flutter rule covering Dart.
- Eleven skills, including “next-task”, “sweep-code”, “security-sweep”, “simplify-code”, “draw-diagrams”, and “fix-doc-drift”.
- Course folders named “lua101” and “pe101”.
The collection is still growing. The creator says work on the major languages is in progress and invites requests for new additions. The repo is listed under an MIT license.
The twist: setup can fill itself in
According to the original poster, you can tell your LLM to import the files, and it fills in the project-specific details. Prefer control? You can fill them in yourself.
The README shows that manual route. After copying a rule, you replace each “[FILL IN: …]” value under “Project details”. It works like a form with blanks. The standards stay put, while your project supplies the specifics.
What caught my eye even more is how often the human gets the final say:
- “sweep-code” shows its findings before changing anything, then fixes only what you approve, one change at a time.
- “security-sweep” never uses a secret it finds, and it patches only what you approve.
- “build-roadmap-and-docs” drafts every decision as “Proposed” until you accept it.
- The dependencies rule allows a third-party package only after you approve it.
That’s the leverage here. Your assistant does the legwork, and you keep the judgment calls.
A step-by-step mini-workflow
The README is written around Claude Code, so these paths assume that setup. Start small with one rule and one skill.
- 📁 Copy one rule. Create the folder with
mkdir -p path/to/repository/.claude/rules, then usecpto bring the file over. “writing.md” is a smart first pick, since many other rules and skills ask for it. - 🧩 Fill the blanks. Replace every “[FILL IN: …]” value, or ask your LLM to draft them. Review whatever it writes. The README also gives a
grepcommand to confirm no placeholders remain. - ✅ Check when it loads. A rule without “paths” front matter applies to every session in that repository. A rule with “paths” applies only to matching files.
- 🚀 Add one skill. Run
mkdir -p path/to/repository/.claude/skills, followed bycp -r skills/next-task path/to/repository/.claude/skills/. Check which rules it depends on. Then type “/next-task”, adding a task ID if you want a particular one.
One detail I appreciate: “next-task” sets “disable-model-invocation: true”, so Claude never starts it on its own. It also ticks a task’s box only when the checks pass.
What the community flagged
The Reddit thread adds some healthy caution. One commenter, u/bytezvex, liked the idea but was wary that “just import them” is too hand-wavy. Their point: every model seems to interpret rules a bit differently.
Another, u/titpetric, felt many of the files are too general for real use, even too wordy, and likely written by an LLM. That’s one reader’s opinion, but it’s worth testing for yourself.
If you already maintain a hand-written “CLAUDE.md”, you don’t need to replace it. Think of Doctrina as a parts shelf. You borrow the pieces that fill a gap and leave the rest.
Pro tips before you import
These are my suggestions for getting more from any shared rule set:
- Read before you copy. These files steer an assistant that may edit your code, so review them like any outside contribution.
- Cut generic lines. If a sentence wouldn’t change the assistant’s behavior, delete it. Shorter rules are also easier to maintain.
- Run a before-and-after test. Give your assistant the same small task with and without the rule. Compare the code changes, the questions it asks, and what it skips.
- Retest after switching models. A rule that works well with one model may land differently with another.
- Adapt for other tools. The post calls the files portable. Still, expect to check folder paths and front matter outside Claude Code.
- Add one rule at a time. When behavior changes, you’ll know which file likely caused it.
I think the approval checkpoints are the part most worth borrowing. Even if you rewrite every file, “show me first, then change it” is a strong default for AI coding work.
💬 Head to the full Reddit discussion to grab the repo link and read the pushback. Then tell the creator which rule or skill you’d like to see next.
Frequently Asked Questions
Q: Can I just tell my LLM to import these and trust the result?
Not blindly. Commenters noted that each model reads rules a little differently, so the same file can produce different behavior. Short, testable rules hold up best, since long generic rules tend to drift into vague filler. Run the imported rules against one real task from your own project before you rely on them.
Q: Are the skills too general to be useful?
Some readers found the rules wordy and generic, while the course material felt more specific and practical. Others found the broad framing useful as a starting template. Either way, trim each file down to what your stack actually needs before you lean on it.
Q: Can I schedule these agents directly?
Not as they are, because many are tied to one programming language or stack. The workable pattern is to keep the repeatable process in shared skills and put the stack-specific parts in a thin layer you swap per project. That way one process can serve several stacks without being copied for each one.
LLM Rules and Skills from an Engineer’s Perspective
by u/jabbottiii in PromptEngineering