opencode-skills-collection 3.1.14 → 3.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled-skills/.antigravity-install-manifest.json +36 -1
- package/bundled-skills/007/scripts/full_audit.py +34 -22
- package/bundled-skills/007/scripts/quick_scan.py +24 -15
- package/bundled-skills/007/scripts/scanners/dependency_scanner.py +31 -19
- package/bundled-skills/007/scripts/scanners/injection_scanner.py +24 -14
- package/bundled-skills/007/scripts/scanners/secrets_scanner.py +24 -14
- package/bundled-skills/007/scripts/score_calculator.py +25 -13
- package/bundled-skills/2slides-ppt-generator/scripts/download_slides_pages_voices.py +15 -1
- package/bundled-skills/aegisops-ai/SKILL.md +1 -1
- package/bundled-skills/agent-self-scheduling/SKILL.md +88 -0
- package/bundled-skills/alpha-vantage/SKILL.md +3 -1
- package/bundled-skills/anti-sleep/SKILL.md +90 -0
- package/bundled-skills/api-security-best-practices/SKILL.md +1 -1
- package/bundled-skills/app-store-optimization/SKILL.md +7 -0
- package/bundled-skills/audio-transcriber/scripts/transcribe.py +17 -4
- package/bundled-skills/azure-mgmt-botservice-py/SKILL.md +2 -1
- package/bundled-skills/azure-resource-manager-mysql-dotnet/SKILL.md +2 -1
- package/bundled-skills/azure-resource-manager-postgresql-dotnet/SKILL.md +2 -1
- package/bundled-skills/azure-resource-manager-sql-dotnet/SKILL.md +2 -1
- package/bundled-skills/biopython/SKILL.md +2 -1
- package/bundled-skills/brain-to-docs/SKILL.md +54 -0
- package/bundled-skills/browser-harness/SKILL.md +220 -0
- package/bundled-skills/browser-harness/references/install.md +132 -0
- package/bundled-skills/bumblebee/scripts/render_report.py +16 -3
- package/bundled-skills/bun-development/SKILL.md +1 -1
- package/bundled-skills/cc-skill-security-review/SKILL.md +2 -2
- package/bundled-skills/claude-monitor/scripts/monitor.py +15 -2
- package/bundled-skills/cmux/SKILL.md +250 -0
- package/bundled-skills/code-polish/SKILL.md +192 -0
- package/bundled-skills/code-review-checklist/SKILL.md +1 -1
- package/bundled-skills/codex-subagent/SKILL.md +117 -0
- package/bundled-skills/competitor-analysis/scripts/capture_screenshots.mjs +24 -3
- package/bundled-skills/competitor-analysis/scripts/compile_report.mjs +13 -2
- package/bundled-skills/competitor-analysis/scripts/extract_vs_names.mjs +23 -2
- package/bundled-skills/competitor-analysis/scripts/gate_candidates.mjs +21 -0
- package/bundled-skills/competitor-analysis/scripts/list_urls.mjs +23 -2
- package/bundled-skills/competitor-analysis/scripts/merge_partials.mjs +24 -3
- package/bundled-skills/container-security-hardening/SKILL.md +1 -1
- package/bundled-skills/content-creator/scripts/brand_voice_analyzer.py +15 -1
- package/bundled-skills/content-creator/scripts/seo_optimizer.py +15 -1
- package/bundled-skills/context-kit/SKILL.md +135 -0
- package/bundled-skills/cyber-audit/SKILL.md +138 -0
- package/bundled-skills/deepapi/SKILL.md +649 -0
- package/bundled-skills/delegating-to-agents/SKILL.md +64 -0
- package/bundled-skills/developer-signup-flow/SKILL.md +1 -1
- package/bundled-skills/diary/scripts/fetch_diaries.py +14 -1
- package/bundled-skills/diary/scripts/prepare_context.py +15 -2
- package/bundled-skills/diary/scripts/sync_to_notion.py +14 -1
- package/bundled-skills/dispatch/SKILL.md +19 -7
- package/bundled-skills/distribute-skill-to-all-agents/SKILL.md +85 -0
- package/bundled-skills/docs/integrations/jetski-cortex.md +3 -3
- package/bundled-skills/docs/integrations/jetski-gemini-loader/README.md +1 -1
- package/bundled-skills/docs/maintainers/repo-growth-seo.md +3 -3
- package/bundled-skills/docs/maintainers/skills-update-guide.md +1 -1
- package/bundled-skills/docs/users/bundles.md +1 -1
- package/bundled-skills/docs/users/claude-code-skills.md +1 -1
- package/bundled-skills/docs/users/gemini-cli-skills.md +1 -1
- package/bundled-skills/docs/users/getting-started.md +1 -1
- package/bundled-skills/docs/users/kiro-integration.md +1 -1
- package/bundled-skills/docs/users/usage.md +4 -4
- package/bundled-skills/docs/users/visual-guide.md +4 -4
- package/bundled-skills/docx-official/ooxml/scripts/pack.py +30 -3
- package/bundled-skills/docx-official/ooxml/scripts/unpack.py +16 -3
- package/bundled-skills/drizzle-migration-conflict/scripts/check_drizzle_migrations.py +27 -17
- package/bundled-skills/ecl-harness-engineer/agents/creator-config.md +17 -3
- package/bundled-skills/ecl-harness-engineer/references/environment-detection-guide.md +9 -5
- package/bundled-skills/effective-agent-skills/SKILL.md +333 -0
- package/bundled-skills/electron-development/SKILL.md +6 -2
- package/bundled-skills/environment-setup-guide/SKILL.md +2 -5
- package/bundled-skills/expo-ui/scripts/list-components.js +5 -1
- package/bundled-skills/fable-safe-prompt/SKILL.md +79 -0
- package/bundled-skills/folder-specific-claude-and-agents-md/SKILL.md +96 -0
- package/bundled-skills/frontend-slides/scripts/extract-pptx.py +18 -4
- package/bundled-skills/gcp-cloud-run/SKILL.md +2 -1
- package/bundled-skills/gemini-api-integration/SKILL.md +3 -1
- package/bundled-skills/gemini-live-api-dev/SKILL.md +2 -1
- package/bundled-skills/gemini-omni-flash-api/scripts/video/generate_video.py +49 -14
- package/bundled-skills/goal-loop/SKILL.md +175 -0
- package/bundled-skills/hugging-face-evaluation/SKILL.md +1 -1
- package/bundled-skills/hugging-face-jobs/SKILL.md +1 -1
- package/bundled-skills/hugging-face-jobs/scripts/finepdfs-stats.py +14 -1
- package/bundled-skills/hugging-face-model-trainer/scripts/convert_to_gguf.py +10 -1
- package/bundled-skills/hugo-to-markdown/scripts/inventory_hugo_rules.py +14 -1
- package/bundled-skills/image-generator/SKILL.md +3 -1
- package/bundled-skills/instagram/scripts/export.py +18 -7
- package/bundled-skills/interview-style-doc-building/SKILL.md +86 -0
- package/bundled-skills/junta-leiloeiros/scripts/export.py +19 -10
- package/bundled-skills/landing-page-generator/scripts/landing_page_scaffolder.py +15 -1
- package/bundled-skills/linear-claude-skill/SKILL.md +4 -2
- package/bundled-skills/linkedin-post-writer/SKILL.md +159 -0
- package/bundled-skills/linkedin-post-writer/references/hook-formulas.md +482 -0
- package/bundled-skills/llm-council/SKILL.md +4 -2
- package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package-lock.json +5 -6
- package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package.json +2 -3
- package/bundled-skills/markdown-rendering/SKILL.md +72 -0
- package/bundled-skills/matematico-tao/scripts/complexity_analyzer.py +14 -1
- package/bundled-skills/matematico-tao/scripts/dependency_graph.py +15 -2
- package/bundled-skills/mobile-design/scripts/mobile_audit.py +20 -6
- package/bundled-skills/monte-carlo-validation-notebook/scripts/resolve_dbt_schema.py +15 -2
- package/bundled-skills/multi-agent-architect/SKILL.md +1 -1
- package/bundled-skills/odoo-rpc-api/SKILL.md +2 -1
- package/bundled-skills/pci-compliance/SKILL.md +3 -1
- package/bundled-skills/pdf-official/scripts/create_validation_image.py +17 -3
- package/bundled-skills/pdf-official/scripts/extract_form_field_info.py +1 -1
- package/bundled-skills/personal-tool-builder/SKILL.md +1 -1
- package/bundled-skills/pi-custom-model/SKILL.md +68 -0
- package/bundled-skills/pi-web-search/SKILL.md +74 -0
- package/bundled-skills/playwright-skill/run.js +19 -1
- package/bundled-skills/pptx-official/ooxml/scripts/pack.py +30 -3
- package/bundled-skills/pptx-official/ooxml/scripts/unpack.py +16 -3
- package/bundled-skills/pptx-official/scripts/inventory.py +17 -4
- package/bundled-skills/pptx-official/scripts/rearrange.py +15 -2
- package/bundled-skills/pptx-official/scripts/replace.py +16 -3
- package/bundled-skills/product-manager-toolkit/scripts/customer_interview_analyzer.py +15 -1
- package/bundled-skills/production-code-audit/SKILL.md +1 -1
- package/bundled-skills/push-skill-to-github/SKILL.md +61 -0
- package/bundled-skills/rclone-cli/references/commands/rclone_completion_powershell.md +3 -2
- package/bundled-skills/read-all-adrs/SKILL.md +35 -0
- package/bundled-skills/remote-gpu-trainer/scripts/verify_local.py +14 -1
- package/bundled-skills/research-prompt/SKILL.md +63 -0
- package/bundled-skills/run-deep-swe/SKILL.md +120 -0
- package/bundled-skills/senior-architect/scripts/architecture_diagram_generator.py +15 -2
- package/bundled-skills/senior-architect/scripts/dependency_analyzer.py +15 -2
- package/bundled-skills/senior-architect/scripts/project_architect.py +15 -2
- package/bundled-skills/senior-frontend/scripts/bundle_analyzer.py +14 -1
- package/bundled-skills/senior-frontend/scripts/frontend_scaffolder.py +14 -1
- package/bundled-skills/senior-fullstack/scripts/code_quality_analyzer.py +15 -2
- package/bundled-skills/senior-fullstack/scripts/fullstack_scaffolder.py +15 -2
- package/bundled-skills/senior-fullstack/scripts/project_scaffolder.py +15 -2
- package/bundled-skills/setup-help/SKILL.md +50 -0
- package/bundled-skills/shodan-reconnaissance/SKILL.md +2 -1
- package/bundled-skills/short/SKILL.md +28 -0
- package/bundled-skills/skill-creator/scripts/init_skill.py +15 -2
- package/bundled-skills/skill-creator/scripts/package_skill.py +29 -12
- package/bundled-skills/skill-creator/scripts/quick_validate.py +14 -2
- package/bundled-skills/skill-creator-ms/SKILL.md +1 -1
- package/bundled-skills/skill-installer/scripts/install_skill.py +42 -8
- package/bundled-skills/skill-installer/scripts/package_skill.py +29 -17
- package/bundled-skills/skill-installer/scripts/validate_skill.py +37 -22
- package/bundled-skills/stripe-integration/SKILL.md +7 -3
- package/bundled-skills/swiftui-expert-skill/scripts/instruments_parser/xctrace.py +7 -1
- package/bundled-skills/swiftui-expert-skill/scripts/instruments_parser/xml_utils.py +7 -1
- package/bundled-skills/taisly-social-media-posting/SKILL.md +79 -0
- package/bundled-skills/technical-tutorials/SKILL.md +1 -1
- package/bundled-skills/telegram/scripts/setup_project.py +17 -2
- package/bundled-skills/time-ledger/SKILL.md +118 -0
- package/bundled-skills/trading-ledger/SKILL.md +121 -0
- package/bundled-skills/videodb/scripts/ws_listener.py +17 -4
- package/bundled-skills/voice-ai-development/SKILL.md +2 -1
- package/bundled-skills/vps-server-management/SKILL.md +72 -0
- package/bundled-skills/weaviate/scripts/weaviate_conn.py +20 -18
- package/bundled-skills/wgm/SKILL.md +137 -0
- package/bundled-skills/whatsapp-cloud-api/scripts/setup_project.py +16 -1
- package/bundled-skills/workorai/SKILL.md +137 -0
- package/bundled-skills/wp-site-health-auditor/SKILL.md +341 -0
- package/bundled-skills/wp-site-health-auditor/references/catalog.md +135 -0
- package/bundled-skills/writing-skills/render-graphs.js +13 -2
- package/bundled-skills/x-twitter-scraper/SKILL.md +3 -1
- package/bundled-skills/youtube-notetaker/scripts/serve.py +41 -31
- package/bundled-skills/youtube-notetaker/scripts/vtt_to_transcript.py +16 -2
- package/bundled-skills/youtube-notetaker/scripts/write_library_item.py +15 -1
- package/bundled-skills/youtube-transcript/SKILL.md +120 -0
- package/package.json +5 -1
- package/skills_index.json +786 -6
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-self-scheduling
|
|
3
|
+
description: "Schedule AI agent runs with cron, loops, or external clocks while avoiding unsafe tight autonomous timers."
|
|
4
|
+
category: agent-orchestration
|
|
5
|
+
risk: critical
|
|
6
|
+
source: community
|
|
7
|
+
source_repo: davidondrej/skills
|
|
8
|
+
source_type: community
|
|
9
|
+
date_added: "2026-07-07"
|
|
10
|
+
author: davidondrej
|
|
11
|
+
tags: [agents, scheduling, automation, cron]
|
|
12
|
+
tools: [claude, codex]
|
|
13
|
+
license: "MIT"
|
|
14
|
+
license_source: "https://github.com/davidondrej/skills/blob/main/LICENSE"
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Agent Self-Scheduling
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- Use when the user asks for recurring, scheduled, heartbeat, or looped agent work.
|
|
22
|
+
- Use when you need to choose between cron, external schedulers, hooks, or built-in agent scheduling.
|
|
23
|
+
|
|
24
|
+
First question: does the agent have a built-in scheduler (Hermes → Camp B), or do you own the clock (everything else → Camp A)?
|
|
25
|
+
|
|
26
|
+
Universal floor: cron is 1 minute minimum (5-field expr, no seconds) — every camp. For sub-minute you MUST use a `while ...; sleep N; done` loop, a TS extension, or an event hook. Never put an LLM on a tight timer.
|
|
27
|
+
|
|
28
|
+
## Camp A — one-shot agents, you own the clock
|
|
29
|
+
|
|
30
|
+
These run once and exit (amnesiac unless resumed). Schedule them externally.
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
claude -p "PROMPT" --output-format json --allowedTools "Read,Edit,Bash" # Claude Code
|
|
34
|
+
codex exec --json "PROMPT" # Codex
|
|
35
|
+
pi run "PROMPT" # Pi
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Wrap in a clock:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# 1. cron (>= 1 min floor)
|
|
42
|
+
*/10 * * * * cd /path/to/project && pi run "check X and report" >> ~/agent.log 2>&1
|
|
43
|
+
# 2. systemd timer (Linux, survives reboot, better logging) — OnUnitActiveSec=10min
|
|
44
|
+
# 3. dumb loop (sub-minute, or no cron available)
|
|
45
|
+
while true; do pi run "check X"; sleep 30; done
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Gotchas (each breaks unattended runs if ignored):
|
|
49
|
+
- **Permissions hang forever.** Pass `--allowedTools` (Claude) or sandbox/auto-approve flags (Codex), or the run blocks on a prompt.
|
|
50
|
+
- **Use JSON output** (`--output-format json` / `--json`) so the wrapper parses results deterministically.
|
|
51
|
+
- **Runs are amnesiac.** Resume (`codex exec resume --last`) or persist state to a file the next run reads.
|
|
52
|
+
|
|
53
|
+
Pi has NO built-in scheduler/loop/heartbeat by design — external clock only (or a TS extension for agent-side timers).
|
|
54
|
+
|
|
55
|
+
### cmux — orchestration only, NO scheduler
|
|
56
|
+
|
|
57
|
+
cmux has no timer/watch/cron. Three ways to loop it: orchestrator-driven (`send` → `sleep` → `read-screen` on your own clock), a dumb while-sleep wrapper, or — preferred — event-driven via `cmux notify` + OSC terminal hooks, which is cheaper and more responsive than polling. `read-screen` is non-interruptive, safe to poll.
|
|
58
|
+
|
|
59
|
+
If a loop checks another agent, send the user a one-line status each check: what the agent is doing, on track or not. (Claude Code may prefill a predicted next user message after finishing — that's Claude, not the user.)
|
|
60
|
+
|
|
61
|
+
## Camp B — Hermes built-in scheduler
|
|
62
|
+
|
|
63
|
+
Hermes' gateway ticks every 60s and runs due jobs in fresh isolated sessions. State-check first:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
hermes gateway install # user-level ( --system to survive reboot)
|
|
67
|
+
hermes cron create "every 1h" "summarize new emails and report" --skill himalaya
|
|
68
|
+
hermes cron create "0 9 * * *" "post daily standup" # cron expr
|
|
69
|
+
hermes cron create "30m" "one-shot reminder in 30 min" # one-shot delay
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Hermes-unique: **zero-token mode** (run a script, deliver stdout verbatim — use for watchdogs), **chaining** (`context_from` pipes one job's output into the next), **self-terminating loops**, and **loop safety** (scheduled sessions cannot create more cron jobs — don't schedule from inside a scheduled job). Each run is a fresh session: the prompt must carry all context.
|
|
73
|
+
|
|
74
|
+
## Heartbeat pattern
|
|
75
|
+
|
|
76
|
+
One fast recurring tick gates many slower per-task checks: the tick reads a task list + per-task `last_run` timestamps and only acts on tasks that are due. In Hermes use a recurring job (zero-token mode when nothing's due); in Camp A use a while-sleep loop. Define active-hours, and stay silent when nothing is due — no empty noise.
|
|
77
|
+
|
|
78
|
+
## Verify it fires (before reporting success)
|
|
79
|
+
|
|
80
|
+
1. Camp A: log file grows after one interval, or run the wrapped command once by hand → clean JSON, exit 0.
|
|
81
|
+
2. Camp B: `hermes cron list` shows the job + sane `next_run`; trigger a run-now to confirm delivery.
|
|
82
|
+
3. Confirm permission/sandbox flags are present — the #1 silent failure is a hung permission prompt.
|
|
83
|
+
4. Heartbeats: confirm a nothing-due tick stays silent.
|
|
84
|
+
|
|
85
|
+
## Limitations
|
|
86
|
+
|
|
87
|
+
- Adapted from `davidondrej/skills`; verify local paths, tools, credentials, and agent features before acting.
|
|
88
|
+
- For commands, remote access, scheduling, browser automation, or file-changing workflows, get explicit user approval and confirm the target environment first.
|
|
@@ -17,7 +17,9 @@ Access 20+ years of global financial data: equities, options, forex, crypto, com
|
|
|
17
17
|
2. Set as environment variable:
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
|
|
20
|
+
read -rsp "Alpha Vantage API key: " ALPHAVANTAGE_API_KEY
|
|
21
|
+
echo
|
|
22
|
+
export ALPHAVANTAGE_API_KEY
|
|
21
23
|
```
|
|
22
24
|
|
|
23
25
|
## Installation
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: anti-sleep
|
|
3
|
+
description: "Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs."
|
|
4
|
+
category: operations
|
|
5
|
+
risk: critical
|
|
6
|
+
source: community
|
|
7
|
+
source_repo: davidondrej/skills
|
|
8
|
+
source_type: community
|
|
9
|
+
date_added: "2026-07-07"
|
|
10
|
+
author: davidondrej
|
|
11
|
+
tags: [macos, caffeinate, operations]
|
|
12
|
+
tools: [claude, codex]
|
|
13
|
+
license: "MIT"
|
|
14
|
+
license_source: "https://github.com/davidondrej/skills/blob/main/LICENSE"
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Anti-Sleep (macOS caffeinate)
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- Use when the user wants the Mac to stay awake during a long supervised task.
|
|
22
|
+
- Use when a build, download, or automation run should not be interrupted by sleep.
|
|
23
|
+
|
|
24
|
+
Keep the Mac awake using the built-in `caffeinate` command. No install needed.
|
|
25
|
+
|
|
26
|
+
## Quick start — the standard command
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
caffeinate -d -i -t 7200 # full power: screen stays on + no idle sleep, for 2 hours
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Duration is `-t <seconds>`: 2h = 7200, 7h = 25200, overnight (9h) = 32400.
|
|
33
|
+
|
|
34
|
+
## Aggressiveness levels
|
|
35
|
+
|
|
36
|
+
| Flags | Effect |
|
|
37
|
+
|---|---|
|
|
38
|
+
| `-i` | prevents idle **system** sleep only (screen may still dim/lock) |
|
|
39
|
+
| `-d` | prevents **display** sleep (screen stays on) |
|
|
40
|
+
| `-d -i` | **default choice** — screen on + system awake |
|
|
41
|
+
| `-d -i -s` | adds `-s`: prevents sleep even on AC power semantics; `-s` only works when plugged in |
|
|
42
|
+
| `-u -t 1` | simulates user activity — wakes the display right now |
|
|
43
|
+
|
|
44
|
+
Default to `-d -i -t <seconds>` unless the user says otherwise.
|
|
45
|
+
|
|
46
|
+
## Tie to a process instead of a timer
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
caffeinate -d -i -w <PID> # stays awake until that process exits (great for builds)
|
|
50
|
+
caffeinate -i npm run build # wraps a command; exits when the command finishes
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Run it in a visible terminal (cmux pane)
|
|
54
|
+
|
|
55
|
+
Prefer running it in the user's own terminal pane so it's visible and easy to Ctrl+C. In cmux (read the `cmux` skill first if interacting with panes):
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
cmux send --surface surface:<N> "caffeinate -d -i -t 25200\n"
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Otherwise run it as a background Bash task. Never block your own foreground shell with it.
|
|
62
|
+
|
|
63
|
+
## Verify and monitor
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
pgrep -fl caffeinate # is it running? shows exact flags
|
|
67
|
+
ps -o etime= -p <PID> # how long it's been running
|
|
68
|
+
pmset -g assertions | grep -i deny # confirm sleep assertions are active
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Gotcha:** `caffeinate` prints nothing and holds the prompt — it looks "stuck" or like Enter wasn't pressed. It isn't stuck. Verify with `pgrep`, not by looking at the terminal.
|
|
72
|
+
|
|
73
|
+
**Expiry:** with `-t` it exits silently when time runs out — no notification. If the user asks "is it still on?" after hours, check `pgrep` first; it may simply have expired.
|
|
74
|
+
|
|
75
|
+
## Keyboard backlight
|
|
76
|
+
|
|
77
|
+
`caffeinate` cannot keep the keyboard backlight on — it has its own inactivity timer with no CLI/API on Apple Silicon (researched 2026-07). Fix is manual, one-time: System Settings > Keyboard > "Turn keyboard backlight off after inactivity" > Never.
|
|
78
|
+
|
|
79
|
+
## Stop early
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
pkill -f "caffeinate -d -i" # or Ctrl+C in the pane running it
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
After starting: confirm to the user the PID, the flags, and the wall-clock time it will expire.
|
|
86
|
+
|
|
87
|
+
## Limitations
|
|
88
|
+
|
|
89
|
+
- Adapted from `davidondrej/skills`; verify local paths, tools, credentials, and agent features before acting.
|
|
90
|
+
- For commands, remote access, scheduling, browser automation, or file-changing workflows, get explicit user approval and confirm the target environment first.
|
|
@@ -354,6 +354,13 @@ Generates comprehensive pre-launch and update checklists.
|
|
|
354
354
|
4. **Test Locally**: Have native speakers review before publishing
|
|
355
355
|
5. **Measure ROI**: Track downloads by locale to assess impact
|
|
356
356
|
|
|
357
|
+
## Optional External Research Tools
|
|
358
|
+
|
|
359
|
+
Use external tools only when the workflow needs current market inputs or a second pass on directional estimates. Treat third-party estimates as approximate and cite the retrieval date.
|
|
360
|
+
|
|
361
|
+
- [AppNiche Revenue Checker](https://getappniche.com/tools/app-revenue-checker) - free iOS App Store revenue benchmark for competitor prioritization and ASO score context.
|
|
362
|
+
- [AppNiche ASO Keyword Opportunity Checker](https://getappniche.com/tools/app-store-keyword-tool) - free iOS keyword opportunity check for keyword research and Apple keyword field planning.
|
|
363
|
+
|
|
357
364
|
## Limitations
|
|
358
365
|
|
|
359
366
|
### Data Dependencies
|
|
@@ -12,6 +12,19 @@ import shutil
|
|
|
12
12
|
from datetime import datetime
|
|
13
13
|
from pathlib import Path
|
|
14
14
|
|
|
15
|
+
|
|
16
|
+
def safe_user_path(path_value, base_dir="."):
|
|
17
|
+
"""Resolve a CLI path under the current workspace."""
|
|
18
|
+
if base_dir != ".":
|
|
19
|
+
raise ValueError("Custom base directories are not supported for CLI paths")
|
|
20
|
+
base_path = Path.cwd().resolve()
|
|
21
|
+
resolved_path = Path(path_value).expanduser().resolve()
|
|
22
|
+
try:
|
|
23
|
+
resolved_path.relative_to(base_path)
|
|
24
|
+
except ValueError as exc:
|
|
25
|
+
raise ValueError(f"Path escapes allowed directory: {path_value}") from exc
|
|
26
|
+
return resolved_path
|
|
27
|
+
|
|
15
28
|
# Rich for beautiful terminal output
|
|
16
29
|
try:
|
|
17
30
|
from rich.console import Console
|
|
@@ -386,9 +399,9 @@ def save_outputs(transcript_text, ata_text, audio_file, output_dir="."):
|
|
|
386
399
|
|
|
387
400
|
# Sempre salva transcript
|
|
388
401
|
transcript_filename = f"transcript-{timestamp}.md"
|
|
389
|
-
transcript_path =
|
|
402
|
+
transcript_path = safe_user_path(output_dir) / transcript_filename
|
|
390
403
|
|
|
391
|
-
with open(
|
|
404
|
+
with transcript_path.open('w', encoding='utf-8') as f:
|
|
392
405
|
f.write(transcript_text)
|
|
393
406
|
|
|
394
407
|
console.print(f"[green]✅ Transcript salvo:[/green] {transcript_filename}")
|
|
@@ -397,9 +410,9 @@ def save_outputs(transcript_text, ata_text, audio_file, output_dir="."):
|
|
|
397
410
|
ata_path = None
|
|
398
411
|
if ata_text:
|
|
399
412
|
ata_filename = f"ata-{timestamp}.md"
|
|
400
|
-
ata_path =
|
|
413
|
+
ata_path = safe_user_path(output_dir) / ata_filename
|
|
401
414
|
|
|
402
|
-
with open(
|
|
415
|
+
with ata_path.open('w', encoding='utf-8') as f:
|
|
403
416
|
f.write(ata_text)
|
|
404
417
|
|
|
405
418
|
console.print(f"[green]✅ Ata salva:[/green] {ata_filename}")
|
|
@@ -247,6 +247,7 @@ if hasattr(keys.properties, 'properties'):
|
|
|
247
247
|
### Create Connection Setting
|
|
248
248
|
|
|
249
249
|
```python
|
|
250
|
+
import os
|
|
250
251
|
from azure.mgmt.botservice.models import (
|
|
251
252
|
ConnectionSetting,
|
|
252
253
|
ConnectionSettingProperties
|
|
@@ -260,7 +261,7 @@ connection = client.bot_connection.create(
|
|
|
260
261
|
location="global",
|
|
261
262
|
properties=ConnectionSettingProperties(
|
|
262
263
|
client_id="<oauth-client-id>",
|
|
263
|
-
client_secret="
|
|
264
|
+
client_secret=os.environ["BOT_OAUTH_CLIENT_SECRET"],
|
|
264
265
|
scopes="User.Read",
|
|
265
266
|
service_provider_id="<service-provider-id>"
|
|
266
267
|
)
|
|
@@ -60,6 +60,7 @@ Subscription
|
|
|
60
60
|
### 1. Create MySQL Flexible Server
|
|
61
61
|
|
|
62
62
|
```csharp
|
|
63
|
+
using System;
|
|
63
64
|
using Azure.ResourceManager.MySql.FlexibleServers;
|
|
64
65
|
using Azure.ResourceManager.MySql.FlexibleServers.Models;
|
|
65
66
|
|
|
@@ -74,7 +75,7 @@ MySqlFlexibleServerData data = new MySqlFlexibleServerData(AzureLocation.EastUS)
|
|
|
74
75
|
{
|
|
75
76
|
Sku = new MySqlFlexibleServerSku("Standard_D2ds_v4", MySqlFlexibleServerSkuTier.GeneralPurpose),
|
|
76
77
|
AdministratorLogin = "mysqladmin",
|
|
77
|
-
AdministratorLoginPassword = "
|
|
78
|
+
AdministratorLoginPassword = Environment.GetEnvironmentVariable("MYSQL_ADMIN_PASSWORD") ?? throw new InvalidOperationException("MYSQL_ADMIN_PASSWORD is required"),
|
|
78
79
|
Version = MySqlFlexibleServerVersion.Ver8_0_21,
|
|
79
80
|
Storage = new MySqlFlexibleServerStorage
|
|
80
81
|
{
|
|
@@ -60,6 +60,7 @@ Subscription
|
|
|
60
60
|
### 1. Create PostgreSQL Flexible Server
|
|
61
61
|
|
|
62
62
|
```csharp
|
|
63
|
+
using System;
|
|
63
64
|
using Azure.ResourceManager.PostgreSql.FlexibleServers;
|
|
64
65
|
using Azure.ResourceManager.PostgreSql.FlexibleServers.Models;
|
|
65
66
|
|
|
@@ -74,7 +75,7 @@ PostgreSqlFlexibleServerData data = new PostgreSqlFlexibleServerData(AzureLocati
|
|
|
74
75
|
{
|
|
75
76
|
Sku = new PostgreSqlFlexibleServerSku("Standard_D2ds_v4", PostgreSqlFlexibleServerSkuTier.GeneralPurpose),
|
|
76
77
|
AdministratorLogin = "pgadmin",
|
|
77
|
-
AdministratorLoginPassword = "
|
|
78
|
+
AdministratorLoginPassword = Environment.GetEnvironmentVariable("POSTGRES_ADMIN_PASSWORD") ?? throw new InvalidOperationException("POSTGRES_ADMIN_PASSWORD is required"),
|
|
78
79
|
Version = PostgreSqlFlexibleServerVersion.Ver16,
|
|
79
80
|
Storage = new PostgreSqlFlexibleServerStorage
|
|
80
81
|
{
|
|
@@ -72,6 +72,7 @@ ArmClient
|
|
|
72
72
|
### 1. Create SQL Server
|
|
73
73
|
|
|
74
74
|
```csharp
|
|
75
|
+
using System;
|
|
75
76
|
using Azure.ResourceManager.Sql;
|
|
76
77
|
using Azure.ResourceManager.Sql.Models;
|
|
77
78
|
|
|
@@ -83,7 +84,7 @@ var resourceGroup = await subscription
|
|
|
83
84
|
var serverData = new SqlServerData(AzureLocation.EastUS)
|
|
84
85
|
{
|
|
85
86
|
AdministratorLogin = "sqladmin",
|
|
86
|
-
AdministratorLoginPassword = "
|
|
87
|
+
AdministratorLoginPassword = Environment.GetEnvironmentVariable("SQL_ADMIN_PASSWORD") ?? throw new InvalidOperationException("SQL_ADMIN_PASSWORD is required"),
|
|
87
88
|
Version = "12.0",
|
|
88
89
|
MinimalTlsVersion = SqlMinimalTlsVersion.Tls1_2,
|
|
89
90
|
PublicNetworkAccess = ServerNetworkAccessFlag.Enabled
|
|
@@ -54,11 +54,12 @@ uv pip install biopython
|
|
|
54
54
|
For NCBI database access, always set your email address (required by NCBI):
|
|
55
55
|
|
|
56
56
|
```python
|
|
57
|
+
import os
|
|
57
58
|
from Bio import Entrez
|
|
58
59
|
Entrez.email = "your.email@example.com"
|
|
59
60
|
|
|
60
61
|
# Optional: API key for higher rate limits (10 req/s instead of 3 req/s)
|
|
61
|
-
Entrez.api_key = "
|
|
62
|
+
Entrez.api_key = os.environ.get("NCBI_API_KEY")
|
|
62
63
|
```
|
|
63
64
|
|
|
64
65
|
## Using This Skill
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brain-to-docs
|
|
3
|
+
description: "Interview the user to turn project vision and decisions into README and ADR documentation."
|
|
4
|
+
category: productivity
|
|
5
|
+
risk: critical
|
|
6
|
+
source: community
|
|
7
|
+
source_repo: davidondrej/skills
|
|
8
|
+
source_type: community
|
|
9
|
+
date_added: "2026-07-07"
|
|
10
|
+
author: davidondrej
|
|
11
|
+
tags: [documentation, adr, planning]
|
|
12
|
+
tools: [claude, codex]
|
|
13
|
+
license: "MIT"
|
|
14
|
+
license_source: "https://github.com/davidondrej/skills/blob/main/LICENSE"
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# brain-to-docs
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- Use when the user wants to extract project vision, decisions, or preferences into durable docs.
|
|
22
|
+
- Use when README and ADRs should be built through a back-and-forth interview.
|
|
23
|
+
|
|
24
|
+
The whole purpose: extract as much of the user's taste, judgment, knowledge, vision,
|
|
25
|
+
preferences, and decisions as possible into text — saved as clear, concise
|
|
26
|
+
markdown docs for the project. README holds the vision; `docs/adr/` holds the
|
|
27
|
+
decisions.
|
|
28
|
+
|
|
29
|
+
## The loop
|
|
30
|
+
|
|
31
|
+
1. **Check docs first, every time.** Read `docs/adr/` (and `README.md`) before
|
|
32
|
+
doing anything — other agents and people add/edit ADRs constantly.
|
|
33
|
+
2. **Ask 5 different questions** in plain text (never a questions UI) — default 5
|
|
34
|
+
unless the user asks for a different number. Make them high-variety: a wide,
|
|
35
|
+
creative spectrum of unique angles, not all the same type (e.g. not all "tech
|
|
36
|
+
stack" or all "product" or all "monetization"). Exception: if the user asks for a
|
|
37
|
+
specific focus area, follow it. The user answers whichever they find most useful.
|
|
38
|
+
3. **Update docs after EVERY answer** — no exceptions. You decide whether it
|
|
39
|
+
updates `README.md` or becomes a new ADR — whatever makes sense.
|
|
40
|
+
4. Repeat until the user says "we're done" (or similar).
|
|
41
|
+
|
|
42
|
+
## Rules
|
|
43
|
+
|
|
44
|
+
- All answers & responses during this "brain to docs" process must be VERY
|
|
45
|
+
CONCISE, all sentences should be SHORT, and everything should be written in
|
|
46
|
+
PLAIN ENGLISH.
|
|
47
|
+
- ADRs: short, numbered `NNNN-slug.md`, Status + Context + Decision + Consequences.
|
|
48
|
+
- README: vision only. Decisions go in ADRs.
|
|
49
|
+
- Don't challenge the user's thinking unless they ask, or they're making a severe mistake.
|
|
50
|
+
|
|
51
|
+
## Limitations
|
|
52
|
+
|
|
53
|
+
- Adapted from `davidondrej/skills`; verify local paths, tools, credentials, and agent features before acting.
|
|
54
|
+
- For commands, remote access, scheduling, browser automation, or file-changing workflows, get explicit user approval and confirm the target environment first.
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: browser-harness
|
|
3
|
+
description: "Drive an existing browser through CDP for authenticated, visual, or interactive web automation."
|
|
4
|
+
category: browser-automation
|
|
5
|
+
risk: critical
|
|
6
|
+
source: community
|
|
7
|
+
source_repo: davidondrej/skills
|
|
8
|
+
source_type: community
|
|
9
|
+
date_added: "2026-07-07"
|
|
10
|
+
author: davidondrej
|
|
11
|
+
tags: [browser, cdp, automation, scraping]
|
|
12
|
+
tools: [claude, codex]
|
|
13
|
+
license: "MIT"
|
|
14
|
+
license_source: "https://github.com/davidondrej/skills/blob/main/LICENSE"
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# browser-harness
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- Use when a task needs a real logged-in browser, visible interaction, or JS-heavy page control.
|
|
22
|
+
- Use when static fetches are insufficient and CDP browser automation is appropriate.
|
|
23
|
+
|
|
24
|
+
Direct browser control via CDP. For task-specific edits, use `agent-workspace/agent_helpers.py`. For setup, install, or connection problems, read install.md.
|
|
25
|
+
|
|
26
|
+
**Routing check first:** if the task needs no interaction (no clicks, logins, or forms) and you just want page content, use DeepAPI `POST /v1/scrape/website` instead of driving a browser — see the `deepapi` skill. Use browser-harness when the task needs a real browser: interaction, JS-heavy flows, logged-in sessions, or visual verification.
|
|
27
|
+
|
|
28
|
+
Domain skills (community-contributed per-site playbooks under `agent-workspace/domain-skills/`) are off by default. Set `BH_DOMAIN_SKILLS=1` to enable them; see the bottom section.
|
|
29
|
+
|
|
30
|
+
**If `BH_DOMAIN_SKILLS=1` and the task is site-specific, read every file in the matching `agent-workspace/domain-skills/<site>/` directory before inventing an approach.**
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
browser-harness -c '
|
|
36
|
+
new_tab("https://docs.browser-use.com")
|
|
37
|
+
wait_for_load()
|
|
38
|
+
print(page_info())
|
|
39
|
+
'
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
- Invoke as browser-harness — it's on $PATH. No cd, no uv run.
|
|
43
|
+
- First navigation is new_tab(url), not goto_url(url) — goto runs in the user's active tab and clobbers their work.
|
|
44
|
+
|
|
45
|
+
## Tool call shape
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
browser-harness -c '
|
|
49
|
+
# any python. helpers pre-imported. daemon auto-starts.
|
|
50
|
+
'
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
run.py calls ensure_daemon() before exec — you never start/stop manually unless you want to.
|
|
54
|
+
|
|
55
|
+
### Remote browsers
|
|
56
|
+
|
|
57
|
+
Use remote for parallel sub-agents (each gets its own isolated browser via a distinct BU_NAME) or on a headless server. BROWSER_USE_API_KEY must be set. start_remote_daemon, list_cloud_profiles, list_local_profiles, sync_local_profile are pre-imported.
|
|
58
|
+
|
|
59
|
+
When supervising those sub-agents, after each check send the user one very short status line: what they are doing and whether they are on track.
|
|
60
|
+
|
|
61
|
+
Claude Code cmux note: after Claude finishes, it may prefill a predicted next user message; that draft is Claude, not the user speaking.
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
browser-harness -c '
|
|
65
|
+
start_remote_daemon("work") # default — clean browser, no profile
|
|
66
|
+
# start_remote_daemon("work", profileName="my-work") # reuse a cloud profile (already logged in)
|
|
67
|
+
# start_remote_daemon("work", profileId="<uuid>") # same, but by UUID
|
|
68
|
+
# start_remote_daemon("work", proxyCountryCode="de", timeout=120) # DE proxy, 2-hour timeout
|
|
69
|
+
# start_remote_daemon("work", proxyCountryCode=None) # disable the Browser Use proxy
|
|
70
|
+
'
|
|
71
|
+
|
|
72
|
+
BU_NAME=work browser-harness -c '
|
|
73
|
+
new_tab("https://example.com")
|
|
74
|
+
print(page_info())
|
|
75
|
+
'
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
start_remote_daemon prints liveUrl and auto-opens it in the local browser (if a GUI is detected) so the user can watch along. Headless servers print only — share the URL with the user. The daemon PATCHes the cloud browser to stop on shutdown, which persists profile state. Running remote daemons bill until timeout.
|
|
79
|
+
|
|
80
|
+
Profiles (cookies-only login state) live in interaction-skills/profile-sync.md — covers list_cloud_profiles(), the chat-driven "which profile?" pattern, and sync_local_profile() for uploading a local Chrome profile.
|
|
81
|
+
|
|
82
|
+
## Interaction skills
|
|
83
|
+
|
|
84
|
+
If you start struggling with a specific mechanic while navigating, look in interaction-skills/ for helpers. They cover reusable UI mechanics like dialogs, tabs, dropdowns, iframes, and uploads. The available interaction skills are:
|
|
85
|
+
- connection.md
|
|
86
|
+
- cookies.md
|
|
87
|
+
- cross-origin-iframes.md
|
|
88
|
+
- dialogs.md
|
|
89
|
+
- downloads.md
|
|
90
|
+
- drag-and-drop.md
|
|
91
|
+
- dropdowns.md
|
|
92
|
+
- iframes.md
|
|
93
|
+
- network-requests.md
|
|
94
|
+
- print-as-pdf.md
|
|
95
|
+
- profile-sync.md
|
|
96
|
+
- screenshots.md
|
|
97
|
+
- scrolling.md
|
|
98
|
+
- shadow-dom.md
|
|
99
|
+
- tabs.md
|
|
100
|
+
- uploads.md
|
|
101
|
+
- viewport.md
|
|
102
|
+
|
|
103
|
+
## What actually works
|
|
104
|
+
|
|
105
|
+
- Screenshots first: use capture_screenshot() to understand the current page quickly, find visible targets, and decide whether you need a click, a selector, or more navigation.
|
|
106
|
+
- Clicking: capture_screenshot() → read the pixel off the image → click_at_xy(x, y) → capture_screenshot() to verify. Suppress the Playwright-habit reflex of "locate first, then click" — no getBoundingClientRect, no selector hunt. Drop to DOM only when the target has no visible geometry (hidden input, 0×0 node). Hit-testing happens in Chrome's browser process, so clicks go through iframes / shadow DOM / cross-origin without extra work.
|
|
107
|
+
- Bulk HTTP: http_get(url) + ThreadPoolExecutor. No browser for static pages (249 Netflix pages in 2.8s).
|
|
108
|
+
- After goto: wait_for_load().
|
|
109
|
+
- Wrong/stale tab: ensure_real_tab(). Use it when the current tab is stale or internal; the daemon also auto-recovers from stale sessions on the next call.
|
|
110
|
+
- Verification: print(page_info()) is the simplest "is this alive?" check, but screenshots are the default way to verify whether a visible action actually worked.
|
|
111
|
+
- DOM reads: use js(...) for inspection and extraction when the screenshot shows that coordinates are the wrong tool.
|
|
112
|
+
- Iframe sites (Azure blades, Salesforce): click_at_xy(x, y) passes through; only drop to iframe DOM work when coordinate clicks are the wrong tool.
|
|
113
|
+
- Auth wall: redirected to login → stop and ask the user. Don't type credentials from screenshots.
|
|
114
|
+
- Raw CDP for anything helpers don't cover: cdp("Domain.method", params).
|
|
115
|
+
|
|
116
|
+
## Design constraints
|
|
117
|
+
|
|
118
|
+
- Coordinate clicks default. Input.dispatchMouseEvent goes through iframes/shadow/cross-origin at the compositor level.
|
|
119
|
+
- Connect to the user's running Chrome. Don't launch your own browser.
|
|
120
|
+
- cdp-use is only for CDPClient.send_raw. Prefer raw CDP strings over typed wrappers.
|
|
121
|
+
- run.py stays tiny. No argparse, subcommands, or extra control layer.
|
|
122
|
+
- Core helpers stay short. Put task-specific helper additions in `agent-workspace/agent_helpers.py`; daemon/bootstrap and remote session admin live in the core package.
|
|
123
|
+
- Don't add a manager layer. No retries framework, session manager, daemon supervisor, config system, or logging framework.
|
|
124
|
+
|
|
125
|
+
## Hermes Agent integration
|
|
126
|
+
|
|
127
|
+
Installed at `~/Developer/browser-harness` as editable `uv tool install -e .`. Binary at `~/.local/bin/browser-harness`. Skill at `~/.hermes/skills/browser-harness/`.
|
|
128
|
+
|
|
129
|
+
**Frontmatter pitfall:** The upstream SKILL.md ships with `name: browser` in frontmatter, which collides with Hermes's built-in `browser` toolset. When copying into `~/.hermes/skills/`, rename to `name: browser-harness` in the frontmatter or Hermes will shadow/conflict with its own browser tools.
|
|
130
|
+
|
|
131
|
+
**Brave Browser:** Works identically to Chrome. Enable remote debugging at `brave://inspect/#remote-debugging` (same checkbox). The harness auto-discovers Brave's profile directory.
|
|
132
|
+
|
|
133
|
+
## Authenticated content extraction (proven pattern)
|
|
134
|
+
|
|
135
|
+
browser-harness connects to the user's real browser with their active sessions — ideal for extracting content from login-walled sites where `web_extract` or Hermes's built-in `browser_navigate` fail (e.g. X/Twitter articles, LinkedIn, paywalled sites).
|
|
136
|
+
|
|
137
|
+
**Pattern:**
|
|
138
|
+
```bash
|
|
139
|
+
browser-harness -c '
|
|
140
|
+
new_tab("https://x.com/user/status/123456")
|
|
141
|
+
wait_for_load()
|
|
142
|
+
import time
|
|
143
|
+
time.sleep(5) # let JS-heavy pages render
|
|
144
|
+
text = js("""
|
|
145
|
+
const article = document.querySelector("article");
|
|
146
|
+
if (article) return article.innerText;
|
|
147
|
+
return document.body.innerText;
|
|
148
|
+
""")
|
|
149
|
+
with open("/tmp/extracted.txt", "w") as f:
|
|
150
|
+
f.write(text)
|
|
151
|
+
print("Written", len(text), "chars")
|
|
152
|
+
'
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
- Write to a temp file to avoid shell escaping issues with large text
|
|
156
|
+
- Use `time.sleep()` generously for JS-heavy SPAs (X, LinkedIn need 3-5s)
|
|
157
|
+
- X/Twitter articles render inline — just scroll/extract via DOM, no extra click needed
|
|
158
|
+
- For very long pages, `js(...)` with `innerText` grabs everything including below-fold content
|
|
159
|
+
|
|
160
|
+
## Hermes Agent integration
|
|
161
|
+
|
|
162
|
+
Installed at `~/Developer/browser-harness` as editable `uv tool install -e .`. Binary at `~/.local/bin/browser-harness`. Skill at `~/.hermes/skills/browser-harness/`.
|
|
163
|
+
|
|
164
|
+
**Frontmatter pitfall:** The upstream SKILL.md ships with `name: browser` in frontmatter, which collides with Hermes's built-in `browser` toolset. When copying into `~/.hermes/skills/`, rename to `name: browser-harness` in the frontmatter.
|
|
165
|
+
|
|
166
|
+
**Brave Browser:** Works identically to Chrome. Enable remote debugging at `brave://inspect/#remote-debugging` (same checkbox). The harness auto-discovers Brave's profile directory.
|
|
167
|
+
|
|
168
|
+
## Authenticated content extraction (proven pattern)
|
|
169
|
+
|
|
170
|
+
browser-harness connects to the user's real browser with active sessions — ideal for login-walled sites where `web_extract` or Hermes's built-in `browser_navigate` fail (X/Twitter articles, LinkedIn, paywalled sites).
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
browser-harness -c '
|
|
174
|
+
new_tab("https://x.com/user/status/123456")
|
|
175
|
+
wait_for_load()
|
|
176
|
+
import time
|
|
177
|
+
time.sleep(5) # let JS-heavy pages render
|
|
178
|
+
text = js("""
|
|
179
|
+
const article = document.querySelector("article");
|
|
180
|
+
if (article) return article.innerText;
|
|
181
|
+
return document.body.innerText;
|
|
182
|
+
""")
|
|
183
|
+
with open("/tmp/extracted.txt", "w") as f:
|
|
184
|
+
f.write(text)
|
|
185
|
+
print("Written", len(text), "chars")
|
|
186
|
+
'
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
- Write to a temp file to avoid shell escaping issues with large text
|
|
190
|
+
- Use `time.sleep()` generously for JS-heavy SPAs (X, LinkedIn need 3-5s)
|
|
191
|
+
- X/Twitter articles render inline — just scroll/extract via DOM, no extra click needed
|
|
192
|
+
- `js(...)` with `innerText` grabs everything including below-fold content
|
|
193
|
+
|
|
194
|
+
## Gotchas (field-tested)
|
|
195
|
+
|
|
196
|
+
- **Brave Browser** uses `brave://inspect/#remote-debugging` instead of `chrome://inspect/...`. The harness auto-discovers Brave's data dir.
|
|
197
|
+
- Login-walled content extraction (e.g. X/Twitter articles): navigate with `new_tab(url)`, `wait_for_load()`, then extract via `js("document.querySelector('article').innerText")`. Write to a temp file to avoid shell escaping: `with open('/tmp/out.txt', 'w') as f: f.write(text)`. The user's existing browser session handles auth automatically.
|
|
198
|
+
- Omnibox popups are fake page targets. Filter chrome://omnibox-popup... and other internals when you need a real tab.
|
|
199
|
+
- CDP target order != Chrome's visible tab-strip order. Use UI automation when the user means "the first/second tab I can see"; Target.activateTarget only shows a known target.
|
|
200
|
+
- Default daemon sessions can go stale. ensure_real_tab() re-attaches to a real page.
|
|
201
|
+
- Browser Use API is camelCase on the wire. cdpUrl, proxyCountryCode, etc.
|
|
202
|
+
- Remote cdpUrl is HTTPS, not ws. Resolve the websocket URL via /json/version.
|
|
203
|
+
- Stop cloud browsers with PATCH /browsers/{id} + {"action":"stop"}.
|
|
204
|
+
- After every meaningful action, re-screenshot before assuming it worked. Use the image to verify changed state, open menus, navigation, visible errors, and whether the page is in the state you expected.
|
|
205
|
+
- Use screenshots to drive exploration. They are often the fastest way to find the next click target, notice hidden blockers, and decide if a selector is even worth writing.
|
|
206
|
+
- Prefer compositor-level actions over framework hacks. Try screenshots, coordinate clicks, and raw key input before adding DOM-specific workarounds.
|
|
207
|
+
- If you need framework-specific DOM tricks, check interaction-skills/ first. That is where dropdown, dialog, iframe, shadow DOM, and form-specific guidance belongs.
|
|
208
|
+
|
|
209
|
+
## Domain skills (opt-in)
|
|
210
|
+
|
|
211
|
+
Only applies when `BH_DOMAIN_SKILLS=1`. Otherwise ignore — `agent-workspace/domain-skills/` is dormant and `goto_url` won't surface skill files.
|
|
212
|
+
|
|
213
|
+
When enabled, search `agent-workspace/domain-skills/<host>/` before inventing an approach. `goto_url` returns up to 10 skill filenames for the navigated host.
|
|
214
|
+
|
|
215
|
+
If you learn anything non-obvious — a private API, stable selector, framework quirk, URL pattern, hidden wait, or site-specific trap — open a PR to `agent-workspace/domain-skills/<site>/`. Capture the durable shape of the site (the map, not the diary). Don't write pixel coordinates (break on layout), task narration, or secrets — the directory is public.
|
|
216
|
+
|
|
217
|
+
## Limitations
|
|
218
|
+
|
|
219
|
+
- Adapted from `davidondrej/skills`; verify local paths, tools, credentials, and agent features before acting.
|
|
220
|
+
- For commands, remote access, scheduling, browser automation, or file-changing workflows, get explicit user approval and confirm the target environment first.
|