本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)7.2k · #13369

tune-enemy-ai

できること

このスキルは、3Dやアクション系のWebゲームで、敵の考え方と行動を設計する作業を、AIエージェントに案内します。公平に感じられ、テストしやすい敵を作りたい開発者向けです。

使う場面

  • ✓敵が長く追いかけすぎたり、不公平に攻撃したり、動けなくなったりするとき。
  • ✓複数のフェーズと行動を持つボスを追加しているとき。
  • ✓敵の選択を確認する、繰り返し可能なAIテストが欲しいとき。

スキルのリンク

https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/tune-enemy-ai/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/tune-enemy-ai/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私の敵が壁の後ろで動けなくなります。追いかけ方と攻撃の動きを直してください。”

毎週5つの新しいスキル。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

  1. Gather observable inputs: distance, line of sight, target state, occupancy, threat, health, and timers.
  2. Select one intention from constrained legal actions.
  3. 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.

よくある質問

振る舞いの状態機械とは何ですか?

待機、追跡、退却など、名前付きの状態の単純な一覧で、状態の間を移るための明確なルールを持ちます。

位置だけをテストしますか?

いいえ。敵がどこにいるかだけでなく、判断と結果を確認します。

敵は依然としてプレイヤーにとって公平ですか?

攻撃は命中する前に示されるべきで、敵は即座に向きを変えて当ててはならないとスキルで述べています。

詳細

作者による元の説明

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
更新日
2026/11/1

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル