Last active
January 24, 2026 02:53
-
-
Save f4th4n/1ba727ec7ed672f55e23b37188aed8fa to your computer and use it in GitHub Desktop.
Setup AI Instructions For Copilot, Claude, Gemini, Anti Gravity and others (AGENTS.md)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| SOURCE_FILE=".github/instructions/copilot.instructions.md" | |
| # 1. Check if the source of truth exists | |
| if [ ! -f "$SOURCE_FILE" ]; then | |
| echo "❌ Error: $SOURCE_FILE does not exist." | |
| echo "Please create your master instructions file before running this script." | |
| exit 1 | |
| fi | |
| # 2. If it exists, create/force update the symbolic links | |
| ln -sf "$SOURCE_FILE" CLAUDE.md | |
| ln -sf "$SOURCE_FILE" AGENTS.md | |
| ln -sf "$SOURCE_FILE" GEMINI.md | |
| echo "✅ Success: Symbolic links synchronized to $SOURCE_FILE" | |
| echo "From now, you can just update copilot.instructions.md to apply them all" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment