一键导入
generate-doclific-mdx
Write MDX documentation for Doclific. Finds documents by title and writes to content.mdx with CodebaseSnippet and ERD components.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write MDX documentation for Doclific. Finds documents by title and writes to content.mdx with CodebaseSnippet and ERD components.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate MDX for HttpRequest components. Use when creating API request documentation in Doclific that allows users to make live HTTP requests.
Create a new Doclific document. Navigates the doclific directory structure, selects an appropriate icon, and creates the document using insert-doc.js.
Generate JSON for ERD (Entity Relationship Diagram) components. Use when creating database schema diagrams in Doclific documentation.
| name | generate-doclific-mdx |
| description | Write MDX documentation for Doclific. Finds documents by title and writes to content.mdx with CodebaseSnippet and ERD components. |
This skill helps you write MDX documentation for the Doclific documentation system.
When the user asks you to write documentation for a specific document:
Find the document: Search through the nested directories in the doclific/ folder to find a config.json file where the "title" field matches the document name the user provided.
Locate the content file: Once found, the documentation should be written to the content.mdx file in the same directory as the config.json.
Write the documentation: Create well-structured documentation using:
Embeds a code snippet from the project's codebase with syntax highlighting.
<CodebaseSnippet filePath="path/to/file.ts" lineStart="1" lineEnd="50">
</CodebaseSnippet>
Attributes:
filePath (required): Path to the file relative to the project rootlineStart (optional): Starting line number to displaylineEnd (optional): Ending line number to displayUse this to reference actual code from the repository in your documentation.
Creates an interactive entity relationship diagram for database schemas.
<ERD tables='[...]' relationships='[...]'>
</ERD>
For generating ERD JSON, use the separate skill: generate-doclific-erd-json
That skill provides detailed instructions for creating the tables and relationships JSON attributes.
Creates an interactive HTTP request builder that allows users to make live API requests directly from the documentation.
<HttpRequest method="GET" url="https://api.example.com/users" headers="[...]" queryParams="[...]" bodyType="none" bodyContent="" formData="[]" auth="{...}">
</HttpRequest>
For generating HttpRequest components, use the separate skill: generate-doclific-http-request
That skill provides a script that takes a simple JSON input and outputs the properly formatted MDX component.
See the example.mdx file in this directory for a reference of how to use these components.
doclific/ recursively for config.json filestitle matches the user's inputcontent.mdx in that same directorygenerate-doclific-erd-json skill to create the JSON