agentleFS
sdhilip200sdhilip200/api-warehouse/skills/connect/SKILL.md

connect

Skill0 starsChanged 5 months agoMITView on GitHub

Use whenever the user wants to connect to an API, authenticate against an API, set up an API key safely, test or verify credentials, check whether an API is reachable, or prove connectivity before building a pipeline — even if they don't use the word "connect". Trigger contexts include: "set up auth", "configure my API key", "does my token work", "test my credentials", "can I reach this endpoint", or any request to confirm reachability before landing data.

  • Reads credentials

71 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use connect-apps, skill-share and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ArogyaReddySkill

    connect-apps

    Connect Claude to external apps like Gmail, Slack, GitHub. Use this skill when the user wants to send emails, create issues, post messages, or take actions in external services.

    Also in 22 projects that use this

  • ArogyaReddySkill

    skill-share

    A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.

    Also in 20 projects that use this

  • MosoFinSkill

    list-tools

    Show which MosoFin API operations are available for a connected datasource and their policy (maps to the get_datasource_tools MCP tool). Use when the user asks what data can be pulled, which financial data operations exist, or whether an operation is allowed.

    Also in 3 projects that use this

  • MosoFinSkill

    query-workspace

    Query MosoFin workspace business data (accounting platforms and other connected SaaS). Use when the user asks for P&L, invoices, cash, customers, or any live books data, or mentions MosoFin, a client workspace, or reconnecting a data source.

    Also in 3 projects that use this

  • ComposioHQSkill

    agent-deep-links

    Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

    Also in 3 projects that use this

  • ComposioHQSkill

    helium-mcp

    Search real-time news with bias scoring, get live stock/ETF/crypto data with AI analysis, ML options pricing, balanced news synthesis, and meme search via the Helium MCP server.

    Also in 3 projects that use this

  • +3 more from ArogyaReddy
  • +1 more from MosoFin
  • +1 more from ComposioHQ

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 4 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 63 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before touching any credentials, read references/security.md and follow every rule in it.

    line 23
  2. Distinctive:

    Never paste a real secret into the chat or into source code.

    line 26
  3. Distinctive:

    Never print, log, or store secret values.

    line 27
  4. Very specific:

    Check the API's documentation (or inspect an existing endpoint spec if one exists) to identify which auth pattern applies.

    line 35
  5. Distinctive:

    Do not ask the user to paste their secret into the chat.

    line 54
  6. Distinctive:

    Run any pipeline commands in the same shell session.

    line 65
  7. Very specific:

    Create or edit .dlt/secrets.toml in the project root (already in .gitignore):

    line 69
  8. Very specific:

    When writing the outcome summary, follow ../../references/anti-slop.md: use concrete values (status codes, header names, env-var names), …

    line 114
  9. Very specific:

    After reporting the result, run the self-grading loop described in ../../references/running-evals.md using the checklist in EVALS.md.

    line 137
  10. Very specific:

    If the smoke test revealed any auth behavior not covered by the standard patterns (unusual header name, token prefix, encoding requirement, …

    line 147

“Common” is measured: kept by at least 6 in 10 of the 63 edited versions of this file we could read. “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

connect — Secure Auth Setup and Smoke Test

This skill establishes a working, env-var-based credential for an API and confirms the connection with a single minimal authenticated request. Later skills (assess, land, validate) assume this step is complete.


Step 1 — Read the Security Policy

Before touching any credentials, read references/security.md and follow every rule in it. The key constraints are:

  • Never paste a real secret into the chat or into source code.
  • Never print, log, or store secret values.
  • Reference secrets by env-var name only (e.g. "token_env": "MY_API_TOKEN").
  • Scrub any example API responses before sharing them.

Step 2 — Determine the Auth Type

Check the API's documentation (or inspect an existing endpoint spec if one exists) to identify which auth pattern applies. The canonical list of patterns is in references/auth-patterns.md. Also check MEMORY.md in this directory for any quirks already recorded for this API. Common types:

PatternWhen to use
nonePublic API, no credentials required
bearerAuthorization: Bearer <token> header
api_key (header)Custom header such as X-API-Key
api_key (query)Token appended as a query parameter
bearer (base64)HTTP Basic Auth encoded as Bearer token

Record the auth type and the exact header/parameter name the API expects.


Step 3 — Store the Credential Securely

Do not ask the user to paste their secret into the chat. Instead, direct them to one of the two approved storage methods:

Option A — Environment variable (recommended for CI/CD)

export MY_API_TOKEN="<your-token-value>"

Replace MY_API_TOKEN with the env-var name that matches the token_env field you will use in the spec (e.g. GITHUB_TOKEN, STRIPE_API_KEY). Run any pipeline commands in the same shell session.

Option B — .dlt/secrets.toml (recommended for local development)

Create or edit .dlt/secrets.toml in the project root (already in .gitignore):

[sources.my_source]
MY_API_TOKEN = "<your-token-value>"

Replace my_source with the dlt source name and MY_API_TOKEN with the correct env-var name. Never commit this file.

See references/security.md for the full policy on scoping keys in secrets.toml and how to extract them before passing to build_rest_api_config.


Step 4 — Run the Smoke Test

With the credential set, make a single minimal authenticated request to confirm reachability and auth validity. Use curl (or Python requests) so no pipeline code is needed at this stage.

# Bearer token example
curl -s -D - -o /dev/null -w "%{http_code}" \
  -H "Authorization: Bearer $MY_API_TOKEN" \
  "https://api.example.com/v1/me"
# API-key header example
curl -s -D - -o /dev/null -w "%{http_code}" \
  -H "X-API-Key: $MY_API_KEY" \
  "https://api.example.com/v1/ping"

Replace the URL with the lightest endpoint the API offers (/me, /ping, /status, or the first item in a small collection). Capture both the HTTP status code and the response headers.


Step 5 — Report the Result

When writing the outcome summary, follow ../../references/anti-slop.md: use concrete values (status codes, header names, env-var names), not filler.

OutcomeWhat to say
HTTP 200 (or 2xx)"Reachable — auth valid. Rate-limit headers: X-RateLimit-Remaining: N."
HTTP 401"Auth failed (401). Check that MY_API_TOKEN is exported in the current shell and matches the token from the API dashboard."
HTTP 403"Authenticated but forbidden (403). The token may lack the required scope/permission. Check API dashboard permissions."
HTTP 429"Rate-limited (429). Wait and retry, or use a different endpoint for the smoke test."
Connection error"Cannot reach api.example.com. Check the base URL in the docs, your network/VPN, and whether the API is in a private region."

Always include:

  • Reachable? (yes / no / error)
  • Auth valid? (yes / no / unclear)
  • Rate-limit headers (print names and values seen; replace any token values with <REDACTED> before sharing)

On failure, give one specific next step, not a list of everything that could be wrong.


Step 6 — Self-Check via Eval Loop

After reporting the result, run the self-grading loop described in ../../references/running-evals.md using the checklist in EVALS.md. Spin up a separate grader agent with a clean context, pass it EVALS.md and the smoke-test output, and iterate until every check is pass or skipped (cap at 5 rounds). On platforms without subagents (e.g. Codex), run the same checklist inline in a fresh reasoning pass instead — see ../../references/running-evals.md.


Step 7 — Record API-Specific Quirks

If the smoke test revealed any auth behavior not covered by the standard patterns (unusual header name, token prefix, encoding requirement, scope syntax), append a one-line entry to MEMORY.md. Read MEMORY.md at the start of Step 2 so previously learned quirks are applied automatically.

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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.