autosnippet-create

Submit module usage code to the AutoSnippet Dashboard as Recipes via draft files and MCP commands.

2|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/GxFn/AutoSnippet --skill autosnippet-create
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autosnippet-create
Source: https://github.com/GxFn/AutoSnippet/tree/main/skills/autosnippet-create
Command: npx skills add https://github.com/GxFn/AutoSnippet --skill autosnippet-create

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides the agent to submit module usage code (designed/written with Cursor) to the AutoSnippet web (Dashboard) so it is added to the knowledge base (Recipes). Use when the user or Cursor has finished writing usage code and wants to "提交到 web" or "加入知识库".

Core Features & Use Cases

  • Draft workflow: create a dedicated draft folder, one .md file per Recipe, multiple drafts allowed; call MCP autosnippet_submit_draft_recipes with file paths to submit as Candidates; delete the draft folder after submit.
  • Batch submission: when content is ready, use MCP autosnippet_submit_candidates for structured items (title, summary, trigger, language, code, usageGuide) or draft recipes for full MD blocks.
  • One Recipe per scenario: split complex usages into multiple Recipes; never combine multiple patterns into a single Recipe file.
  • Standard Recipe format: include frontmatter with title, trigger, category, language, summary, headers; ensure sections for Snippet / Code Reference and AI Context / Usage Guide are present.
  • Auto-fill context: leverage project-recipes-context.md to align headers and imports; use autosnippet_context_search to find similar patterns and reuse header formats.

Quick Start

  1. Ensure asd watch or asd ui is running.
  2. Write your content to a draft file (e.g. .autosnippet-drafts/RecipeX.md) or use // as:create to auto-add to Candidates.
  3. Use MCP autosnippet_submit_draft_recipes with the draft file paths to submit; or use autosnippet_submit_candidates for structured items.
  4. If you are submitting via the web, call autosnippet_open_create to open the Dashboard New Recipe page (or open http://localhost:3000/?action=create&source=clipboard).
  5. In the Dashboard, paste or confirm the full Recipe MD (frontmatter + sections) and Save to add the Recipe to AutoSnippet/recipes/.

Frequently Asked Questions about autosnippet-create

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

FAQPage Schema
How do I submit module usage code to the AutoSnippet knowledge base?

To submit module usage code to the AutoSnippet knowledge base, you write your content to a draft markdown file and use the MCP command autosnippet_submit_draft_recipes with the file paths to submit it as a Recipe candidate.

What is the standard frontmatter format for an AutoSnippet Recipe?

The standard Recipe format requires frontmatter containing title, trigger, category, language, and summary fields. The file must also include dedicated sections for Snippet Code Reference and AI Context Usage Guide.

Can I batch submit multiple code patterns into a single AutoSnippet Recipe?

No, you cannot batch submit multiple patterns into a single Recipe. You must split complex usages into multiple Recipes, ensuring one dedicated Recipe file per scenario before submission.

Do I need MCP tooling to publish drafts to the AutoSnippet Dashboard?

Yes, MCP tooling is required. You use commands like autosnippet_submit_draft_recipes for draft files or autosnippet_submit_candidates for structured items, alongside autosnippet_open_create to access the web Dashboard.

How do I align headers and imports when creating a Recipe draft?

You align headers and imports by leveraging the project-recipes-context.md file and using the autosnippet_context_search MCP command to find similar patterns and reuse existing header formats.

What steps are needed to publish a Recipe via the AutoSnippet web Dashboard?

Ensure asd watch or asd ui is running, call autosnippet_open_create to launch the Dashboard New Recipe page, paste or confirm the full Recipe markdown, and click Save to add it to AutoSnippet/recipes/.