game-automation
하는 일
이 스킬은 에이전트가 Windows에서 실행 중인 게임을 조작해 변경 사항을 테스트하게 합니다. 추측하지 않고 실제 게임에서 결과를 확인하려는 모더를 위한 것입니다.
사용하는 경우
- ✓모드가 실제 게임에서 작동하는지 확인하고 싶을 때.
- ✓변경 후 게임 창의 스크린샷이 필요할 때.
- ✓테스트하는 동안 에이전트가 메뉴를 탐색하고 게임 로그를 읽기를 원할 때.
스킬 링크
https://github.com/rehan-remade/universal-modder/blob/main/.agents/skills/game-automation/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“게임을 실행하고 메인 메뉴로 가서 스크린샷을 찍은 다음, 제 모드의 텍스트가 보이는지 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 게임을 시작하고 창 크기를 고정한 뒤, 스크린샷, 클릭, 키 입력, 로그 읽기로 행동하고 관찰합니다. 스크립트로 된 테스트 장면도 실행할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Game automation: the agent's hands and eyes
The real game is the oracle. The loop is launch → navigate → set up the scene → act → screenshot and read logs → decide. Build it once per game, then every change you make can be checked in a minute.
Windows (native or from WSL): um win
um win setup # once: PowerShell tools + an ffmpeg with gfxcapture, picks NVENC/AMF/QSV/x264
um win ps # windowed processes: pid, name, title
um win launch --steam 105600 # or: um win launch "C:\Games\Foo\Foo.exe" -- -windowed
um win shot --exe Terraria.exe shot.png --scale 0.33 # full frame + a 1/3 copy that's cheap to look at
um win drive --proc Terraria "focus" "click 640 360" "key 0x1B" "type hello" "hold 0x44 1500"
um win drive --proc Terraria "hold 0x20 150" "sleep 200" "hold 0x20 150" # sleep <ms> pauses between steps
um win drive --proc Terraria idle # seconds since the user last touched mouse/keyboard (does not wait)
um win kill <pid> # exact PID only
um win reg get "HKCU\Software\..." # registry (reg set backs the key up first)
From Python (for longer scripts), from um.win import Drive, shot, Recorder, then d = Drive("AoE2DE_s"),
d.focus(), d.click(x, y), d.key("0x0D").
WinDrive commands (um/ps1/WinDrive.ps1; stdin protocol, one reply per line). Coordinates are in
the game window's client area.
- Mouse:
move x y,click x y [right],mdown/mup,drag x0 y0 x1 y1,rel dx dy(FPS cameras / raw input),wheel 120. - Keyboard:
key <vk> [tap|down|up],hold <vk> <ms>,type <text>,scanmode on(DirectInput / raw-input games that ignore virtual-key events). - Window:
focus,rect,size <w> <h>(sets the client size),title,fg,idle,untop. - Timing:
sleep <ms>waits between steps in one call. Eachum win drivecall starts PowerShell (1-2 s), so put timed combos in one call. - Virtual-key codes: Esc 0x1B, Enter 0x0D, Space 0x20, W/A/S/D 0x57/0x41/0x53/0x44, F1 0x70, Shift 0x10, Ctrl 0x11, arrows 0x25-0x28.
Rules of the road
- Never focus a game with an online mode while the human is typing. It happened with GTA V: the agent
focused GTA to click Story Mode, the human's keystrokes hit GTA's landing page, and GTA warned about
"accessing GTA Online servers with an altered version". ScriptHookV blocked it; don't rely on that.
Check
idle, ask the human to click, and launch with the anti-cheat off so online can't start. Seeknowledge/techniques/driving-real-games-safely.md. - Input only goes to the game. WinDrive refuses to send while another app is in the foreground. The one exception is when nothing is and the cursor is over the game, which windowed games cause by dropping the foreground on clicks.
- The user may be at the PC. If
idleis under a minute, ask before driving, and keep sessions short. Unattended runs are fine once the user says so. - Screenshots cost tokens. Look at
--scale 0.33copies. Multiply coordinates back ×3 for clicks, and keep a table of menu click points in MODLOG.md, measured once. - Why gfxcapture: GPU-rendered games come out black with GDI capture. gfxcapture (Windows.Graphics.Capture) grabs one window's real frames, even when covered. It can't capture minimized windows.
- HDR displays: with Windows Auto HDR on for an SDR game, captures come out washed out (2-3x brighter,
cyan-shifted), so colours can't be judged.
um win shot/recordwarn when it's on; turn it off for the game while capturing (Settings > System > Display > Graphics > the game > Auto HDR), and back on after if the user wants.
Make the window predictable
- Windowed mode at a fixed client size. Every game hides this setting somewhere:
- an ini (
[/Script/Engine.GameUserSettings]in UEGameUserSettings.ini, Unity'sScreenmanager Fullscreen mode/Resolutionregistry values underHKCU\Software\<company>\<product>); - a launch flag (
-windowed -w 1920 -h 1080, Unity-screen-fullscreen 0 -screen-width 1920 -screen-height 1080, Source-sw -w 1920 -h 1080); - or the game's own registry (AoE2:
Mode Display0 +Windowed Width/Height). um win drive --proc X "size 1920 1080"also resizes most windowed games.
- an ini (
- Skip intros: launch flags (
-skipintro,-nosplash, Unity-popupwindow), or delete/rename intro videos in a **
자주 묻는 질문
어떤 시스템에서 작동하나요?
Windows용으로 작성되었으며, 에이전트가 WSL에서 실행되는 경우도 포함합니다.
게임 프로세스를 종료할 수 있나요?
네. 다만 같은 이름의 모든 프로세스가 아니라 에이전트가 시작한 정확한 프로세스 ID만 종료합니다.
게임 로그를 읽나요?
네. 게임이 무엇을 했는지 확인하는 단계 중 하나로 로그를 읽습니다.
상세 정보
작성자의 원본 설명
Launch, see and drive a real game so an agent can test its own mods. Covers launching via Steam or the exe, windowed mode at a fixed size, screenshots of the game window (GPU-safe capture), clicking and typing into menus, holding keys, relative mouse, crash-reporter cleanup, killing by PID, reading logs, scripted test scenes, and an in-game JSON bridge that lets an agent observe and act. Windows-first (also from WSL), with notes for Linux and macOS. Use when a mod must be verified in game, when navigating menus automatically, or when building a repeatable test or demo scene.
인기도
- GitHub 스타
- 9.3k
- 순위
- #12285
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
asset-pipeline
9.3k에이전트가 생성되었거나 직접 만든 그림을 게임 엔진이 불러오는 정확한 크기, 프레임 배치, 팔레트, 파일 형식으로 바꾸도록 돕습니다.
blitz3d-decomp
9.3k에이전트가 Blitz3D 게임을 읽을 수 있는 소스로 분해하고, 원본 게임을 기준으로 다른 엔진으로 옮기는 계획을 세우도록 돕습니다.
fal-assets
9.3k에이전트가 fal.ai로 게임 그림, 효과음, 음악, 3D 모델을 만들도록 돕습니다. 스프라이트와 텍스처부터 음성 대사와 영상까지 다룹니다.
game-recon
9.3k에이전트가 설치된 게임을 찾고, 엔진, 버전, 안티치트, 세이브, 커뮤니티 모딩 경로 등 모드를 만들 수 있는 방법을 파악하도록 돕습니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.