Skip to content

Convert command extras to TOML when syncing to Gemini CLI target #136

Closed

Description

@svob

Summary

When the commands extra is synced to the gemini target, skillshare copies/symlinks the source .md files as-is. Gemini CLI does not recognize .md files as custom commands — it expects .toml files with a prompt field (see Gemini CLI custom commands docs). As a result, commands that work in Claude Code and Cursor are silently unavailable in Gemini.

Current behavior

With this .skillshare/config.yaml:

extras:         
  - name: commands
    targets:
      - path: .claude/commands
      - path: .cursor/commands
      - path: .gemini/commands

A source file extras/commands/review/review-pr.md with Claude-style frontmatter:

---             
description: Code review a Bitbucket pull request
allowed-tools: ...
---
                                                                                                                                                          
Provide a code review for the given Bitbucket pull request.
...                                                                                                                                                       

…gets synced to .gemini/commands/review/review-pr.md. Gemini CLI ignores it because it only scans for *.toml.

Expected behavior

When syncing the commands extra to a Gemini target, skillshare should emit a TOML file instead:

# .gemini/commands/review/review-pr.toml
description = "Code review a Bitbucket pull request"                                                                                                      
prompt = """
Provide a code review for the given Bitbucket pull request.                                                                                               
...             
"""

Mapping:

  • YAML description → TOML description
  • Markdown body → TOML prompt (multi-line string)
  • Claude-specific frontmatter keys (allowed-tools, disable-model-invocation, etc.) → dropped, since Gemini has no equivalent
  • Argument placeholders: Claude uses $ARGUMENTS / $1, Gemini uses {{args}} — needs translation or at minimum a documented caveat

Open questions

  1. Should the conversion be automatic for any target named gemini, or opt-in via a per-target format: toml config key? Opt-in is safer if someone points a non-CLI Gemini tool at that path.
  2. Symlink mode obviously can't work for a format conversion — Gemini targets would need to be forced to copy mode (or error out) when this conversion is active.
  3. What should happen to Gemini-specific frontmatter that has no MD equivalent (e.g. if someone authors TOML-first)? Round-trip support is probably out of scope for v1.

Why it matters

Teams using skillshare across multiple AI tools assume "sync to all targets" means the commands actually work on all targets. Silent no-ops on Gemini are a surprising failure mode — either the format needs handling, or Gemini's command path needs to be excluded from the commands extra by default with a clear note in the docs.

Activity

  1. self-assigned this
    on Apr 22, 2026
  2. runkids commented on May 30, 2026

    @runkids
    Owner

    Hi @svob — thanks for the detailed write-up, this is now implemented in v0.20.0.

    Extras targets gained an opt-in extension field that transforms Markdown into a tool's native format during sync. A bundled gemini-commands transform does exactly what you described:

    extras:
      - name: commands
        targets:
          - path: .claude/commands
          - path: .cursor/commands
          - path: .gemini/commands
            extension: gemini-commands   # .md → .toml during sync

    Mapping matches your spec:

    • YAML description → TOML description
    • Markdown body → TOML prompt (multi-line block string)
    • Claude-specific keys (allowed-tools, etc.) → dropped
    • $ARGUMENTS / $1 → {{args}} (translated automatically)

    On your open questions:

    1. Opt-in, per-target via the extension: key — not automatic for any gemini target, exactly for the reason you raised.
    2. Transforms require copy mode; setting symlink on the target errors out instead of silently producing a broken symlink.
    3. Round-trip is out of scope — transforms run source → target only (extras collect skips them).

    Getting the transform — two ways:

    • Dashboard: open Config → Extensions, find gemini-commands under "Available to download" and click Download. Then select it on the Gemini target in the Extras page.
    • Repo: it lives at extensions/gemini-commands/ — convert.js keeps the field mapping short so you can copy and adapt it for other tools.

    Closing as resolved — reopen if anything's missing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions