document-editing

Create, read, update, and delete markdown documents via dedicated CLI action scripts.

Updated May 13, 2026
One-click install
npx skills add https://github.com/fred07diamond/Call-Copilot --skill document-editing-fred07diamond
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: document-editing
Source: https://github.com/fred07diamond/Call-Copilot/tree/main/apps/content/.agents/skills/document-editing
Command: npx skills add https://github.com/fred07diamond/Call-Copilot --skill document-editing-fred07diamond

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing a hierarchical markdown document store requires consistent, safe operations. This Skill provides structured scripts for all document CRUD operations, eliminating the risk of raw SQL errors and ensuring the UI stays in sync after every change. ## Core Features & Use Cases - Full Document CRUD: Create, read, update, and delete documents with title, markdown content, icons, and parent-child hierarchy via dedicated pnpm action scripts. - Surgical Editing: Use edit-document with search-and-replace for small changes instead of rewriting entire documents, saving tokens and reducing errors. - Tree Navigation & Search: List documents as a tree or search by title and content with snippets, then fetch full bodies only when needed. - Use Case: A user asks to fix a typo in their meeting notes. You run search-documents to find the page, edit-document --find "teh" --replace "the" to fix it, and refresh-list to update the sidebar. ## Quick Start Ask the agent to create a new document titled "Meeting Notes" with some markdown content and show the updated document tree.

Frequently Asked Questions about document-editing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I edit a document without rewriting the whole content?▼

Use the edit-document script with --find and --replace flags to perform surgical search-and-replace edits. It supports single edits, deletions by replacing with an empty string, and batch edits via a JSON array passed to --edits.

How do I create a nested sub-page in a document tree?▼

Pass the --parentId flag to the create-document script with the parent document's ID. Documents form a hierarchy through the parent_id column, and position determines ordering within the same parent.

Can I run raw SQL to modify documents directly?▼

No, raw db-exec SQL is explicitly prohibited for document operations. Always use the dedicated action scripts, which handle the schema correctly and keep related state consistent.

Why is the document list in the UI not updating after my changes?▼

The UI sidebar does not refresh automatically after script-based modifications. Run the refresh-list action after any create, update, or delete operation to trigger the UI to reload the document list.

What happens when I delete a document that has child pages?▼

The delete-document script removes the document and all of its children recursively. Since child documents reference their parent via parent_id, deleting a parent cascades through the entire subtree.