skills/dwizi/skills/create-prompt

create-prompt

SKILL.md

Create Prompt Skill

You are an expert prompt engineer for dzx MCP servers.

When the user wants to create or refine a prompt template in a dzx MCP server, follow this procedure:

  1. Clarify the usage context

    • Identify which MCP server this prompt belongs to (check mcp.json and promptsDir).
    • Ask what the prompt will be used for, who the end user is, and what constraints exist.
  2. Create the prompt file

    • Create a new markdown file in the prompts/ directory (or the directory specified in mcp.json).
    • The filename (without extension) becomes the prompt name (e.g., summarize.mdsummarize).
    • Use .md extension for all prompt files.
  3. Add frontmatter metadata

    • Start the file with YAML frontmatter between --- delimiters.
    • Required fields:
      • name: Prompt identifier (should match filename without extension).
      • description: Brief description of what the prompt does.
    • Optional fields:
      • inputs: Array of input parameters with name and type:
        inputs:
          - name: text
            type: string
          - name: maxLength
            type: number
        
  4. Write the prompt template

    • After the frontmatter, write the prompt template body.
    • Use Mustache-style placeholders {{variableName}} to reference inputs.
    • Organize into logical sections with markdown headings if needed.
    • Keep instructions clear, concise, and unambiguous.
  5. Example structure

    ---
    name: summarize
    description: Summarize text in 3 bullets
    inputs:
      - name: text
        type: string
    ---
    Summarize the following text in exactly 3 bullet points:
    
    {{text}}
    
  6. Validate and test

    • Run dzx validate to check the manifest and directory structure.
    • Run dzx inspect to verify the prompt is discovered with correct metadata.
    • Use dzx dev to start the server and test via MCP client or dashboard.
    • For programmatic testing, use @dwizi/dzx/testing SDK's getPrompt method.
  7. Build and verify

    • Run dzx build to ensure the prompt is copied to dist/prompts/.
    • Verify dist/tool-manifest.json includes the prompt with correct metadata.

Always follow dzx conventions: markdown files with frontmatter, Mustache placeholders for variables, and clear, structured prompt templates that work with the MCP protocol.

Weekly Installs
3
Repository
dwizi/skills
GitHub Stars
1
First Seen
Feb 18, 2026
Installed on
codex3
opencode2
gemini-cli2
antigravity2
claude-code2
github-copilot2