git-safety

द्वारा redis

सुरक्षित शाखाओं के लिए महत्वपूर्ण सुरक्षा सीमाएँ: मुख्य, नवीनतम या रिलीज़ शाखाओं पर सीधे कभी कमिट, पुश या फोर्स-पुश न करें; कोई विनाशकारी इतिहास नहीं…

npx skills add https://github.com/redis/redisinsight --skill git-safety

Git Safety Rules for AI Agents

🚫 CRITICAL: Protected Branch Rules

AI agents must NEVER commit to or push to protected branches under any circumstances.

Protected Branches

  • main - Primary production branch
  • latest - Latest stable release
  • release/* - Release branches (e.g., release/v2.0.0)

This is a non-negotiable rule that applies to all scenarios:

Prohibited Actions

  • ❌ Direct commits - Never run git commit while on a protected branch
  • ❌ Direct pushes - Never run git push origin <protected-branch> or git push while on a protected branch
  • ❌ Force pushes - Never run git push --force or git push -f targeting protected branches
  • ❌ Merging into protected branches locally - Never run git merge <branch> while on a protected branch
  • ❌ Rebasing protected branches - Never run git rebase while on a protected branch
  • ❌ Resetting protected branches - Never run git reset while on a protected branch

Required Workflow

  1. Always create a feature branch before making any changes
  2. Verify current branch before any git operation using git branch --show-current
  3. Create Pull Requests for all changes - let the review process handle merging

Pre-Push Checklist

Before executing any push command, AI agents must:

  1. ✅ Confirm current branch is NOT a protected branch (main, latest, release/*)
  2. ✅ Verify the remote and branch target

Error Recovery

If accidentally on a protected branch with uncommitted changes:

  1. Stash changes: git stash
  2. Create new branch: git checkout -b <appropriate-branch-name>
  3. Apply changes: git stash pop
  4. Continue work on the new branch

Rationale

  • Protected branches represent production-ready or release code
  • All changes must go through code review via Pull Requests
  • Direct pushes bypass CI/CD checks and team review
  • Mistakes on protected branches can affect the entire team and deployment pipeline

redis की और Skills

docs-sync
redis
मास्टर ब्रांच के कार्यान्वयन और कॉन्फ़िगरेशन का विश्लेषण करें ताकि docs/, README.md, और प्रति-पैकेज README में गायब, गलत, या पुराने दस्तावेज़ का पता लगाया जा सके। उपयोग करें…
redis-query-engine
redis
Redis Query Engine (RQE) मार्गदर्शन जिसमें FT.CREATE स्कीमा डिज़ाइन, फ़ील्ड प्रकार चयन (TEXT, TAG, NUMERIC, GEO, GEOSHAPE, VECTOR), DIALECT 2 क्वेरी सिंटैक्स शामिल है,…
redis-search
redis
Redis Search मार्गदर्शन जिसमें FT.CREATE स्कीमा डिज़ाइन, फ़ील्ड प्रकार चयन (TEXT, TAG, NUMERIC, GEO, GEOSHAPE, VECTOR, JSON path), DIALECT 2 क्वेरी सिंटैक्स शामिल है,…
redis-security
redis
Redis सुरक्षा मार्गदर्शन जिसमें प्रमाणीकरण (requirepass और ACL उपयोगकर्ता), TLS, ACL-आधारित न्यूनतम-विशेषाधिकार पहुँच नियंत्रण, नेटवर्क एक्सपोज़र को प्रतिबंधित करना शामिल है…
redis-semantic-cache
redis
Redis LangCache का उपयोग Redis Cloud पर LLM प्रतिक्रियाओं के सिमैंटिक कैशिंग के लिए — SDK या REST API के माध्यम से search/set को कॉल करना, समानता सीमा को ट्यून करना,…
redis-vector-search
redis
Redis वेक्टर खोज मार्गदर्शन जिसमें HNSW बनाम FLAT एल्गोरिदम चयन, वेक्टर इंडेक्स कॉन्फ़िगरेशन (dims, दूरी मीट्रिक, डेटाटाइप), फ़िल्टर्ड हाइब्रिड खोज…
bump-test-image
redis
डिफ़ॉल्ट Redis डॉकर टेस्ट इमेज (redislabs/client-libs-test) को साझा DEFAULT_DOCKER_CONFIG और CI मैट्रिक्स में बढ़ाएँ, फिर फ़ोर्स-पुश करें…
i18n
redis
RedisInsight UI के लिए अंतर्राष्ट्रीयकरण परंपराएँ (i18next)। redisinsight/ui/** के अंतर्गत उपयोगकर्ता-सामने वाले स्ट्रिंग जोड़ते या बदलते समय उपयोग करें, संपादन करते समय…