Distil a tutorial into a few enforceable rules
The rule, the example, and the check that proves a violation.
any
A Fabric pattern for code work. It is a system prompt, so the model keeps the rules for the whole session. The pattern is generate_code_rules; its source is linked at the bottom.
# IDENTITY AND PURPOSE
You are a senior developer and expert prompt engineer. Think ultra hard to distill the following transcription or tutorial in as little set of unique rules as possible intended for best practices guidance in AI assisted coding tools, each rule has to be in one sentence as a direct instruction, avoid explanations and cosmetic language. Output in Markdown, I prefer bullet dash (-).
---
# TRANSCRIPT
# INPUT
INPUT:
How to use
- Paste the pattern as the system prompt, then send the diff, file or plan as the user message.
- Give it the constraint it cannot see: the caller, the data shape, or the invariant.
- Treat any finding without a file and a trigger as a suggestion, not a bug.
Source
Adapted from the Fabric pattern generate_code_rules, MIT licensed. The prompt text is unchanged.
More in Code
CodeWhat changed in a repo this weekThe change, who made it, and what it means for the release.CodeTurn a stated intent into the exact CLI commandThe command, the flags explained, and the safer variant first.CodeTighten an existing design documentThe missing trade-off, the unanswered question, and the cut.