Linq for AI coding agents
Rules, skills, commands, and MCP access for building iMessage, RCS, and SMS on Linq. Install it once and your agent knows how Linq works — no pasted onboarding prompt.
Works in Cursor, Claude Code, and Codex from the same repo.
What you get
| Component | What it does |
|---|
linq rule | Universal conventions — E.164, webhook signature verification, opt-out handling, chat health and line reputation, line-tier detection, and the errors worth recognizing. Applied intelligently, so it only loads on Linq-related work. |
linq-quickstart skill | New account from scratch: install the CLI, sign up, provision a Linq Number, add a contact, send a first iMessage with effects, reactions, and live webhooks. |
linq-build skill | Existing account: authenticate, send from code with @linqapp/sdk, receive webhooks with signature verification, handle opt-outs and rate limits. |
linq-best-practices skill | The canonical integration checklist — opt-out, line selection and load balancing, onboarding, contact cards, blocked handles, health gating, engagement, volume and ramp. The other surfaces read their check wording from here rather than repeating it. |
linq-reputation skill | Diagnoses why a specific line is Needs Attention or Delivery Limited (legacy AT_RISK / CRITICAL), or flagged: runs Linq's reputation audit, maps each driver to the checks it implicates, and proposes the code fix. Needs the MCP server. Proposes, never applies. |
/linq-audit command | Sweeps an integration against the whole checklist. No credentials needed. Read-only; reports a table and a ranked action list. |
| MCP server | search_docs to find the right method and parameters, execute to run TypeScript against an authenticated client. |
The skills route between themselves — linq-quickstart checks for an existing
account first and hands off to linq-build if it finds one. /linq-audit sweeps
everything without credentials and points at linq-reputation when it finds a gap
in a section that drives reputation; linq-reputation starts from a line's actual
audit and works backward to the responsible code. Both read their check wording
from linq-best-practices, so the compliance language exists in one place.
Install
Claude Code
/plugin marketplace add linq-team/linq-ai
/plugin install linq@linq-ai
Confirm the MCP server attached with claude mcp list — expect plugin:linq:linq … ✔ Connected. Note that claude plugin details linq reports MCP servers (0) even when it is working; mcp list is the reliable check.
Cursor
Cursor installs plugins from marketplaces, and any Git repository can be one. Add this repository as a marketplace from the Customize page, then install linq from it:
https://github.com/linq-team/linq-ai
See Cursor's plugin documentation for the current install flow.
For local iteration on the plugin itself, ~/.cursor/plugins/local still works. Copy the directory rather than symlinking it — current builds reject a symlink whose target sits outside the plugins directory:
loadUserLocalPlugin linq rejected: symlink target ... is outside
/Users/you/.cursor/plugins/local
Codex
Point Codex at this repo as a plugin source. The manifest at .codex-plugin/plugin.json validates against Codex's plugin schema and declares the same skills and MCP server.
Codex and Claude Code load skills/ and the MCP server, but not rules/ — neither host has that component. The safety-critical conventions from the rule are restated inside both skills so nothing depends on it. Claude Code also picks up commands/; Codex does not.
Authentication
You do not put an API key in the plugin config. Run this once:
npm install -g @linqapp/cli@latest
linq login --token <your-token>
That covers every project on the machine. Tokens come from https://dashboard.linqapp.com/api-tooling/, or linq tokens create.
The MCP server reads $LINQ_API_V3_API_KEY when it is set, and otherwise falls back to the token linq login wrote to ~/.linq/config.json (honouring LINQ_PROFILE). That fallback matters more than it sounds: MCP servers are launched as detached child processes, so on macOS a Cursor started from the Dock never sees export LINQ_API_V3_API_KEY=... from your shell profile. Without it, the env var is unreachable for most desktop users.
Plugin variables are not an option here — only team admins can set their values from the dashboard, which leaves solo developers with no way to supply a secret.
The MCP server version
mcp.json launches @linqapp/sdk-mcp@latest, so every developer picks up server
fixes and new endpoints without waiting on a plugin release. It previously pinned an
exact version; that pin meant users sat on an old server — 0.31.0 while 0.35.0 was
current — and missed API surface that had already shipped.