Awesome-copilot integrate-context-matic
Discovers and integrates third-party APIs using the context-matic MCP server. Uses `fetch_api` to find available API SDKs, `ask` for integration guidance, `model_search` and `endpoint_search` for SDK details. Use when the user asks to integrate a third-party API, add an API client, implement features with an external API, or work with any third-party API or SDK.
git clone https://github.com/github/awesome-copilot
T=$(mktemp -d) && git clone --depth=1 https://github.com/github/awesome-copilot "$T" && mkdir -p ~/.claude/skills && cp -r "$T/plugins/context-matic/skills/integrate-context-matic" ~/.claude/skills/github-awesome-copilot-integrate-context-matic && rm -rf "$T"
plugins/context-matic/skills/integrate-context-matic/SKILL.mdAPI 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 / Pattern | Language |
|---|---|
, | |
with dep or files | |
, , | |
, | |
, , | |
, | |
, | |
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.
is the skill produced by add_skills.{language}-conventions
and{language}-security-guidelines.md
are language-specific guideline files produced by add_guidelines.{language}-test-guidelines.md
is a workflow guideline file produced by add_guidelines (it is not language-specific).update-activity-workflow.md- 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
is missing for the project's language: Call add_skills.{language}-conventions - If all required guideline files and
already exist: Skip this step and proceed to step 2.{language}-conventions
2. Discover Available APIs
Call fetch_api to find available APIs — always start here.
- Always provide the
parameter using the language detected in step 1a.language - Always provide the
parameter: pass the API name/key from the user's request (e.g.key
,"paypal"
)."twilio" - If the user did not provide an API name/key, ask them which API they want to integrate, then call
with that value.fetch_api - The tool returns only the matching API on an exact match, or the full API catalog (name, description, and
) when there is no exact match.key - Identify the API that matches the user's request based on the name and description.
- Extract the correct
for the user's requested API before proceeding. This key will be used for all subsequent tool calls related to that API.key
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
with:ask
,language
(from step 2), and yourkey
.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
, and an exact or partial case-sensitive model name askey
(e.g.query
,availableBalance
).TransactionId
- Provide:
- endpoint_search — look up an endpoint method's details.
- Provide:
,language
, and an exact or partial case-sensitive method name askey
(e.g.query
,createUser
).get_account_balance
- Provide:
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:
| Milestone | When to pass it |
|---|---|
| SDK package is installed in the project (e.g. , , has run and succeeded). |
| API credentials are explicitly written into the project's runtime environment (e.g. present in a file, secrets manager, or config file) and referenced in actual code. |
| First API call code written and executed |
| Developer reports a bug, error response, or failing call |
| Fix applied and API call confirmed working |
Checklist
- Project's primary language detected (step 1a)
-
called if guideline files were missing, otherwise skippedadd_guidelines -
called ifadd_skills
was missing, otherwise skipped{language}-conventions -
called with correctfetch_api
andlanguage
(API name)key - Correct
identified for the requested API (or user informed if not found)key -
called only when a milestone is concretely reached in code/infrastructure — never for questions, searches, or tool lookupsupdate_activity -
called with the appropriateupdate_activity
at each integration milestonemilestone -
used for integration guidance and code samplesask -
/model_search
used as needed for SDK detailsendpoint_search - Project compiles after each code modification
Notes
- API not found: If an API is missing from
, do not guess at SDK usage — inform the user that the API is not currently available in this plugin and stop.fetch_api - update_activity and fetch_api:
is API discovery, not integration — do not callfetch_api
before it.update_activity