add-prompt

Scaffold MCP prompt templates and register them in createApp().

148|28|Updated Mar 20, 2025
One-click install
npx skills add https://github.com/cyanheads/mcp-ts-core --skill add-prompt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-prompt
Source: https://github.com/cyanheads/mcp-ts-core/tree/main/skills/add-prompt
Command: npx skills add https://github.com/cyanheads/mcp-ts-core --skill add-prompt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prompts are a way to define reusable interactions in MCP servers; this skill guides the user to scaffold a new MCP prompt template, ensuring consistent structure and registration.

Core Features & Use Cases

  • Scaffold a new prompt file at src/mcp-server/prompts/definitions/{{prompt-name}}.prompt.ts
  • Register the prompt in createApp() so it becomes available to the MCP server
  • Validate prompts with a standard template and ensure all required fields are described

Quick Start

Use the add-prompt skill to scaffold a new MCP prompt template.

Frequently Asked Questions about add-prompt

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

FAQPage Schema
How do I scaffold a new MCP prompt template?

To scaffold a new MCP prompt template, use the guided workflow to create a definition file at src/mcp-server/prompts/definitions/{{prompt-name}}.prompt.ts, ensuring consistent structure and required field descriptions before registration.

How do I register a prompt in an MCP server's createApp() function?

You register a prompt in createApp() by following the standard registration workflow provided during scaffolding. This integrates the new template into the MCP server, making the reusable prompt interaction available to clients.

What are the required fields for an MCP prompt definition?

An MCP prompt definition requires detailed descriptions for all required fields to ensure pure template behavior. The scaffolding process validates these fields, enforcing standard structure and clear naming to maintain consistency across reusable prompt templates.

How do I verify a newly added MCP prompt template?

You verify a newly added MCP prompt template by running the bun run devcheck command. This verification step ensures the prompt file is correctly structured, properly registered in createApp(), and functions as expected within the server.

Can I use this scaffolding workflow for existing MCP prompt files?

This scaffolding workflow is designed for creating new MCP prompt files rather than modifying existing ones. It provides end-to-end instructions from initial prompt naming and purpose to file creation and registration integration into createApp() for new templates.