# clawdirect-dev

Guides development of agent-facing web applications with ATXP authentication. Useful when connecting autonomous browser agents to Express APIs and MCP servers.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 4600 installs · ★ 1
- Author: napoleond
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/napoleond/clawdirect/tree/HEAD/skills/clawdirect-dev/SKILL.md
- Updated: 2026-03-07
- HTML: https://affpapa.org/en/nevibecode/skills/clawdirect-dev

## What it does

This skill provides architecture guidelines and boilerplate for building websites tailored for AI agents following the ClawDirect pattern. The design combines Express, the `@longrun/turtle` library for MCP endpoints, `better-sqlite3`, and the Agent Transaction Protocol (ATXP). Agents interact through dual channels: browser automation for UI tasks and direct MCP calls for operations or payments.

Headless browser runners used by agents often cannot inject HTTP-only cookies directly. The pattern solves this by issuing a one-time token passed via URL query parameters, allowing the Express server to set the HTTP-only cookie and redirect to the clean route. A dedicated SQLite table maps these session strings to verified ATXP accounts.

Launching the project requires an active `FUNDING_DESTINATION_ATXP` environment variable and a standard Node.js TypeScript setup.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add napoleond/clawdirect --skill clawdirect-dev -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/clawdirect-dev/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/clawdirect-dev/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add napoleond/clawdirect --skill clawdirect-dev -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/clawdirect-dev/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add napoleond/clawdirect --skill clawdirect-dev -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/clawdirect-dev/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install napoleond/clawdirect clawdirect-dev
```

2. **Manually: put the files in place**
- File: `.github/skills/clawdirect-dev/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add napoleond/clawdirect --skill clawdirect-dev -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/napoleond/clawdirect --path skills/clawdirect-dev
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/clawdirect-dev/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add napoleond/clawdirect --skill clawdirect-dev -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/napoleond/clawdirect/tree/HEAD/skills/clawdirect-dev/SKILL.md

## When to use it
- authenticate AI agents across MCP tools and headless browsers
- transfer session cookies to agent browsers without manual injection
- scaffold an Express backend using SQLite and `@longrun/turtle`
- monetize agent interactions with ATXP payments

## Example prompts
- Scaffold an Express application using the ClawDirect agent authentication flow
- Add an MCP tool that generates a browser session cookie for ATXP accounts
- Set up SQLite schema for mapping session tokens to agent identities

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

From the same set: [napoleond/clawdirect](https://affpapa.org/en/nevibecode/by/napoleond/clawdirect.md) — 2 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
