codebase-recon
Purpose
Section titled “Purpose”Investigates existing code read-only and returns to the conversation a current-state memo with evidence (path:line), covering entry points, call paths, data and external dependencies, prior implementations, the current state of tests, the scope of impact, open questions, and issues for decision. It does not create solutions or implementation plans.
It does not create, change, or delete files, fix code, make design decisions, or run tests, builds, or applications.
How to start it
Section titled “How to start it”Put /skill:codebase-recon <topic> at the start of your input and send it. The argument is optional: you can specify a free-text topic to investigate, the path of one specification under specs/ at the repository root, or both. Without an argument, it decides what to investigate from the conversation so far.
This skill is not manual-start only. The Agent may start it on its own judgment based on your request. Its description says “ユーザーまたはワークフローによるスキル名・対応する操作の指示時のみ使用” (use only when the user or a workflow instructs the skill name or the corresponding operation).
clarify-spec and grill-me hand the preliminary investigation before their questions to this skill, inside a Git repository, when the request or target involves changing or investigating existing code or files. In this way, the “workflow” in the description refers to prompts for workflows, including the steps of other skills.
When to use it
Section titled “When to use it”- Use it when you want to understand the current state of existing code, with evidence, before clarifying requirements or making design decisions.
- Use it when you want to investigate the code related to an Issue or other material you have just loaded with load-issue. If you start it without an argument, it decides the target from the conversation.
Example input and result
Section titled “Example input and result”Example input:
/skill:codebase-recon Session management in the login process
According to the skill’s instructions, the result is as follows.
- If it decides the target from the conversation, it shows the topic and its source in a few lines before starting the investigation. If there are several candidates and the target cannot be decided, it asks you to choose one.
- If you specify the path of a specification as an argument, it accepts only one existing file under
specs/at the repository root. - It investigates only inside a Git repository. Outside a repository, it tells you to run it inside a Git repository and ends.
- It does not read files such as
.env, private keys, certificates, or credential files. It does not follow symbolic links. - It outputs the full current-state memo to the conversation once, under the headings 調査条件 (investigation conditions), 入口 (entry points), 呼び出し経路 (call paths), データ・外部依存 (data and external dependencies), 先行実装 (prior implementations), テスト現状 (current state of tests), 影響範囲 (scope of impact), 不明点 (open questions), and 論点 (issues for decision). Under the six headings from entry points to scope of impact, each item is marked
【事実】(fact) or【推定】(inference), and facts come withpath:line. - It replaces values that look like credentials with
[REDACTED]. - The dialogue, reports, and memo are in Japanese.
- If no entry point is found with any of the three search methods, or the same operation fails with an execution error three times, it stops the investigation. It does not output the memo, and reports why it stopped and what is needed to resume.
- It does not commit, push, write to external services, access the Web, or call other skills.
Position in the AI-driven development workflow
Section titled “Position in the AI-driven development workflow”It is not part of the AI-driven development workflow. clarify-spec, the 4th step of the workflow, uses it for the preliminary investigation when the conditions are met.