CRUD operations for knowledge base docs — add, delete, update metadata, embed. Requires GNOSIS_MCP_WRITABLE=true.
Add this skill
npx mdskills install nicholasglazer/manageComprehensive CRUD operations for knowledge base management with clear tool invocations and metadata handling
1---2name: manage3description: CRUD operations for knowledge base docs — add, delete, update metadata, embed. Requires GNOSIS_MCP_WRITABLE=true.4disable-model-invocation: true5---67# Documentation Manager89CRUD operations for your knowledge base via Gnosis MCP.1011## Usage12```13/gnosis:manage add path/to/doc.md # Index a document14/gnosis:manage delete path/to/doc.md # Remove a document15/gnosis:manage update path/to/doc.md --tags api,auth # Update metadata16/gnosis:manage embed path/to/docs/ # Bulk embed a directory17/gnosis:manage search-related path/to/doc.md # Find related docs18```1920## Action: $ARGUMENTS2122---2324## `add` — Index a Document25261. **Read the file** from the provided path272. **Extract metadata**: title (first H1), category (from frontmatter or directory)283. **Upsert to Gnosis**:2930```31Tool: mcp__gnosis__upsert_doc32Arguments:33 path: "{relative_path}"34 content: "{file_content}"35 title: "{extracted_title}"36 category: "{category}"37 tags: ["{tag1}", "{tag2}"]38```39404. **Verify** the doc is retrievable:41```42Tool: mcp__gnosis__get_doc43Arguments:44 path: "{relative_path}"45```46475. **Report** path, title, chunk count.4849---5051## `delete` — Remove a Document52531. **Delete from Gnosis**:54```55Tool: mcp__gnosis__delete_doc56Arguments:57 path: "{relative_path}"58```59602. **Verify** deletion (get_doc should return empty).613. **Report** what was removed.6263---6465## `update` — Update Metadata66671. **Parse flags**: `--title`, `--category`, `--tags`, `--audience`682. **Update via Gnosis**:6970```71Tool: mcp__gnosis__update_metadata72Arguments:73 path: "{relative_path}"74 title: "{new_title}"75 category: "{new_category}"76 tags: ["{tag1}", "{tag2}"]77```78793. **Report** updated fields.8081---8283## `embed` — Bulk Embed Directory8485Index all markdown files in a directory:86871. **List markdown files** in the target path882. **For each file**, read and upsert:89```90Tool: mcp__gnosis__upsert_doc91Arguments:92 path: "{relative_path}"93 content: "{file_content}"94 title: "{title}"95 category: "{category}"96```973. **Report** total files processed and chunk counts.9899---100101## `search-related` — Find Related Documents1021031. **Query the link graph**:104```105Tool: mcp__gnosis__get_related106Arguments:107 path: "{relative_path}"108```1091102. **Format results** as a list of related docs with relationship types.111112## Notes113114- All write operations require `GNOSIS_MCP_WRITABLE=true`115- Gnosis auto-chunks documents at H2 boundaries (~4000 chars per chunk)116- Content hashing prevents re-indexing unchanged files during bulk embed117- Frontmatter (title, category, audience, tags) is extracted automatically118
Full transparency — inspect the skill content before installing.