Move install instructions into per-skill docs and remove single INSTALL doc

This commit is contained in:
2026-02-09 05:08:56 +00:00
parent 9ddc17b228
commit 0418fe47fa
5 changed files with 101 additions and 153 deletions

View File

@@ -10,22 +10,56 @@ Automate browsing and scraping with Playwright + Camoufox.
- pnpm
- `playwright-core`
- `camoufox-js`
- Network access to download Camoufox browser artifacts
## Setup Summary
## Install
1. Install skill files for your agent.
2. `cd .../skills/web-automation/scripts`
3. `pnpm install`
4. `pnpm add playwright-core camoufox-js`
5. `npx camoufox-js fetch`
### Codex
## Dependency Checks
```bash
mkdir -p ~/.codex/skills/web-automation
cp -R skills/web-automation/codex/* ~/.codex/skills/web-automation/
cd ~/.codex/skills/web-automation/scripts
pnpm install
pnpm add playwright-core camoufox-js
npx camoufox-js fetch
```
### Claude Code
```bash
mkdir -p ~/.claude/skills/web-automation
cp -R skills/web-automation/claude-code/* ~/.claude/skills/web-automation/
cd ~/.claude/skills/web-automation/scripts
pnpm install
pnpm add playwright-core camoufox-js
npx camoufox-js fetch
```
### OpenCode
```bash
mkdir -p ~/.opencode/skills/web-automation
cp -R skills/web-automation/opencode/* ~/.opencode/skills/web-automation/
cd ~/.opencode/skills/web-automation/scripts
pnpm install
pnpm add playwright-core camoufox-js
npx camoufox-js fetch
```
## Verify Installation & Dependencies
Run in the installed `scripts/` folder:
```bash
node -e "require.resolve('playwright-core/package.json');require.resolve('camoufox-js/package.json');console.log('OK: playwright-core + camoufox-js installed')"
node -e "const fs=require('fs');const t=fs.readFileSync('browse.ts','utf8');if(!/camoufox-js/.test(t)){throw new Error('browse.ts is not configured for Camoufox')}console.log('OK: Camoufox integration detected in browse.ts')"
```
If checks fail, stop and return:
"Missing dependency/config: web-automation requires `playwright-core` + `camoufox-js` and Camoufox-based scripts. Run setup in this skill, then retry."
## Usage Examples
- Browse: `npx tsx browse.ts --url "https://example.com"`