Skip to content

feat: Add Qwen Code platform support#1094

Closed
Kristofp wants to merge 4 commits intoobra:mainfrom
Kristofp:feat/qwen-support
Closed

feat: Add Qwen Code platform support#1094
Kristofp wants to merge 4 commits intoobra:mainfrom
Kristofp:feat/qwen-support

Conversation

@Kristofp
Copy link
Copy Markdown

@Kristofp Kristofp commented Apr 8, 2026

Summary

Port all 14 Superpowers skills to work natively with Qwen Code. This enables Qwen users to use the same workflow (brainstorming → spec → subagent-driven development → code review → finishing) that Claude Code users already benefit from.

What changed

Tool mapping (all 14 skills)

Skill term Qwen equivalent
Task tool spawn_agent(agent_type="worker", message=...)
TodoWrite update_plan
Skill tool Skills load natively from ~/.qwen/skills/
@filename syntax Standard file references (Qwen does not use force-load syntax)

New files

  • skills/using-superpowers/references/qwen-tools.md — Complete Qwen tool mapping, named agent dispatch workaround, and environment detection
  • skills/writing-skills/skill-authoring-best-practices.md — Platform-agnostic skill authoring guide (replaces Anthropic-specific doc)
  • skills/writing-skills/examples/QWEN_MD_TESTING.md — QWEN.md testing scenarios

Removed files

  • skills/using-superpowers/references/gemini-tools.md — Broken migration (content was about Qwen but filename said Gemini)
  • skills/writing-skills/anthropic-best-practices.md — 1151-line Anthropic doc replaced with 30-line platform-agnostic summary

Config paths

  • ~/.claude/~/.qwen/
  • CLAUDE.mdQWEN.md
  • ~/.agents/skills/~/.qwen/skills/

Subagent dispatch

Qwen uses spawn_agent with generic agent types (default, explorer, worker) rather than named agent registries. Added a documented workaround for skills that reference named agents like superpowers:code-reviewer — read the prompt file, fill placeholders, and pass as message to spawn_agent(agent_type="worker", ...).

Verification

  • 0 remaining Claude/Gemini/Codex references in skills/
  • 0 remaining TodoWrite references
  • 0 remaining Task tool dispatch patterns
  • 0 remaining @filename Claude Code syntax
  • All 14 skills load cleanly via ~/.qwen/skills/superpowers symlink

Installation for Qwen users

git clone https://github.com/obra/superpowers.git ~/.qwen/superpowers
mkdir -p ~/.qwen/skills
ln -s ~/.qwen/superpowers/skills ~/.qwen/skills/superpowers

Restart Qwen Code to discover the skills.

Kristofp and others added 4 commits April 9, 2026 00:32
Port all skills to Qwen Code with full compatibility:
- Replace Claude/Codex/Gemini references with Qwen
- Map Task tool → spawn_agent, TodoWrite → update_plan
- Replace @file syntax references with standard file links
- Add qwen-tools.md with complete tool mapping
- Fix agent dispatch patterns (agent_type parameter)
- Rename anthropic-best-practices.md → skill-authoring-best-practices.md
- Fix config paths (~/.claude/ → ~/.qwen/)
- Update prompt templates for spawn_agent workflow
- Add Qwen-specific subagent dispatch workaround
- Clean up element IDs (claude-content → content)

14 skills ported, 0 remaining platform-specific references in skills/

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…t model

Qwen Code uses TodoWrite (not update_plan) and has a built-in
general-purpose subagent (not manual spawn_agent dispatch).

Changes:
- Revert update_plan → TodoWrite (Qwen's actual tool name)
- Replace fake spawn_agent() calls with subagent delegation language
- Rewrite subagent-driven-development SKILL.md for Qwen's actual subagent:
  - Document that Qwen's subagent is autonomous (model decides when to delegate)
  - Note subagent's limited tool set (read/search/bash, limited write/edit)
  - Remove fake model selection section (Qwen has one model)
  - Update all prompt templates to use delegation framing
- Rewrite qwen-tools.md with accurate Qwen capabilities:
  - Document TodoWrite, read_file, write_file, edit, bash
  - Explain built-in general-purpose subagent behavior
  - Remove fake config.toml multi_agent setting
  - Add Qwen execution modes (Plan/Default/Auto-edit/YOLO)
  - Document named agent dispatch workaround
- Update dispatching-parallel-agents, requesting-code-review,
  brainstorming, writing-plans prompt templates for subagent delegation

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Add .qwen/ directory with Qwen-specific installation and commands
  - .qwen/INSTALL.md - Installation guide for Qwen Code
  - .qwen/commands/superpowers.md - Main entry point
  - .qwen/commands/superpowers_brainstorm.md - Design exploration
  - .qwen/commands/superpowers_plan.md - Implementation planning
  - .qwen/commands/superpowers_execute.md - Plan execution
  - .qwen/commands/superpowers_help.md - Command reference

- Create docs/README.Qwen.md - Complete Qwen Code documentation
  (was referenced in README.md but didn't exist)

- Update deprecated commands/ to point to new Qwen commands
  - brainstorm.md, execute-plan.md, write-plan.md now reference
    the new .qwen/commands/ equivalents

- Fix skills/using-superpowers/SKILL.md
  - Correct duplicate 'QWEN.md, QWEN.md' typo
  - Add platform-specific skill loading for all platforms
  - Fix tool mapping references to list all platforms
  - Use correct tool names in skill flow diagram

- Fix skills/using-superpowers/references/qwen-tools.md
  - Correct tool names: todo_write, run_shell_command
  - Remove inaccurate 'bash' and 'TodoWrite' entries

- Fix README.md Qwen installation URL (.qwen not .Qwen)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
docs/README.Qwen.md was already created with proper Qwen content.
README.codex.md was a duplicate with wrong filename and outdated .Qwen paths.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
@Kristofp Kristofp closed this Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant