chore: prompt compress skills and tool definition#82
Conversation
WalkthroughThis PR restructures skill guidance documentation across eight markdown files and updates the agent tool description. Changes consolidate and clarify instructions for handling captcha solving, interactive UI patterns (modals, consent banners, shadow DOM), screenshots and snapshot misses, dynamic content waits, and tab management—without modifying executable logic or public APIs. ChangesSkill Documentation and Agent Tool Updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/skills/shadow-dom.md`:
- Around line 5-11: Update the markdown to fix MD040/MD038: change the untyped
fenced block to include a language (e.g., replace the triple backtick block with
```text around the example `< *url-pattern* css-selector`) and normalize inline
code spans that contain a literal space by rewriting them to avoid spaces inside
a single code span (e.g., replace inline snippets like `deep-ref=< button#deny`,
`deep-ref=<`, and similar occurrences in the "Deep selectors: `< ` prefix"
section with human-readable concatenation forms such as backticked `<` followed
by " + space" or use two adjacent code spans like `<` and ` ` where appropriate)
so the code fence has a language and no inline code span contains an internal
space.
In `@src/tools/agent.ts`:
- Around line 672-675: The docs currently list proxy examples as if fields like
proxyCountry/proxySticky are top-level; clarify that these belong under the
proxy object by updating the text around the proxy examples (the lines
describing proxy: "residential", proxyCountry, proxyState, proxyCity,
proxySticky, proxyLocaleMatch, proxyPreset, externalProxyServer) to show the
correct shape and include an explicit JSON example such as { "proxy": { ... } }
so callers using the agent creation code (where the schema expects a proxy
object) won't send top-level fields and trigger INVALID_PARAMS.
- Around line 766-767: Update the documentation comment for the "close" command
so it no longer says "own call, NOT batched"; change it to state that "close"
may be included in batched commands and that the runtime will handle "close"
specially when present in a batch (so agents can include it in grouped actions).
Ensure the new wording replaces the existing line referencing "close" and
clarifies that batching "close" is supported by the runtime's batch handler.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e6237581-2ecb-4bd0-b2f5-e53ed0fb5d08
📒 Files selected for processing (9)
src/skills/captchas.mdsrc/skills/cookie-consent.mdsrc/skills/dynamic-content.mdsrc/skills/modals.mdsrc/skills/screenshots.mdsrc/skills/shadow-dom.mdsrc/skills/snapshot-misses.mdsrc/skills/tabs.mdsrc/tools/agent.ts
Makes skills and agent tool definition more token-effective
Summary by CodeRabbit