importing-a-codebase SKILL.md skillA

importing-a-codebase from jetbrains/thinkrail is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add jetbrains/thinkrail/importing-a-codebase@git:20261013.ba8d9d8

Pins git:20261013.ba8d9d8 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
jetbrains/thinkrail
Path
packages/pi-thinkrail-workflow/skills/importing-a-codebase/SKILL.md
Versions recorded
6
Latest version
git:20261013.ba8d9d8, committed Oct 13, 2026
First version recorded
Jul 13, 2026
Size
7,034 bytes
Repository stars
7,127
License
Apache-2.0

Use when asked to create the initial spec graph for an existing codebase that has source code but no specs. Normally reached via setting-up-a-project.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Importing a codebase

The workspace holds real code but no specs. **Reverse-engineer the spec graph the project should have
had.** When the repo already carries real spec-like documents, build the graph around them, not
parallel to them. Do as much as possible yourself, from the files; ask the user only where the code genuinely can't
tell you and the answer changes a spec.

**Hold the writing-specs bar.** Read that concept skill before drafting — everything in this flow is
inferred rather than confirmed, so its honesty rules (draft until the user reviews, unconfirmed marked
inline) bind hardest here.

## 1. Read first, ask last

Survey before you ask a single question. Read, in roughly this order:

- **Agent files (mine these first — they state intent + conventions directly):** `AGENTS.md`, `CLAUDE.md`,
  `.cursor/rules/*`, `.cursorrules`, `.github/copilot-instructions.md`, `GEMINI.md`, `.windsurfrules`.
- **Docs:** `README`, `docs/`, `CONTRIBUTING`, ADRs.
- **Manifests & layout:** `package.json` / `pyproject.toml` / `go.mod` / `Cargo.toml`, workspace globs,
  `tree`-style structure, entry points, build/test scripts.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add jetbrains/thinkrail/importing-a-codebase@sha256:b773b64c58e2ecc2

The line at the top of this page pins the label git:20261013.ba8d9d8, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_kn66e2bqmmpcgo6q.svg)](https://markdownregistry.com/a/art_kn66e2bqmmpcgo6q)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 6 versions of this file, between Jul 13, 2026 and Oct 13, 2026, about one every 18 days.

versioncommittedcommitsizeaudit
git:20261013.ba8d9d8 latest2026-10-13 ba8d9d8 7,034 BA view · diff
git:20261003.09da7f12026-10-03 09da7f1 6,484 BA view · diff
git:20260929.fdbbc1d2026-09-29 fdbbc1d 6,470 BA view · diff
git:20260915.0a41d5d2026-09-15 0a41d5d 6,367 BA view · diff
git:20260721.15052a82026-07-21 15052a8 6,411 BA view · diff
git:20260713.f2e4d5a2026-07-13 f2e4d5a 4,604 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7034 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

jetbrains/thinkrail · 7,127 stars · license Apache-2.0 · pushed 2026-11-02 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_kn66e2bqmmpcgo6q
GET https://markdownregistry.com/api/v1/resolve?ref=jetbrains/thinkrail/importing-a-codebase
GET https://markdownregistry.com/api/v1/blob/b773b64c58e2ecc2879027f9511977a9255fdfa6945bc2dd0690df505879076f

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from jetbrains/thinkrail

AGENTS.md AGENTS.md file
jetbrains/thinkrail · AGENTS.md
git:20261022.9d88588 · audit A · 7,127 stars
asking-user-questions SKILL.md skill
jetbrains/thinkrail · packages/pi-thinkrail-workflow/skills/asking-user-questions/SKILL.md · Use when composing an ask_user_question round inside a workflow, or when a workflow skill names it at a question step…
git:20261027.565bf50 · audit A · 7,127 stars
brainstorming SKILL.md skill
jetbrains/thinkrail · packages/pi-thinkrail-workflow/skills/brainstorming/SKILL.md · Use before implementing a feature, a change in behavior, or a bug fix — however small. Not for questions, checks, or…
git:20261013.5ab283a · audit A · 7,127 stars
choosing-a-workflow SKILL.md skill
jetbrains/thinkrail · packages/pi-thinkrail-workflow/skills/choosing-a-workflow/SKILL.md · Use at the start of new project onboarding, PR lifecycle work including PR checks, or any change to what the product…
git:20261027.7c9150c · audit A · 7,127 stars
setting-up-a-project SKILL.md skill
jetbrains/thinkrail · packages/pi-thinkrail-workflow/skills/setting-up-a-project/SKILL.md · Use when asked to set up, onboard, initialize, or spec a project with no spec graph, or when invoked by the app's…
git:20261013.ba8d9d8 · audit A · 7,127 stars
shipping-a-pr SKILL.md skill
jetbrains/thinkrail · packages/pi-thinkrail-workflow/skills/shipping-a-pr/SKILL.md · Use when finished work needs to ship as a pull request, or when creating, syncing, updating metadata, checking status…
git:20260918.5b08805 · audit A · 7,127 stars
starting-a-new-project SKILL.md skill
jetbrains/thinkrail · packages/pi-thinkrail-workflow/skills/starting-a-new-project/SKILL.md · Use when the workspace is empty, has no code, and the user brings a raw project idea. Normally reached via…
git:20261013.ba8d9d8 · audit A · 7,127 stars
writing-specs SKILL.md skill
jetbrains/thinkrail · packages/pi-thinkrail-workflow/skills/writing-specs/SKILL.md · Use when a workflow step drafts or revises a spec artifact — a goal-and-requirements, an architecture, or a module SPEC…
git:20260929.fdbbc1d · audit A · 7,127 stars
writing-workflow-skills SKILL.md skill
jetbrains/thinkrail · packages/pi-thinkrail-workflow/skills/writing-workflow-skills/SKILL.md · Use when adding a new workflow skill to pi-thinkrail-workflow, changing an existing workflow skill's role, trigger…
git:20260716.444e9e4 · audit A · 7,127 stars
todos SKILL.md skill
jetbrains/thinkrail · packages/pi-todos/skills/todos/SKILL.md · Use when the user asks for a shared plan, a task needs at least three substantive execution steps, or a loose TODO is…
git:20261014.9a867af · audit A · 7,127 stars
managing-mcp-servers SKILL.md skill
jetbrains/thinkrail · packages/server/skills/managing-mcp-servers/SKILL.md · Use when the user asks to add, change, remove, enable or disable an MCP server, or when an MCP tool is missing, needs…
git:20261013.e5eeebf · audit A · 7,127 stars
spec-graph SKILL.md skill
jetbrains/thinkrail · packages/spec-graph/skills/spec-graph/SKILL.md · Use when locating, reading, creating, updating, or validating project specs, or when work is governed by or may alter a…
git:20260915.0a41d5d · audit A · 7,127 stars

Every file in jetbrains/thinkrail

Browse by kind, by grade A, or by owner.