tune-enemy-ai
यह क्या करती है
यह स्किल AI एजेंट को 3D या वेब एक्शन गेम में दुश्मनों के सोचने और काम करने के तरीके डिज़ाइन करने का मार्गदर्शन देती है। यह उन डेवलपर्स के लिए है जो ऐसे दुश्मन चाहते हैं जो निष्पक्ष लगें और आसानी से परखे जा सकें।
कब इस्तेमाल करें
- ✓जब दुश्मन बहुत देर पीछा करते हैं, अनुचित हमला करते हैं या अटक जाते हैं।
- ✓जब आप कई चरणों और व्यवहारों वाला बॉस जोड़ रहे हैं।
- ✓जब आपको दोहराए जा सकने वाले AI टेस्ट चाहिए जो दुश्मन के फ़ैसले जाँचें।
Skill का लिंक
https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/tune-enemy-ai/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे दुश्मन दीवारों के पीछे अटकते रहते हैं। उनका पीछा करने और हमले का व्यवहार ठीक करने में मदद कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट दुश्मन के व्यवहार को नामित अवस्थाओं में लिखता है, जैसे पीछा करना, स्थिति बदलना और हमला। वह अवस्था बदलने के साफ़ नियम तय करता है, हमलों से पहले चेतावनी जोड़ता है, और हर फ़ैसले के लिए टेस्ट लिखता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Tune Enemy AI
Make enemy choices legible, bounded, and reproducible.
Model decisions explicitly
Use a small state machine or utility layer with named states such as idle, investigate, pursue, reposition, windup, attack, recover, stagger, retreat, and defeated. State transitions must state their prerequisites, exit conditions, minimum dwell time, and cooldown effects.
Separate perception, intent, and motion
- Gather observable inputs: distance, line of sight, target state, occupancy, threat, health, and timers.
- Select one intention from constrained legal actions.
- Move and animate toward that intent without rewriting the decision mid-action.
Use authoritative collision and navigation results for movement success. Do not derive them from rendered pose or assumed path completion.
Preserve fair combat
Telegraph attacks before their active window. Prevent instant turn-and-hit behavior, perpetual chase, clipped attacks through blockers, and repeated recovery spam. Add spacing and commitment so the player can read and answer each enemy archetype.
Test the decision surface
Create deterministic fixtures for target acquisition, target loss, obstruction, path failure, close-range pressure, multiple enemies, retaliation, interrupt, stagger, boss phase, and reset. Assert transitions and outcomes, not only final positions. Run a real browser encounter after automated tests.
अक्सर पूछे जाने वाले सवाल
व्यवहार की state machine क्या है?
यह नामित अवस्थाओं की सरल सूची है, जैसे निष्क्रिय, पीछा या पीछे हटना, और उनके बीच जाने के साफ़ नियम।
क्या स्किल केवल स्थिति परखती है?
नहीं। वह फ़ैसलों और नतीजों को परखती है, केवल यह नहीं कि दुश्मन कहाँ पहुँचा।
क्या दुश्मन फिर भी खिलाड़ी के लिए निष्पक्ष रहेंगे?
स्किल कहती है कि हमले लगने से पहले दिखें, और दुश्मन मुड़कर तुरंत हिट न करें।
जानकारी
लेखक का मूल विवरण
Build, debug, balance, or test combat enemy AI for playable action games. Use for aggro, target selection, navigation, spacing, attack choices, telegraphs, retreats, boss behavior, behavior-state machines, and deterministic AI regression tests.
repo: MengTo/Skills
लोकप्रियता
- GitHub स्टार
- 7.2k
- रैंकिंग में स्थान
- #13369
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
3d-cloth-material
7.2kआपके एजेंट को Three.js में असली बुने हुए कपड़े जैसा दिखने वाला मटीरियल बनाने में मदद करती है, जिसमें धागों की बुनाई, हल्की चमक, प्राकृतिक सिलवटें, किनारे और सीवन हों।
3d-falling-leaves
7.2kआपके एजेंट को 3D दृश्य में असली लगने वाली गिरती पत्तियाँ जोड़ने देती है, जो लुढ़कती हैं, हवा के साथ बहती हैं और कैमरा हिलने पर दोबारा इस्तेमाल होती हैं।
3d-four-seasons
7.2kआपके एजेंट को 3D दृश्य में वसंत, गर्मी, शरद और सर्दी के रूप जोड़ने देती है, जिसमें हरियाली, रोशनी, आसमान और बर्फ़ बिना दृश्य दोबारा बनाए बदलते हैं।
3d-high-poly-models
7.2kआपके एजेंट को चिकने आकार और विश्वसनीय किनारों वाले विस्तृत 3D मॉडल बनाने देती है, और फिर वेब पर अच्छे चलने वाले हल्के संस्करण तैयार करती है।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।