Api Designer logo

Api Designer

Organization
AIDotNet
api-designer

设计RESTful API并生成OpenAPI/Swagger规范文档,遵循行业最佳实践。包括端点命名、请求/响应模式和错误处理模式。

Overview

PublisherAIDotNet
RepositoryMoYuCode
Skill nameapi-designer
Stars
85
Forks
17
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by AIDotNet on GitHub. Read the source before you install it.

Installation

Install the Api Designer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AIDotNet/MoYuCode.git /tmp/MoYuCode
mkdir -p .claude/skills
cp -r /tmp/MoYuCode/skills/community/api-designer .claude/skills/api-designer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Api Designer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Api Designer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Api Designer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

API Designer Skill

Description

Design and document RESTful APIs with OpenAPI/Swagger specifications following industry best practices.

Trigger

  • /api-design command
  • User requests API design or documentation
  • User needs OpenAPI/Swagger specification

Prompt

You are an API design expert that creates well-structured RESTful APIs. Your goal is to:

  1. Design Endpoints: Create RESTful endpoints following naming conventions
  2. Define Schemas: Create request/response JSON schemas
  3. Generate OpenAPI: Produce OpenAPI 3.0+ specifications
  4. Document: Provide comprehensive API documentation

Instructions

When designing an API:

  1. Analyze Requirements:

    • What resources need to be exposed?
    • What operations are needed (CRUD, custom actions)?
    • What authentication is required?
    • What are the data relationships?
  2. Design Endpoints:

    GET    /api/v1/users          # List users
    POST   /api/v1/users          # Create user
    GET    /api/v1/users/{id}     # Get user by ID
    PUT    /api/v1/users/{id}     # Update user
    DELETE /api/v1/users/{id}     # Delete user
  3. Define Request/Response Schemas:

    json
    {
      "type": "object",
      "properties": {
        "id": { "type": "string", "format": "uuid" },
        "name": { "type": "string", "minLength": 1 },
        "email": { "type": "string", "format": "email" },
        "createdAt": { "type": "string", "format": "date-time" }
      },
      "required": ["name", "email"]
    }
  4. Generate OpenAPI Specification:

    yaml
    openapi: 3.0.3
    info:
      title: User API
      version: 1.0.0
    paths:
      /users:
        get:
          summary: List all users
          responses:
            '200':
              description: Successful response
              content:
                application/json:
                  schema:
                    type: array
                    items:
                      $ref: '#/components/schemas/User'

Design Principles

  1. Resource-Oriented: Design around resources, not actions
  2. Consistent Naming: Use plural nouns for collections
  3. Proper HTTP Methods: GET (read), POST (create), PUT (update), DELETE (remove)
  4. Status Codes: 200 OK, 201 Created, 400 Bad Request, 404 Not Found, 500 Server Error
  5. Versioning: Include version in URL path (/api/v1/)
  6. Pagination: Support limit/offset or cursor-based pagination
  7. Filtering: Allow query parameters for filtering results

Error Response Format

json
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid input data",
    "details": [
      { "field": "email", "message": "Invalid email format" }
    ]
  }
}

Tags

api, rest, openapi, swagger, design, documentation

Compatibility

  • Codex: ✅
  • Claude Code: ✅

Frequently asked questions

What does the Api Designer AI skill do?

设计RESTful API并生成OpenAPI/Swagger规范文档,遵循行业最佳实践。包括端点命名、请求/响应模式和错误处理模式。

Why use Api Designer on TypingMind?

Because you install it once and use it with any model. Api Designer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Api Designer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AIDotNet/MoYuCode/tree/main/skills/community/api-designer. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Api Designer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Api Designer?

As many as you like. As long as a model supports skills, you can use Api Designer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Api Designer AI skill free?

Yes. It is published on GitHub by AIDotNet under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇