Skip to main content

Configuring Thinkrail

v1.0.0New

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install thinkrail-configuring-thinkrail

What this does: Use when the user asks to set up, configure, tune, or health-check ThinkRail itself — checking git, gh, JetBrains Central, providers, default and review models, skills from other agents, MCP servers, external editors, projects folder, voice input, appearance, or language — especially right after first launch. Not for onboarding a repository or creating a project's spec graph (use setting-up-a-project), not for pure 'what is / how does ThinkRail work' questions (use about-thinkrail), and not for focused MCP-only edits (use managing-mcp-servers) or building extensions (use making-thinkrail-extensions).

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/thinkrail-configuring-thinkrail/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

Configuring ThinkRail

Walk the user through an app-level health check and initial tune-up of ThinkRail after the first-run
provider wizard. Keep it fast, grounded in real checks on their machine, and tailored to what they
actually want to tune.

Non-negotiable safety rules

  1. Never edit ~/.thinkrail/config.json (or $THINKRAIL_DATA_DIR/config.json). The running
    ThinkRail host holds config.json in memory without watching it; any hand edit is ignored until
    restart and silently overwritten on the next Settings save. Read it only to inspect current
    values, and give the user the exact Settings › … path for every ThinkRail-owned setting.
  2. Never run pi CLI commands (pi login, pi mcp add, pi config, etc.). ThinkRail runs
    pi in-process — there is no pi command to invoke.
  3. Only edit watched pi files — and confirm every edit first. You may edit
    ${PI_CODING_AGENT_DIR:-~/.pi/agent}/mcp.json, settings.json, or models.json only after
    showing the exact change and getting the user's explicit confirmation. Never write plaintext API
    keys or tokens; use ${ENV_VAR} or !command references.
  4. Never read or print credential-bearing files. Never call read (or cat) on auth.json,
    models.json, or mcp.json: models.json can hold saved providers.*.apiKey values and
    mcp.json can hold literal header/env secrets, and any raw read leaks them into model context
    and the session transcript. Check auth.json only with test -f, extract only allowlisted
    top-level names (mcpServers / providers keys) locally in the shell (skipping if no JSON
    parser is available), and never dump full env output.
  5. No Node required. ThinkRail needs no Node.js at runtime; run plain shell commands and file
    reads that work on any developer machine.

Step 1 — Run a silent read-only health check

Run one compact, read-only inspection first so you report facts rather than guessing. Adapt syntax
if the shell is Windows PowerShell.

DATA_DIR="${THINKRAIL_DATA_DIR:-$HOME/.thinkrail}"
PI_DIR="${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}"

echo "DATA_DIR=$DATA_DIR"
echo "PI_DIR=$PI_DIR"
echo "PI_PROVIDER=${PI_PROVIDER:-unset} PI_MODEL=${PI_MODEL:-unset} PI_REASONING_LEVEL=${PI_REASONING_LEVEL:-unset}"

git --version 2>&1 || echo "git: missing"
if command -v gh >/dev/null 2>&1; then
  gh --version | head -n 1
  gh auth status 2>&1 || true
else
  echo "gh: missing"
fi
if command -v central >/dev/null 2>&1; then
  central --version 2>&1 || echo "central: installed"
else
  echo "central: missing"
fi

echo "editors:"
for b in code idea webstorm pycharm goland rider clion phpstorm rubymine emacs vim; do
  command -v "$b" >/dev/null 2>&1 && printf " %s" "$b"
done
echo ""

echo "pi_auth_present=$(test -f "$PI_DIR/auth.json" && echo yes || echo no)"
extract_keys() {
  file="$1"; key="$2"
  [ -f "$file" ] || { echo "absent"; return; }
  if command -v jq >/dev/null 2>&1; then
    jq -r --arg k "$key" '(.[$k] // {}) | keys | join(", ")' "$file" 2>/dev/null || echo "unparseable"
  elif command -v python3 >/dev/null 2>&1; then
    python3 -c 'import json,sys; d=json.load(open(sys.argv[1])); print(", ".join((d.get(sys.argv[2]) or {}).keys()))' "$file" "$key" 2>/dev/null || echo "unparseable"
  elif command -v node >/dev/null 2>&1; then
    node -e 'const fs=require("fs"),d=JSON.parse(fs.readFileSync(process.argv[1],"utf8"));console.log(Object.keys(d[process.argv[2]]||{}).join(", "))' "$file" "$key" 2>/dev/null || echo "unparseable"
  else
    echo "present (names skipped)"
  fi
}
echo "mcp_servers=$(extract_keys "$PI_DIR/mcp.json" mcpServers)"
echo "custom_providers=$(extract_keys "$PI_DIR/models.json" providers)"
echo "other_agent_skills:"
CLAUDE_DIR="${CLAUDE_CONFIG_DIR:-$HOME/.claude}"
for d in "$CLAUDE_DIR/skills" "${CODEX_HOME:-$HOME/.codex}/skills" "$HOME/.copilot/skills" "${GEMINI_CLI_HOME:-$HOME}/.gemini/skills"; do
  [ -d "$d" ] && echo "  dir: $d"
done
if [ -f "$CLAUDE_DIR/plugins/installed_plugins.json" ]; then
  echo "  file: $CLAUDE_DIR/plugins/installed_plugins.json"
fi
true

Then use read (read-only) on whichever of these non-secret files exist:

  • $DATA_DIR/config.json — inspect defaultModel, defaultEffort, reviewModel, reviewEffort,
    agentReviewEnabled, reviewAutoFix, reviewAutoFixRounds, projectsFolder,
    otherAgentSkills, theme, themeMode, locale, voiceInputEnabled.
  • $PI_DIR/settings.json — inspect cacheWarming and fallback defaults (if present).

Do not call read on $PI_DIR/auth.json, $PI_DIR/mcp.json, or $PI_DIR/models.json.

Step 2 — Present a concise status summary

Show the user a short, scannable report with two parts:

  • Ready — tools and settings already working (e.g., git, active model/provider, detected
    editors, existing MCP servers).
  • Missing or worth tuning — concrete gaps found (e.g., gh missing or logged out, no review
    model set, Claude/Codex skills present on disk while "Skills from other agents" is off, no GUI
    editor on PATH, default ~/thinkrail projects folder if they prefer another).

Keep this summary brief — a tight bullet list or small table, not a wall of prose.

Step 3 — Ask what they want to tune

Use ask_user_question (multiSelect: true) so the user picks which areas to walk through instead
of being dragged through every setting. Include only the areas that are relevant (up to 4 options per
round; combine minor ones naturally):

  1. Models & review — default chat model/effort, independent review subagent model & auto-fix
    rounds, custom local/gateway servers.
  2. GitHub & PR workflow — installing/authenticating gh so topbar PRs and /skill:reviewing-a-pr
    work.
  3. Skills & MCP servers — enabling "Skills from other agents" (when other-agent skills were
    found) and/or connecting MCP servers.
  4. Workspace, editor & interface — Projects folder, external editor (Open in), voice input,
    theme, fonts, language, shortcuts.

If the user picks nothing or says everything looks good, skip straight to Step 4.

Step 4 — Walk through each chosen area

Keep guidance concrete and name the exact Settings › … section for every ThinkRail-owned
setting:

Providers & models

  • Sign-ins, API keys, JetBrains AI, and custom servers → Settings › Providers (custom
    OpenAI-compatible servers like Ollama, LM Studio, LiteLLM, or vLLM also have a Find models
    probe there and save into pi's models.json).
  • Default chat model & effort, review subagent model & effort, agent-triggered review, automatic
    fix cycle & rounds, model context window, prompt-cache warming, and visible models
    →
    Settings › Models.
  • If the user asks you to add a custom OpenAI-compatible endpoint directly in $PI_DIR/models.json
    or update cacheWarming in $PI_DIR/settings.json, show the exact JSON diff and confirm before
    writing.

GitHub & PR workflow

  • If gh is missing, share the install command for their OS (brew install gh on macOS, package
    manager / winget install GitHub.cli on Windows).
  • If gh is installed but not logged in, tell them to run gh auth login in a terminal (ThinkRail
    uses their own gh credentials), then verify the Connected status in Settings › Integrations.
  • Clarify that plain git clone / push uses their existing Git / SSH credentials, not gh.

Skills from other agents

  • If Claude Code, Codex, Copilot, Gemini skills or Claude plugins were detected on disk, explain
    that they stay off by default and can be enabled globally in Settings › Extensions & skills
    (under Skills from other agents) or per project in a chat's Skills dialog.
  • Mention that repo-committed .pi/ resources and repo skill aliases (.claude/skills,
    .github/skills, .gemini/skills) only load after granting per-project trust.

MCP servers

  • Read and follow the managing-mcp-servers skill for any MCP server additions or troubleshooting.
  • Summarize the key rules: edit $PI_DIR/mcp.json only after confirming the exact entry with the
    user, pin package versions (never @latest), never store plaintext secrets (use ${ENV_VAR} or
    !command), and point the user to Settings › MCP servers for OAuth sign-in or repo-server
    approvals.

Workspace, editor, voice & interface

  • Projects folder & auto-settle → Settings › Workspaces (default ~/thinkrail).
  • External editor ("Open in") → ThinkRail probes your login-shell PATH for code, idea,
    webstorm, pycharm, goland, rider, clion, phpstorm, rubymine, emacs, and vim. If
    their preferred editor was not detected, explain how to install its shell command (e.g., VS Code's
    code command or JetBrains Toolbox shell scripts) or add its bin directory to their login-shell
    profile (~/.zprofile / ~/.bash_profile / system PATH on Windows) and restart ThinkRail.
    (Note: PATH is managed by ThinkRail from the login shell and cannot be added in Settings ›
    Environment
    .)
  • Voice input → Settings › Voice input (one-time download of the local Nemotron model;
    trigger with the mic button or ⌘⇧Space / Ctrl+Shift+Space).
  • Look, language & shortcuts → Settings › Appearance (themes), Settings › Text & fonts,
    Settings › Language, and Settings › Keyboard (plus ⌘? / Ctrl+? for the shortcuts
    cheatsheet).

Step 5 — Wrap up & offer next step

  • Summarize briefly: what is ready now, any pi files you edited (if any), and any Settings › …
    toggles left for the user to flip.
  • Let them know they can ask any question about ThinkRail anytime (or run /skill:about-thinkrail /
    Ask about ThinkRail in ⌘K / Ctrl+K).
  • When they are ready to start working on a repository, offer to set up its spec graph with
    /skill:setting-up-a-project (or Start a new project / Open project from Welcome).
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
starting-a-new-projectUse when the workspace is empty, has no code, and the user brings a raw project idea. Normally reached via setting-up-a-project; not for an existing project.2 installswriting-workflow-skillsUse when adding a new workflow skill to pi-thinkrail-workflow, changing an existing workflow skill's role, trigger, handoff, or structure, or checking a workflow skill against the workflow system's rules. Not for authoring general-purpose skills outside this package.2 installschoosing-a-workflowUse at the start of new project onboarding, PR lifecycle work including PR checks, reviewing a pull request you are not shipping, or any change to what the product does — a feature, a behavior change, or a bug fix. Not for continuing work already routed to a workflow, non-PR questions, checks, explanations, or edits that change no behavior.2 installslibrarianResearch open-source libraries with evidence-backed answers and GitHub permalinks. Use when the user asks about library internals, needs implementation details with source code references, wants to understand why something was changed, or needs authoritative answers backed by actual code. Excels at navigating large open-source repos and providing citations to exact lines of code.2 installsmanaging-mcp-serversUse when the user asks to add, change, remove, enable or disable an MCP server, or when an MCP tool is missing, needs sign-in, fails, or was blocked. ThinkRail runs pi in-process, so there is no `pi` command to call.2 installsasking-user-questionsUse when composing an ask_user_question round inside a workflow, or when a workflow skill names it at a question step. Shared norms for the tool — not a workflow, nothing to execute.2 installs

More from thinkrail

View source →

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.653 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.553 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.365 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.265 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.185 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions149 installs

Frequently asked questions about configuring-thinkrail

What does the configuring-thinkrail skill do?

Use when the user asks to set up, configure, tune, or health-check ThinkRail itself — checking git, gh, JetBrains Central, providers, default and review models, skills from other agents, MCP servers, external editors, projects folder, voice input, appearance, or language — especially right after first launch. Not for onboarding a repository or creating a project's spec graph (use setting-up-a-project), not for pure 'what is / how does ThinkRail work' questions (use about-thinkrail), and not for focused MCP-only edits (use managing-mcp-servers) or building extensions (use making-thinkrail-extensions). It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the configuring-thinkrail skill?

Run `npx @skills-hub-ai/cli install thinkrail-configuring-thinkrail` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/thinkrail-configuring-thinkrail/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does configuring-thinkrail work with?

configuring-thinkrail runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the configuring-thinkrail skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use configuring-thinkrail after installing it?

In Claude Code, type `/thinkrail-configuring-thinkrail` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the configuring-thinkrail skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.