Improve Cline-rules init

Open Beginner friendly
#2,349 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
64/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
cli

Research direction

Start at the rtk init --agent cline entry point and trace how it handles the .clinerules path. Verify the existing file and missing-path behavior, then cover the directory case by checking that rules are placed in .clinerules/rtk.md and the command no longer fails.

Written by the indexing model from the issue text.

Description

area:cli bug good first issue help wanted priority:medium

Support for Cline is done through .clinerules -- run rtk init --agent cline at the root of your project and RTK rights a new .clinerules file.

Cline rules can be placed in a single (text) file .clinerules or across multiple files inside a directory .clinerules/.

Issue

When configuring RTK (rtk init --agent cline) in the repo, it fails if .clinerules/ is a directory. RTK works fine if there is no .clinerules or .clinerules is a file (appending new content to the existing).

Proposal

When configuring RTK, check if .clinerules is a directory, if so create place rules in .clinerules/rtk.md, otherwise keep current behaviour.

Contributing

I would be glad to provide a PR on this, as well as an improved version of the .clinerules content. For that, I'd appreciate pointers where to dig into.

Dominant language
Rust
Stars
81.1k
Forks
5.1k
Avg merge
4d 11h
Merged PRs (30d)
42

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.

More from rtk-ai/rtk

All issues in rtk-ai/rtk

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.