Created
February 12, 2026 20:35
-
-
Save boranbar/10abba63997bc8a416b7e1620ea0875e to your computer and use it in GitHub Desktop.
Custom AI guidelines fetcher for TurkHosting projects
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
| my-custom-guidelines() { | |
| if ! command -v gh &> /dev/null; then | |
| echo "Error: GitHub CLI (gh) is not installed." | |
| echo "Install it with: brew install gh" | |
| return 1 | |
| fi | |
| if ! gh auth status &> /dev/null; then | |
| echo "Error: GitHub CLI is not authenticated." | |
| echo "Run: gh auth login" | |
| return 1 | |
| fi | |
| mkdir -p .ai/guidelines | |
| gh api repos/TurkHosting/my-custom-guidelines-for-ai-agents/contents/.ai/guidelines/my-custom-guidelines.md --jq '.content' | base64 -d > .ai/guidelines/my-custom-guidelines.md | |
| echo "Custom guidelines added to .ai/guidelines/" | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup Instructions
1. Add the function to
~/.zshrcCopy the function from the file above and paste it into your
~/.zshrc, then run:2. Create a Claude Code skill
Tell your Claude Code agent:
After that, you can use
/my-custom-guidelinesinside Claude Code to fetch the latest guidelines into any project.