rtk-ai / rtk-ai/rtk

feat: add rtk init -g --openclaw for automatic plugin installation

Open
#688 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:cli effort-medium enhancement good first issue help wanted priority:low
Dominant language
Rust
Stars
81.1k
Forks
5.1k
Avg merge
4d 21h
Merged PRs (30d)
35

Description

Summary

Add --openclaw flag to rtk init -g to automatically install the RTK plugin for OpenClaw, following the same pattern as --opencode.

Tasks

  • Add --openclaw flag to rtk init CLI args
  • Copy openclaw/index.ts + openclaw/openclaw.plugin.json to ~/.openclaw/extensions/rtk-rewrite/
  • Add OpenClaw check to rtk init --check diagnostics
  • Add uninstall support in rtk init --uninstall

Context

  • OpenCode equivalent: rtk init -g --opencode (already implemented)
  • OpenClaw plugin: PR #358
  • Plugin location: ~/.openclaw/extensions/rtk-rewrite/

Reference

Pattern to follow: run_opencode_only_mode() in src/init.rs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/init.rs with run_opencode_only_mode() and trace the existing global init, check, and uninstall paths. Use the mentioned openclaw/index.ts and openclaw/openclaw.plugin.json files and the ~/.openclaw/extensions/rtk-rewrite/ location as the installation targets. Done means --openclaw installs the plugin, diagnostics detect it, and --uninstall removes it.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, typescript
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.