tmux-real-user-testing
하는 일
이 스킬은 실제 사용자가 하는 것처럼 tmux로 터미널 앱을 조작해 테스트합니다. 각 화면의 읽기 쉬운 로그를 저장해 사람이 여정을 검토할 수 있게 합니다. 터미널 인터페이스를 점검하는 테스터와 개발자를 위한 스킬입니다.
사용하는 경우
- ✓실제 사용자가 사용하는 것처럼 터미널 인터페이스를 테스트하고 싶을 때.
- ✓터미널 테스트 중 각 화면의 읽기 쉬운 기록이 필요할 때.
- ✓터미널 앱의 슬래시 명령이나 대화 상자를 확인하고 싶은 경우.
스킬 링크
https://github.com/QwenLM/qwen-code/blob/main/.qwen/skills/tmux-real-user-testing/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 터미널 앱의 슬래시 명령을 실제 사용자처럼 테스트하고, 모든 화면의 읽기 쉬운 로그를 저장해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 tmux 세션에서 앱을 시작하고, 현실적인 키 입력을 보내며, 변화가 생길 때마다 화면을 캡처합니다. 원시 터미널 출력 대신 각 캡처를 검토할 수 있는 읽기 쉬운 로그로 저장합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
tmux Real User Testing
Run Qwen Code in a real tmux TUI session as a user would: navigate dialogs, trigger slash commands, exercise workflows, and save a readable log that maintainers can review. Prefer this workflow when the goal is not just a pass/fail assertion, but a narrative artifact showing what happened on screen.
Core principle
Use tmux as a real-use harness. Drive the TUI with realistic keyboard actions,
then save a step-by-step readable transcript with tmux capture-pane -p after
each meaningful state change.
Avoid relying on tmux pipe-pane as the primary report. pipe-pane captures raw
ANSI/control streams from React Ink TUI output and often looks like garbled text
when opened as plain text. Use pipe-pane only as an optional forensic artifact. Make
tmux-readable-full.log the main deliverable.
When to use
Use this workflow for:
- TUI behavior, rendering, dialogs, keyboard navigation, slash commands, or auth flows.
- Realistic workflows where a maintainer wants to read the journey afterward.
- Regression testing where final state is insufficient and intermediate screens matter.
- User-facing flows such as
/auth,/model,/manage-models, MCP setup, permissions, onboarding, or interactive error recovery.
Use headless JSON E2E instead when only tool execution or model API behavior needs structured assertions.
Standard artifact layout
Create a timestamped directory under project tmp/:
tmp/<scenario>-tmux-YYYYMMDD-HHMMSS/
├── tmux-readable-full.log # primary report: step-by-step readable snapshots
├── tmux-final-capture.log # final screen only
├── current-pane.txt # latest poll/snapshot scratch file
└── report.md # short summary with result and artifact pointers
Do not overwrite previous runs. Preserve complete logs unless the user explicitly asks to sanitize or trim them.
Recommended helper script
Use scripts/tmux-real-user-log.sh to avoid rewriting shell glue. The script can
start a session, append labeled snapshots, send keys, wait for text, and finish.
The start command outputs export statements — use eval to set the variables
directly in your shell:
eval "$(bash .qwen/skills/tmux-real-user-testing/scripts/tmux-real-user-log.sh \
start <scenario> . npm run dev -- --approval-mode yolo)"
# → $SESSION, $OUTDIR, $LOG are now available
Show the full usage before running a new scenario:
bash .qwen/skills/tmux-real-user-testing/scripts/tmux-real-user-log.sh help
Manual workflow
1. Start the TUI
Use a large tmux viewport so dialogs render fully. Wait for the TUI to render before interacting — poll for a known startup string rather than blind sleeping:
TS=$(date +%Y%m%d-%H%M%S)
PROJECT_ROOT="$(pwd)"
OUT="$PROJECT_ROOT/tmp/<scenario>-$TS"
SESSION="<scenario>-$TS"
mkdir -p "$OUT"
tmux new-session -d -s "$SESSION" -x 200 -y 50 \
-c "$PROJECT_ROOT" \
"npm run dev -- --approval-mode yolo"
# Poll until TUI is ready (adjust regex to match your app's startup line)
for i in $(seq 1 30); do
sleep 1
if tmux capture-pane -t "$SESSION" -p -S -100 | grep -q "Ready\|>"; then
break
fi
done
Use node dist/cli.js instead of npm run dev only when verifying a built
bundle. Use the globally installed qwen only when reproducing a user-reported
installed-version bug.
2. Append labeled readable snapshots
After each meaningful action, append a section header plus capture-pane -p to
the full log:
LOG="$OUT/tmux-readable-full.log"
{
printf '\n===== 01 /auth dialog =====\n'
tmux capture-pane -t "$SESSION" -p -S -240
} >> "$LOG"
Increase -S as the session grows (add ~100 lines per section). The important
part is that each section is a rendered frame, not raw ANSI output.
3. Send keys like a user
Split typing and Enter to avoid swallowed submissions:
tmux send-keys -t "$SESSION" "/auth"
sleep 0.5
tmux send-keys -t "$SESSION" Enter
sleep 2
For navigation:
tmux send-keys -t "$SESSION" Down
tmux send-keys -t "$SESSION" Space
tmux send-keys -t "$SESSION" Escape
For text input into Ink fields, prefer one key at a time if bulk text is ignored:
tmux send-keys -t "$SESSION" e n a b l e d
4. Poll for completion instead of blind sleeping
Use text on the screen as the completion condition. On timeout, dump the current pane so the log shows what was on screen when the wait expired:
for i in $(seq 1 60);
자주 묻는 질문
원시 터미널 출력을 그냥 저장하면 안 되나요?
원시 출력은 읽기 어려우므로, 이 스킬은 각 화면을 텍스트로 캡처합니다.
주된 결과물은 무엇인가요?
화면마다의 여정을 보여 주는 읽기 쉬운 로그입니다.
언제 다른 방법을 써야 하나요?
도구 결과나 API 동작을 단언문으로 확인하는 것이면 헤드리스 테스트가 더 적합합니다.
상세 정보
작성자의 원본 설명
This skill should be used when the user asks to "用 tmux 做真实测试", "保存 tmux 日志", "像真实用户一样测试 Qwen", "生成可复查的 TUI 测试报告", "测试 slash command 交互", or requests a tmux-based real user E2E run with complete readable logs. It guides real TUI usage with step-by-step capture-pane snapshots rather than ANSI raw pipe logs.
repo: QwenLM/qwen-code
인기도
- GitHub 스타
- 29k
- 순위
- #9771
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
codegraph
29k에이전트가 색인된 코드베이스를 호출 그래프, 의존성, 죽은 코드, 핫스팟, 의미 검색으로 분석하도록 돕습니다.
qwen-code-claw
29k에이전트가 코드베이스 이해, 버그 수정, 리팩터링, 새 프로젝트 생성 같은 코딩 작업을 Qwen Code에 맡기도록 돕습니다.
structured-debugging
29k에이전트가 어려운 버그를 디버깅하는 단계별 방법을 가르칩니다. 가설을 세우고, 대상 확인을 추가하고, 시험해서 실제 원인을 찾은 뒤 고칩니다.
generated-ui
29k에이전트가 채팅 안에 대화형 계산기, 시뮬레이터, 비교 도구를 띄워, 입력값을 바꾸며 결과를 바로 볼 수 있게 합니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.