Skip to content

Commit adf8916

Browse files
committed
vide coding / Use shared AI instruction files across multiple repositories
1 parent 8301f33 commit adf8916

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ categories:
99
comments: true
1010
date:
1111
created: 2025-08-31
12-
updated: 2025-09-04
12+
updated: 2025-09-09
1313
---
1414

1515
# Vibe coding cheat sheet
@@ -52,6 +52,8 @@ Examples:
5252

5353
## Claude Code rules
5454

55+
[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.
56+
5557
Chris Dzombak's [claude code rules](https://www.dzombak.com/blog/2025/08/getting-good-results-from-claude-code/)
5658

5759
## Other instructions
@@ -70,3 +72,24 @@ Chris Dzombak's [claude code rules](https://www.dzombak.com/blog/2025/08/getting
7072
- Use sqlalchemy v2 for database interactions.
7173
- Complex logic should be as less as possible in the code, but if it really needs to be there, give comments for explanation.
7274
- Typing is mandatory. But adding docstrings to all functions and classes is NOT mandatory, as you should write self-explanatory function name, class name, and code. But if you think it is necessary, DO add them.
75+
76+
## Use shared AI instruction files across multiple repositories
77+
78+
You can create all the copilot claude instructions files in a folder say `~/.github`
79+
80+
Then you can create symlinks to the files in your project folder:
81+
82+
```bash
83+
cd /path/to/your/project
84+
85+
mkdir -p .github/instructions
86+
mkdir -p .github/prompts
87+
88+
ln -s ~/.github/copilot-instructions.md .github/copilot-instructions.md
89+
ln -s ~/.github/instructions/python.instructions.md .github/instructions/python.instructions.md
90+
ln -s ~/.github/prompts/python.prompt.md .github/prompts/python.prompt.md
91+
ln -s ~/.github/CLAUDE.md CLAUDE.md
92+
93+
echo ".github/**/*.md" >> .gitignore
94+
echo "CLAUDE.md" >> .gitignore
95+
```

0 commit comments

Comments
 (0)