Assistant de gestion de connaissances IA

VérifiéPrudence

Gérez un vault de connaissances IA basé sur Obsidian avec les commandes /kb pour ajouter, trouver, traiter, compiler et organiser les entrées.

Spar Skills Guide Bot
ProductiviteIntermédiaire
23/07/2026
Claude Code
#knowledge-management#obsidian#markdown#research#note-taking

Recommandé pour

Synthèse automatique

Gère un coffre de connaissances Obsidian dans le dossier `knowledge/` en ingérant des URLs, des notes ou des fichiers en attente, puis en les normalisant en fiches indexées et en permettant la recherche.

Points forts

  • Décrit une chaîne d'ingestion complète : fichier pending avec frontmatter, fiche normalisée, mise à jour de `_index.md`, archivage de la source
  • Impose des garde-fous clairs : lecture de `_index.md` d'abord, réutilisation des tags et concepts existants, contenu original conservé sous `## 原始内容`
  • Prévoit des repli explicites via Defuddle CLI (installation, échec de récupération, contenu trop pauvre renvoyé vers `review/`)

Limites

  • La section `/kb add-video` est présente dans les déclencheurs mais son workflow n'est pas documenté dans ce fichier
  • Dépend d'outils externes : Defuddle CLI pour les URLs et un script Python `knowledge_ops.py` pour la recherche
  • Suppose une arborescence et des conventions préexistantes (frontmatter, `knowledge/concepts/`, `knowledge/reports/`, intitulés en chinois)
Quand l'utiliser

À utiliser lorsque vous tenez un vault de connaissances Obsidian et voulez transformer des articles ou notes brutes en fiches structurées et recherchables.

Quand l'éviter

À éviter si votre dépôt n'a pas déjà l'arborescence `knowledge/` avec un `_index.md`, ou si vous ne pouvez pas installer Defuddle ni exécuter les scripts Python associés.

Analyse de sécurité

Prudence
Score qualité85/100

The skill is a legitimate knowledge-management workflow for an Obsidian vault. It uses powerful tools such as shell commands, package installation, network fetching, API keys, and filesystem moves, but there is no destructive behavior, secret exfiltration, obfuscated payloads, or safety-disabling instruction. This warrants caution rather than risky.

Points d'attention
  • •Uses bash commands to install global npm/pip packages (`defuddle-cli`, `dashscope`), which introduces supply-chain and environment-modification risk.
  • •Handles an external API key for DashScope and reads local config or environment variables; legitimate but sensitive.
  • •Fetches remote URLs and writes/moves files within the repository, including inbox/processed/review directories.
  • •No allowed-tools are declared, so the agent may execute file, network, and shell operations without an explicit permission boundary.
Comment cette analyse est faite

Exemples

Add an article by URL
/kb add https://example.com/article-on-context-engineering
Search the vault
/kb find "context engineering" and summarize the key takeaways with suggested follow-up reading
Process the inbox
/kb process-pending — turn everything in knowledge/inbox/manual/pending/ into structured entries and update the index

name: kb description: Manage an Obsidian-based AI knowledge vault with /kb add/find/process-pending/compile/health/tidy/add-video.

/kb - AI Knowledge Vault

Manage the knowledge/ directory in this repository as a reusable AI knowledge vault.

Triggers

  • /kb process-pending
  • /kb add [content or URL]
  • /kb find [query]
  • /kb add-video [file-or-directory]
  • /kb compile
  • /kb health
  • /kb tidy

Guardrails

  • Do not scan every knowledge/*.md file by default; start from knowledge/_index.md
  • Store all knowledge entries under knowledge/
  • Keep the original source content in full under ## 原始内容
  • Reuse existing tags and concept names when possible
  • Prefer local config files for API keys; use environment variables as fallback
  • Treat knowledge/concepts/ as the primary navigation layer and knowledge/reports/ as reusable query output
  • /kb add and /kb process-pending use the same ingestion action: first produce a pending Markdown source with frontmatter, then create the normalized entry, update the index, and archive the source

Workflows

1) /kb process-pending

Process files in knowledge/inbox/manual/pending/ and turn them into structured entries.

Expected behavior:

  1. Read knowledge/_index.md first for existing tags and concepts
  2. For each pending Markdown file, extract metadata, summarize 1-3 key points, optionally add 我的思考
  3. Write a normalized entry to knowledge/YYYY-MM-DD-title.md
  4. Update knowledge/_index.md
  5. Move the source file to knowledge/inbox/manual/processed/ or review/ when uncertain

This workflow is handled directly by the agent, not by a Python CLI command.

2) /kb add

Add a single piece of knowledge from text, notes, or a URL.

Expected behavior:

  1. Detect source type
  2. If the input is a URL, prefer Defuddle CLI to fetch clean Markdown content instead of WebFetch:
defuddle parse "<URL>" --md -o "knowledge/inbox/manual/pending/YYYY-MM-DD-short-title.md"

If title or domain metadata is needed, use:

defuddle parse "<URL>" -p title
defuddle parse "<URL>" -p domain

The pending file must include frontmatter:

  • date
  • source
  • source_type
  • source_url
  • tags (can start as an empty list and be finalized during ingestion)
  • confidence: raw

Keep the full Defuddle Markdown output as the body without truncation. 3. If the input is pasted text or notes, also write it first to knowledge/inbox/manual/pending/YYYY-MM-DD-short-title.md with the same frontmatter and full original body 4. Process the new pending source using the same action as /kb process-pending:

  • Read knowledge/_index.md for existing tags, concepts, and recent entries
  • Summarize 1-3 key points with the current agent
  • Optionally add 我的思考
  • Choose tags by reusing existing names when possible
  • Choose related concepts from the index concept navigation
  • Write a normalized entry to knowledge/YYYY-MM-DD-title.md
  • Preserve the pending file body under ## 原始内容
  • Update knowledge/_index.md
  • Move the pending source to knowledge/inbox/manual/processed/
  1. Return the created entry path, tags, related concepts, and suggested links to existing entries

Fallbacks:

  • If defuddle is not installed, install it with npm install -g defuddle-cli
  • If Defuddle cannot fetch meaningful content, try another reader; if that still fails, keep a URL-only pending source with confidence: raw and move it to knowledge/inbox/manual/review/
  • If Defuddle output is too short, mostly navigation, or lacks substantive body content, do not ingest it directly; move it to review/

3) /kb find

Search the knowledge vault and optionally generate a reusable report.

Command:

python3 .claude/skills/kb/scripts/knowledge_ops.py find "context engineering"

Output should prioritize:

  • matching concepts
  • matching entries
  • key takeaways
  • suggested follow-up reading

4) /kb add-video

Transcribe local video or audio files, lightly clean the transcript, and create knowledge entries.

Prerequisites:

  • pip3 install dashscope
  • ffmpeg and ffprobe available on the machine
  • Copy .claude/skills/kb/config.example.json to .claude/skills/kb/config.local.json and fill in dashscope_api_key or set DASHSCOPE_API_KEY

Default input directory:

  • knowledge/inbox/video/raw/

Command:

python3 .claude/skills/kb/scripts/video_ingest.py [path]

Outputs:

  • knowledge/inbox/video/transcripts/*.raw.txt
  • knowledge/inbox/video/transcripts/*.clean.txt
  • knowledge/inbox/video/transcripts/*.meta.json
  • knowledge/inbox/video/logs/ingest.log
  • new knowledge entry files under knowledge/

Quality rules:

  • Only do light transcript cleanup
  • Do not invent facts
  • Leave 核心观点 blank for the current agent to fill in later

5) /kb compile

Compile timeline entries into concept pages, related links, index, and Bases view.

Command:

python3 .claude/skills/kb/scripts/knowledge_ops.py compile

6) /kb health

Generate a health report for isolated entries, concept gaps, stale raw files, and report coverage.

Command:

python3 .claude/skills/kb/scripts/knowledge_ops.py health

7) /kb tidy

Normalize tags and rebuild concepts, index, health report, and Bases view.

Command:

python3 .claude/skills/kb/scripts/knowledge_ops.py tidy

Troubleshooting

  • If find, compile, or health fail to locate the repo root, set KB_ROOT=/absolute/path/to/repo
  • If add-video fails, verify dashscope installation, API key config, and ffmpeg availability

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 annexes

Ce 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.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/ai-knowledge-vault-manager-mrx3xw8z/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/ai-knowledge-vault-manager-mrx3xw8z' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/ai-knowledge-vault-manager-mrx3xw8z/download' --output '.skill-downloads/ai-knowledge-vault-manager-mrx3xw8z/SKILL.md.part' && mv '.skill-downloads/ai-knowledge-vault-manager-mrx3xw8z/SKILL.md.part' '.skill-downloads/ai-knowledge-vault-manager-mrx3xw8z/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.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

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/ai-knowledge-vault-manager-mrx3xw8z/SKILL.md' && test -s '.skill-downloads/ai-knowledge-vault-manager-mrx3xw8z/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/kb' && cp -R '.skill-downloads/ai-knowledge-vault-manager-mrx3xw8z' '.claude/skills/kb'

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’OpenSkills
openskills install './.skill-downloads/ai-knowledge-vault-manager-mrx3xw8z'

openskills read 'ai-knowledge-vault-manager-mrx3xw8z'

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 sync

Mode 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/ai-knowledge-vault-manager-mrx3xw8z/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.

Skills similaires