agentleFS
Eleven-MEleven-M/flowmind/skills/api-sync/SKILL.md

api-sync

Skill1 starsChanged 3 months agoMITView on GitHub

API documentation synchronization skill for FlowMind. Sync API definitions, generate documentation, and maintain API consistency.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create OpenAPI/Swagger specs

    line 18
  2. Distinctive:

    Only syncs changed endpoints.

    line 169

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

API Sync Skill

Sync API definitions, generate documentation, and maintain API consistency.

Features

📚 Documentation Generation

  • Generate from code annotations
  • Create OpenAPI/Swagger specs
  • Generate Markdown docs
  • Create client SDKs

🔄 Synchronization

  • Sync to API platforms
  • Update documentation
  • Version management
  • Change tracking

✅ Validation

  • Schema validation
  • Breaking change detection
  • Backward compatibility
  • Style guide compliance

Trigger Patterns

"API文档", "API documentation", "API docs"
"接口同步", "sync API", "接口文档"
"Swagger", "OpenAPI"
"API管理", "API management"

Output Format

┌─────────────────────────────────────────────────────┐
│ API Sync Report                                     │
├─────────────────────────────────────────────────────┤
│ Platform: {platform}                                │
│ Project: {project}                                  │
├─────────────────────────────────────────────────────┤
│ Endpoints: {count}                                  │
│ • Added: {added}                                    │
│ • Updated: {updated}                                │
│ • Deleted: {deleted}                                │
├─────────────────────────────────────────────────────┤
│ Status: ✓ Synced Successfully                       │
│ URL: {docs_url}                                     │
└─────────────────────────────────────────────────────┘

Supported Platforms

PlatformStatusFeatures
YApi✅Full support
Swagger Hub✅Full support
Postman✅Collections
Stoplight🚧Coming soon
ReadMe🚧Coming soon

Learning Integration

This skill supports FlowMind learning:

  • Platform: Learns preferred API platform
  • Format: Learns preferred doc format
  • Sync Rules: Learns what to sync
User: "同步到 YApi"
FlowMind: ✓ Learned: Sync APIs to YApi

User: [Next sync]
FlowMind: [Syncs to YApi automatically]

Examples

Example 1: Generate API Docs

User: 生成这个 Controller 的 API 文档

FlowMind:
┌─────────────────────────────────────────────────────┐
│ API Documentation Generated                         │
├─────────────────────────────────────────────────────┤
│ Source: src/controllers/UserController.java         │
│ Endpoints: 5                                        │
├─────────────────────────────────────────────────────┤
│ GET    /api/users          - List users             │
│ GET    /api/users/{id}     - Get user               │
│ POST   /api/users          - Create user            │
│ PUT    /api/users/{id}     - Update user            │
│ DELETE /api/users/{id}     - Delete user            │
├─────────────────────────────────────────────────────┤
│ Output: docs/api/users.md                           │
└─────────────────────────────────────────────────────┘

Example 2: Sync to Platform

User: 同步接口到 YApi

FlowMind:
┌─────────────────────────────────────────────────────┐
│ API Sync Complete                                   │
├─────────────────────────────────────────────────────┤
│ Platform: YApi                                      │
│ Project: My Project                                 │
├─────────────────────────────────────────────────────┤
│ Synced:                                             │
│ • Added: 2 endpoints                                │
│ • Updated: 3 endpoints                              │
│ • Unchanged: 10 endpoints                           │
├─────────────────────────────────────────────────────┤
│ View at: http://yapi.example.com/project/123        │
└─────────────────────────────────────────────────────┘

Configuration

{
  "api-sync": {
    "platform": "yapi",
    "connection": {
      "host": "http://yapi.example.com",
      "projectId": "123",
      "token": "your-token"
    },
    "options": {
      "autoSync": true,
      "generateDocs": true,
      "validateSchema": true
    }
  }
}

Sync Modes

Full Sync

flowmind api-sync --full

Syncs all endpoints, overwriting remote changes.

Incremental Sync

flowmind api-sync --incremental

Only syncs changed endpoints.

Dry Run

flowmind api-sync --dry-run

Shows what would be synced without making changes.

Custom Templates

Markdown Template

{
  "api-sync": {
    "templates": {
      "markdown": "templates/api-doc.md"
    }
  }
}

OpenAPI Template

{
  "api-sync": {
    "templates": {
      "openapi": "templates/openapi.yaml"
    }
  }
}

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.