[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79MCDRSXPRV5TKZKD33X9DX":3,"skill-same:01M79MCDRSXPRV5TKZKD33X9DX":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M79MCDRSXPRV5TKZKD33X9DX","godot-multiplayer",null,"Build networked games with Godot 4.x high-level multiplayer: set up an ENetMultiplayerPeer server\u002Fclient, define RPCs with the @rpc annotation (call via rpc()\u002Frpc_id()), set per-node multiplayer authority, and replicate state with MultiplayerSpawner and MultiplayerSynchronizer. Use when adding multiplayer\u002Fnetworking to a Godot project, writing @rpc functions, or syncing player\u002Fworld state across peers.","mistervaibhav\u002Fskills","mistervaibhav","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F41189028?v=4","01M79KACH05EG9FMM6DQVHAVK9","Vaibhav Singh","01M79KACJB3431Y8CFJQ02MTTM",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-multiplayer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: godot-multiplayer\ndescription: >\n  Build networked games with Godot 4.x high-level multiplayer: set up an\n  ENetMultiplayerPeer server\u002Fclient, define RPCs with the @rpc annotation\n  (call via rpc()\u002Frpc_id()), set per-node multiplayer authority, and replicate\n  state with MultiplayerSpawner and MultiplayerSynchronizer. Use when adding\n  multiplayer\u002Fnetworking to a Godot project, writing @rpc functions, or syncing\n  player\u002Fworld state across peers.\nlicense: Apache-2.0\ncompatibility: Godot 4.3+ (high-level multiplayer, ENet)\nmetadata:\n  engine: godot\n  category: godot\n  difficulty: advanced\n---\n\n# Godot Multiplayer (4.x high-level)\n\nConnect peers, call functions remotely with `@rpc`, assign authority, and replicate state\nwith `MultiplayerSpawner`\u002F`MultiplayerSynchronizer`. Targets **Godot 4.3+** (ENet). Treat\nall client input as untrusted; keep the server authoritative.\n\n## When to use\n\n- Use when adding networked multiplayer: hosting\u002Fjoining over ENet, calling RPCs,\n  assigning per-node authority, or auto-spawning\u002Fsyncing nodes across peers.\n\n**When *not* to use:** local split-screen (no networking); raw TCP\u002FUDP\u002FWebSocket protocol\nwork (low-level `PacketPeer`); HTTP requests. For save\u002Fpersistence → `save-systems`.\n\n## Core workflow\n\n1. **Create a peer** (`ENetMultiplayerPeer`), call `create_server(port, max)` or\n   `create_client(ip, port)`, and assign it to `multiplayer.multiplayer_peer`. The\n   server's unique ID is always `1`; clients get random positive IDs.\n2. **Handle connection signals** on `multiplayer`: `peer_connected(id)`,\n   `peer_disconnected(id)`, `connected_to_server`, `connection_failed`,\n   `server_disconnected`.\n3. **Define RPCs** with `@rpc(...)`. Call them on a `Callable` via `rpc()` (all peers) or\n   `rpc_id(peer_id)` (one peer). Inside, `multiplayer.get_remote_sender_id()` tells you who\n   sent it.\n4. **Keep RPC signatures identical** on every peer that runs the script — Godot checksums\n   all `@rpc` methods in a script; mismatches break silently.\n5. **Assign authority** per node with `set_multiplayer_authority(id)`; gate input\u002FRPCs by\n   `is_multiplayer_authority()`.\n6. **Replicate state** with `MultiplayerSpawner` (auto-instances scenes on clients) and\n   `MultiplayerSynchronizer` (auto-syncs selected properties).\n7. **Validate on the server.** Don't trust client-reported positions\u002Fresults.\n\n## Patterns\n\n### 1. Host or join (ENet)\n\n```gdscript\nconst PORT := 7000\nconst MAX_PLAYERS := 8\n\nfunc host() -> void:\n    var peer := ENetMultiplayerPeer.new()\n    var err := peer.create_server(PORT, MAX_PLAYERS)\n    if err != OK:\n        push_error(\"Cannot host: %s\" % err); return\n    multiplayer.multiplayer_peer = peer\n    multiplayer.peer_connected.connect(_on_peer_connected)\n\nfunc join(ip := \"127.0.0.1\") -> void:\n    var peer := ENetMultiplayerPeer.new()\n    peer.create_client(ip, PORT)\n    multiplayer.multiplayer_peer = peer\n    multiplayer.connected_to_server.connect(func(): print(\"connected\"))\n\nfunc leave() -> void:\n    multiplayer.multiplayer_peer = OfflineMultiplayerPeer.new()\n```\n\n### 2. RPCs: client sends input to the server (any_peer, call_local)\n\n```gdscript\nfunc _unhandled_input(event: InputEvent) -> void:\n    if event.is_action_pressed(\"fire\") and is_multiplayer_authority():\n        request_fire.rpc_id(1)          # send only to the server (id 1)\n\n# Clients may call this; it runs on the server (and locally if server is a player).\n@rpc(\"any_peer\", \"call_local\", \"reliable\")\nfunc request_fire() -> void:\n    var sender := multiplayer.get_remote_sender_id()\n    if not _can_fire(sender):           # server-side validation\n        return\n    spawn_projectile.rpc(sender)        # tell everyone to spawn it\n\n@rpc(\"authority\", \"call_local\", \"reliable\")\nfunc spawn_projectile(owner_id: int) -> void:\n    _do_spawn(owner_id)\n```\n\n### 3. Per-node authority (each player controls their own avatar)\n\n```gdscript\nextends CharacterBody2D\n\nfunc _ready() -> void:\n    # The node name is the owning peer's id; that peer is the authority.\n    set_multiplayer_authority(name.to_int())\n\nfunc _physics_process(delta: float) -> void:\n    if not is_multiplayer_authority():\n        return                          # only the owner reads input & moves\n    velocity = Input.get_vector(\"left\", \"right\", \"up\", \"down\") * 200.0\n    move_and_slide()\n```\n\n### 4. MultiplayerSynchronizer config (editor + replication)\n\n```gdscript\n# Add a MultiplayerSynchronizer child; in its Replication editor add the properties to\n# sync (e.g. position, velocity). Set \"Sync\"\u002F\"Spawn\" flags per property. From code you\n# can scope visibility:\n@onready var sync: MultiplayerSynchronizer = $MultiplayerSynchronizer\n\nfunc _ready() -> void:\n    # Only replicate this node to a specific peer (e.g. private info).\n    sync.set_visibility_for(target_peer_id, true)\n```\n\n## Pitfalls\n\n- **RPC signature checksum.** Every `@rpc` method in a script must exist with the same\n  declaration on both client and server builds — *even unused ones*. A mismatch causes\n  errors that may point at the wrong function. Argument names\u002Fcount are not checked, but\n  the set of RPCs and their annotations are.\n- **Default `@rpc` is `\"authority\"`.** Clients calling it are ignored unless you set\n  `\"any_peer\"`. Use `\"call_local\"` so the host (also a player) runs it too.\n- **NodePaths must match across peers.** RPC routing uses the node's path\u002Fname; spawn nodes\n  with identical names on all peers (use `MultiplayerSpawner` or `add_child(node, true)` for\n  readable, deterministic names).\n- **Trusting the client.** Never let clients set authoritative state (health, position,\n  hits) directly. Send *intent*, validate on the server, then broadcast results.\n- **RPC on non-Node classes fails.** `@rpc` methods must be on `Node`-derived classes, not\n  plain `Resource`\u002F`RefCounted`.\n- **RPCs don't serialize Objects\u002FCallables.** Pass plain data (ints, strings, arrays,\n  dictionaries, PackedArrays).\n- **Forgetting to reset the peer.** To disconnect cleanly, set\n  `multiplayer.multiplayer_peer = OfflineMultiplayerPeer.new()`.\n- **Android needs INTERNET permission** in the export preset or all networking is blocked.\n\n## References\n\n- For `MultiplayerSpawner` setup, transfer modes\u002Fchannels, `SceneMultiplayer`\n  authentication (`auth_callback`\u002F`complete_auth`), a lobby skeleton, and dedicated-server\n  export notes, read `references\u002Freplication-and-rpc.md`.\n\n## Related skills\n\n- `godot-nodes-scenes` — instancing the scenes that get spawned\u002Fsynced.\n- `godot-signals-groups` — connection signals and event flow.\n- `godot-export` — exporting a headless dedicated server build.\n","# Godot Multiplayer (4.x high-level)\n\nConnect peers, call functions remotely with `@rpc`, assign authority, and replicate state\nwith `MultiplayerSpawner`\u002F`MultiplayerSynchronizer`. Targets **Godot 4.3+** (ENet). Treat\nall client input as untrusted; keep the server authoritative.\n\n## When to use\n\n- Use when adding networked multiplayer: hosting\u002Fjoining over ENet, calling RPCs,\n  assigning per-node authority, or auto-spawning\u002Fsyncing nodes across peers.\n\n**When *not* to use:** local split-screen (no networking); raw TCP\u002FUDP\u002FWebSocket protocol\nwork (low-level `PacketPeer`); HTTP requests. For save\u002Fpersistence → `save-systems`.\n\n## Core workflow\n\n1. **Create a peer** (`ENetMultiplayerPeer`), call `create_server(port, max)` or\n   `create_client(ip, port)`, and assign it to `multiplayer.multiplayer_peer`. The\n   server's unique ID is always `1`; clients get random positive IDs.\n2. **Handle connection signals** on `multiplayer`: `peer_connected(id)`,\n   `peer_disconnected(id)`, `connected_to_server`, `connection_failed`,\n   `server_disconnected`.\n3. **Define RPCs** with `@rpc(...)`. Call them on a `Callable` via `rpc()` (all peers) or\n   `rpc_id(peer_id)` (one peer). Inside, `multiplayer.get_remote_sender_id()` tells you who\n   sent it.\n4. **Keep RPC signatures identical** on every peer that runs the script — Godot checksums\n   all `@rpc` methods in a script; mismatches break silently.\n5. **Assign authority** per node with `set_multiplayer_authority(id)`; gate input\u002FRPCs by\n   `is_multiplayer_authority()`.\n6. **Replicate state** with `MultiplayerSpawner` (auto-instances scenes on clients) and\n   `MultiplayerSynchronizer` (auto-syncs selected properties).\n7. **Validate on the server.** Don't trust client-reported positions\u002Fresults.\n\n## Patterns\n\n### 1. Host or join (ENet)\n\n```gdscript\nconst PORT := 7000\nconst MAX_PLAYERS := 8\n\nfunc host() -> void:\n    var peer := ENetMultiplayerPeer.new()\n    var err := peer.create_server(PORT, MAX_PLAYERS)\n    if err != OK:\n        push_error(\"Cannot host: %s\" % err); return\n    multiplayer.multiplayer_peer = peer\n    multiplayer.peer_connected.connect(_on_peer_connected)\n\nfunc join(ip := \"127.0.0.1\") -> void:\n    var peer := ENetMultiplayerPeer.new()\n    peer.create_client(ip, PORT)\n    multiplayer.multiplayer_peer = peer\n    multiplayer.connected_to_server.connect(func(): print(\"connected\"))\n\nfunc leave() -> void:\n    multiplayer.multiplayer_peer = OfflineMultiplayerPeer.new()\n```\n\n### 2. RPCs: client sends input to the server (any_peer, call_local)\n\n```gdscript\nfunc _unhandled_input(event: InputEvent) -> void:\n    if event.is_action_pressed(\"fire\") and is_multiplayer_authority():\n        request_fire.rpc_id(1)          # send only to the server (id 1)\n\n# Clients may call this; it runs on the server (and locally if server is a player).\n@rpc(\"any_peer\", \"call_local\", \"reliable\")\nfunc request_fire() -> void:\n    var sender := multiplayer.get_remote_sender_id()\n    if not _can_fire(sender):           # server-side validation\n        return\n    spawn_projectile.rpc(sender)        # tell everyone to spawn it\n\n@rpc(\"authority\", \"call_local\", \"reliable\")\nfunc spawn_projectile(owner_id: int) -> void:\n    _do_spawn(owner_id)\n```\n\n### 3. Per-node authority (each player controls their own avatar)\n\n```gdscript\nextends CharacterBody2D\n\nfunc _ready() -> void:\n    # The node name is the owning peer's id; that peer is the authority.\n    set_multiplayer_authority(name.to_int())\n\nfunc _physics_process(delta: float) -> void:\n    if not is_multiplayer_authority():\n        return                          # only the owner reads input & moves\n    velocity = Input.get_vector(\"left\", \"right\", \"up\", \"down\") * 200.0\n    move_and_slide()\n```\n\n### 4. MultiplayerSynchronizer config (editor + replication)\n\n```gdscript\n# Add a MultiplayerSynchronizer child; in its Replication editor add the properties to\n# sync (e.g. position, velocity). Set \"Sync\"\u002F\"Spawn\" flags per property. From code you\n# can scope visibility:\n@onready var sync: MultiplayerSynchronizer = $MultiplayerSynchronizer\n\nfunc _ready() -> void:\n    # Only replicate this node to a specific peer (e.g. private info).\n    sync.set_visibility_for(target_peer_id, true)\n```\n\n## Pitfalls\n\n- **RPC signature checksum.** Every `@rpc` method in a script must exist with the same\n  declaration on both client and server builds — *even unused ones*. A mismatch causes\n  errors that may point at the wrong function. Argument names\u002Fcount are not checked, but\n  the set of RPCs and their annotations are.\n- **Default `@rpc` is `\"authority\"`.** Clients calling it are ignored unless you set\n  `\"any_peer\"`. Use `\"call_local\"` so the host (also a player) runs it too.\n- **NodePaths must match across peers.** RPC routing uses the node's path\u002Fname; spawn nodes\n  with identical names on all peers (use `MultiplayerSpawner` or `add_child(node, true)` for\n  readable, deterministic names).\n- **Trusting the client.** Never let clients set authoritative state (health, position,\n  hits) directly. Send *intent*, validate on the server, then broadcast results.\n- **RPC on non-Node classes fails.** `@rpc` methods must be on `Node`-derived classes, not\n  plain `Resource`\u002F`RefCounted`.\n- **RPCs don't serialize Objects\u002FCallables.** Pass plain data (ints, strings, arrays,\n  dictionaries, PackedArrays).\n- **Forgetting to reset the peer.** To disconnect cleanly, set\n  `multiplayer.multiplayer_peer = OfflineMultiplayerPeer.new()`.\n- **Android needs INTERNET permission** in the export preset or all networking is blocked.\n\n## References\n\n- For `MultiplayerSpawner` setup, transfer modes\u002Fchannels, `SceneMultiplayer`\n  authentication (`auth_callback`\u002F`complete_auth`), a lobby skeleton, and dedicated-server\n  export notes, read `references\u002Freplication-and-rpc.md`.\n\n## Related skills\n\n- `godot-nodes-scenes` — instancing the scenes that get spawned\u002Fsynced.\n- `godot-signals-groups` — connection signals and event flow.\n- `godot-export` — exporting a headless dedicated server build.\n",{"name":5,"license":15,"metadata":24,"description":27,"compatibility":28},{"engine":25,"category":25,"difficulty":26},"godot","advanced","Build networked games with Godot 4.x high-level multiplayer: set up an ENetMultiplayerPeer server\u002Fclient, define RPCs with the @rpc annotation (call via rpc()\u002Frpc_id()), set per-node multiplayer authority, and replicate state with MultiplayerSpawner and MultiplayerSynchronizer. Use when adding multiplayer\u002Fnetworking to a Godot project, writing @rpc functions, or syncing player\u002Fworld state across peers.\n","Godot 4.3+ (high-level multiplayer, ENet)","main","6d4e3296d58b2720c5b1026197cd069b1dde4789","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills","https:\u002F\u002Fgithub.com\u002Fmistervaibhav","Software Engineer","2026-07-24 17:16:42",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add mistervaibhav\u002Fskills --skill godot-multiplayer",{"tool":41,"command":42},"bunx","bunx skills add mistervaibhav\u002Fskills --skill godot-multiplayer",{"tool":44,"command":45},"pnpm","pnpm dlx skills add mistervaibhav\u002Fskills --skill godot-multiplayer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-multiplayer\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Freplication-and-rpc.md","REFERENCE","参考文档",4574,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-multiplayer\u002Freferences\u002Freplication-and-rpc.md",[56,64,72,80,87,94],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":60,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79NZDV5781GA6SJMN1QPXB4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79NZ8SEVWT4WYD49BV980YW","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", or \"type hierarchy\". Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","MIT","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79NYVQS5NYHH36NXF2AHP8B","web-haptics","Add haptic feedback to web apps using the web-haptics library. Use when building mobile-facing UIs that need tactile feedback on buttons, toggles, forms, pickers, and other interactive elements.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79NY8AMC62DDRSH21WKXJVE","visual-novel","Build a visual novel: a branching script, character and background display, a text box with choices, save\u002Fload, backlog, and skip\u002Fauto. Use for a VN, dating sim, or branching story game.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fvisual-novel\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79NWFM5R9QC9Y2AT40EHF44","ux-heuristics","Evaluate and improve interface usability using heuristic analysis. Use when the user mentions \"usability audit\", \"UX review\", \"users are confused\", \"heuristic evaluation\", \"form usability\", or \"navigation problems\". Covers Nielsen's 10 heuristics, severity ratings, and information architecture. For visual design fixes, see refactoring-ui. For conversion-focused audits, see cro-methodology.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fux-heuristics\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79NVSG7AB3MSFT8Y6EEHG1B","unreal-packaging","Package and ship an Unreal Engine 5 project: the Platforms menu Package Project flow, build configurations (Development vs Shipping), cooking content, packaging settings and the Game Default Map, and command-line builds with RunUAT BuildCookRun. Use when packaging a build, making a shipping build, cooking content, configuring packaging settings, or when the user mentions package Unreal, cook content, shipping build, or BuildCookRun.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-packaging\u002FSKILL.md",[],[]]