CtrlK
BlogDocsLog inGet started
Tessl Logo

qwen

Interface with the Qwen Code CLI agent for operations requiring the Qwen model.

Invalid
This skill can't be scored yet
Validation errors are blocking scoring. Review and fix them to unlock Quality, Impact and Security scores. See what needs fixing →
SKILL.md
Quality
Evals
Security

Qwen Agent

Interact with the Qwen agent. This skill wraps input in strict JSON enforcement prompts and handles retries.

Activation

Triggers: "ask qwen", "qwen help", "consult qwen"

Features

  • Strict JSON Output: The agent is prompted to return ONLY valid JSON.
  • Retry Logic: Automatically retries with stricter prompts if the first response is not valid JSON.
  • Schema Support: Supports passing a JSON schema to constrain/shape the output (best-effort; enforced by instruction).

Usage

Simple Prompt

# Usage: .claude/skills/qwen/qwen-agent.sh "Your prompt here"
.claude/skills/qwen/qwen-agent.sh "Summarize the history of AI."

JSON Request (Advanced)

You can pass a JSON object with prompt, context, and schema.

{
  "prompt": "Generate a user profile",
  "context": "Target audience: internal admin tools",
  "schema": {
    "type": "object",
    "properties": {
      "username": {"type": "string"},
      "age": {"type": "integer"}
    },
    "required": ["username", "age"],
    "additionalProperties": false
  }
}
.claude/skills/qwen/qwen-agent.sh '{"prompt":"...","context":"...","schema":{...}}'

Response Format

Success (JSON only):

{
  "key": "value"
}

Error:

{
  "ok": false,
  "error": {
    "code": "error_code",
    "message": "Description"
  }
}

Environment Variables

  • QWEN_CMD (default: qwen)
  • QWEN_ARGS (default: empty)
  • QWEN_TIMEOUT (default: 60)
  • QWEN_APPROVAL_MODE (default: plan)
Repository
stephenfeather/claude-skills
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.