mdplane-curl

📁 albri/mdplane 📅 10 days ago
2
总安装量
2
周安装量
#72992
全站排名
安装命令
npx skills add https://github.com/albri/mdplane --skill mdplane-curl

Agent 安装分布

amp 2
github-copilot 2
codex 2
kimi-cli 2
gemini-cli 2
opencode 2

Skill 文档

mdplane API via curl

Use this skill when the agent should call mdplane via HTTP directly (curl, CI jobs, scripts, SDK-free integrations).

Operating Rules

  1. OpenAPI and server behavior are the source of truth.
  2. Do not invent routes, request fields, query params, or response shapes.
  3. Respect auth boundaries:
    • Capability routes: /r/{key}, /a/{key}, /w/{key}
    • API key routes: /api/v1/*
    • Control/session routes: /workspaces/*, /api/auth/* (only when explicitly needed)
  4. Prefer least privilege and avoid write scope unless required.
  5. Never print capability URLs, API keys, or cookies in logs/output.

Standard Workflow

  1. Set target base URL (https://api.mdplane.dev, self-host, or local).
  2. Acquire or validate credentials (/bootstrap, /capabilities/check, existing env).
  3. Execute minimal-scope request sequence.
  4. Validate results and surface errors with status + API error code/message.
  5. Recommend key rotation if exposure is suspected.

Endpoint Surface

Use canonical endpoint maps here before writing requests:

  • ./references/endpoint-surface.md

Canonical References

  • ./references/canonical-links.md

Read these references when handling advanced folder ops, orchestration, realtime, webhooks, exports, or API-key control routes.

Safety Defaults

  • Prefer /a/{key} over /w/{key} for agents that only need to add work.
  • Use /w/{key} only for explicit mutate/recover/rotate workflows.
  • Treat root keys and API keys as high-sensitivity credentials.