मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)139k · #705

guard

यह क्या करती है

यह स्किल एक साथ दो सुरक्षा जाँच चालू करती है: खतरनाक कमांड पर चेतावनी और इस पर सीमा कि फ़ाइलें किस फ़ोल्डर में बदली जा सकती हैं। यह उस व्यक्ति के लिए है जो एजेंट के काम के दौरान मज़बूत सुरक्षा चाहता है।

कब इस्तेमाल करें

  • ✓जब आप चाहते हैं कि एजेंट आपके प्रोजेक्ट पर काम करते समय अधिकतम सुरक्षा में रहे।
  • ✓जब आप खतरनाक कमांड की चेतावनी और फ़ोल्डर की सीमा, दोनों एक साथ चाहते हैं।
  • ✓जब आप किसी ज़रूरी प्रोजेक्ट पर एजेंट को काम सौंपते हैं और गलती की गुंजाइश नहीं है।

Skill का लिंक

https://github.com/garrytan/gstack/blob/main/guard/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/garrytan/gstack/blob/main/guard/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“पूरा सुरक्षा मोड चालू कीजिए और सारे बदलाव src फ़ोल्डर के अंदर ही रखिए। कुछ भी खतरनाक करने से पहले मुझे चेतावनी दीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

आप एक फ़ोल्डर चुनते हैं, और स्किल कमांड की चेतावनी और फ़ोल्डर की सीमा को एक साथ लागू करती है। फ़ोल्डर के बाहर के बदलाव रोके जाते हैं, और जोखिम भरी कमांड पर चेतावनी आती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --> <!-- Regenerate: bun run gen:skill-docs -->

/guard — Full Safety Mode

Activates both destructive command warnings and directory-scoped edit restrictions. This is the combination of /careful + /freeze in a single command.

Dependency note: This skill references hook scripts from the sibling /careful and /freeze skill directories. Both must be installed (they are installed together by the gstack setup script).

GSTACK_STATE_ROOT=$(~/.claude/skills/gstack/bin/gstack-paths --get GSTACK_STATE_ROOT); : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
mkdir -p "$GSTACK_STATE_ROOT"/analytics
echo '{"skill":"guard","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}'  >> "$GSTACK_STATE_ROOT"/analytics/skill-usage.jsonl 2>/dev/null || true

Setup

Ask the user which directory to restrict edits to. Use AskUserQuestion:

  • Question: "Guard mode: which directory should edits be restricted to? Destructive command warnings are always on. Files outside the chosen path will be blocked from editing."
  • Text input (not multiple choice) — the user types a path.

Once the user provides a directory path:

Set the user-selected boundary with the shared writer, which resolves a physical absolute path and serializes replacement with investigation cleanup:

bash "$HOME/.claude/skills/gstack/freeze/bin/freeze-state.sh" set "<user-provided-path>"

On helper failure, do not claim the boundary is active. Preserve the state and report recovery; never bypass the shared writer with a direct write or deletion.

Tell the user:

  • "Guard mode active. Two protections are now running:"
  • "1. Destructive command guard — rm -rf, DROP TABLE, force-push, etc. warn before executing (overridable); catastrophic shapes (recursive delete of / or ~, force-push to the default branch) are hard-denied"
  • "2. Edit boundary — file edits restricted to <path>/. Edits outside this directory are blocked."
  • "To remove the persistent edit boundary, run /unfreeze. Ending the session stops its hooks but does not delete that boundary."

What's protected

See /careful for the full list of destructive command patterns and safe exceptions. See /freeze for how edit boundary enforcement works.

अक्सर पूछे जाने वाले सवाल

पूरे सुरक्षा मोड में क्या शामिल है?

खतरनाक कमांड की चेतावनी के साथ, आपके चुने फ़ोल्डर के बाहर फ़ाइल बदलावों पर रोक।

क्या चेतावनियाँ हमेशा चालू रहती हैं?

हाँ। विवरण के अनुसार इस मोड में खतरनाक कमांड की चेतावनियाँ हमेशा चालू रहती हैं।

क्या इसके लिए दूसरी स्किल्स चाहिए?

हाँ। यह दो सहायक स्किल्स की हुक स्क्रिप्ट इस्तेमाल करती है, जो साथ में इंस्टॉल होती हैं।

जानकारी

लेखक का मूल विवरण

Full safety mode: destructive command warnings + directory-scoped edits. (gstack)

repo: garrytan/gstack

लोकप्रियता

GitHub स्टार
139k
रैंकिंग में स्थान
#705
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

autoplan

139k

आपके एजेंट को एक ही रन में प्रोडक्ट, डिज़ाइन, इंजीनियरिंग और डेवलपर अनुभव के नज़रिए से योजना की समीक्षा करने में मदद करती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

benchmark

139k

आपके एजेंट को किसी बदलाव से पहले और बाद में पेज की गति नापकर वेब प्रदर्शन में गिरावट पकड़ने में मदद करती है।

कोडिंगटेस्टिंग

browse

139k

आपके एजेंट को असली वेब ब्राउज़र खोलने, पेज के प्रवाह में क्लिक करने, स्क्रीनशॉट लेने और कंसोल त्रुटियाँ जाँचने देती है।

कोडिंगटेस्टिंग

hackernews-frontpage

139k

आपके एजेंट को Hacker News का मौजूदा फ़्रंट पेज इकट्ठा करने में मदद करती है, हर कहानी की रैंक, शीर्षक, लिंक, अंक और टिप्पणियों की संख्या के साथ।

डेटावेब स्क्रैपिंग

मिलती-जुलती skills