integrate-context-matic

作者: github

Discovers and integrates third-party APIs using the context-matic MCP server. Uses `fetch_api` to find available API SDKs, `ask` for integration guidance,…

npx skills add https://github.com/github/awesome-copilot --skill integrate-context-matic

API Integration

When the user asks to integrate a third-party API or implement anything involving an external API or SDK, follow this workflow. Do not rely on your own knowledge for available APIs or their capabilities — always use the context-matic MCP server.

When to Apply

Apply this skill when the user:

  • Asks to integrate a third-party API
  • Wants to add a client or SDK for an external service
  • Requests implementation that depends on an external API
  • Mentions a specific API (e.g. PayPal, Twilio) and implementation or integration

Workflow

1. Ensure Guidelines and Skills Exist

1a. Detect the Project's Primary Language

Before checking for guidelines or skills, identify the project's primary programming language by inspecting the workspace:

File / PatternLanguage
*.csproj, *.slncsharp
package.json with "typescript" dep or .ts filestypescript
requirements.txt, pyproject.toml, *.pypython
go.mod, *.gogo
pom.xml, build.gradle, *.javajava
Gemfile, *.rbruby
composer.json, *.phpphp

Use the detected language in all subsequent steps wherever language is required.

1b. Check for Existing Guidelines and Skills

Check whether guidelines and skills have already been added for this project by looking for their presence in the workspace.

  • {language}-conventions is the skill produced by add_skills.
  • {language}-security-guidelines.md and {language}-test-guidelines.md are language-specific guideline files produced by add_guidelines.
  • update-activity-workflow.md is a workflow guideline file produced by add_guidelines (it is not language-specific).
  • Check these independently. Do not treat the presence of one set as proof that the other set already exists.
  • If any required guideline files for this project are missing: Call add_guidelines.
  • If {language}-conventions is missing for the project's language: Call add_skills.
  • If all required guideline files and {language}-conventions already exist: Skip this step and proceed to step 2.

2. Discover Available APIs

Call fetch_api to find available APIs — always start here.

  • Always provide the language parameter using the language detected in step 1a.
  • Always provide the key parameter: pass the API name/key from the user's request (e.g. "paypal", "twilio").
  • If the user did not provide an API name/key, ask them which API they want to integrate, then call fetch_api with that value.
  • The tool returns only the matching API on an exact match, or the full API catalog (name, description, and key) when there is no exact match.
  • Identify the API that matches the user's request based on the name and description.
  • Extract the correct key for the user's requested API before proceeding. This key will be used for all subsequent tool calls related to that API.

If the requested API is not in the list:

  • Inform the user that the API is not currently available in this plugin (context-matic) and stop.
  • Request guidance from user on how to proceed with the API's integration.

3. Get Integration Guidance

  • Provide ask with: language, key (from step 2), and your query.
  • Break complex questions into smaller focused queries for best results:
    • "How do I authenticate?"
    • "How do I create a payment?"
    • "What are the rate limits?"

4. Look Up SDK Models and Endpoints (as needed)

These tools return definitions only — they do not call APIs or generate code.

  • model_search — look up a model/object definition.
    • Provide: language, key, and an exact or partial case-sensitive model name as query (e.g. availableBalance, TransactionId).
  • endpoint_search — look up an endpoint method's details.
    • Provide: language, key, and an exact or partial case-sensitive method name as query (e.g. createUser, get_account_balance).

5. Record Milestones

Call update_activity (with the appropriate milestone) whenever one of these is concretely reached in code or infrastructure — not merely mentioned or planned:

MilestoneWhen to pass it
sdk_setupSDK package is installed in the project (e.g. npm install, pip install, go get has run and succeeded).
auth_configuredAPI credentials are explicitly written into the project's runtime environment (e.g. present in a .env file, secrets manager, or config file) and referenced in actual code.
first_call_madeFirst API call code written and executed
error_encounteredDeveloper reports a bug, error response, or failing call
error_resolvedFix applied and API call confirmed working

Checklist

  • Project's primary language detected (step 1a)
  • add_guidelines called if guideline files were missing, otherwise skipped
  • add_skills called if {language}-conventions was missing, otherwise skipped
  • fetch_api called with correct language and key (API name)
  • Correct key identified for the requested API (or user informed if not found)
  • update_activity called only when a milestone is concretely reached in code/infrastructure — never for questions, searches, or tool lookups
  • update_activity called with the appropriate milestone at each integration milestone
  • ask used for integration guidance and code samples
  • model_search / endpoint_search used as needed for SDK details
  • Project compiles after each code modification

Notes

  • API not found: If an API is missing from fetch_api, do not guess at SDK usage — inform the user that the API is not currently available in this plugin and stop.
  • update_activity and fetch_api: fetch_api is API discovery, not integration — do not call update_activity before it.

來自 github 的更多技能

console-rendering
github
在 Go 中使用基於結構體標籤的控制台渲染系統的說明
official
acquire-codebase-knowledge
github
當使用者明確要求對現有程式碼庫進行映射、文件化或入門引導時,使用此技能。觸發詞如「映射此程式碼庫」、「文件化…」等提示。
official
acreadiness-assess
github
Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps `npx github:microsoft/agentrc…
official
acreadiness-generate-instructions
github
透過 AgentRC 指令命令生成量身打造的 AI 代理指令檔案。產生 .github/copilot-instructions.md(預設,建議用於 VS Code 中的 Copilot…
official
acreadiness-policy
github
幫助使用者選取、撰寫或套用 AgentRC 政策。政策可透過停用不相關的檢查、覆寫影響/等級、設定…來自訂整備度評分。
official
add-educational-comments
github
為程式碼檔案添加教育性註解,將其轉化為有效的學習資源。根據三個可設定的知識層級(初學者、中級、進階)調整解釋深度與語氣。若未提供檔案,會自動請求提供,並以編號清單對應以便快速選取。僅透過教育性註解將檔案擴充最多125%(嚴格上限:400行新註解;超過1,000行的檔案上限為300行)。保留檔案編碼、縮排風格、語法正確性及……
official
adobe-illustrator-scripting
github
使用 ExtendScript (JavaScript/JSX) 編寫、除錯及最佳化 Adobe Illustrator 自動化腳本。適用於建立或修改操控…的腳本時。
official
agent-governance
github
宣告式政策、意圖分類與稽核軌跡,用於控制AI代理工具存取與行為。可組合的治理政策定義允許/封鎖的工具、內容過濾器、速率限制與核准要求——以配置而非程式碼形式儲存。語意意圖分類在工具執行前,透過基於模式的訊號偵測危險提示(資料外洩、權限提升、提示注入)。工具層級治理裝飾器在函式層級強制執行政策……
official