converting-slash-commands

Convert Claude Code slash commands to OpenCode command format.

134|8|Updated Mar 13, 2018
One-click install
npx skills add https://github.com/edheltzel/dotfiles --skill converting-slash-commands-edheltzel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: converting-slash-commands
Source: https://github.com/edheltzel/dotfiles/tree/main/ai/.claude/skills/converting-slash-commands
Command: npx skills add https://github.com/edheltzel/dotfiles --skill converting-slash-commands-edheltzel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps convert Claude Code slash commands into OpenCode commands, maintaining behavior while updating frontmatter and structure.

Core Features & Use Cases

  • Frontmatter translation: aligns fields like description, model, and tools to OpenCode equivalents.
  • Syntax preservation: preserves argument placeholders, file references, and shell execution patterns.
  • Use Case: Migrate a project’s slash commands to OpenCode with minimal friction.

Quick Start

Copy a Claude Code command, run the conversion script, and review the resulting OpenCode command.

Frequently Asked Questions about converting-slash-commands

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Claude Code slash commands to OpenCode format?

Converting Claude Code slash commands to OpenCode format involves running a migration script that transforms command definitions from .claude/commands/ to .opencode/command/, updating frontmatter fields like model and tools to OpenCode equivalents while preserving arguments, shell commands, and file references.

What command fields does the conversion process handle?

The conversion process translates description, model, and tools fields to OpenCode equivalents, adds provider-prefixed models, removes unsupported fields like argument-hint and disable-model-invocation, and converts both Markdown and JSON command representations while preserving argument placeholders and shell execution patterns.

Can I migrate slash commands at both project and user levels?

Yes, the migration applies to both project-level commands in .claude/commands/ and user-level commands in ~/.claude/commands/, converting them to .opencode/command/ or ~/.config/opencode/command/ respectively across Markdown and JSON file formats.

Does the conversion preserve my existing command logic and arguments?

The conversion preserves argument placeholders, file references, and shell execution patterns, maintaining functional behavior while updating the structure and frontmatter to align with OpenCode standards and selecting an appropriate agent based on tool usage.

What happens to unsupported Claude Code fields during migration?

Unsupported fields like argument-hint and disable-model-invocation are removed during conversion, while essential content including arguments, shell commands, and file references are retained and reformatted for OpenCode compatibility.

Does the conversion support subtasks and templates in OpenCode format?

Yes, the migration process converts Claude Code commands to OpenCode format while supporting subtask and template structures in JSON forms, ensuring advanced command configurations are properly translated.