File DA-002 View as Markdown

Agent Skill

Let your coding agent install Double Agent for you. One command gives Claude Code, Cursor, Codex and other agents that support Agent Skills the full install runbook.

Install the skill

Run this in your project:

npx skills add doubleagent-so/skills

Then ask your agent:

Install Double Agent on this site.

What the agent does

  1. Looks at your files to find the stack: Next.js, Vite or React, plain HTML, Astro, Nuxt, SvelteKit, Remix, WordPress, Shopify, Wix, Squarespace, Webflow or a project from an AI builder.
  2. Previews the change with npx @doubleagent-so/cli init --dry-run, then adds the keyless snippet to the shared <head>, queue stub first. On Shopify, Wix, Squarespace and Webflow it tells you where to paste it instead.
  3. Leaves your analytics tags alone. GA4, GTM, Meta Pixel and the other tools pick up the labels on their own.
  4. Checks the published page and tells you what to fix, if anything.
  5. Ends with one line on claiming your domain to see the data.

It does not create an account or ask for a key unless you ask for one. If you give it a public key (pk_live_…), it adds it to the tag. It never puts a secret key (sk_…) in your code.

Check it worked

The agent's last step is the same check you can run yourself:

npx @doubleagent-so/cli verify https://your-site.example

It ends with Installed correctly. when the script, the stub and the key (if any) are all in place.

The second skill, for AI agents

The same command also installs doubleagent-agents. That one is for AI agents themselves: register with Double Agent, use its tools, publish and sign an Agent Card, get listed in the directory, and record calls to an agent you build. See Agent access.

Source and issues: github.com/doubleagent-so/skills. MIT licensed.

No skills support?

Run the CLI yourself (npx @doubleagent-so/cli init makes the same edit), or give your agent the briefing at /install.md.

Next: Claim your domain to see the data.