# sap-browser-automation

This skill lets an agent inspect and operate authenticated SAP pages through a browser, Edge CDP, or Playwright. It covers SSO reuse, target checks, and screenshots.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 362 installs · ★ 475
- Author: secondsky
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/secondsky/sap-skills/tree/HEAD/plugins/sap-browser-automation/skills/sap-browser-automation/SKILL.md
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/skills/sap-browser-automation

## What it does

The skill routes SAP web work through an in-app Browser, an isolated Microsoft Edge session over loopback CDP, or an existing Playwright client. Before interaction, it checks the tenant, host, path, page title, authenticated DOM, and selected target. Read-only behavior is the default.

Its guidance covers SSO bootstrap, approved Edge profile reuse, scoped browser state, screenshots, cleanup, and recovery after startup failures. The package includes `scripts/edge-profile.ps1` and `scripts/cdp-agent.mjs`; the latter needs Node.js 22 or newer and runs without npm packages. That Node.js requirement is a hard limit for this script. Reusing a normal Edge profile also requires explicit permission.

## Requirements
- Works with: Playwright

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-browser-automation -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-browser-automation -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-browser-automation -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install secondsky/sap-skills sap-browser-automation
```

2. **Manually: put the files in place**
- File: `.github/skills/sap-browser-automation/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-browser-automation -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/secondsky/sap-skills --path plugins/sap-browser-automation/skills/sap-browser-automation
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-browser-automation -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/secondsky/sap-skills/tree/HEAD/plugins/sap-browser-automation/skills/sap-browser-automation/SKILL.md

## When to use it
- verify the SAP tenant and authenticated page before acting
- start an isolated Edge session with loopback CDP
- reuse an approved Edge profile safely
- transfer scoped browser state to Playwright
- capture evidence and recover from browser bootstrap failures

## Example prompts
- Check the SAP login, confirm the target host, and inspect the correct page before reading data.
- Start an isolated Edge session with `scripts/edge-profile.ps1`, then attach to it over CDP.
- Use `scripts/cdp-agent.mjs` to find the SAP target, verify its title, and take a screenshot.

## Similar
- [agent-browser](https://affpapa.org/en/nevibecode/skills/vercel-labs-agent-browser.md) — skill · 1200000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs
- [computer-use](https://affpapa.org/en/nevibecode/skills/computer-use.md) — skill · 239400 installs
- [browser-use](https://affpapa.org/en/nevibecode/skills/browser-use.md) — skill · 98200 installs
- [playwright-cli](https://affpapa.org/en/nevibecode/skills/playwright-cli.md) — skill · 195700 installs
- [last30days](https://affpapa.org/en/nevibecode/skills/last30days.md) — skill · 53000 installs

From the same set: [secondsky/sap-skills](https://affpapa.org/en/nevibecode/by/secondsky/sap-skills.md) — 40 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
