Flow Control Hub Free
БесплатноБез исполняемых скриптовНе проверен桌面自动化流程控制中枢免费版,提供鼠标、键盘、屏幕截图等核心自动化能力,快速上手RPA任务。
от thcjp551 установка в других каталогахОб этом скилле
让AI Agent像人类一样操作桌面。鼠标、键盘、截图,三合一流程控制。
将重复性桌面操作交给Agent执行。本技能提供统一的桌面控制接口,覆盖鼠标定位、键盘输入、屏幕截图三大核心能力,配合失败安全机制确保自动化过程可控可中止。
架构总览
┌─────────────────────────────────────────────────┐
│ 桌面流程控制中枢 (免费版) │
├─────────────────────────────────────────────────┤
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ 鼠标控制 │ │ 键盘控制 │ │ 屏幕操作 │ │
│ │ │ │ │ │ │ │
│ │ 绝对定位 │ │ 文本输入 │ │ 全屏截图 │ │
│ │ 相对移动 │ │ 热键组合 │ │ 区域截图 │ │
│ │ 平滑移动 │ │ 特殊按键 │ │ 像素检测 │ │
│ │ 点击拖拽 │ │ 按键保持 │ │ 分辨率 │ │
│ └──────────┘ └──────────┘ └──────────┘ │
│ │ │ │ │
│ └────────────┼────────────┘ │
│ ▼ │
│ ┌──────────────┐ │
│ │ 安全防护层 │ │
│ │ 失败中止 │ │
│ │ 边界检查 │ │
│ └──────────────┘ │
└─────────────────────────────────────────────────┘
快速开始
- 阅读## 核心能力章节了解skill功能
- 按## 依赖说明配置环境
- 执行所需能力对应的命令
- 参考## 错误处理章节处理异常
- 查看## FAQ解答常见疑问
30秒上手(最小可用)
安装依赖并执行第一次鼠标移动:
pip install pyautogui pillow
import pyautogui
x, y = pyautogui.position()
print(f"鼠标位置:{x}, {y}")
screen_w, screen_h = pyautogui.size()
pyautogui.moveTo(screen_w // 2, screen_h // 2, duration=0.3)
pyautogui.click()
120秒标准搭建
初始化控制器并执行完整的输入流程:
import pyautogui
import time
pyautogui.FAILSAFE = True
pyautogui.PAUSE = 0.1 # 每个操作间隔0.1秒
screenshot = pyautogui.screenshot()
screenshot.save("before_action.png")
try:
import pygetwindow as gw
windows = gw.getAllWindows()
for w in windows:
if "记事本" in w.title:
w.activate()
time.sleep(0.5)
break
except ImportError:
print("提示:安装 pygetwindow 可启用窗口管理:pip install pygetwindow")
pyautogui.typewrite("Hello World", interval=0.05)
pyautogui.hotkey('ctrl', 's')
screenshot_after = pyautogui.screenshot()
screenshot_after.save("after_action.png")
300秒完整配置
配置自动化日志、错误处理与批量操作模板:
import pyautogui
import time
import logging
from pathlib import Path
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(levelname)s - %(message)s',
filename='automation.log'
)
logger = logging.getLogger(__name__)
class FlowController:
"""桌面流程控制器(免费版核心)"""
def __init__(self, failsafe=True, pause=0.1):
self.failsafe = failsafe
self.pause = pause
pyautogui.FAILSAFE = failsafe
pyautogui.PAUSE = pause
self.action_log = []
def safe_click(self, x, y, button='left', clicks=1, desc=""):
"""安全点击,带日志记录"""
try:
logger.info(f"点击 ({x}, {y}) [{button}] - {desc}")
pyautogui.click(x, y, button=button, clicks=clicks)
self.action_log.append({
'action': 'click', 'x': x, 'y': y,
'desc': desc, 'success': True
})
except pyautogui.FailSafeException:
logger.error("失败安全触发!自动化已中止。")
raise
except Exception as e:
logger.error(f"点击失败:{e}")
self.action_log.append({
'action': 'click', 'desc': desc, 'success': False, 'error': str(e)
})
def safe_type(self, text, interval=0.05, desc=""):
"""安全输入文本"""
try:
logger.info(f"输入文本:{text[:30]}... - {desc}")
pyautogui.typewrite(text, interval=interval)
self.action_log.append({
'action': 'type', 'text': text, 'desc': desc, 'success': True
})
except Exception as e:
logger.error(f"输入失败:{e}")
def capture(self, region=None, filename=None):
"""截图并保存"""
img = pyautogui.screenshot(region=region)
if filename:
Path(filename).parent.mkdir(parents=True, exist_ok=True)
img.save(filename)
logger.info(f"截图已保存:{filename}")
return img
fc = FlowController(failsafe=True)
fc.safe_click(500, 300, desc="点击输入框")
fc.safe_type("自动化测试内容", desc="填写表单")
fc.capture(filename="screenshots/result.png")
核心能力
鼠标控制
| 功能 | 方法 | 参数说明 |
|---|---|---|
| 绝对定位 | moveTo(x, y, duration) |
x/y为像素坐标,duration为移动时长(秒) |
| 相对移动 | moveRel(xOffset, yOffset) |
相对当前位置偏移 |
| 平滑移动 | moveTo(x, y, duration=0.5) |
duration>0时使用插值平滑移动 |
| 左键点击 | click(x, y) |
不传坐标则在当前位置点击 |
| 右键点击 | click(x, y, button='right') |
button可选left/right/middle |
| 双击 | click(x, y, clicks=2) |
clicks控制点击次数 |
| 拖拽 | dragTo(x, y, duration=0.5) |
从当前位置拖拽到目标 |
| 滚轮 | scroll(clicks) |
正数向上,负数向下 |
| 获取位置 | position() |
Установить Flow Control Hub Free в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
readexecFAQ
Что делает скилл Flow Control Hub Free?
桌面自动化流程控制中枢免费版,提供鼠标、键盘、屏幕截图等核心自动化能力,快速上手RPA任务。
Как установить скилл Flow Control Hub Free?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Flow Control Hub Free запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic