game-dev-combat-animation
Fungsinya
Skill ini memandu agent membuat dan memeriksa animasi serangan jarak dekat, busur, sihir, dan monster untuk game. Cocok untuk pengembang game yang menginginkan serangan yang jelas dan tampak wajar pada tubuh karakter.
Kapan dipakai
- ✓Saat ayunan pedang, tembakan busur, atau rapalan sihir karakter terlihat kaku atau meregang.
- ✓Saat lengan atau tangan terpelintir, terkunci, atau rusak selama serangan.
- ✓Saat Anda ingin animasi serangan ditinjau berdasarkan standar tertulis.
Link skill
https://github.com/MengTo/Skills/blob/main/agent-skills/game-combat/game-dev-combat-animation/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Ayunan pedang ksatria saya terlihat kaku dan lengannya terpelintir di akhir. Perbaiki animasinya dan periksa.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menulis standar berisi aturan bernomor untuk gerakan tersebut, mengukur mesh kerangka yang sebenarnya frame demi frame, dan menentukan keyframe dari gerakan lengan dan bilah. Agent membandingkan hasil baru dengan versi sebelumnya menggunakan penilaian buta.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Game dev: combat animation
Distilled from the Thornvigil knight-and-archer pass (2026-09-30 to 10-01, releases 1.0.71 and 1.0.72). Its outcome:
- Arms and hands won 5 of 8 blind A/B comparisons against the previous release.
- The archer's broken anchor and the knight's frozen, straight-armed follow-through were fixed.
- Seven rounds of fixes came from traps that numbers would have caught earlier. Those traps are listed below.
Read references/thornvigil.md for the project's files, commands and current state, and references/traps.md before changing keys.
The loop
- Write the standard before touching keys. Extend
docs/combat-animation-standard.md(or the project's equivalent) with the move's own numbered rules:- Phases on the game's clock: anticipation, the contact or release on the rule's frame, recovery.
- Body mechanics, weapon path, camera reads.
- Mark each rule test (measured) or reviewed (scored from frames).
- Ground every rule in a real reference: a Tripo Studio motion-capture preset for body mechanics, or coached technique such as the archery shot cycle. Use Tripo presets only; the user has no Mixamo account and declined Quaternius.
- Baseline first. Capture both surfaces (the Characters page and in play), keep the frames, and get blind scores before changing anything.
- Design keys from anatomy, not from hand positions. For each key pick the upper-arm direction
u, the forearm directionfand the bladeb, then runkeydesign.mjs. It returns the hand target and flags:- raise over 100°;
- flex outside 12–140°;
- a blade outside 25–115° off the forearm.
Hand keys ride the shoulder; blade and elbow keys are world directions. See
references/techniques.md.
- Measure before looking. Bake, then:
armcheck.mjsfor joint ranges and the skin's stretch and crush per arm region on the real mesh;at.mjsfor the fist and blade at given times;- the move's own probe:
knight-measure.mjs,anchor.mjsordrawfit.mjs. Fix numbers that break a rule before spending a capture.
- Test. Run the arm-ranges test and the move's tests. When you add a test for a bug, temporarily restore the bug and prove the test fails; a test that reads the same wrong convention as the code passes forever.
- Capture both cameras and look yourself at full resolution. A pose that reads well from the front can read broken from the game camera, and the reverse. Diff each capture against the previous round to be sure it is new.
- Judge. Use two blind critics with a fixed rubric (5 criteria × 0–2; the lower score counts) and a blind A/B against the last release with identical sheet titles. Then verify every claim against full-resolution frames and live-rig numbers before acting on it. See
references/review.mdandtemplates/. - Ship by the project's rules: tests, build, changelog with real screenshots, push, sizes, publish. Use the
workflow-ship-changeskill. If a pushed but unpublished release regresses, correct it in place with a follow-up commit; don't add a version for something players never saw. - Show it. When asked for videos, capture at 30 fps on the move's own clock, place the Characters page and in-play views side by side, and play real speed then quarter speed (
vidcompose.py+encode.swift).
The arm and hand rules
The rig has no twist or corrective bones; past these ranges the skin visibly wrings, crushes or stretches. Every frame of every strike stays inside them, on both bodies, measured on the real skinned mesh.
| Rule | Limit |
|---|---|
| Elbow flexion | 10–152°; the striking or drawing arm keeps ≥20° through the middle 80% of the move |
| Contact reach | sword hand ≥60% of arm length from the shoulder at contact (reach into the blow, never lock) |
| Wrist | bend ≤50°, roll ≤45°; sword wrist capped at 40°; a drawing hand held straight |
| Twist | forearm roll ≤52°, upper-arm roll ≤52° |
| Raise | ≤105° from hanging (shoulder skin crushes beyond); no overhead raises |
| Skin | the worst 1% of each arm or hand region's edges: stretch ≤2×, crush ≤3× against the bind |
| Hands | always in a pose: fist on a grip, hook on a string (set → loose → follow-through), relaxed when empty; never splayed or clawed |
| Paths | hands ride their shoulders and arc about them between keys; blade keys stay reachable (25–115° off the forearm) |
Full rules, with the reasons and the tests that enforce them, are in `references/r
Pertanyaan umum
Apakah perlu file motion capture?
Skill ini merekomendasikan preset gerakan tertentu dari Tripo Studio sebagai referensi gerakan tubuh.
Seperti apa bentuk aturannya?
Berupa fase bernomor seperti antisipasi, kontak, dan pemulihan, masing-masing ditandai sebagai terukur atau sudah ditinjau.
Apakah hasil hanya diperiksa dengan mata?
Tidak. Skill ini memakai pengukuran jika memungkinkan dan perbandingan berdampingan secara buta jika diperlukan.
Detail
Deskripsi asli dari pembuat
Build, fix and review character combat animations (melee strikes, bow shots, spell casts, skills, monster attacks, whole move sets) so they read like Diablo IV, Baldur's Gate 3 or Elden Ring and never stretch, lock, wring or break an arm, wrist or hand. A written standard with numbered rules, per-frame tests on the real skinned mesh, keys designed from upper-arm, forearm and blade intents, checks from every camera the player sees, two blind critics plus a blind A/B against the last release, and every critic claim verified against full-resolution frames and live-rig numbers. Use when creating o
repo: MengTo/Skills
Popularitas
- Bintang GitHub
- 7.2k
- Peringkat
- #13346
- Lisensi
- MIT
- Diperbarui
- 1/11/2026
Komentar
- …
Skill lain dari repositori ini
3d-cloth-material
7.2kMembantu agent Anda membuat kain tenun yang realistis di Three.js, dengan anyaman benang, kilau lembut, lipatan alami, kelim, dan jahitan.
3d-falling-leaves
7.2kMembantu agent Anda menambahkan daun berguguran yang realistis ke scene 3D, dengan daun yang berputar, terbawa angin, dan digunakan ulang saat kamera bergerak.
3d-four-seasons
7.2kMembantu agent Anda menambahkan tampilan musim semi, panas, gugur, dan dingin ke scene 3D, dengan mengubah dedaunan, cahaya, langit, dan salju tanpa membangun ulang scene.
3d-high-poly-models
7.2kMembantu agent Anda membangun model 3D yang detail dengan bentuk halus dan tepi yang meyakinkan, lalu menyiapkan versi lebih ringan yang berjalan baik di web.
Skill serupa
angular-developer
280kMembantu agent Anda membuat kode Angular dan memberi saran struktur proyek. Berguna saat memulai proyek baru, membuat komponen, atau meningkatkan performa.
frontend-a11y
280kMembantu agent Anda membuat antarmuka web dapat diakses semua orang. Memastikan website dan aplikasi berfungsi baik dengan screen reader dan navigasi keyboard.
frontend-patterns
280kMembuat agent Anda menerapkan pola modern dalam frontend. Mengoptimalkan performa, mengelola state, dan mengikuti praktik terbaik React dan Next.js.