Universal task approach patterns for coding agents: operating modes, task workflow, lightweight mode, scope safety, verification matrix, definition of done, and quality checklist.
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Minimal planning, minimal diff, skip MCP lookups if local pattern is clear
balanced
Default — normal feature work
Moderate planning, load skills when needed, run proportional checks
thorough
Complex/risky tasks (auth, data flow, many files, cross-cutting changes)
Deep analysis, wider verification, explicit trade-off discussion
If user does not specify mode, infer automatically from task size and risk.
Task Approach Pattern
For each task, follow this protocol:
1. Understand
- Read requirements carefully
- Identify constraints and goals
- Read only files needed for scope; infer local patterns first
2. Plan
- Load relevant skills
- Identify affected files
- Define minimal set of touched files
- Consider edge cases and failure modes
3. Implement
- Write clean, typed code following project conventions
- Keep changes small and explicit
- Reuse existing helpers and middleware patterns
4. Verify
- Run checks proportional to risk (see Verification Matrix)
- If checks cannot run, report exact commands to run
- Review for best practices and edge cases
5. Report
- What changed (1-3 bullets)
- Files touched (explicit paths)
- Verification status
Lightweight Mode for Simple Tasks
For small, low-risk requests, use a minimal-change workflow.
Trigger Lightweight Mode when ALL are true:
Change touches 1-2 files
No API contract, auth, database, or routing changes
No architecture or state-management redesign
Request is clear and implementation is straightforward
Lightweight Mode protocol:
Read the target file(s) and existing local pattern
Implement the smallest correct change
Do a quick verification (type/lint/build check only if immediately relevant)
Return concise result with changed file path(s)
Skip by default:
Full multi-step planning narrative
Broad skill-loading announcements
Extended documentation updates
Extra refactors unrelated to the request
Guardrail: If hidden complexity appears (cross-file impact, uncertain behavior, failing checks), immediately switch back to the full Task Approach Pattern.
Scope Safety Rules (Non-Negotiable)
Modify only files required by the user request
Do not perform opportunistic refactors outside scope
Do not change project-wide config (build, lint, tsconfig, CI, env) unless requested
Prefer smallest diff that fully solves the task
Preserve repository conventions over personal preference
If unrelated local changes exist, leave them untouched
Output Contract (Response Format)
For every implementation task, end with this concise structure:
What changed (1-3 bullets)
Files touched (explicit paths)
Verification status (verified | partially_verified | not_verified)
If not fully verified: exact commands user should run
Optional next step (only if natural)
Verification Matrix
Task Size
Required Checks
Tiny
Optional targeted check; no full build required by default
Small
At least one relevant check (lint OR typecheck OR focused test)