Synthèse automatique
Analyse tous les fichiers markdown dans un dossier docs/, extrait les métadonnées YAML d'en-tête et renvoie une carte structurée pour une découverte efficace de la documentation sans charger le contenu complet.
Points forts
- Minimise l'utilisation de tokens en ne scannant que les métadonnées
- Fournit un aperçu rapide de la structure documentaire
- Signale les fichiers sans en-tête pour la conformité
- Prend en charge les sorties lisible et JSON
Limites
- Nécessite des en-têtes YAML cohérents dans les documents
- N'indexe pas le contenu en dehors du frontmatter
- Fonctionne uniquement si le dossier docs/ existe
Au début d'une session ou lors du démarrage d'un nouveau ticket pour identifier rapidement les spécifications, plans ou rétrospectives pertinents.
Lorsque vous savez déjà exactement quel document est nécessaire, ou que le projet ne contient pas de documentation markdown avec en-tête.
Analyse de sécurité
SûrThe skill runs a bash script that scans local documentation files, extracts YAML frontmatter, and outputs structured information. It does not involve any network calls, destructive actions, or exfiltration. The script is read-only and non-invasive. No security concerns.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Run the doc-indexer to get an overview of all available documentation in the docs/ folder.Scan documentation to find all approved specs that are ready for implementation.Scan the docs/ directory and list any markdown files missing YAML frontmatter.name: doc-indexer description: Use this skill at the beginning of any session or when needing to understand available project documentation. Provides just-in-time context by scanning YAML frontmatter from all markdown files in the docs/ directory without loading full content.
Document Indexer Skill
Purpose
Provide just-in-time context about available project documentation without loading full file content into the context window. The doc-indexer scans all markdown files in the docs/ directory, extracts their YAML frontmatter metadata, and returns a structured map of available documentation. This enables efficient discovery of specs, plans, retrospectives, and other documentation while minimizing token usage.
When to Use
Use this skill in the following situations:
- At the beginning of any work session to understand the current state of documentation
- When starting work on a new issue to identify relevant specs and context
- Before proposing changes to understand existing specifications
- When planning a sprint to review available approved specs
- Anytime you need an overview of project documentation without reading full files
Prerequisites
- The project must have a
docs/directory - Documentation files should follow the convention of including YAML frontmatter
- The
jqtool is NOT required (script works without it)
Workflow
Step 1: Run the Documentation Scanner
Execute the helper script to scan all markdown files in the docs/ directory:
bash scripts/scan-docs.sh
This will output a human-readable summary showing each document's frontmatter metadata.
For machine-readable JSON output (useful for programmatic processing):
bash scripts/scan-docs.sh -j
Step 2: Review the Documentation Map
The scanner returns information about all markdown files found in docs/, including:
- File path: Location of the documentation file
- Frontmatter metadata: Key-value pairs from YAML frontmatter (title, status, type, etc.)
- Compliance warnings: Files missing YAML frontmatter are flagged
Example human-readable output:
---
file: docs/specs/001-synthesis-flow.md
title: SynthesisFlow Methodology
status: approved
type: spec
---
file: docs/changes/my-feature/proposal.md
title: My Feature Proposal
status: in-review
type: proposal
[WARNING] Non-compliant file (no frontmatter): docs/README.md
Example JSON output:
[
{
"file": "docs/specs/001-synthesis-flow.md",
"compliant": true,
"frontmatter": {
"title": "SynthesisFlow Methodology",
"status": "approved",
"type": "spec"
}
},
{
"file": "docs/README.md",
"compliant": false,
"frontmatter": null
}
]
Step 3: Use the Map to Identify Relevant Documentation
Based on the documentation map, identify which specific files to read for your current task:
- For implementation work: Look for approved specs related to your issue
- For spec proposals: Review existing specs to understand the current state
- For sprint planning: Identify approved specs ready for implementation
- For learning context: Find retrospectives and design docs
Step 4: Read Specific Documentation Files
Once you've identified relevant files from the map, use the Read tool to load their full content:
# Example: Read a specific spec identified from the map
Read docs/specs/001-synthesis-flow.md
This two-step approach (scan first, then read selectively) minimizes token usage while ensuring you have access to all necessary context.
Error Handling
No docs/ Directory
Symptom: Script reports "No such file or directory"
Solution:
- Verify you're in the project root directory
- Check if the project has been initialized with
project-initskill - Create
docs/directory structure if needed
Files Missing Frontmatter
Symptom: Script outputs "[WARNING] Non-compliant file (no frontmatter): ..."
Impact: These files won't have structured metadata in the output
Solution:
- Add YAML frontmatter to documentation files for better discoverability
- Frontmatter should be at the top of the file between
---markers - Example format:
--- title: My Document status: draft type: design --- # Document content starts here
Script Permission Errors
Symptom: "Permission denied" when running the script
Solution:
chmod +x scripts/scan-docs.sh
Output Interpretation Guide
Frontmatter Fields
Common frontmatter fields you'll encounter:
- title: Human-readable document title
- status: Document state (draft, in-review, approved, archived)
- type: Document category (spec, proposal, design, retrospective, plan)
- epic: Associated epic issue number
- sprint: Sprint identifier
- author: Document author
- created: Creation date
- updated: Last update date
Using JSON Output Programmatically
The JSON output mode is particularly useful when:
- Filtering documents by specific criteria (e.g., only approved specs)
- Counting documents by type or status
- Building automated workflows
- Integrating with other tools
Example using jq to filter approved specs:
bash scripts/scan-docs.sh -j | jq '.[] | select(.frontmatter.status == "approved")'
Notes
- The scanner is non-invasive and read-only - it never modifies files
- Large projects with many docs benefit most from this just-in-time approach
- The script scans recursively through all subdirectories in
docs/ - Empty frontmatter sections are treated as non-compliant
- The scan is fast and can be run frequently without performance concerns
- Consider running this at the start of each work session to stay current with documentation changes
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/document-indexer-mrwak9oq/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/document-indexer-mrwak9oq' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/document-indexer-mrwak9oq/download' --output '.skill-downloads/document-indexer-mrwak9oq/SKILL.md.part' && mv '.skill-downloads/document-indexer-mrwak9oq/SKILL.md.part' '.skill-downloads/document-indexer-mrwak9oq/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
- The project must have a
docs/directory - Documentation files should follow the convention of including YAML frontmatter
- The
jqtool is NOT required (script works without it)
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/document-indexer-mrwak9oq/SKILL.md' && test -s '.skill-downloads/document-indexer-mrwak9oq/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/doc-indexer' && cp -R '.skill-downloads/document-indexer-mrwak9oq' '.claude/skills/doc-indexer'Cursor
test -f '.skill-downloads/document-indexer-mrwak9oq/SKILL.md' && test -s '.skill-downloads/document-indexer-mrwak9oq/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/doc-indexer' && cp -R '.skill-downloads/document-indexer-mrwak9oq' '.cursor/skills/doc-indexer'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/document-indexer-mrwak9oq'openskills read 'document-indexer-mrwak9oq'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/document-indexer-mrwak9oq/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.
Rédaction de docs Supabase
Documentation
Rédigez, éditez et révisez le contenu de la documentation Supabase : guides, tutoriels, références et partiels. Suivez les guides de style et les règles de validation MDX/TOML.
Créer un enregistrement de décision d'architecture
Documentation
Créer un nouveau ADR avec numérotation séquentielle, l'enregistrer dans le graphe AgentDB et le lier aux ADR associés.
Mise à jour de plan avec recherche approfondie
Documentation
Met à jour un document de plan en lançant des sous-agents en parallèle pour analyser un sujet sur tous les passes du compilateur, puis consolide les résultats.