simplify
Ce qu’il fait
Elle relit les modifications récentes non commitées ou indexées pour la réutilisation, la clarté et l'efficacité, puis applique des nettoyages simples. Elle s'adresse aux développeurs qui veulent une passe de finition avant d'ouvrir une demande de fusion.
Quand l’utiliser
- ✓Quand vous venez de terminer une implémentation et voulez une passe de nettoyage.
- ✓Quand vous voulez peaufiner les modifications avant d'ouvrir une demande de fusion.
- ✓Quand vous demandez de simplifier ou d'affiner ce que vous venez de modifier.
Lien du skill
https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/simplify/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Je voudrais simplifier les modifications que je viens de faire, et appliquer les nettoyages manifestement sans risque.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent repère les fichiers modifiés à partir de l'état de votre git, lance plusieurs passes de relecture en parallèle et applique les améliorations simples. Il se concentre sur la qualité et laisse la recherche de bogues à la skill de relecture de code.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Simplify Recent Changes
You are running a structured cleanup workflow over recent code changes. Your goal is not just to comment on the code, but to safely improve it.
Step 1: Identify the review scope
Determine which files and changes to review.
- First inspect the current git state.
- If there are staged changes, review against
HEADso both staged and unstaged tracked changes are included. - Otherwise review the current uncommitted diff.
- If there is no git diff, fall back to
git ls-files --modified --others --exclude-standardso the scope respects.gitignore(this keeps build output,node_modules, and other ignored paths out of the cleanup). - If that is still empty, fall back to files edited in this conversation.
- If you still cannot identify a meaningful scope, stop and tell the user there are no recent changes to simplify.
Preferred commands:
git diff --name-onlygit diff --staged --name-onlygit diff HEAD --name-onlygit diffgit diff HEADgit status --short
Use git diff HEAD whenever staged changes exist. Otherwise use git diff.
Step 2: Launch three review passes in parallel
Use the agent tool and launch all review passes in a single response so they run concurrently. Set subagent_type: "general-purpose" and run_in_background: false on every call — each pass must return its findings inline. Do NOT fork them: never set subagent_type: "fork". A fork runs fire-and-forget and never returns its findings, so there would be nothing to aggregate in Step 3. Each pass must receive the same review scope and diff command. These passes are read-only: each one inspects and reports findings only and must not modify files — all edits happen later in Step 4.
Keep each review prompt short and focused. Do not paste the full diff into the prompt. Tell each pass to read the diff itself and inspect only files relevant to its findings.
Pass 1: Code Reuse Review
Look for opportunities to reduce duplication and reuse existing code:
- existing utilities or helpers that should be reused
- duplicated logic introduced in new code
- inline logic that should delegate to an existing abstraction
- ad-hoc helpers for string, path, env, parsing, or type checks when a project utility already exists
Pass 2: Code Quality Review
Look for maintainability issues:
- copy-paste variants that should be unified
- parameter sprawl or awkward APIs
- redundant state or indirection
- abstraction leaks
- stringly-typed code that should be modeled more clearly
- unnecessary nesting
- unnecessary comments that explain what instead of why
- naming or structure that does not match surrounding code
Pass 3: Efficiency Review
Look for wasteful work and unnecessary overhead:
- repeated work that can be memoized, cached, or removed
- serial work that can be parallelized safely
- unnecessary scans, allocations, reads, or traversals
- hot-path blocking work
- redundant no-op updates
- overly broad operations when a narrower one would work
- existence-check patterns that introduce TOCTOU style waste or risk
Step 3: Aggregate findings
Wait for all three passes to finish, then merge overlapping findings.
Prioritize fixes that are:
- low risk
- local in scope
- clearly aligned with existing project patterns
- easy to validate with tests or targeted commands
Do not force a cleanup if it would require speculative architectural changes.
Step 4: Apply straightforward improvements
Directly implement safe cleanup improvements.
Examples of good automatic fixes:
- replace duplicated logic with an existing helper
- remove redundant code, but only after a repository-wide search confirms it has no remaining callers
- simplify conditionals or control flow
- tighten loops or repeated work
- reduce unnecessary state or wrapper code
- remove low-value comments
- align code with nearby conventions
Skip items that are uncertain, risky, or too invasive. Do not spend time debating rejected findings; simply move on.
Step 5: Verify the cleanup
After making changes:
- Run focused tests for the changed area when they exist.
- Run the relevant project quality checks you can identify for the touched code.
- If there are no applicable tests, at least run a targeted build, typecheck, or lint command that covers the edited files.
Prefer targeted verification over whole-repo commands unless the project only exposes repo-wide checks.
Additional focus
If the user supplied extra i
Questions fréquentes
Cherche-t-elle des bogues ?
Non. Elle se concentre sur la réutilisation, la simplicité et l'efficacité, et une autre skill de relecture cherche les bogues.
Quelles modifications analyse-t-elle ?
Les modifications suivies indexées ou non indexées, ou les fichiers non commités qui ne sont pas ignorés par git.
Que se passe-t-il s'il n'y a aucune modification ?
L'agent vous indique qu'il n'y a pas de modifications récentes à simplifier.
Détails
Description originale de l’auteur
Review recent code changes for reuse, code quality, and efficiency, then directly apply straightforward cleanup improvements. Use when the user wants a post-implementation cleanup pass, pre-PR polish, or asks to simplify/refine recent changes. Invoke with `/simplify` or `/simplify <focus>`.
repo: QwenLM/qwen-code
Popularité
- Étoiles GitHub
- 29k
- Position au classement
- #9786
- Licence
- Apache-2.0
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
codegraph
29kAide votre agent à analyser une base de code indexée à travers son graphe d'appels, ses dépendances, son code mort, ses points chauds et une recherche sémantique.
qwen-code-claw
29kAide votre agent à confier des tâches de programmation à Qwen Code, comme comprendre une base de code, corriger des bogues, refactoriser du code ou générer un nouveau projet.
structured-debugging
29kEnseigne à votre agent une méthode pas à pas pour déboguer les bogues difficiles : formuler une hypothèse, ajouter des contrôles ciblés, la tester et trouver la vraie cause avant de corriger.
tmux-real-user-testing
29kAide votre agent à tester une application de terminal comme un vrai utilisateur dans tmux, en enregistrant un journal lisible pas à pas avec une capture d'écran de chaque action.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.