본문으로 건너뛰기
cccskills
무료GitHub에 공개

cdb-scan

Map this codebase into project memory — a code graph of every symbol and how they connect, plus a written profile of stack, layout, conventions and workflows. Re-run any time to refresh both in place. Use when memory is newly installed on an existing project, or when the project has changed enough that the stored map is stale.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Map this project into memory

Everything else in claude-db's memory is testimony: it records what happened, turn by turn, as it happened. A fresh install knows none of that, and stays useless for weeks while it fills up.

This fills the gap from the one source available on day one — the code itself, in two passes.

Pass 1 — the code graph

Run this first, from the project root:

claude-db scan

It parses every supported source file and stores each symbol and each relationship between them: what calls what, what imports what, what extends what. It is deterministic, costs no tokens, and takes seconds. Report the symbol and edge counts it prints.

Once it has run, find_usages answers structural questions from the graph:

  • mode: "usages" — what references this symbol, with the relation on each line
  • mode: "explain" — that, plus what the symbol itself reaches
  • mode: "path" with target — how two symbols connect

Prefer those over reading files when the question is about structure.

Pass 2 — the written profile

The graph records what the code is. It cannot say why the project is built this way, so the sections below capture that in prose. What you write here is your reading of the codebase, not a record of events, so it is tagged inferred and must never be phrased as history.

Work through the sections below in order. For each one, look at the actual files, then call the remember MCP tool once with the given key.

key is what makes this re-runnable: writing the same key again replaces that note rather than adding a second copy. Use these exact keys, and always pass tags: ["inferred"] and kind: "context".

Before you start, call search for profile in this project. If notes already exist, read them first and update what changed rather than restating it — a second run should be an edit, not a rewrite.

1. profile:stack

Languages, runtime and version floors, frameworks, package manager, database, test runner, build tool. Read the manifest (package.json, pyproject.toml, go.mod, Cargo.toml) and the lockfile rather than guessing. Name versions where a version constrains what can be written.

2. profile:layout

The directory map, one line each, and what lives where. Include the entry points: the binary, the server, the main export. Skip anything generated.

3. profile:conventions

How this codebase is written, taken from the code and not from a style guide: module system, import style, error handling, naming, comment density, how tests are structured. Note where the project deviates from the language default, since that is what someone would otherwise get wrong.

4. profile:workflows

The commands that matter — install, build, test, lint, run, release — and anything non-obvious about running them: a required service, an environment variable, a step that must come first. Take them from the manifest scripts and CI config, not from the README's aspirations.

5. profile:architecture

Only the parts a newcomer could not infer from the layout: the main abstractions and how a request or a command actually flows through them. Two paragraphs at most. If the codebase is small enough that the layout says it all, skip this section rather than padding it.

Rules

  • One remember call per section. Five notes, five stable keys.
  • Write claims, not headings. "Storage is one MemoryStore interface with three adapters, selected by URI scheme" — not "Storage architecture".
  • Say what you verified. If something was not read, leave it out. An inferred profile that is confidently wrong is worse than a short one.
  • Never restate CLAUDE.md. That file is already in the system prompt on every turn. Memory is for what is not.
  • Do not record secrets, credentials or personal data, even if the code contains them.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

catchup

무료

Answer "where did I stop?" for this project. Gives three short groups, done, open and next, taken from the last chat, the recorded to-dos, the last handoff note and git. Use when the user comes back to a project, starts a new chat, or asks where they left off. It writes nothing.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Avijit07x/claude-db2342026년 10월 11일 업데이트

handoff

무료

Write a short handoff note for the next chat or a teammate, with what is done, what is open, what comes next and what was rejected and why. Saves it to project memory so the next chat sees it at the start, and prints it so it can be pasted into a message or a pull request. Use when the user ends a piece of work, switches tasks, or hands the project to someone.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Avijit07x/claude-db2342026년 10월 11일 업데이트

Avijit07x의 스킬 모두 보기

이 스킬의 문제 신고