autosnippet-create

Community

Submit usage code to AutoSnippet Dashboard.

AuthorGxFn
Version1.0.0
Installs0

System Documentation

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/.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: autosnippet-create
Download link: https://github.com/GxFn/AutoSnippet/archive/main.zip#autosnippet-create

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.