vibe-action 0.1.5

Command router — execute shell commands and LLM prompts via simple YAML actions.
name: tone
about: Transform rude or aggressive text into a professional tone
notify: true

args:
  - name: query
    short: 'q'
    input: string
    default: '{system_clipboard}'
    help: 'The text to rewrite into a professional and polite tone'

# IDE plugin integration: maps argument names to IDE contexts
api:
  # Target for the final result (replace | clipboard | dialog)
  output: replace
  # Maps argument for JSON output (selection | clipboard)
  args:
    query: selection

actions:
  # LLM transforms rude/aggressive language into professional tone
  - tag: tag_rewritten
    run: medium
    expect: string
    action: |
      [Task]
      You receive a text that may contain rude or aggressive language.
      Transform it into a professional, calm, polite, and collaborative equivalent.
      Focus on constructive feedback rather than demands.
      Keep the original meaning. Keep the same language.
      Output the transformed text.

      [Examples]
      Input: You are an idiot, do it faster. -> Could we please prioritize this and speed up the process?
      Input: 你真笨,快点做! -> 我们能不能集中精力,加快一下工作进度?
      Input: Меня заебал этот код. -> Меня расстраивает этот код, давайте подумаем, как его улучшить.

      [Input]
      {query}

  # Copy result to clipboard and output
  - tag: tag_clipboard
    run: value
    expect: string
    action: '{tag_rewritten|clipboard}'