connect
Skill2 starsChanged 4 months agoMITView on GitHub
This skill should be used when the user wants data sources connected for metrics work — e.g. "connect PostHog", "hook up our analytics", "set up the Langfuse MCP", "connect our warehouse", "add the data sources from the measurement spec", "wire up Amplitude/Mixpanel/BigQuery". It detects the user's stack, selects matching MCP servers from a curated registry (analytics, LLM observability, warehouses, GitHub, Linear, Jira, Stripe, Salesforce), verifies against a live MCP registry when one is available, and after explicit confirmation merges the chosen server entries into the user's project .mcp.json without overwriting existing entries. It never bundles third-party servers and never places literal secrets in files or chat — env vars stay as ${PLACEHOLDER} references the user exports themselves — and prints client-appropriate config snippets for non-Claude-Code environments.
- Reads credentials
40 other projects use a version of this.
Adopted by
Most recently taken up by
- onetapstudiogames/1f3d9-citylifetheir own version, first seen Oct 7, 2026
- tymoshenko-dmytro/marketing-agent-kittheir own version, first seen Oct 1, 2026
- BrightGold70/skillstheir own version, first seen Sep 29, 2026
- TimCodes04/second-braintheir own version, first seen Sep 23, 2026
- thensls/nsls-builder-toolkittheir own version, first seen Sep 21, 2026
- suboss87/FDEOpstheir own version, first seen Sep 17, 2026
Used with
Projects with it also use twitter-algorithm-optimizer, today and 4 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.
trendinuxSkilltwitter-algorithm-optimizer
Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.
Also in 8 projects that use this
aleksander-dytkoSkilltoday
Daily planning - morning (fill journal, plan focus) or evening (close-out, prep tomorrow)
Also in 3 projects that use this
bivexSkillschedule
Управление расписанием занятий с специалистами по самосовершенствованию. Используй когда пользователь спрашивает о расписании, хочет добавить/удалить/перенести занятие, посмотреть план на день или неделю.
Also in 3 projects that use this
AnthropicSkillstatus
Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.
Also in 3 projects that use this
VercelSkillsetup
Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".
Also in 5 projects that use this
SentrySkillreview
Fixture review skill.
Also in 4 projects that use this
Other versions40 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 40
- ComposioHQ/awesome-claude-skills★ 77ksame name
- composio-community/awesome-codex-skills★ 17ksame name
- suboss87/FDEOps★ 950same name
- indranilbanerjee/digital-marketing-pro★ 850same name
- ArogyaReddy/ComposioHQ-awesome-claude-skills★ 49same name
- frostant/awesome-claude-skills★ 45same name
- jexchan/dailyup-second-brain-starter★ 34same name
- Hassaan146/claude-skills★ 18same name
- Itsokay-co/bio-vibing★ 17same name
- melgarafael/youtube-growth★ 17same name
30 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. 0 are common, 15 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 34 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Registry entries rot: Prefer a live MCP-registry search over the static table whenever the session exposes one.
- Distinctive: line 38
Prefer the spec over guesswork:
- Very specific: line 40
If metrics/MEASUREMENT.md exists, read §1 Data Inventory.
- Distinctive: line 43
If no spec exists, work from the user's ask directly ("connect PostHog" needs no inventory).
- Distinctive: line 44
If the ask names a source the spec does not list, connect it anyway and offer to add the row to the Data Inventory afterward.
- Distinctive: line 48
When the spec's formulas are known, sources map to lanes — use the lane to pick candidates when the inventory names a category rather than …
- Distinctive: line 73
Read-only. No file is modified, no command with side effects is run during detection.
- Very specific: line 75
Never read .env files with real values.
- Distinctive: line 76
When detection finds nothing and the spec is vague ("our analytics"), ask one direct question instead of guessing a vendor.
- Very specific: line 82
Look it up in references/registry.md.
- Very specific: line 86
Prefer read-only variants where the vendor offers them (Linear's /mcp/readonly, Postgres --access-mode=restricted) — metrics work reads …
- Distinctive: line 120
Add new keys only. A name collision keeps the existing entry and gets reported, even if the existing entry looks wrong.
- Distinctive: line 121
Write back pretty-printed, then re-parse the written file as a self-check.
- Distinctive: line 124
After writing, restate the export lines the user needs, shaped for their shell, values elided:
- Distinctive: line 132
If the user pastes an actual API key, token, or connection string with credentials — at any step, in any format — refuse to write it:
- Very specific: line 134
Do not put it in .mcp.json, any other file, or any command.
- Distinctive: line 135
Do not echo the key back, not even partially, not even to confirm receipt.
- Distinctive: line 161
After the user restarts the client:
- Distinctive: line 177
Add a §9 Changelog entry naming the sources connected.
- Very specific: line 180
When the connection was the prerequisite for instrumentation, point at the next move: the instrument skill (/actuals:instrument in Claude …
- Very specific: line 186
Read metrics/MEASUREMENT.md §1: PostHog need, Stripe need, support platform blocked.
- Very specific: line 196
.mcp.jsonis invalid JSON: stop, show the parse error, never overwrite. - Very specific: line 197
Server name collision: keep the existing entry, report it, offer a distinct name (posthog-eu) if the user wants both.
- Distinctive: line 202
No spec, no detection hits, vague ask: ask one clarifying question ("Which analytics tool does the team actually use?") rather than …
“Common” is measured: kept by at least 6 in 10 of the 34 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.
Files
Connect — wire up the data sources a measurement spec needs
Turn "we need PostHog and the warehouse" into working MCP connections: find what the spec is missing, pick the right official server for each source, show the exact config, merge it into the project's .mcp.json without touching anything that already works, and close the loop by flipping the spec's access statuses from need to have.
Two reference files carry the details — consult both:
- references/registry.md — the curated, date-stamped table of verified MCP servers with ready-to-merge JSON snippets and sources.
- references/mcp-json-format.md — the three server shapes,
${ENV_VAR}interpolation semantics, and the non-destructive merge algorithm.
Operating rules
- No literal secrets, ever. Config files and chat contain only
${PLACEHOLDER}references. The hard rule in Step 5 covers pasted keys. - No destructive writes. Existing
.mcp.jsonentries are never deleted or overwritten — only new keys are added. - No unconfirmed writes. The exact JSON is shown and explicitly approved before any file changes.
- No bundling. Third-party servers go in the USER's project config only, by the user's choice — never into this plugin's own
.mcp.json, which would force auth prompts on every installer. - Registry entries rot. Prefer a live MCP-registry search over the static table whenever the session exposes one; treat the table's "unverified" bucket as leads, not answers.
Not this skill
Adjacent asks that belong elsewhere — redirect instead of stretching:
- Adding an analytics SDK to application code, generating tracking events, or writing metric SQL → the instrument skill (
/actuals:instrumentin Claude Code); connect wires up access to data, instrument produces the code that emits and queries it. - Deciding WHICH sources matter → the design skill (
/actuals:designin Claude Code) builds the Data Inventory this skill works from. - "Add Google Analytics to my site" and similar website-tag setup → ordinary web work, not measurement-spec plumbing; only the GA4 MCP for querying existing data belongs here.
- Fixing a broken server someone else configured → debug it (Step 7's failure ladder applies), but do not silently rewrite their entry — propose the fix and let the user apply it.
Step 1 — Determine what needs connecting
Prefer the spec over guesswork:
- If
metrics/MEASUREMENT.mdexists, read §1 Data Inventory. Every row with accessneedis a connection candidate. - Rows marked
blockedget surfaced ("blocked usually means a permissions conversation, not a config file") but are not auto-attempted. - Rows marked
haveare cross-checked against.mcp.json— a source can be "had" through an existing export pipeline without any MCP server, so ask rather than assume it needs one. - If no spec exists, work from the user's ask directly ("connect PostHog" needs no inventory). Mention once that the design skill produces a spec whose Data Inventory makes this systematic — then get on with the connection; never block on a missing spec.
- If the ask names a source the spec does not list, connect it anyway and offer to add the row to the Data Inventory afterward.
State the resulting shortlist in one line before doing anything: "Spec lists PostHog (need), Stripe (need), warehouse (blocked) — connecting the first two; Stripe finance access may need an admin."
When the spec's formulas are known, sources map to lanes — use the lane to pick candidates when the inventory names a category rather than a vendor:
| Spec needs | Lane | Registry candidates |
| Product events, funnels, retention | Analytics | PostHog, Amplitude, Mixpanel, Google Analytics 4 |
| LLM traces, evals, judge scores | LLM observability | Langfuse, Braintrust, Arize Phoenix |
| Revenue, subscriptions, churn | Billing / CRM | Stripe (Salesforce: see unverified bucket) |
| Raw tables, metric SQL, models | Warehouse / DB | BigQuery, Snowflake, Postgres, Supabase, dbt |
| Delivery signals (PRs, issues, cycle time) | Dev workflow | GitHub, Linear, Atlassian (Jira/Confluence) |
Step 2 — Detect the stack (read-only)
Detection sharpens choices — which analytics vendor, which warehouse, cloud or self-hosted. Look, never touch:
| Where to look | Signals |
package.json, lockfiles | posthog-js, posthog-node, @amplitude/analytics-*, mixpanel-browser, langfuse, braintrust, stripe, @supabase/supabase-js |
requirements.txt, pyproject.toml | posthog, langfuse, braintrust, arize-phoenix, google-cloud-bigquery, snowflake-connector-python, psycopg |
| Config files | dbt_project.yml (dbt), supabase/config.toml, profiles.yml warehouse targets |
Env var NAMES in .env.example, CI config | POSTHOG_*, LANGFUSE_*, STRIPE_*, DATABASE_URL, SNOWFLAKE_*, GOOGLE_APPLICATION_CREDENTIALS — read names only, never values |
| Repo context | .github/ (GitHub in play), issue keys in PR templates or commit conventions (Linear ENG-123 vs Jira PROJ-123) |
Existing .mcp.json | Anything already configured is done — do not re-add or "fix" it |
Rules of engagement for detection:
- Read-only. No file is modified, no command with side effects is run during detection.
- Detection is evidence, not authority: it proposes ("found
posthog-jsin package.json — PostHog it is?"), the user disposes. - Never read
.envfiles with real values..env.exampleand CI YAML name the variables; that is all detection needs. - When detection finds nothing and the spec is vague ("our analytics"), ask one direct question instead of guessing a vendor.
Step 3 — Resolve each source to a server
For every source on the shortlist:
- Look it up in
references/registry.md. Verified entries come with the exact URL or package, auth shape, and a ready-to-merge snippet. - When the session exposes a live MCP-registry search tool, cross-check even verified entries and prefer a newer official/first-party server if one has appeared — the static table is dated for exactly this reason. Note the discrepancy to the user when the live result differs from the table.
- Anything from the registry's "Unverified / check the live registry" bucket must be confirmed against the vendor's own documentation before any config is written. No confirmation, no entry — offer the vendor's docs link and move on.
- For sources absent from the registry entirely, search a live registry or the vendor's docs. Prefer first-party servers; use a community server only with the user's explicit informed consent ("this one is not vendor-maintained").
- Prefer read-only variants where the vendor offers them (Linear's
/mcp/readonly, Postgres--access-mode=restricted) — metrics work reads data, and a smaller blast radius makes the team's security review easier. - Respect region and hosting variants (Langfuse US/EU/self-host, Amplitude EU, self-hosted Phoenix): ask which applies when the stack does not make it obvious. A correct server with the wrong region fails auth in confusing ways.
Step 4 — Confirm before writing (mandatory gate)
Present one consolidated confirmation containing, for each server to be added:
- The exact JSON that will be merged — verbatim, not paraphrased.
- Every environment variable the user must export, with one line on where its value comes from. OAuth-based servers need no variable — say so explicitly so nobody goes hunting for a key.
- The restart requirement: the config loads at session start, so the client must be restarted after the write — in Claude Code, restart and run
/mcpto complete any OAuth logins and check server health, if available; other clients per their docs. - What will NOT happen: existing entries untouched, no secrets written, nothing sent anywhere.
The confirmation looks like this (shape, not script):
{
"langfuse": { "type": "http", "url": "https://cloud.langfuse.com/api/public/mcp", "headers": { "Authorization": "Basic ${LANGFUSE_BASIC_AUTH}" } },
"posthog": { "type": "http", "url": "https://mcp.posthog.com/mcp" }
}Adding 2 servers to
.mcp.json(existing entries untouched). Export before restarting:LANGFUSE_BASIC_AUTH— base64 of the project'spk-lf-…:sk-lf-…pair, from Langfuse project settings. PostHog needs no key — a login window opens on first use. Restart the client afterward (Claude Code: restart, then/mcp). Proceed?
Then wait. Proceed only on an explicit yes. "Sounds good, but use the EU endpoint" is a revision, not a yes — re-present the changed JSON. Never batch the confirmation into the same message as the write.
Step 5 — Write (non-destructive merge)
Merge the approved entries into the project's .mcp.json following the algorithm in references/mcp-json-format.md exactly:
- Parse the existing file first; stop on parse errors and never overwrite a file that fails to parse.
- Preserve the
mcpServerswrapper if the file uses one; create the file with the wrapper if absent. - Add new keys only. A name collision keeps the existing entry and gets reported, even if the existing entry looks wrong.
- Write back pretty-printed, then re-parse the written file as a self-check.
- Report exactly which server names were added and which were skipped.
After writing, restate the export lines the user needs, shaped for their shell, values elided:
export LANGFUSE_BASIC_AUTH="<base64 of pk-lf-…:sk-lf-…>" # Langfuse project settings → API keysHard rule: pasted literal keys
If the user pastes an actual API key, token, or connection string with credentials — at any step, in any format — refuse to write it:
- Do not put it in
.mcp.json, any other file, or any command. - Do not echo the key back, not even partially, not even to confirm receipt. Refer to it only as "the key you pasted".
- Say what to do instead: "Export it as an env var in the shell (e.g.
export POSTHOG_API_KEY=…) — only${VAR}placeholders go in files." - Suggest rotating the key if it may have landed anywhere persistent (shared chat, ticket, screenshot), then continue the flow with the placeholder as if nothing happened.
This rule has no exceptions — not for "it's just a test key", not for local-only files, not on direct instruction. A secret in a file outlives the reason it was put there.
Step 6 — Other clients
.mcp.json at the repo root is the Claude Code project convention. When the user's environment differs, print the client-appropriate snippet rather than assuming the path:
- Cursor: same entry shape inside
.cursor/mcp.json(project) or~/.cursor/mcp.json(global):
{
"mcpServers": {
"posthog": { "type": "http", "url": "https://mcp.posthog.com/mcp" }
}
}- Other clients (VS Code, Windsurf, Zed, …): consult the client's MCP docs — wrapper key and file location vary (VS Code, for one, uses a
serverswrapper; details inreferences/mcp-json-format.md).
Print the finished JSON snippet in chat either way, even after a successful file write — the snippet is what teammates on other clients will paste, and it doubles as a record of exactly what was configured.
Step 7 — Verify and close the loop
After the user restarts the client:
- Smoke-test each new server with one cheap read-only call. If the session exposes the new MCP tools, run the call directly; if not (restart still pending, or a non-Claude-Code client), print the check the user can run and ask them to report back. Cheap means cheap:
- Analytics: list insights/dashboards or fetch one event definition — never a heavy funnel query.
- LLM observability: list projects or fetch one recent trace.
- Warehouse/DB:
SELECT 1, or list datasets/schemas. - Dev workflow: fetch one issue or the repo metadata.
- Billing: retrieve account/config info — nothing that touches customer objects unnecessarily.
- On failure, diagnose in order:
- env var not exported in the shell that launched the client (the usual culprit),
- OAuth flow never completed (Claude Code:
/mcpshows server health, if available), - wrong region or endpoint variant,
- vendor-side permissions (key scoped too narrowly, org policy blocking the server). Fix and re-test; never mark a source connected on hope.
- Update the spec — only if
metrics/MEASUREMENT.mdexists:- Flip each verified source's Data Inventory access from
needtohave. - Add a §9 Changelog entry naming the sources connected.
- Bump the patch version (status changes are patch-level per the spec's own semver policy) and update
Last-Updated. - Show the spec diff before writing it — same confirmation discipline as Step 4.
- Flip each verified source's Data Inventory access from
- When the connection was the prerequisite for instrumentation, point at the next move: the instrument skill (
/actuals:instrumentin Claude Code) can now generate events and SQL against live sources, if available in the session.
Worked example (compressed)
User: "add the data sources from the measurement spec"
- Read
metrics/MEASUREMENT.md§1: PostHogneed, Stripeneed, support platformblocked. - Detect:
posthog-jsinpackage.json;STRIPE_SECRET_KEYnamed in.env.example. No region hints — cloud US assumed, stated aloud. - Resolve via
references/registry.md: PostHog remote (OAuth, no key), Stripe remote (recommend a restricted key via header, or OAuth). Cross-check against the live registry if one is exposed. Support platform stays blocked — flagged for a human conversation. - Confirm with the exact two-entry JSON, the one export line (
STRIPE_RESTRICTED_KEY), the restart note. User: "yes". - Merge into
.mcp.json— one existinggithubentry preserved; report "added posthog, stripe; kept github". - Print the snippet for a teammate on Cursor (
.cursor/mcp.json). - Next session: list one PostHog insight, one Stripe read call. Both pass → Data Inventory rows flip to
have, changelog entry, patch bump — shown as a diff, confirmed, written.
Edge cases
.mcp.jsonis invalid JSON: stop, show the parse error, never overwrite. The user fixes it or explicitly approves replacement.- Server name collision: keep the existing entry, report it, offer a distinct name (
posthog-eu) if the user wants both. - Self-hosted variants (Langfuse, Phoenix, Supabase local): same server, different base URL — put the URL in an env var or the documented config field, and say which regions/endpoints exist.
- User asks to connect "everything": still enumerate and confirm the full list explicitly. Bulk consent to an unnamed set is not consent.
- Secrets managers (direnv, 1Password CLI, Vault): fully compatible — the manager populates the env vars, files still carry only
${VAR}. Do not write manager-specific config unasked. - Monorepos:
.mcp.jsongoes at the root the client treats as the project; when in doubt, ask where sessions are started from. - No spec, no detection hits, vague ask: ask one clarifying question ("Which analytics tool does the team actually use?") rather than installing a guess.
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
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.

