Skip to content

Scopes and Commands for AI instructions

AI scopes, commands and parameters with some good combinations for any tools

· Intermediate
Requires
  • ai

Complete AI Prompting Scopes — Deep Analysis

Here is a resume on how to control each scopes and what are their purposes

1 — Output Format & Length Control

What it does

Overrides the AI’s default formatting decisions.

How it works

Format commands work because the AI has learned associations between instruction patterns and output shapes. The more specific your format instruction, the less the model interpolates. For web dev, Return only the code, no explanation is essential when piping output into a file or editor. JSON formatting is critical when the output feeds another function or API. Mixing format commands with length commands creates tension — be exhaustive but use bullet points forces density, which can be useful for checklists or API references.

Commands & parameters

CommandParametersEffect
Format as [type]table, JSON, XML, markdown, plain text, CSVForces specific structure
Respond in [N] words/sentencesAny numberHard length constraint
Be concise / Be exhaustiveSoft length signal
Use headers / No headersControls markdown structure
Bullet points onlyRemoves prose entirely
Return only the codeStrips explanation

Instructions combinations

  • Format as JSON + strict schema definition → predictable structured output
  • Return only code + specify language → clean copy-paste output
  • Use a table + define the columns → controlled comparison output

2 — Reasoning Depth & Chain of Thought

What it does

Controls how the AI thinks before answering, not just what it outputs.

How it works

Chain-of-thought (CoT) prompting is one of the most research-backed techniques. It works by forcing the model to occupy more of its token budget before the final answer, which statistically improves accuracy on complex tasks. For web programming, this is invaluable when debugging — think step by step through why this function returns undefined yields far better diagnosis than just pasting the code. Reason from first principles is powerful for architecture decisions where you don’t want the AI defaulting to the most common pattern. Challenge your own answer is underused — it forces the model to act as its own reviewer, catching logical errors or edge cases before you do.

Commands & parameters

CommandParametersEffect
Think step by steptable, JSON, XML, markdown, plain text, CSVActivates sequential reasoning
Show your reasoningAny numberExternalizes the thought process
Think out loudMore verbose internal monologue
Before answering, consider [X]Any constraint or anglePre-loads a reasoning lens
Reason from first principlesIgnores conventions, rebuilds logic from scratch
Work backwards from [goal]A defined end stateReverse engineering reasoning
Identify assumptions firstForces explicit assumption listing
Challenge your own answerTriggers self-critique loop

Instructions combinations

  • Think step by step + show your reasoning → full transparency debugging
  • Identify assumptions + challenge your own answer → robust architectural advice
  • Work backwards from [a working app] + think step by step → planning mode

3 — Tone & Persona Control

What it does

Shifts the register, voice, and expertise level of responses.

How it works

Persona commands exploit the model’s training on diverse human-written text. Act as a senior web developer reviewing this PR activates patterns associated with code review language — it will look for naming conventions, performance issues, security holes, and maintainability concerns that a generic review this code prompt misses. Be opinionated is particularly valuable for framework choices (React vs Vue vs Svelte) where the AI normally hedges endlessly. Respond as if explaining to a junior developer doesn’t just simplify vocabulary — it changes the structure of the explanation, adding more analogies and less assumed context. For client communication, explain this technical debt to a non-technical stakeholder produces genuinely different, usable output.

Commands & parameters

CommandParametersEffect
Act as [role]Senior dev, tech lead, code reviewer, etc.Persona adoption
Respond as if explaining to [audience]Junior dev, non-technical client, etc.Calibrates complexity
Use a [tone]Formal, casual, Socratic, blunt, encouragingControls register
Be opinionatedSuppresses hedging, forces a stance
Avoid jargon / Use technical languageVocabulary control
Be criticalActivates critical review mode

Instructions combinations

  • Act as a senior dev + be critical → rigorous code review
  • Act as a tech lead + be opinionated → decisive architecture guidance
  • Explain to a junior dev + use analogies → documentation drafts

4 — Scope & Focus Control

What it does

Defines the boundaries of what the AI should and shouldn’t address.

How it works

Scope control is where most developers lose value. By default the AI tries to be comprehensive, which creates noise. Focus only on performance issues on a code review cuts through style comments and naming debates. Assume we are using React 18 with TypeScript and Tailwind eliminates paragraphs of preamble and version disclaimers. Prioritize security over brevity is powerful for backend code — it shifts which tradeoffs the AI makes when writing auth logic or input validation. Cover all edge cases is particularly valuable when writing utility functions, as it forces the model to think about null inputs, empty arrays, type mismatches, and boundary conditions it would otherwise skip.

Commands & parameters

CommandParametersEffect
Focus only on [X]A specific aspectExcludes everything else
Ignore [X]Styling, error handling, etc.Explicit exclusion
Cover all edge casesExpands scope to edge conditions
Prioritize [X] over [Y]Performance over readability, etc.Sets tradeoff direction
Do not repeat what I saidReduces redundancy
Go deep on [X], skip [Y]Any topicsGranular scope control
Assume [context]Language, framework, environmentFills assumed background

Instructions combinations

  • Assume [stack] + focus only on [concern] → surgical, context-aware output
  • Prioritize [X] + cover all edge cases → production-grade code
  • Ignore styling + go deep on logic → focused function analysis

5 — Iteration & Behavior Control

What it does

Controls how the AI handles uncertainty, gaps, and follow-up.

How it works

These commands are most valuable in agentic or multi-step workflows. Ask me clarifying questions before answering is underused — on complex web projects it can surface requirements you hadn’t articulated. Give me 3 versions is powerful for UI components where you want design variation, or for API design where you want to compare RESTful vs GraphQL vs RPC approaches side by side. Flag anything you are not sure about is critical for anything security or production related — it creates an inline audit trail of what needs human verification. Make your assumptions explicit prevents the most common failure mode: the AI silently assumes a framework, version, or pattern and builds on a wrong foundation.

Commands & parameters

CommandParametersEffect
Ask me clarifying questions before answeringDelays output until context is complete
Make your assumptions explicitForces transparency on gaps
Give me [N] versionsAny numberGenerates alternatives
Iterate on thisTreats prior output as a draft
Stop if you are uncertainPrevents hallucination continuation
Flag anything you are not sure aboutInline uncertainty markers
Do not proceed until I confirmManual step gating

Instructions combinations

  • Ask clarifying questions + make assumptions explicit → thorough requirements gathering
  • Give 3 versions + prioritize [X] → structured option comparison
  • Flag uncertainty + stop if uncertain → safe agentic task execution

6 — Code Generation Control

What it does

Fine-tunes how code is written, structured, and annotated.

How it works

Production-ready is one of the highest-leverage single commands for web dev. It shifts the model from demo-grade to deployment-grade code — you get input validation, error boundaries, loading states, and null checks that a bare write a function that... omits. Optimize for bundle size is particularly useful in frontend work — the AI will prefer tree-shakeable imports, avoid heavy dependencies, and suggest code splitting. Follow SOLID principles on class-based backend code produces genuinely better architecture. Do not use any in TypeScript contexts is powerful — it forces the model to infer or define proper types rather than escape hatch. Combining write production-ready + make it type-safe + include error handling is the closest you can get to a senior dev quality floor in one shot.

Commands & parameters

CommandParametersEffect
Write production-ready codeAdds error handling, edge cases, comments
Add inline commentsDocuments logic within code
Follow [convention]Airbnb, Google style, SOLID, etc.Enforces coding standards
Use [pattern]MVC, singleton, observer, etc.Targets design patterns
Do not use [library/feature]lodash, any, eval, etc.Explicit exclusions
Optimize for [goal]Speed, readability, memory, bundle sizeSets optimization target
Include error handlingForces try/catch and validation
Write this as a [module type]ESM, CommonJS, IIFEModule format control
Make it type-safeActivates TypeScript strictness

Instructions combinations

  • Production-ready + type-safe + error handling → deployment-grade output
  • Optimize for readability + inline comments → maintainable team code
  • Follow [pattern] + do not use [library] → constrained architecture work

7 — Debugging & Code Review Control

What it does

Directs the AI’s diagnostic and review process.

How it works

What would break this in production? is one of the most underused prompts in web dev. It forces the model to think about concurrency, network failure, malformed inputs, high load, and unexpected user behavior — not just whether the happy path works. Find all race conditions on async JavaScript is remarkably effective — the model understands event loop timing and Promise resolution well enough to spot real issues. Review for accessibility produces WCAG-aligned feedback on HTML/CSS that most developers overlook entirely. Suggest refactors without changing behavior is the key phrase for safe legacy code improvement — it explicitly prevents the AI from introducing new logic while cleaning up structure.

Commands & parameters

CommandParametersEffect
Find the bugPure diagnosis mode
Explain why this failsRoot cause analysis
Review for [concern]Security, performance, accessibility, etc.Targeted review
Find all [issue type]Memory leaks, race conditions, XSS, etc.Exhaustive scan for specific flaw
What would break this in production?Stress-test reasoning
Suggest refactors without changing behaviorSafe improvement mode
Compare this to best practiceGap analysis against standard
Check for [vulnerability]OWASP top 10, SQL injection, CSRF, etc.Security-specific scan

Instructions combinations

  • Find the bug + explain why it fails + suggest fix → full debug cycle in one prompt
  • Review for security + check for OWASP top 10 → security audit mode
  • What would break in production + cover edge cases → pre-deployment stress test

8 — Architecture & Planning Control

What it does

Steers high-level design and system thinking.

How it works

Compare A vs B for [specific context] beats generic comparison prompts significantly. Compare REST vs GraphQL for a mobile app with offline support gives you a contextually relevant answer, not a generic pros/cons list. Plan this in phases is invaluable for project scoping — it produces MVP-first thinking with clear iteration boundaries. What could go wrong with this design? is a pre-mortem prompt that surfaces single points of failure, missing caching layers, auth gaps, and scalability cliffs before you build. Suggest the simplest solution counteracts the AI’s tendency to over-engineer — it’s most useful when you’ve already received a complex solution and want to pressure-test its necessity.

Commands & parameters

CommandParametersEffect
Design a system that [requirement]Any constraint setFull architecture generation
Compare [A] vs [B] for [context]Any two approachesStructured decision support
What are the tradeoffs of [approach]?Any pattern or toolBalanced analysis
Draw this as a diagramASCII or Mermaid diagram output
Plan this in phasesStaged implementation roadmap
What could go wrong with this design?Pre-mortem analysis
Suggest the simplest solutionAnti-over-engineering filter
Scale this to [X users/requests]Any scale targetScalability-aware redesign

Instructions combinations

  • Design a system + plan in phases + what could go wrong → full architecture workshop
  • Compare A vs B + be opinionated + prioritize [X] → decisive tech selection
  • Scale to [X] + suggest tradeoffs → scalability planning

9 — Claude-Specific (Artifacts & MCP)

What it does

Leverages Claude’s unique rendering and integration capabilities.

How it works

Claude’s artifact system is a full iterative UI development loop inside the chat. Make it interactive on a React artifact activates useState, event handlers, and dynamic rendering — you can prototype entire UIs conversationally. Iterate on the artifact is the key phrase for incremental development — it tells Claude to treat the existing code as a base rather than rewriting from scratch. MCP integration is the most powerful scope for professional web dev — connecting Claude to your GitHub repo means it can read actual files, open issues, and understand your real codebase rather than hypothetical code.

Commands & parameters

CommandParametersEffect
Create an artifactOpens live preview panel
Make it interactiveAdds state/UI controls to artifact
Use React with hooksTargets Claude’s React renderer
Connect to [MCP server]GitHub, Figma, DB, etc.Live external data integration
Use extended thinkingActivates deep reasoning mode
Iterate on the artifactTreats current artifact as editable draft
Add [feature] to the artifactAny UI/logic featureIncremental artifact building

Instructions combinations

  • Create an artifact + make it interactive + use React with hooks → full UI prototype loop
  • Connect to [MCP server] + iterate on the artifact → real codebase-aware development
  • Use extended thinking + create an artifact → deeply reasoned and rendered output

10 — ChatGPT-Specific (Code Interpreter & GPTs)

What it does

Leverages OpenAI’s execution sandbox and custom GPT ecosystem.

How it works

Code Interpreter’s ability to actually execute code is its unique differentiator. For web dev, this means you can upload a JSON API response and have ChatGPT write and run parsing logic against real data, catching runtime errors instantly. The browser tool is useful for pulling live documentation when working with APIs that change frequently.

Commands & parameters

CommandParametersEffect
Run this codeExecutes in sandbox, returns output
Generate and run testsWrites and executes unit tests live
Use the browser toolTriggers live web browsing
Analyze this fileUploaded CSV, JSON, etc.Data analysis in sandbox
Use a custom GPT for [domain]Any specialized GPTDomain-specific tuning

Instructions combinations

  • Run this code + generate and run tests → live code validation loop
  • Use the browser tool + analyze this file → real-time data and docs cross-reference
  • Use a custom GPT for [domain] + run this code → specialized sandboxed execution

11 — Gemini-Specific (Google Integration)

What it does

Leverages Gemini’s deep Google ecosystem ties.

How it works

Gemini’s strongest web dev advantage is recency. When a framework releases a breaking change, Gemini finds it via live search before other models’ training data catches up. For fast-moving ecosystems like Next.js, Vite, or Bun, this matters significantly. Its native Google Workspace integration also makes it the best choice when your project documentation lives in Google Docs or your data in Sheets.

Commands & parameters

CommandParametersEffect
Search for current docs on [library]Any library/frameworkLive Google Search-backed answers
Use Google workspace dataDocs, Sheets, DriveNative file integration
Check the latest version of [package]Any npm/pip packageReal-time version lookup
Reference this URLAny public URLDeep URL content reading

Instructions combinations

  • Search for current docs + check latest version → up-to-date dependency guidance
  • Use Google workspace data + reference this URL → documentation grounded in your own files
  • Search for current docs + be opinionated → current best-practice recommendation