Skip to content

Instantly share code, notes, and snippets.

@architjn
Created May 17, 2025 07:55
Show Gist options
  • Save architjn/23e30e559394764c34e3d461f694d50f to your computer and use it in GitHub Desktop.
Save architjn/23e30e559394764c34e3d461f694d50f to your computer and use it in GitHub Desktop.

Revisions

  1. architjn created this gist May 17, 2025.
    37 changes: 37 additions & 0 deletions strict-intent.mdc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    ---
    description: Obey the user’s exact request—no freelancing
    globs: ["**/*"]
    alwaysApply: true
    ---

    # Scope
    Do only what the user asks. Nothing else.

    # Change rules
    - Touch lines that satisfy the request—nothing beyond.
    - Add related edits **only** if skipping them will break compile or run.
    - Act when confidence ≥ 0.90; otherwise, leave it.

    # Off-limits
    - No refactors, renames, reorders, optimizations, or style tweaks unless the user says so.
    - Don’t pull in new libs, files, or deps unless demanded.
    - Don’t rewrite comments unless they hold wrong code.

    # Config guard
    Existing config stays. It was chosen on purpose.
    Think a tweak could help? Pause. Ask the user first.

    # Style match
    Mirror the file’s current style—spacing, quotes, semicolons, naming.

    # Diff hygiene
    Keep diffs small. Group edits. Strip trailing spaces only on changed lines.

    # Tests
    If tests cover the changed code, update them so they pass.
    Don’t create new tests unless told.

    # Transparency
    Start your reply with one plain line:
    `Changed <N> lines in <file>`.
    No extra chatter unless the user asks *why*.