opening-in-rider
Purpose
Use this skill when the user wants to open a file or project in JetBrains Rider from the CLI, while preserving solution context.
Behavior
- Accept a file or directory path (default
.). - Walk upward from that location to find the nearest directory containing one or more
*.slnfiles. - If a solution is found, open Rider with the solution and target path.
- If no solution is found, fall back to nearest
*.csproj. - If neither is found, open the target directly.
- Launch Rider in non-blocking mode (fire-and-forget) so the terminal session is not held open.
Scripts
Use:
- Linux/macOS (Bash):
./skills/opening-in-rider/scripts/open-in-rider.sh <path> [--line <n>] - Windows (PowerShell):
./skills/opening-in-rider/scripts/open-in-rider.ps1 <path> [--line <n>]
Examples:
./skills/opening-in-rider/scripts/open-in-rider.sh src/MyFile.cs./skills/opening-in-rider/scripts/open-in-rider.sh src/MyFile.cs --line 120./skills/opening-in-rider/scripts/open-in-rider.sh ../skills/opening-in-rider/scripts/open-in-rider.ps1 src/MyFile.cs./skills/opening-in-rider/scripts/open-in-rider.ps1 src/MyFile.cs --line 120./skills/opening-in-rider/scripts/open-in-rider.ps1 .
Notes
- Requires Rider CLI to be available on
PATH(rideron Unix-like systems;rider,rider.bat, orrider64.exeon Windows). - When multiple
.slnfiles exist in the same directory, the script prefers one whose base name matches that directory name; otherwise it uses alphabetical order.
More from linksofteu/linksoft_skills
test-skill
Use this skill when the user asks whether LinkSoft Skills are working, including minor wording variations or typos. Reply only with the fixed verification message.
13openspec-workitem-enrichment
Use this skill when creating a new OpenSpec spec whose name follows `wi-<azure-devops-work-item-id>-<change-name>` so the spec can be enriched from Azure DevOps through Azure CLI, including parent hierarchy and comments, instead of manual re-entry.
5creating-linksoft-skills
Create or improve Agent Skills that follow the Agent Skills specification and LinkSoft repository conventions. Use this skill when designing a new skill, tightening scope, writing descriptions, structuring references or scripts, adding evals, or reviewing an existing skill for clarity, discoverability, and reuse.
4ddd-application-slice
Use this skill when adding or extending functionality in a DDD project so the implementation fits the intended layers: controllers, application services, mediator-style commands, queries, or events, handlers, domain services, and repositories.
3opening-in-ide
Opens a file or folder in a supported IDE using the nearest workspace or project context when available. Use when the user asks to open code in Rider, WebStorm, VS Code, Cursor, Windsurf, or a generic IDE from the CLI.
1