Skip to content

Instantly share code, notes, and snippets.

@f4th4n
Last active January 24, 2026 02:53
Show Gist options
  • Select an option

  • Save f4th4n/1ba727ec7ed672f55e23b37188aed8fa to your computer and use it in GitHub Desktop.

Select an option

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)
#!/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