agentleFS
rakaarwakyrakaarwaky/agents-arwaky/skills/automation/qwen-web/SKILL.md

qwen-web

Skill0 starsChanged 57 days agoMITView on GitHub

Automate Qwen AI Web (chat.qwen.ai) with the Qwen3.8-Max intelligence model — zero API keys, persistent browser sessions. Use when an AI agent needs to send prompts, review code, or analyze document attachments via CLI or MCP tools.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when an AI agent needs to send prompts or document files to Qwen AI (chat.qwen.ai) and receive complete responses via MCP …

    line 22
  2. Distinctive:

    Use for fast queries, factual explanations, or one-off code generation where no external files are needed.

    line 45
  3. Distinctive:

    Use for multi-step instructions, complex refactor specs, or long prompts authored in a Markdown file.

    line 63
  4. Very specific:

    Use when the prompt requires analyzing a codebase export, technical document, log file, or PDF spec (supported: .pdf, .md, .txt up to 100 …

    line 82
  5. Distinctive:

    Instead of writing a custom prompt file, you can pass a built-in role template name directly as the prompt input:

    line 102
  6. Distinctive:

    Use to verify login status or authenticate a new browser session when cookies expire.

    line 132
  7. Very specific:

    Use when provisioning .qwen-web/ workspace directories and sample configuration in a new project.

    line 146
  8. Distinctive:

    Put large context into attachments: Keep the prompt file focused on instructions.

    line 170

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Qwen Web Automation Skill Guide

Use this skill when an AI agent needs to send prompts or document files to Qwen AI (chat.qwen.ai) and receive complete responses via MCP tools or CLI commands.


1. Quick Reference: MCP Tools & CLI Commands

ActionMCP ToolCLI Command (qwa / qwen-web-arwaky)
Direct text promptprocess_direct_promptqwa prompt-direct -t "<prompt>" [-o <out>]
Prompt file onlyprocess_prompt_file_onlyqwa prompt-only -i <prompt.md> [-o <out>]
Prompt with attachmentprocess_prompt_with_attachmentqwa prompt-with-attachment -i <prompt.md> -a <file> [-o <out>]
Check session healthcheck_sessionqwa doctor
Manual login / CAPTCHAsetup_sessionqwa login
Reset sessiondelete_session—
Initialize workspaceinit_workspaceqwa init

File conventions: Place inputs under .qwen-web/input/ and outputs under .qwen-web/output/. Always append a timestamp to output filenames (e.g., arch_review_$(date +%Y%m%d_%H%M%S).md in CLI or YYYYMMDD_HHMMSS in MCP) to prevent overwriting results from previous runs.


2. Usage by Use Case

Use Case 1: Quick Inline Prompt / Question

Use for fast queries, factual explanations, or one-off code generation where no external files are needed.

MCP:

{
  "prompt": "Explain the difference between optimistic and pessimistic locking in 3 concise bullet points with a brief Python example.",
  "headless": true
}

CLI:

qwa prompt-direct -t "Explain optimistic vs pessimistic locking" -o .qwen-web/output/locking_$(date +%Y%m%d_%H%M%S).md --headless

Use Case 2: Complex Task from a Prompt File

Use for multi-step instructions, complex refactor specs, or long prompts authored in a Markdown file.

MCP:

{
  "input_file": ".qwen-web/input/refactor_task.md",
  "output_file": ".qwen-web/output/refactor_result_20260911_133000.md",
  "headless": true
}

CLI:

qwa prompt-only -i .qwen-web/input/refactor_task.md -o .qwen-web/output/refactor_result_$(date +%Y%m%d_%H%M%S).md --headless

Use Case 3: Code Audit or Document Analysis with Attachment

Use when the prompt requires analyzing a codebase export, technical document, log file, or PDF spec (supported: .pdf, .md, .txt up to 100 MB).

MCP:

{
  "prompt_file": ".qwen-web/input/audit_spec.md",
  "attachment_file": ".qwen-web/input/codebase_export.md",
  "output_file": ".qwen-web/output/audit_findings_20260911_133000.md",
  "headless": true
}

CLI:

qwa prompt-with-attachment -i .qwen-web/input/audit_spec.md -a .qwen-web/input/codebase_export.md -o .qwen-web/output/audit_findings_$(date +%Y%m%d_%H%M%S).md --headless

Use Case 4: Standard Reviews Using Built-in Role Templates

Instead of writing a custom prompt file, you can pass a built-in role template name directly as the prompt input:

  • business-analyst: Business problem, process model, acceptance criteria, stakeholder alignment, UAT.
  • system-analyst: Technical behavior, data model, API contract, sequences, requirement traceability.
  • ui-ux-designer: User journey, wireframes, design system, accessibility, interface states.
  • software-architect: Module boundaries, integration patterns, scalability, standards, tech debt.
  • backend-engineer: Server API, database schema, business rules, performance, backend tests.
  • frontend-engineer: UI components, client state, API consumption, responsiveness, component tests.
  • product-engineer: Delivery tracking, cross-team dependencies, blockers, demo prep, release readiness.
  • qa-engineer: Test strategy, functional/regression, automation, defects, quality metrics.
  • security-engineer: Threat model, auth standards, vuln scan, privacy/encryption, incident protocol.
  • devops-engineer: CI/CD pipeline, infra provisioning, deployment/rollback, observability, incident response.

MCP:

{
  "prompt_file": "backend-engineer",
  "attachment_file": "src/api/auth.py",
  "output_file": ".qwen-web/output/auth_review_20260911_133000.md"
}

CLI:

qwa prompt-with-attachment -i backend-engineer -a src/api/auth.py -o .qwen-web/output/auth_review_$(date +%Y%m%d_%H%M%S).md --headless
qwa prompt-with-attachment -i software-architect -a README.md -o .qwen-web/output/arch_review_$(date +%Y%m%d_%H%M%S).md --headless

Use Case 5: Session Setup & Authentication

Use to verify login status or authenticate a new browser session when cookies expire.

  1. Check session health:
    • MCP: call check_session
    • CLI: qwa doctor
  2. Login / Re-authenticate (opens visible browser for login / CAPTCHA):
    • MCP: call setup_session
    • CLI: qwa login
  3. Reset session profile (if corrupted):
    • MCP: delete_session with {"confirm": true}

Use Case 6: Workspace Initialization

Use when provisioning .qwen-web/ workspace directories and sample configuration in a new project.

MCP:

{
  "target_dir": "."
}

CLI:

qwa init

3. Prompt Engineering for Complete, Un-Truncated Output

To ensure Qwen produces complete code without placeholders or omitted sections:

  1. Specify an explicit Output Contract: Define exact required section titles and expected markdown formatting.
  2. Forbid truncation explicitly: Include this clause in your prompt:

    "Output every file COMPLETE and VERBATIM inside fenced code blocks with language tags. Never use ellipses (...), placeholder comments (// rest unchanged), or omit code."

  3. Reason first, code second: Request an analysis or plan before the implementation code so the model thinks before writing.
  4. Put large context into attachments: Keep the prompt file focused on instructions; provide code, logs, and schemas as attachments.
  5. Add a self-verification step: Instruct the model to verify that no placeholders exist and all requested items are satisfied before completing.

4. Error Handling & Recovery

Error / ConditionCauseAction
AuthRequiredError / AUTH_REQUIREDSession expired or login neededCall setup_session (MCP) or run qwa login (CLI) to re-authenticate.
OutputValidationError (CAPTCHA)Bot verification challengeRun setup_session or qwa login to solve challenge manually.
NetworkTimeoutErrorTemporary network latencyRetry the request; if persistent, verify internet connection via qwa doctor.
FileValidationError / FILE_NOT_FOUNDMissing, unreadable, or file > 100 MBVerify file path, permissions, and ensure file size is under 100 MB.
CircuitBreakerOpenErrorRepeated consecutive failuresWait 30 seconds before sending next request.
VALIDATION_ERROR (MCP)Invalid tool parameterCheck error field in response and correct the argument payload.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.