मुख्य सामग्री पर जाएँ
Skillpedia
टेस्टिंग29k · #9771

tmux-real-user-testing

यह क्या करती है

यह स्किल टर्मिनल ऐप को tmux में वैसे चलाती है जैसे असली यूज़र चलाता है, और उसे टेस्ट करती है। यह हर स्क्रीन का पढ़ने योग्य लॉग सहेजती है, ताकि कोई व्यक्ति यात्रा की समीक्षा कर सके। यह टर्मिनल इंटरफ़ेस जांचने वाले टेस्टर और डेवलपरों के लिए है।

कब इस्तेमाल करें

  • ✓जब आप टर्मिनल इंटरफ़ेस को असली यूज़र की तरह टेस्ट करना चाहें।
  • ✓जब आपको टर्मिनल टेस्ट के दौरान हर स्क्रीन का पढ़ने योग्य रिकॉर्ड चाहिए।
  • ✓जब आप टर्मिनल ऐप में slash commands या डायलॉग जांचना चाहें।

Skill का लिंक

https://github.com/QwenLM/qwen-code/blob/main/.qwen/skills/tmux-real-user-testing/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/QwenLM/qwen-code/blob/main/.qwen/skills/tmux-real-user-testing/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“इस टर्मिनल ऐप के slash commands को असली यूज़र की तरह टेस्ट कीजिए और हर स्क्रीन का पढ़ने योग्य लॉग सहेजिए।”

हर हफ़्ते 5 नई skills, 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 व्यवहार assertions से जांचने हैं, तो headless टेस्ट बेहतर विकल्प है।

जानकारी

लेखक का मूल विवरण

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
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

codegraph

29k

यह आपके एजेंट को इंडेक्स किए कोडबेस का विश्लेषण करने में मदद करती है, उसके कॉल ग्राफ़, निर्भरताओं, बेकार कोड, हॉटस्पॉट और अर्थ-आधारित खोज के ज़रिए।

कोडिंगसामान्य कोडिंग

qwen-code-claw

29k

यह आपके एजेंट को कोडिंग के काम Qwen Code को सौंपने में मदद करती है, जैसे कोडबेस समझना, बग ठीक करना, कोड रीफ़ैक्टर करना या नया प्रोजेक्ट बनाना।

कोडिंगसामान्य कोडिंग

structured-debugging

29k

यह आपके एजेंट को कठिन बग ढूँढने का चरण-दर-चरण तरीका सिखाती है: परिकल्पना बनाना, लक्षित जांच करना, परखना और ठीक करने से पहले असली कारण ढूँढना।

कोडिंगसामान्य कोडिंग

generated-ui

29k

यह आपके एजेंट को चैट के अंदर ही एक इंटरैक्टिव कैलकुलेटर, सिम्युलेटर या तुलना दिखाने देती है, ताकि आप इनपुट बदलकर नतीजे देख सकें।

डिज़ाइनइंटरफ़ेस (UI/UX)

मिलती-जुलती skills