Synthèse automatique
Ce skill analyse l’API et l’infrastructure d’un projet pour repérer les opérations coûteuses et proposer des pistes d’optimisation des coûts et des performances.
Points forts
- Lance trois agents scanners en parallèle pour couvrir les coûts API, les performances de base de données et la latence.
- Produit un rapport structuré avec synthèse des coûts, points chauds de performance et opportunités classées par impact, effort et risque.
- Accepte un axe d’analyse ciblé comme « ai », « caching », « queries » ou « latency ».
Limites
- Dépend de l’initialisation préalable de la structure `.adlc/` et de ses fichiers de contexte.
- Les estimations de coûts et de latence sont indicatives et ne remplacent pas des mesures réelles.
- Le skill se limite à l’analyse : il ne décrit pas l’application des correctifs ni l’exécution de benchmarks.
À utiliser lorsqu’on veut examiner rapidement les dépenses API ou les problèmes de latence d’un projet et obtenir des optimisations priorisées.
À éviter si le contexte `.adlc/` n’est pas initialisé ou si l’objectif est d’implémenter directement les optimisations plutôt que de les identifier.
Analyse de sécurité
PrudenceThe skill is a read-only cost/performance auditing workflow: it cats local context docs, launches scanner subagents, and produces a report. There is no exfiltration, destructive command, or obfuscation. The only concerns are governance-level — shell and subagent usage without a declared tool list, dynamic path resolution, and dynamic agent-name probing — which place it at 'caution' rather than 'safe' or 'risky'.
- •No allowed-tools declared in the manifest, yet the skill instructs the agent to run shell commands (`cat` on `.adlc/` files), execute an embedded backtick command (`!`test -s .adlc/ETHOS.md && cat ...``), and dispatch subagents — a permission-model mismatch that a host should reconcile before trusting it.
- •The skill directs reading files from a configurable path via `$ADLC_TOOLKIT_ROOT` ("parent of this skill's base directory") for agent checklists; if that variable is attacker-influenced it could cause the agent to read arbitrary files, though only read/report actions follow.
- •Subagent names are resolved dynamically by probing the Agent tool's listing, with an explicit warning that an unlisted name may silently run a generic agent — a reliability concern that could lead to unvetted behavior executing under this skill's banner.
- •All observed file operations are read-only (`cat`, `test -s`) with no writes, deletes, network calls, credential access, or encoded payloads.
- •The skill contains an inline `!`-prefixed command substitution (`test -s .adlc/ETHOS.md && cat .adlc/ETHOS.md || echo ...`) that some harnesses execute automatically at skill load time; the commands themselves are read-only local file reads, but this auto-execution pattern is worth flagging.
- •Instructs the agent to run a shell block (`cat .adlc/context/*.md`) before proceeding — benign local reads, but it establishes a shell-first workflow.
- •Dispatches subagents that read files from `$ADLC_TOOLKIT_ROOT/agents/` and `.adlc/agents/`, a path outside the skill directory; content of those checklists is not vetted by this file.
- •No declared allowed-tools, yet the instructions assume shell and Agent tool availability and adaptively probe which agent names exist.
Exemples
/optimize/optimize ai/optimize caching and N+1 queriesname: optimize description: API cost & performance scanner — identify expensive operations and optimization opportunities argument-hint: Optional focus area (e.g., "ai", "caching", "queries", "latency")
/optimize — API Cost & Performance Scanner
You are scanning this project's API and infrastructure for cost and performance optimization opportunities.
Ethos
!test -s .adlc/ETHOS.md && cat .adlc/ETHOS.md || echo No ethos found — run /init, or /adlc:init on the plugin install, to vendor .adlc/ETHOS.md
Context
Run this block first, with your shell tool, and read its output before you continue. Each read prints a notice instead of failing when its file is absent.
# adlc-context
echo '--- Architecture'
cat .adlc/context/architecture.md 2>/dev/null || echo 'No architecture context found'
echo '--- Project overview'
cat .adlc/context/project-overview.md 2>/dev/null || echo 'No project overview found'
Input
The focus is the argument: whatever follows /optimize in the invocation (on Claude Code it can also arrive as an ARGUMENTS: line appended to this text), a dimension or an area. With none, Step 1 scans all dimensions.
Prerequisites
Before proceeding, verify that .adlc/context/architecture.md and .adlc/context/project-overview.md exist. If any of these files are missing, stop and tell the user: "The .adlc/ structure hasn't been initialized. Run /init (/adlc:init on the plugin install) first to set up the project context."
Instructions
Step 1: Determine Focus
- If given a focus area, prioritize that dimension
- If no argument, scan all dimensions
- Read
.adlc/context/architecture.mdfor current caching and optimization patterns
Step 2: Launch Scanner Agents
Launch 3 formal scanner agents in parallel using the Agent tool. Each agent is defined in $ADLC_TOOLKIT_ROOT/agents/ with its full scanning checklist and model selection (sonnet for deep analysis).
If this harness can run subagents, dispatch these agents in parallel; if it cannot, or you are a subagent, run each checklist inline from .adlc/agents/<name>.md. Agent names are bare on the symlink install and adlc:-prefixed on the plugin install (adlc:<name>): before dispatching, check which form the Agent tool lists and use that one, and do not wait for an error, because a name it does not list can silently run a generic agent without the checklist; if neither form is listed, say which agent is missing and run its checklist inline. When .adlc/agents/ is absent, say that /init (/adlc:init on the plugin install) vendors it, then read $ADLC_TOOLKIT_ROOT/agents/<name>.md (the toolkit root is the parent of this skill's base directory) where your file tool can reach it; never improvise a checklist. An inline run of a review or audit agent is read-only: report findings, apply no fixes, and run no test runner, build tool, package manager or interpreter.
- api-cost-scanner agent — provide the focus scope and architecture.md for caching context
- db-perf-scanner agent — provide the focus scope
- latency-scanner agent — provide the focus scope
Each agent returns structured findings with estimated impact, effort, and risk.
Step 3: Build Optimization Report
Cost Summary
| Service | Est. Monthly Usage | Est. Monthly Cost | Top Optimization | |---------|-------------------|-------------------|------------------| | Claude Sonnet | X calls | $X | ... | | Claude Haiku | X calls | $X | ... | | Gemini Flash | X calls | $X | ... | | SerpAPI | X calls | $X | ... | | Firestore | X reads/writes | $X | ... | | GCS | X operations | $X | ... |
Performance Hotspots
Rank endpoints by estimated latency, highlighting:
- Sequential operations that could be parallel
- Missing caches
- N+1 query patterns
- Unnecessary data fetching
Optimization Opportunities
For each opportunity:
- What: Description of the optimization
- Impact: Cost savings or latency reduction estimate
- Effort: Small / Medium / Large
- Risk: Low / Medium / High (chance of breaking something)
Step 4: Prioritized Recommendations
- Rank optimizations by impact/effort ratio
- Group into quick wins (small effort, high impact) and strategic improvements
- Suggest which items warrant a full ADLC requirement (candidates for
/spec)
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/api-cost-performance-optimizer-mwk700cs/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/api-cost-performance-optimizer-mwk700cs' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/api-cost-performance-optimizer-mwk700cs/download' --output '.skill-downloads/api-cost-performance-optimizer-mwk700cs/SKILL.md.part' && mv '.skill-downloads/api-cost-performance-optimizer-mwk700cs/SKILL.md.part' '.skill-downloads/api-cost-performance-optimizer-mwk700cs/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Extrait original : Prerequisites
Before proceeding, verify that .adlc/context/architecture.md and .adlc/context/project-overview.md exist. If any of these files are missing, stop and tell the user: "The .adlc/ structure hasn't been initialized. Run /init (/adlc:init on the plugin install) first to set up the project context."
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/api-cost-performance-optimizer-mwk700cs/SKILL.md' && test -s '.skill-downloads/api-cost-performance-optimizer-mwk700cs/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/optimize' && cp -R '.skill-downloads/api-cost-performance-optimizer-mwk700cs' '.claude/skills/optimize'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/api-cost-performance-optimizer-mwk700cs'openskills read 'api-cost-performance-optimizer-mwk700cs'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/api-cost-performance-optimizer-mwk700cs/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.