Prompt Shelf

Code

Distil a tutorial into a few enforceable rules

The rule, the example, and the check that proves a violation.

beginner · updated Nov 13, 2026

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