Automate the process of importing skills from the MyAider MCP server into agent skills. This skill retrieves available skills, lets the user choose which ones to import, and creates proper skill files for each using existing skill-creator skill.
Note on naming convention: MCP tool identifiers follow the format mcp__. The server name is whatever the user chose when configuring the MCP — it may not be myaider. Always discover the actual name rather than assuming it.
The MyAider MCP server exposes a distinctively named tool called get_myaider_skills. Because this name is unique to MyAider, searching for it avoids conflicts with other MCP servers.
Search your available tools for any tool whose name is get_myaider_skills. Use whatever tool-discovery mechanism your agent supports (e.g., listing available tools, searching by name). The full tool identifier will be in the form mcp__.
Extract the server name from the middle segment and store it as {SERVER_NAME}. Use mcp__{SERVER_NAME}__get_myaider_skills (and mcp__{SERVER_NAME}__get_myaider_skill_updates) for all subsequent calls.
{SERVER_NAME} from the tool identifier, proceed silently to Step 1.
> The MyAider MCP server doesn't appear to be configured. To use this skill, you need to set up the MyAider MCP server first.
>
> Setup Instructions:
> 1. Go to https://www.myaider.ai/mcp
> 2. Follow the instructions to configure the MyAider MCP server for your agent
> 3. Once configured, come back and ask me to import your MyAider skills
Do NOT proceed until the user confirms MyAider is configured.
{SERVER_NAME}.
Check if skill-creator skill is available; if not, ask the user to install skill-creator.
Call mcp__{SERVER_NAME}__get_myaider_skills (using the server name discovered in Step 0) with an empty object {} to retrieve all available skills from MyAider.
Present the list of skills to the user with their descriptions. Ask them to choose:
Wait for user confirmation before proceeding.
For each skill the user wants to import:
YOU MUST create the skill automatically instead of ask user to do it manually. YOU MUST use the Skill tool to invoke skill-creator:skill-creator with this template:
```
Create a new skill called "[skill-name]" based on the following specification:
## Skill Name
[skill-name]
## Description
[description - make it comprehensive with triggering guidance]
## Metadata
Add the following fields to the skill's YAML frontmatter (in addition to name and description):
## Usage Instructions
[full usage instructions from the myaider skill]
## Tools (MCP {SERVER_NAME})
This skill uses the following MCP tools from {SERVER_NAME}. Include the full tool descriptions and parameter schemas BELOW to optimize token usage - the skill should NOT rely on the MCP protocol to get tool descriptions:
### [tool-name-1]
[full tool description from get_myaider_skills result]
Parameters:
[parameter schema - include all parameters with their types, required/optional status, and descriptions]
### [tool-name-2]
[full tool description from get_myaider_skills result]
Parameters:
[parameter schema - include all parameters with their types, required/optional status, and descriptions]
```
Critical: The extracted tool descriptions and schemas must be included directly in the skill to avoid MCP protocol overhead. This optimizes token usage by enabling the skill to function without calling the MCP protocol for tool introspection.
After all selected skills are created, provide a summary:
Trigger this workflow when the user asks to upgrade, update, or sync their MyAider skills.
Same as the main Step 0. Search for get_myaider_skills to find {SERVER_NAME}. If MCP is not configured, show setup instructions and stop.
Call mcp__{SERVER_NAME}__get_myaider_skill_updates with an empty object {}. This returns the latest skill definitions with their updated_at timestamps.
Find all locally installed skills that have source: myaider in their YAML frontmatter. For each, read the updated_at value. Build a map of skill-name → local updated_at.
For each skill returned in Upgrade Step 1:
updated_at is newer than local → mark for upgrade
updated_at is same or older → skip (already up to date)
Present the classification to the user (what will be upgraded, what is new, what is already current) and ask for confirmation before proceeding.
For each skill marked for upgrade, invoke skill-creator:skill-creator with the full updated specification (same template as the main Step 3, including refreshed updated_at and tool schemas). skill-creator will overwrite the existing skill file.
For each skill marked for new install, invoke skill-creator:skill-creator exactly as in the main Step 3 (import workflow).
Provide a final report:
updated_at)
get_myaider_skills first (Step 0) — do NOT hardcode myaider or any other name
get_myaider_skills after confirming MCP is configured — do NOT guess what skills are available
get_myaider_skills — this is critical to optimize token usage. The created skill should work without needing MCP protocol tool introspection
{SERVER_NAME} consistently for all MCP tool calls and in generated skill files
source: myaider and updated_at in the YAML frontmatter of every created or upgraded skill — these fields are required for the upgrade workflow
共 2 个版本