Skip to content

Commit e57ff6a

Browse files
committed
update vide coding cheat sheet
1 parent 07f59b6 commit e57ff6a

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

docs/posts/2025/2025-08-31-vibe-coding-cheat-sheet.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ Some useful patterns for Vibe coding. This blog will be regularly updated with n
1818

1919
<!-- more -->
2020

21-
## Github Copilot Instructions
21+
## VSCode Github Copilot
22+
23+
### Github Copilot Instructions
2224

2325
[Custom instructions](https://code.visualstudio.com/docs/copilot/customization/custom-instructions?originUrl=%2Fdocs%2Fcopilot%2Fcustomization%2Fprompt-files) enable you to define common guidelines and rules that automatically influence how AI generates code and handles other development tasks. Instead of manually including context in every chat prompt, specify custom instructions in a Markdown file to ensure consistent AI responses that align with your coding practices and project requirements.
2426

@@ -33,7 +35,7 @@ Examples:
3335
- [microsoft/vscode copilot instructions](https://github.com/microsoft/vscode/blob/main/.github/copilot-instructions.md)
3436
- Example to add multiple instruction files: [microsoft/vscode-jupyter: Component-Specific Instructions](https://github.com/microsoft/vscode-jupyter/blob/main/.github/copilot-instructions.md)
3537

36-
## Github Copilot Chat Modes
38+
### Github Copilot Chat Modes
3739

3840
[VSCode chat modes](https://code.visualstudio.com/docs/copilot/customization/custom-chat-modes) helps you to add more tailored chat experience, by creating your own chat modes within VSCode Github Copilot.
3941

@@ -42,7 +44,7 @@ Examples:
4244
- [microsoft/vscode-jupyter: bugix chatmode](https://github.com/microsoft/vscode-jupyter/blob/main/.github/chatmodes/bugfix.chatmode.md)
4345
- https://github.com/dfinke/awesome-copilot-chatmodes/
4446

45-
## Github Copilot Prompt files
47+
### Github Copilot Prompt files
4648

4749
VSCode Github Copilot Prompt helps you to create [reusable prompt templates for Github Copilot chat](https://code.visualstudio.com/docs/copilot/customization/prompt-files) in the `.github/prompts` folder.
4850

@@ -52,7 +54,23 @@ Examples:
5254
- [microsoft/vscode: prompts](https://github.com/microsoft/vscode/tree/main/.github/prompts)
5355
- [Azure/azure-sdk-for-python: prompts](https://github.com/Azure/azure-sdk-for-python/tree/main/.github/prompts)
5456

55-
## Claude Code rules
57+
## Claude Code
58+
59+
### Claude.md file
60+
61+
We can save the [Claude instructions](https://www.anthropic.com/engineering/claude-code-best-practices) in a file named `CLAUDE.md` in many places, suppose we have a git repository at `~/git/repo`, then we can create the `CLAUDE.md` file in any of these places:
62+
63+
| Location | Description | Use Case |
64+
| ---------------------------------- | ------------------------------- | ---------------------------------------------------------------------------------------------------- |
65+
| `~/.claude/CLAUDE.md` | Home folder | Global instructions applied to all Claude sessions across all projects. |
66+
| `~/git/repo/CLAUDE.md` | Root of your repo (most common) | Share instructions across sessions and with team. Check into git. |
67+
| `~/git/repo/CLAUDE.local.md` | Root of your repo (local only) | Personal instructions not shared with team. Add to `.gitignore`. |
68+
| `~/git/CLAUDE.md` | Parent directory (monorepos) | Instructions for entire monorepo, automatically pulled when working in subdirectories. |
69+
| `~/git/repo/sub_project/CLAUDE.md` | Child directory | Specific instructions for `sub_project`, pulled on demand when working with files in that directory. |
70+
71+
### Claude settings.local.json file
72+
73+
### Claude Code rules
5674

5775
[CLAUDE.md](https://www.anthropic.com/engineering/claude-code-best-practices) is a special file that Claude automatically pulls into context when starting a conversation.
5876

0 commit comments

Comments
 (0)