Add web-automation skill variants and inline prerequisite checks
This commit is contained in:
@@ -35,11 +35,50 @@ mkdir -p ~/.opencode/skills/create-plan
|
||||
cp -R skills/create-plan/opencode/* ~/.opencode/skills/create-plan/
|
||||
```
|
||||
|
||||
## 3) Verify
|
||||
## 3) Install `web-automation`
|
||||
|
||||
### Codex
|
||||
|
||||
```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
|
||||
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
|
||||
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
|
||||
npx camoufox-js fetch
|
||||
```
|
||||
|
||||
Requirements for `web-automation`:
|
||||
- Node.js 20+
|
||||
- pnpm
|
||||
- Browser download/network access for Camoufox
|
||||
|
||||
## 4) Verify
|
||||
|
||||
- Ensure `SKILL.md` exists in the destination folder.
|
||||
- Ensure `templates/` files are present.
|
||||
- Start a new agent session and ask: "create a plan for ..." to verify trigger behavior.
|
||||
- Ensure `templates/` files (create-plan) or `scripts/` files (web-automation) are present.
|
||||
- Start a new agent session and ask:
|
||||
- "create a plan for ..." (create-plan)
|
||||
- "scrape this page ..." (web-automation)
|
||||
|
||||
## Notes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user