rexleimo/harness-cli/skill-constraints
Claude Code and agent skill by rexleimo/harness-cli
- community
Checking that the SKILL.md file is still in the repository.
Enforce browser automation safety constraints — tool usage order, anti-detection rules, screenshot discipline, and human-in-the-loop checks. Use when setting up or verifying browser/MCP tool operations, NOT for every skill execution.
Install
npx vskill@latest install rexleimo/harness-cli/skill-constraintsSKILL.md
浏览器操作约束
Working directory: any (MCP tools are session-relative; file paths are relative to project root)
所有浏览器自动化操作 MUST 遵循此约束规则,确保安全、高效、可追溯。
When to Use
- 执行任何浏览器自动化操作时
- 使用 MCP 工具(
page.extract_text,page.get_html,page.screenshot等)时 - 进行任何运营操作(发布笔记、点赞、评论等)时
Core Pattern
浏览器操作
操作间隔
Every browser action (click, type, navigate) MUST be followed by a random wait. No exceptions.
Use page.wait with a random duration, or if running in a shell context:
In MCP context, use page.wait({ duration: <random 5-30s> }) or equivalent.
This is not optional — skipping intervals risks detection and account bans. If you batch operations without waiting, the entire task is considered failed regardless of outcome.
Rules
MUST NOT(禁止行为)
| 行为 | 原因 | |
|---|---|---|
| 直接在对话中粘贴大段截图 | 浪费 token,MUST 保存到文件 | |
| 跳过反检测 | 每次操作前 MUST 执行 | |
| 跳过操作间隔 | MUST 随机 5-30 秒 | |
| 在非 temp 目录保存截图 | MUST 保存到 aios/temp/ | |
| 自动化执行第三方平台登录 | 登录 MUST 由人工完成(含 2FA) |
MUST(必需行为)
| 行为 | 原因 | |
|---|---|---|
| 操作前执行反检测 | 使用反检测脚本(如项目中已有)或通过 CDP 指纹配置规则 | |
| 截图保存到 temp/ | 路径固定为 aios/temp/ | |
| 先读文本/DOM | page.extract_text → page.get_html | |
| 使用 grep 搜索快照 | 先保存 snapshot 到文件,再用 grep 搜索 | |
| 记录到历史 | 关键操作写入 .aios/context-db checkpoint/event | |
| 登录态检测 | 识别到登录页/验证码/2FA 时 MUST 先提示用户协作登录 |
MCP 工具优先级
- page.extract_text - 首选,获取页面文本证据并做主决策
- page.get_html - 补充 DOM 结构和属性信息
- page.screenshot - 仅在视觉降级时使用
- page.click - 通过 selector 操作
- page.type - 通过 selector 输入
Examples
Good
Bad
Common Mistakes
| 错误 | 正确做法 | |
|---|---|---|
| 截图直接在对话中显示 | 保存到 temp/,用 Read 工具查看 | |
| 忽略随机间隔 | 每次操作后 sleep 5-30 秒 | |
| 默认先看整页截图 | 先读布局字段,必要时再局部截图 | |
| 用眼睛看截图找内容 | 用 grep 从快照搜索 | |
| 在项目根目录放临时文件 | 统一放 aios/temp/ |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill-sources/skill-constraints/SKILL.md
Popularity
- Repository stars
- 49
- Repository forks
- 6
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rexleimo/harness-cli/skill-constraints)