Synthèse automatique
Audite un dépôt freeCodeCamp pour détecter les dérives entre les grands superblocks v9 et les petits superblocks autonomes qui en dérivent, puis signale les blocs ajoutés, déplacés ou supprimés qui n'ont pas été répercutés.
Points forts
- Compare à la fois le fichier de structure (`superblocks/<name>.json`) et le fichier d'intro (`intro.json`), ce qui distingue les blocs manquants au niveau structure de ceux dont seul l'intro manque.
- Fournit pour chaque bloc manquant le bloc `after` à suivre ainsi que le contenu `intro_content` à reprendre, rendant la correction directe.
- Marque les mappings ambigus (`ambiguous_mapping`) là où un module source alimente plusieurs petits superblocks, au lieu de trancher arbitrairement.
- Exclut explicitement les labs de certification ajoutés en fin de liste, qui ne doivent pas être traités comme des blocs obsolètes.
Limites
- Ne produit qu'un rapport : l'agent ne modifie pas les fichiers, la correction reste manuelle.
- Dépend entièrement de l'état exact du dépôt ; un checkout obsolète ou une branche de PR donne des résultats faux.
- Nécessite un clone local de freeCodeCamp/freeCodeCamp, Python 3 et la connaissance des chemins du dépôt.
À utiliser après des ajouts, déplacements ou suppressions de blocs dans les superblocks v9, pour vérifier quels superblocks autonomes doivent être mis à jour.
À éviter si vous n'êtes pas sur un `main` à jour du dépôt freeCodeCamp ou si vous cherchez un outil qui applique lui-même les corrections.
Analyse de sécurité
SûrThe skill performs a read-only audit of the freeCodeCamp repository. It runs a bundled Python detector and may run git commands to verify the branch and pull the latest main, but it does not modify curriculum files, exfiltrate data, or execute destructive commands. The instructions explicitly guard against editing files, opening issues, or pushing changes.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Check the small superblocks in this freeCodeCamp checkout and report every one that is out of sync with its v9 source module.Which curriculum blocks are missing from `introduction-to-loops-in-javascript` compared to its module in `javascript-v9`, and where should each one be inserted?Run the sync check and list only the findings marked `ambiguous_mapping`, so I can manually review which small superblock each one should feed.name: sync-small-superblocks description: > Check whether the standalone "small" superblocks in the freeCodeCamp curriculum are in sync with the v9 superblock modules they are derived from, and report every block that was added, moved, or removed in the big superblock but not reflected in the small one. Invoke with /sync-small-superblocks. Use for: "check small superblocks", "superblocks out of sync", "sync superblocks", "missing curriculum blocks", "compare superblock modules".
Sync Small Superblocks
You are an agent that audits the freeCodeCamp curriculum for drift between the large v9 superblocks and the standalone "small" superblocks derived from them, then reports what is out of sync.
The curriculum has large v9 superblocks (e.g. javascript-v9,
responsive-web-design-v9) organized into chapters and modules. Many smaller
standalone superblocks (e.g. introduction-to-loops-in-javascript, basic-html)
mirror a single module of a big superblock so learners can take that slice on its
own. When a block is added to, moved between, or removed from a module in a big
superblock, the matching small superblock is often not updated. This skill finds
those drifts.
Two files define each superblock's block list:
- Structure file:
curriculum/structure/superblocks/<name>.json. A big superblock is shaped{"chapters": [{"modules": [...]}]}; a small superblock is shaped{"blocks": [...]}. - Intro file:
client/i18n/locales/english/intro.json. Each superblock key has ablocksobject mapping block name to its{title, intro}.
All paths are relative to the freeCodeCamp repository root.
When to use this skill
- A maintainer wants to confirm the standalone superblocks still match the v9 curriculum after blocks were added, reordered, moved, or removed.
Prerequisites
- Run from the root of a freeCodeCamp/freeCodeCamp checkout (the directory
containing
curriculum/andclient/). - Work from an up-to-date
main. The mapping depends on the exact current block lists, so a stale or PR-branch checkout produces stale results. Confirm withgit rev-parse --abbrev-ref HEADand pull the latestmainfirst. - Python 3.
Instructions
-
Confirm the working directory is a freeCodeCamp repo on up-to-date
main. -
Run the bundled detector from the repository root. The script reads the current working directory by default; override with
FCC_REPOif needed:python3 path/to/this/skill/check_sync.pyIt prints JSON to stdout:
{"findings": [ ... ]}. Each finding is one small superblock that is out of sync, with:small_superblock,source_superblock,modules— the small superblock, the big superblock it derives from, and the source module(s).ambiguous_mapping—truewhen the source module feeds more than one small superblock (e.g. thegitmodule feeds bothintroduction-to-nanoandintroduction-to-git-and-github). Call these out for manual review.current_blocks/proposed_blocks— the structure file's block list now and after the fix (missing blocks inserted in module order, stale blocks removed).missing— blocks present in the source module but absent from the small superblock. Each hasblock,after(the block it should follow;nullmeans first),module,intro_content(the{title, intro}from the big superblock, ornullif the big intro has no entry), andintro_already_present(truewhen only the structure file needs the addition).stale— blocks in the small superblock no longer in its source module. Each hasblock,status(movedorremoved),now_in_modules(where a moved block went), andintro_present_in_small. Appended cert-project labs are NOT reported as stale; they legitimately live in a separate cert-project module.
-
Turn the JSON into a readable report (see Output format). Do not modify any files and do not open issues or PRs.
Handling arguments
- A superblock name (e.g.
/sync-small-superblocks introduction-to-loops-in-javascript) — run the full check, then report only that small superblock; note if it is in sync. - No arguments — report every out-of-sync small superblock.
Output format
A concise report:
- The branch/commit checked and the total number of out-of-sync small superblocks (state "all small superblocks are in sync" if there are none).
- One section per finding, headed by the small superblock and its source module:
- Add lines:
<block>to insert after<after>(or "at the start"); note when the intro already exists or when there is no intro entry in the big superblock. - Move/Remove lines:
<block>moved to<now_in_modules>(so it should leave this small superblock) or removed entirely.
- Add lines:
- A final note listing any
ambiguous_mappingfindings and any missing block whoseintro_contentisnull, flagged for manual review.
For each finding, point to the two files that would need editing
(curriculum/structure/superblocks/<name>.json and
client/i18n/locales/english/intro.json) so a maintainer can act on the report.
Guardrails
- Avoid editing curriculum files, opening issues, or pushing; only report findings and let the maintainer decide what to change.
- Avoid running against a stale or PR-branch checkout; verify up-to-date
mainfirst, since the report is only as accurate as the block lists on disk. - Avoid inventing intro text; when reporting an intro to copy, use the
intro_contentthe detector returns verbatim, and flagnullentries. - Avoid reporting appended cert-project labs as problems; the detector already excludes them, so do not re-flag extras it omitted.
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/sync-small-superblocks-mrx3xz7e/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/sync-small-superblocks-mrx3xz7e' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/sync-small-superblocks-mrx3xz7e/download' --output '.skill-downloads/sync-small-superblocks-mrx3xz7e/SKILL.md.part' && mv '.skill-downloads/sync-small-superblocks-mrx3xz7e/SKILL.md.part' '.skill-downloads/sync-small-superblocks-mrx3xz7e/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
- Run from the root of a freeCodeCamp/freeCodeCamp checkout (the directory
containing
curriculum/andclient/). - Work from an up-to-date
main. The mapping depends on the exact current block lists, so a stale or PR-branch checkout produces stale results. Confirm withgit rev-parse --abbrev-ref HEADand pull the latestmainfirst. - Python 3.
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/sync-small-superblocks-mrx3xz7e/SKILL.md' && test -s '.skill-downloads/sync-small-superblocks-mrx3xz7e/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/sync-small-superblocks' && cp -R '.skill-downloads/sync-small-superblocks-mrx3xz7e' '.claude/skills/sync-small-superblocks'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/sync-small-superblocks-mrx3xz7e'openskills read 'sync-small-superblocks-mrx3xz7e'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/sync-small-superblocks-mrx3xz7e/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.