Answer: Use `CLAUDE.md` for project context and conventions, `settings.json` for permissions, hooks, and environment variables, `skills//SKILL.md` for prompts or capabilities invoked with `/name`, and `agents/*.md` for specialized subagents. Status: Confirmed Entry: tool/claude-code/settings/choose-right-file Revision: 2 Digest: sha256:0bd7bc47b9f1a19b (changes whenever the content changes) Timeline: Created: 2026-11-13T02:27:55Z Last changed: 2026-11-18T12:14:35Z (Subagents file: — → agents/*.md) Last verified: 2026-11-20T12:18:54Z Next check: 2026-11-21T12:18:54Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Instructions file | CLAUDE.md | [1] | 2026-11-20 Settings file | settings.json | [1] | 2026-11-20 Skills file | skills//SKILL.md | [1] | 2026-11-20 Subagents file | agents/*.md | [1] | 2026-11-20 Sources: [1] Anthropic. "Explore the .claude directory". https://code.claude.com/docs/en/claude-directory.md Role: primary. Accessed: 2026-11-20T12:18:54Z Quote: "Give Claude project context and conventions | `CLAUDE.md`" (Supports: Instructions file) Quote: "Allow or block specific tool calls | `settings.json` `permissions` or `hooks`" (Supports: Settings file) Quote: "Add a prompt or capability you invoke with `/name` | `skills//SKILL.md`" (Supports: Skills file) Quote: "Define a specialized subagent with its own tools | `agents/*.md`" (Supports: Subagents file) Published: 2026-11-20T02:54:41Z Snapshot SHA-256: 85ffec16f2f0e886cd77027c75469ba0752174160fe95a0acc075d585dbbe81d (captured 2026-11-20T12:18:53Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:18:54Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:18:54Z Last attempt: 2026-11-20T12:18:54Z Notes and limitations: Extracted automatically from a single official source (section "Choose the right file"). Related: https://latestn.com/tool/claude-code/settings/choose-xcode-for-simulator-pane How do I choose which Xcode version the Claude Code simulator pane uses? https://latestn.com/tool/claude-code/settings/claude-directory-locations Where does Claude Code store its configuration files in the project and home directory? https://latestn.com/tool/claude-code/settings/cloud-setup-scripts-and-caching How do I add a setup script to a Claude Code cloud environment and how does environment caching work? https://latestn.com/tool/claude-code/settings/change-output-style How do I change the output style in Claude Code? https://latestn.com/tool/claude-code/settings/change-setting-config-menu How do I change a Claude Code setting using the /config menu? https://latestn.com/tool/claude-code/settings/check-resolved-settings How do I see the resolved settings Claude Code is using? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:14:35Z | changed | Subagents file: — → agents/*.md | [1] 2026-11-18T12:14:35Z | changed | Skills file: — → skills//SKILL.md | [1] 2026-11-18T12:14:35Z | changed | Settings file: — → settings.json | [1] 2026-11-18T12:14:35Z | changed | Instructions file: — → CLAUDE.md | [1] 2026-11-18T12:14:35Z | changed | subagents file: agents/*.md → — | [1] 2026-11-18T12:14:35Z | changed | skills file: skills//SKILL.md → — | [1] 2026-11-18T12:14:35Z | changed | settings file: settings.json → — | [1] 2026-11-18T12:14:35Z | changed | instructions file: CLAUDE.md → — | [1] 2026-11-13T02:27:55Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/settings/choose-right-file/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/settings/choose-right-file POST: https://latestn.com/dispute/tool/claude-code/settings/choose-right-file with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/settings/choose-right-file?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Which file should I use in Claude Code for instructions, settings, skills, or subagents? Revision 2, last verified 2026-11-20T12:18:54Z. https://latestn.com/tool/claude-code/settings/choose-right-file (accessed 2026-11-21T09:59:49Z). @misc{LatestN_tool_claude_code_settings_choose_right_file_r2, title = {Which file should I use in Claude Code for instructions, settings, skills, or subagents?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/settings/choose-right-file}}, note = {Revision 2; digest sha256:0bd7bc47b9f1a19b; last verified 2026-11-20T12:18:54Z; accessed 2026-11-21T09:59:49Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/settings/choose-right-file