跳到正文
cccskills
免费在 GitHub 公开

browser

A real browser you drive from the shell, to see or act on a web page (open it, read it, click, type, take a screenshot), such as checking that the app you changed works.

中文简介正在准备中。当前显示原文说明。

openagt/openagent星标 11(GitHub 11 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md4.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

The browser

A headless Chrome of your own, on an empty profile: nobody's logins are in it. Drive it with the browser command, always run by its full name: npx @openagt/skill-browser@0.1. It needs Chrome on the machine, or CHROME_PATH set to a Chrome or Chromium executable.

npx @openagt/skill-browser@0.1 open <address>       open the address, starting the browser if none is open
npx @openagt/skill-browser@0.1 read                 print the page again
npx @openagt/skill-browser@0.1 click <n>            click element n
npx @openagt/skill-browser@0.1 type <n> <text>      replace what element n holds with the text; on a select, pick that option;
                                                    on a date or time field, give the value as 2024-01-31, 13:45, 2024-01
npx @openagt/skill-browser@0.1 press <key>          Enter, Tab, Escape, Backspace, Space, ArrowUp, ArrowDown, ArrowLeft, ArrowRight
npx @openagt/skill-browser@0.1 screenshot [file]    save what the page shows as a PNG and print its path (a temporary file
                                                    when none is named; never name one inside the repository)
npx @openagt/skill-browser@0.1 eval <script>        run a JavaScript expression in the page and print its value, as JSON
                                                    (`document.title`, not `return document.title`; `await` works; an
                                                    element prints as `{}`, so ask for its properties)
npx @openagt/skill-browser@0.1 console              print the browser's console since it opened: what the pages' code logged,
                                                    their uncaught errors and the files that did not load
npx @openagt/skill-browser@0.1 close                close the browser

Quote a <text> or <script> with spaces as one argument: npx @openagt/skill-browser@0.1 type 2 'Ada Lovelace'.

open, read, click, type and press print the page once it has loaded (or after 10 seconds, as it stands): its title, its address, its text (the first 10,000 characters), then its elements (links, buttons, fields; the first 300) numbered [n]. What is inside an iframe or a shadow root is not printed; reach it with eval. click and type take that number, from the last print: when the page changes, the numbers do too. The numbers are written on the page's elements as data-browser-ref attributes. An address without http:// or https:// gets http://; no other kind opens. A dialog the page opens (alert, confirm, prompt) is accepted at once, and the next print begins with a Dialog, accepted: line naming it. When the page logged errors since you were last told, the print begins with a Console: 2 new errors. line: read them with console. Each of its lines has its time, and a → <address> line marks where the page went to another address, so what is under the last one is the page you are on. When not everything fits, the errors are printed first, then the newest lines. What a worker, or a frame from another site, logs is not in it.

The browser belongs to the project the command runs in (its git root): run every command from inside the same project.

A refusal exits 1 with the reason on stderr (no browser open, no such element, an address the server did not answer, a page that did not answer within 30 seconds; an error page such as a 404 prints like any page); a wrong command line exits 2 with the usage.

A person watching your run sees this browser live, with its console, and can click, type and paste in it too: if the page is not what your last print showed, read it again.

What a page asks of a person is theirs to give, not yours to get around: a sign-in, a "prove you are a human" check, a code from their phone, a card number. Never type someone's password, and never try to get past a check that is there to tell a person from a program. Say what the page is asking for, and ask the person for it (the question skill), ending your reply there. Your browser stays open while you wait and they do it themselves in the live view; their answer brings you back, and you read the page again and go on from where they left it. When nobody will answer you, say which page needs a person and stop there.

Close it when the page is of no more use to anyone (with none open, close says so and succeeds) — but leave it open when the person may want to see what you saw: the browser is their view as much as your tool, and the end of your run is when they are most likely to look. Left open, it closes itself 10 minutes after your run ends, longer while someone is still watching it, and after 30 minutes unused while your run is still going. A run that stops to ask a question keeps it for the answer.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

branches

免费

Where your work goes (a branch named agent-<name>), how to name it, what must be true before you finish, and how to push it when you are asked to.

中文简介正在准备中。当前显示原文说明。

openagt/openagent112026年10月31日 更新

discord

免费

Post a message to the team's Discord channel from the shell, when a task asks you to tell people something there.

中文简介正在准备中。当前显示原文说明。

openagt/openagent112026年10月31日 更新

github

免费

The project's git host is GitHub: how to open your pull request when you are asked to, how to land it, and how to read and close the project's issues.

中文简介正在准备中。当前显示原文说明。

openagt/openagent112026年10月31日 更新

logs

免费

The record of every run agents made on this project — what was asked, where the work went, how it ended, what the agent said — where it lives, how to read it, and when to look back before you work.

中文简介正在准备中。当前显示原文说明。

openagt/openagent112026年10月31日 更新

Refactor a part of the code to make it as maintainable as possible.

中文简介正在准备中。当前显示原文说明。

openagt/openagent112026年10月31日 更新

Find the parts of the code that need refactoring and put their maintainability and security work on the agent queue. Queues only.

中文简介正在准备中。当前显示原文说明。

openagt/openagent112026年10月31日 更新

查看 openagt 的全部技能

报告此技能的问题