Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计提醒

godot-platform-webGodot 平台网络

Agent Skill

godot-platform-web 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,848

周安装

77

GitHub Stars

138

下载量

616
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:godot-platform-web(Godot 平台网络)
来源仓库:https://github.com/thedivergentai/gd-agentic-skills
仓库路径:skills/godot-platform-web
安装命令:
npx skills add https://github.com/thedivergentai/gd-agentic-skills --skill godot-platform-web
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/thedivergentai/gd-agentic-skills --skill godot-platform-web

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,支持项目状态跟踪。

  • 适用于围绕仓库变更、代码审查或团队协作事项进行信息整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件操作。
  • godot-platform-web 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Platform: Web

Browser API integration, LocalStorage persistence, and size optimization define web deployment.

NEVER Do (Expert Web Rules)

Persistence & Storage

  • NEVER use FileAccess for persistent saves — Browsers sandbox the filesystem. Standard FileAccess to user:// is unreliable. Always use JavaScriptBridge for localStorage or IndexedDB.
  • NEVER assume localStorage is permanent — Browsers may purge local storage if space is low. Always implement a cloud-save fallback for production titles.

Rendering & Logic

  • NEVER use the Forward+ renderer — Forward+ requires Vulkan features that are unstable in browsers. Use the Compatibility (WebGL 2.0) renderer for consistent 60 FPS.
  • NEVER block the browser event loop — Long-running sync logic will cause the browser to prompt the user to "Kill the Page." Use await and background tasks.
  • NEVER ignore the COOP/COEP header requirement — Multi-threading and SharedArrayBuffer will fail on many hosts unless cross-origin isolation is configured server-side.

UX & Security

  • NEVER forget to handle tab focus loss — Audio playing in a hidden background tab is poor UX. Use visibilitychange to pause audio.
  • NEVER trigger Fullscreen/Mouse Lock without click — Browsers block security-sensitive requests unless they are inside a direct user interaction event.
  • NEVER use absolute paths in HTML shells — Use relative paths to ensure the game works when hosted in sub-directories.

Available Scripts

MANDATORY: Read the appropriate script before implementing the corresponding pattern.

web_javascript_bridge_callback.gd

Expert two-way JS-to-GD communication using create_callback.

web_local_storage_wrapper.gd

Robust localStorage handler with JSON serialization and quota error prevention.

web_responsive_canvas_adaptor.gd

Dynamic canvas resizing to match browser window dimensions via JS.

web_browser_input_guard.gd

Preventing browser default behaviors (Right-click menu, Spacebar scroll).

web_resource_lazy_loader.gd

Lazy loading of remote PCKs and resources using browser-fetch logic.

web_clipboard_interface.gd

Asynchronous clipboard (Copy/Paste) integration via the Navigator API.

web_visibility_auto_pause.gd

Visibility API integration to auto-pause engine and audio on tab hide.

web_navigation_guard.gd

Navigation guard using beforeunload to prevent closing on unsaved progress.

web_external_url_opener.gd

Expert URL opening using window.open with noopener security flags.

web_performance_profiler.gd

Browser performance tracking (VRAM, Draw calls) logged to JS console.


<!-- index.html custom loading -->
<div id="loading-screen">
    <div class="progress-bar">
        <div id="progress" style="width: 0%"></div>
    </div>
    <p id="status-text">Loading...</p>
</div>

<script>
const engine = new Engine(CONFIG);
engine.startGame({
    onProgress: function(current, total) {
        const percent = Math.floor((current / total) * 100);
        document.getElementById('progress').style.width = percent + '%';
        document.getElementById('status-text').innerText = `Loading ${percent}%`;
    }
}).then(() => {
    document.getElementById('loading-screen').style.display = 'none';
});
</script>

Browser Integration

# Check if running in browser
if OS.has_feature("web"):
    # Web-specific code
    JavaScriptBridge.eval("console.log('Running in browser')")

LocalStorage Save

func save_to_browser() -> void:
    if not OS.has_feature("web"):
        return

    var data := JSON.stringify(get_save_data())
    JavaScriptBridge.eval("localStorage.setItem('savegame', '%s')" % data)

func load_from_browser() -> Dictionary:
    if not OS.has_feature("web"):
        return {}

    var data_str := JavaScriptBridge.eval("localStorage.getItem('savegame')")
    if data_str:
        return JSON.parse_string(data_str)
    return {}

Size Optimization

# Minimize build size
[rendering]
textures/vram_compression/import_s3tc_bptc=false
textures/vram_compression/import_etc2_astc=true

# Exclude unnecessary exports
[export_preset]
exclude_filter="*.md,*.txt,docs/*"

Performance

  • Target 60 FPS on mid-range browsers
  • Limit godot-particles - WebGL has lower limits
  • Reduce draw calls
  • Avoid large textures

Best Practices

  1. Loading Screen - Users expect feedback
  2. File Size - Keep under 50MB
  3. Mobile Web - Test on phones
  4. HTTPS - Required for many APIs

Reference

  • Related: godot-export-builds, godot-platform-mobile

Related

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude

32.27%
按下载量换算199

Codex

32.02%
按下载量换算197

Cursor

19.39%
按下载量换算119

Gemini CLI

9.36%
按下载量换算58

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills