[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HSFQKRX8BRWKPYBEES93FJ":3,"skill-same:01M6HSFQKRX8BRWKPYBEES93FJ":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":6,"ownerHtmlUrl":61,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":62,"install":63,"resources":76},"01M6HSFQKRX8BRWKPYBEES93FJ","save-system",null,"存档系统技能。管理游戏进度的保存和加载，支持多存档槽、自动保存、云存档等功能。","welflau\u002Fai-dev-system","welflau","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7010385?v=4","01M6HPTDGF18RFY07M229P8CTM","01M6HPTDMRMZCJPYBFEA9XVVYT",3,"MIT","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Fgodot-mcp\u002Fskills\u002Fgodot-dev\u002Flevel-2-modules\u002Fsave-system\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"save","system","save system","core","file","cloud","simple","full","type","false","godot","scripts","STRING","autoload","load","manager","2026-11-10 10:12:30",false,"---\nname: save-system\ndescription: >\n  存档系统技能。管理游戏进度的保存和加载，支持多存档槽、自动保存、云存档等功能。\nversion: 1.0.0\ndependencies:\n  - godot-core\n  - file-manager\ntriggers:\n  - pattern: \"存档|保存|加载|Save|Load|进度\"\ninputs:\n  - name: save_type\n    type: string\n    enum: [\"simple\", \"full\", \"cloud\"]\n    required: false\noutputs:\n  - name: save_manager\n    type: file\n    path_pattern: \"res:\u002F\u002Fscripts\u002Fautoload\u002Fsave_manager.gd\"\n---\n\n# 存档系统技能\n\n管理游戏进度的保存和加载。\n\n## 存档系统架构\n\n```\nuser:\u002F\u002F\n└── saves\u002F\n    ├── settings.cfg        # 全局设置\n    ├── slot_1\u002F\n    │   ├── save.json       # 主存档数据\n    │   ├── screenshot.png  # 存档截图\n    │   └── meta.json       # 元数据（时间、游戏时长等）\n    ├── slot_2\u002F\n    │   └── ...\n    ├── slot_3\u002F\n    │   └── ...\n    └── autosave\u002F\n        └── ...\n```\n\n---\n\n## 存档管理器\n\n### save_manager.gd (Autoload)\n\n```gdscript\n## 存档管理器\n##\n## 管理游戏数据的保存和加载\n## @author AI Generated\n## @version 1.0.0\nclass_name SaveManager\nextends Node\n\n# region 信号\nsignal save_started\nsignal save_completed(slot: int)\nsignal save_failed(slot: int, error: String)\nsignal load_started\nsignal load_completed(slot: int)\nsignal load_failed(slot: int, error: String)\nsignal autosave_triggered\n# endregion\n\n# region 常量\nconst SAVE_DIR = \"user:\u002F\u002Fsaves\u002F\"\nconst SETTINGS_FILE = \"user:\u002F\u002Fsaves\u002Fsettings.cfg\"\nconst MAX_SLOTS = 3\nconst AUTOSAVE_SLOT = -1\nconst SAVE_VERSION = \"1.0.0\"\n# endregion\n\n# region 导出变量\n@export var autosave_enabled: bool = true\n@export var autosave_interval: float = 300.0  # 5分钟\n@export var encrypt_saves: bool = false\n@export var encryption_password: String = \"your_secret_key\"\n# endregion\n\n# region 状态\nvar current_slot: int = -1\nvar game_data: Dictionary = {}\nvar _autosave_timer: Timer\nvar _is_saving: bool = false\nvar _is_loading: bool = false\n# endregion\n\n# region 生命周期\nfunc _ready() -> void:\n    _ensure_save_directory()\n    _setup_autosave_timer()\n\nfunc _ensure_save_directory() -> void:\n    var dir = DirAccess.open(\"user:\u002F\u002F\")\n    if not dir.dir_exists(\"saves\"):\n        dir.make_dir(\"saves\")\n    \n    for i in range(MAX_SLOTS):\n        var slot_dir = \"saves\u002Fslot_%d\" % (i + 1)\n        if not dir.dir_exists(slot_dir):\n            dir.make_dir(slot_dir)\n    \n    if not dir.dir_exists(\"saves\u002Fautosave\"):\n        dir.make_dir(\"saves\u002Fautosave\")\n\nfunc _setup_autosave_timer() -> void:\n    _autosave_timer = Timer.new()\n    _autosave_timer.wait_time = autosave_interval\n    _autosave_timer.timeout.connect(_on_autosave_timer)\n    add_child(_autosave_timer)\n    \n    if autosave_enabled:\n        _autosave_timer.start()\n# endregion\n\n# region 保存\nfunc save_game(slot: int) -> bool:\n    if _is_saving:\n        return false\n    \n    _is_saving = true\n    save_started.emit()\n    \n    var slot_path = _get_slot_path(slot)\n    \n    # 收集所有需要保存的数据\n    var save_data = _collect_save_data()\n    \n    # 添加元数据\n    save_data[\"_meta\"] = {\n        \"version\": SAVE_VERSION,\n        \"timestamp\": Time.get_unix_time_from_system(),\n        \"datetime\": Time.get_datetime_string_from_system(),\n        \"playtime\": game_data.get(\"playtime\", 0)\n    }\n    \n    # 保存主数据\n    var success = _write_save_file(slot_path + \"\u002Fsave.json\", save_data)\n    \n    if success:\n        # 保存元数据\n        _write_save_file(slot_path + \"\u002Fmeta.json\", save_data[\"_meta\"])\n        \n        # 保存截图\n        _save_screenshot(slot_path + \"\u002Fscreenshot.png\")\n        \n        current_slot = slot\n        save_completed.emit(slot)\n    else:\n        save_failed.emit(slot, \"Failed to write save file\")\n    \n    _is_saving = false\n    return success\n\nfunc _collect_save_data() -> Dictionary:\n    var data = {}\n    \n    # 收集基础游戏数据\n    data[\"game_data\"] = game_data.duplicate(true)\n    \n    # 通知所有可保存节点\n    get_tree().call_group(\"saveable\", \"on_save\", data)\n    \n    return data\n\nfunc _write_save_file(path: String, data: Dictionary) -> bool:\n    var json_string = JSON.stringify(data, \"\\t\")\n    \n    if encrypt_saves:\n        json_string = _encrypt(json_string)\n    \n    var file = FileAccess.open(path, FileAccess.WRITE)\n    if file:\n        file.store_string(json_string)\n        file.close()\n        return true\n    \n    return false\n\nfunc _save_screenshot(path: String) -> void:\n    # 获取视口截图\n    var image = get_viewport().get_texture().get_image()\n    image.resize(320, 180)  # 缩略图尺寸\n    image.save_png(path)\n# endregion\n\n# region 加载\nfunc load_game(slot: int) -> bool:\n    if _is_loading:\n        return false\n    \n    _is_loading = true\n    load_started.emit()\n    \n    var slot_path = _get_slot_path(slot)\n    var save_data = _read_save_file(slot_path + \"\u002Fsave.json\")\n    \n    if save_data.is_empty():\n        load_failed.emit(slot, \"Save file not found or corrupted\")\n        _is_loading = false\n        return false\n    \n    # 版本检查\n    var save_version = save_data.get(\"_meta\", {}).get(\"version\", \"0.0.0\")\n    if not _is_version_compatible(save_version):\n        load_failed.emit(slot, \"Incompatible save version: \" + save_version)\n        _is_loading = false\n        return false\n    \n    # 恢复游戏数据\n    game_data = save_data.get(\"game_data\", {})\n    \n    # 通知所有可保存节点加载数据\n    get_tree().call_group(\"saveable\", \"on_load\", save_data)\n    \n    current_slot = slot\n    load_completed.emit(slot)\n    _is_loading = false\n    \n    return true\n\nfunc _read_save_file(path: String) -> Dictionary:\n    if not FileAccess.file_exists(path):\n        return {}\n    \n    var file = FileAccess.open(path, FileAccess.READ)\n    if not file:\n        return {}\n    \n    var content = file.get_as_text()\n    file.close()\n    \n    if encrypt_saves:\n        content = _decrypt(content)\n    \n    var json = JSON.new()\n    var error = json.parse(content)\n    if error != OK:\n        push_error(\"JSON parse error: \" + json.get_error_message())\n        return {}\n    \n    return json.data\n\nfunc _is_version_compatible(save_version: String) -> bool:\n    # 简单的版本兼容性检查\n    # 实际项目中可能需要更复杂的迁移逻辑\n    var current_parts = SAVE_VERSION.split(\".\")\n    var save_parts = save_version.split(\".\")\n    \n    # 主版本号必须相同\n    return current_parts[0] == save_parts[0]\n# endregion\n\n# region 存档槽管理\nfunc get_slot_info(slot: int) -> Dictionary:\n    var slot_path = _get_slot_path(slot)\n    var meta_path = slot_path + \"\u002Fmeta.json\"\n    \n    if not FileAccess.file_exists(meta_path):\n        return {\"empty\": true}\n    \n    var meta = _read_save_file(meta_path)\n    meta[\"empty\"] = false\n    meta[\"screenshot_path\"] = slot_path + \"\u002Fscreenshot.png\"\n    \n    return meta\n\nfunc get_all_slots_info() -> Array:\n    var slots = []\n    for i in range(MAX_SLOTS):\n        slots.append(get_slot_info(i + 1))\n    return slots\n\nfunc delete_save(slot: int) -> bool:\n    var slot_path = _get_slot_path(slot)\n    var dir = DirAccess.open(slot_path)\n    \n    if not dir:\n        return false\n    \n    # 删除槽内所有文件\n    dir.list_dir_begin()\n    var file_name = dir.get_next()\n    while file_name != \"\":\n        dir.remove(file_name)\n        file_name = dir.get_next()\n    dir.list_dir_end()\n    \n    return true\n\nfunc has_save_data(slot: int = -1) -> bool:\n    if slot == -1:\n        # 检查是否有任何存档\n        for i in range(MAX_SLOTS):\n            if not get_slot_info(i + 1).get(\"empty\", true):\n                return true\n        return false\n    \n    return not get_slot_info(slot).get(\"empty\", true)\n\nfunc _get_slot_path(slot: int) -> String:\n    if slot == AUTOSAVE_SLOT:\n        return SAVE_DIR + \"autosave\"\n    return SAVE_DIR + \"slot_%d\" % slot\n# endregion\n\n# region 自动保存\nfunc _on_autosave_timer() -> void:\n    if autosave_enabled and current_slot > 0:\n        autosave_triggered.emit()\n        save_game(AUTOSAVE_SLOT)\n\nfunc trigger_autosave() -> void:\n    if autosave_enabled:\n        save_game(AUTOSAVE_SLOT)\n\nfunc set_autosave_enabled(enabled: bool) -> void:\n    autosave_enabled = enabled\n    if enabled:\n        _autosave_timer.start()\n    else:\n        _autosave_timer.stop()\n# endregion\n\n# region 加密（简单实现）\nfunc _encrypt(data: String) -> String:\n    var bytes = data.to_utf8_buffer()\n    var key_bytes = encryption_password.to_utf8_buffer()\n    \n    for i in range(bytes.size()):\n        bytes[i] = bytes[i] ^ key_bytes[i % key_bytes.size()]\n    \n    return Marshalls.raw_to_base64(bytes)\n\nfunc _decrypt(data: String) -> String:\n    var bytes = Marshalls.base64_to_raw(data)\n    var key_bytes = encryption_password.to_utf8_buffer()\n    \n    for i in range(bytes.size()):\n        bytes[i] = bytes[i] ^ key_bytes[i % key_bytes.size()]\n    \n    return bytes.get_string_from_utf8()\n# endregion\n\n# region 快捷方法\nfunc set_value(key: String, value: Variant) -> void:\n    game_data[key] = value\n\nfunc get_value(key: String, default: Variant = null) -> Variant:\n    return game_data.get(key, default)\n\nfunc has_value(key: String) -> bool:\n    return game_data.has(key)\n\nfunc delete_value(key: String) -> void:\n    game_data.erase(key)\n# endregion\n```\n\n---\n\n## 可保存组件\n\n### saveable_component.gd\n\n```gdscript\n## 可保存组件\n##\n## 附加到需要保存\u002F加载数据的节点上\nclass_name SaveableComponent\nextends Node\n\n@export var save_id: String = \"\"  # 唯一标识符\n\nfunc _ready() -> void:\n    if save_id.is_empty():\n        save_id = str(get_path())\n    \n    add_to_group(\"saveable\")\n\n## 保存数据（由 SaveManager 调用）\nfunc on_save(save_data: Dictionary) -> void:\n    var data = _collect_data()\n    if not data.is_empty():\n        if not save_data.has(\"components\"):\n            save_data[\"components\"] = {}\n        save_data[\"components\"][save_id] = data\n\n## 加载数据（由 SaveManager 调用）\nfunc on_load(save_data: Dictionary) -> void:\n    var components = save_data.get(\"components\", {})\n    if components.has(save_id):\n        _apply_data(components[save_id])\n\n## 子类重写：收集需要保存的数据\nfunc _collect_data() -> Dictionary:\n    return {}\n\n## 子类重写：应用加载的数据\nfunc _apply_data(_data: Dictionary) -> void:\n    pass\n```\n\n### 示例：玩家可保存组件\n\n```gdscript\n## 玩家存档组件\nclass_name PlayerSaveComponent\nextends SaveableComponent\n\n@export var player: CharacterBody2D\n\nfunc _collect_data() -> Dictionary:\n    return {\n        \"position\": {\n            \"x\": player.global_position.x,\n            \"y\": player.global_position.y\n        },\n        \"health\": player.current_health,\n        \"max_health\": player.max_health,\n        \"level\": player.level,\n        \"experience\": player.experience\n    }\n\nfunc _apply_data(data: Dictionary) -> void:\n    if data.has(\"position\"):\n        player.global_position = Vector2(\n            data.position.x,\n            data.position.y\n        )\n    \n    if data.has(\"max_health\"):\n        player.max_health = data.max_health\n    \n    if data.has(\"health\"):\n        player.current_health = data.health\n    \n    if data.has(\"level\"):\n        player.level = data.level\n    \n    if data.has(\"experience\"):\n        player.experience = data.experience\n```\n\n### 示例：背包可保存组件\n\n```gdscript\n## 背包存档组件\nclass_name InventorySaveComponent\nextends SaveableComponent\n\nfunc _collect_data() -> Dictionary:\n    return {\n        \"items\": InventorySystem.get_all_items(),\n        \"capacity\": InventorySystem.get_capacity()\n    }\n\nfunc _apply_data(data: Dictionary) -> void:\n    InventorySystem.load_data(data)\n```\n\n---\n\n## 设置管理器\n\n### settings_manager.gd (Autoload)\n\n```gdscript\n## 设置管理器\n##\n## 管理游戏设置（与存档分离）\nclass_name SettingsManager\nextends Node\n\nconst SETTINGS_PATH = \"user:\u002F\u002Fsaves\u002Fsettings.cfg\"\n\nvar _settings: Dictionary = {\n    # 音频\n    \"master_volume\": 1.0,\n    \"music_volume\": 1.0,\n    \"sfx_volume\": 1.0,\n    \n    # 视频\n    \"fullscreen\": false,\n    \"vsync\": true,\n    \"resolution_index\": 0,\n    \n    # 控制\n    \"sensitivity\": 1.0,\n    \"invert_y\": false,\n    \n    # 游戏\n    \"language\": \"auto\",\n    \"subtitles\": true,\n    \"screen_shake\": true\n}\n\nvar _config: ConfigFile\n\nfunc _ready() -> void:\n    _config = ConfigFile.new()\n    load_settings()\n\nfunc load_settings() -> void:\n    if _config.load(SETTINGS_PATH) == OK:\n        for key in _settings.keys():\n            if _config.has_section_key(\"settings\", key):\n                _settings[key] = _config.get_value(\"settings\", key)\n    \n    apply_settings(_settings)\n\nfunc save_settings() -> void:\n    for key in _settings.keys():\n        _config.set_value(\"settings\", key, _settings[key])\n    \n    _config.save(SETTINGS_PATH)\n\nfunc apply_settings(settings: Dictionary) -> void:\n    _settings.merge(settings, true)\n    \n    # 应用音频设置\n    AudioServer.set_bus_volume_db(\n        AudioServer.get_bus_index(\"Master\"),\n        linear_to_db(_settings.master_volume)\n    )\n    AudioServer.set_bus_volume_db(\n        AudioServer.get_bus_index(\"Music\"),\n        linear_to_db(_settings.music_volume)\n    )\n    AudioServer.set_bus_volume_db(\n        AudioServer.get_bus_index(\"SFX\"),\n        linear_to_db(_settings.sfx_volume)\n    )\n    \n    # 应用视频设置\n    if _settings.fullscreen:\n        DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)\n    else:\n        DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)\n    \n    DisplayServer.window_set_vsync_mode(\n        DisplayServer.VSYNC_ENABLED if _settings.vsync else DisplayServer.VSYNC_DISABLED\n    )\n\nfunc get_setting(key: String) -> Variant:\n    return _settings.get(key)\n\nfunc set_setting(key: String, value: Variant) -> void:\n    _settings[key] = value\n\nfunc get_all_settings() -> Dictionary:\n    return _settings.duplicate()\n\nfunc reset_to_defaults() -> void:\n    _settings = {\n        \"master_volume\": 1.0,\n        \"music_volume\": 1.0,\n        \"sfx_volume\": 1.0,\n        \"fullscreen\": false,\n        \"vsync\": true,\n        \"resolution_index\": 0,\n        \"sensitivity\": 1.0,\n        \"invert_y\": false,\n        \"language\": \"auto\",\n        \"subtitles\": true,\n        \"screen_shake\": true\n    }\n    apply_settings(_settings)\n    save_settings()\n```\n\n---\n\n## 存档 UI 组件\n\n### save_slot_ui.gd\n\n```gdscript\n## 存档槽 UI\nclass_name SaveSlotUI\nextends PanelContainer\n\nsignal slot_selected(slot: int, action: String)\n\n@export var slot_index: int = 1\n\n@onready var screenshot: TextureRect = $HBox\u002FScreenshot\n@onready var info_container: VBoxContainer = $HBox\u002FInfo\n@onready var datetime_label: Label = $HBox\u002FInfo\u002FDatetime\n@onready var playtime_label: Label = $HBox\u002FInfo\u002FPlaytime\n@onready var empty_label: Label = $HBox\u002FInfo\u002FEmptyLabel\n@onready var save_button: Button = $HBox\u002FButtons\u002FSaveButton\n@onready var load_button: Button = $HBox\u002FButtons\u002FLoadButton\n@onready var delete_button: Button = $HBox\u002FButtons\u002FDeleteButton\n\nvar _slot_info: Dictionary = {}\n\nfunc _ready() -> void:\n    save_button.pressed.connect(func(): slot_selected.emit(slot_index, \"save\"))\n    load_button.pressed.connect(func(): slot_selected.emit(slot_index, \"load\"))\n    delete_button.pressed.connect(func(): slot_selected.emit(slot_index, \"delete\"))\n    \n    refresh()\n\nfunc refresh() -> void:\n    _slot_info = SaveManager.get_slot_info(slot_index)\n    \n    if _slot_info.get(\"empty\", true):\n        _show_empty_state()\n    else:\n        _show_filled_state()\n\nfunc _show_empty_state() -> void:\n    screenshot.texture = null\n    datetime_label.hide()\n    playtime_label.hide()\n    empty_label.show()\n    empty_label.text = \"空存档槽\"\n    \n    load_button.disabled = true\n    delete_button.disabled = true\n\nfunc _show_filled_state() -> void:\n    empty_label.hide()\n    datetime_label.show()\n    playtime_label.show()\n    \n    datetime_label.text = _slot_info.get(\"datetime\", \"Unknown\")\n    \n    var playtime = _slot_info.get(\"playtime\", 0)\n    playtime_label.text = \"游戏时长: \" + _format_playtime(playtime)\n    \n    # 加载截图\n    var screenshot_path = _slot_info.get(\"screenshot_path\", \"\")\n    if FileAccess.file_exists(screenshot_path):\n        var image = Image.load_from_file(screenshot_path)\n        screenshot.texture = ImageTexture.create_from_image(image)\n    \n    load_button.disabled = false\n    delete_button.disabled = false\n\nfunc _format_playtime(seconds: int) -> String:\n    var hours = seconds \u002F 3600\n    var minutes = (seconds % 3600) \u002F 60\n    return \"%02d:%02d\" % [hours, minutes]\n```\n\n---\n\n## 使用示例\n\n### 基本使用\n\n```gdscript\n# 保存游戏\nfunc _on_save_button_pressed():\n    SaveManager.save_game(1)  # 保存到槽 1\n\n# 加载游戏\nfunc _on_load_button_pressed():\n    SaveManager.load_game(1)  # 从槽 1 加载\n\n# 存储\u002F读取数据\nSaveManager.set_value(\"player_name\", \"Hero\")\nvar name = SaveManager.get_value(\"player_name\", \"Unknown\")\n\n# 检查存档\nif SaveManager.has_save_data():\n    show_continue_button()\n```\n\n### 为节点添加保存功能\n\n```gdscript\n# 方式 1：继承 SaveableComponent\nclass_name ChestSaveComponent\nextends SaveableComponent\n\n@export var chest: Node\n\nfunc _collect_data() -> Dictionary:\n    return {\"opened\": chest.is_opened}\n\nfunc _apply_data(data: Dictionary) -> void:\n    chest.is_opened = data.get(\"opened\", false)\n    if chest.is_opened:\n        chest.show_opened_state()\n```\n\n```gdscript\n# 方式 2：直接使用 SaveManager\nfunc _ready():\n    add_to_group(\"saveable\")\n\nfunc on_save(save_data: Dictionary):\n    save_data[\"my_data\"] = {\"value\": 42}\n\nfunc on_load(save_data: Dictionary):\n    var my_data = save_data.get(\"my_data\", {})\n    var value = my_data.get(\"value\", 0)\n```\n","# 存档系统技能\n\n管理游戏进度的保存和加载。\n\n## 存档系统架构\n\n```\nuser:\u002F\u002F\n└── saves\u002F\n    ├── settings.cfg        # 全局设置\n    ├── slot_1\u002F\n    │   ├── save.json       # 主存档数据\n    │   ├── screenshot.png  # 存档截图\n    │   └── meta.json       # 元数据（时间、游戏时长等）\n    ├── slot_2\u002F\n    │   └── ...\n    ├── slot_3\u002F\n    │   └── ...\n    └── autosave\u002F\n        └── ...\n```\n\n---\n\n## 存档管理器\n\n### save_manager.gd (Autoload)\n\n```gdscript\n## 存档管理器\n##\n## 管理游戏数据的保存和加载\n## @author AI Generated\n## @version 1.0.0\nclass_name SaveManager\nextends Node\n\n# region 信号\nsignal save_started\nsignal save_completed(slot: int)\nsignal save_failed(slot: int, error: String)\nsignal load_started\nsignal load_completed(slot: int)\nsignal load_failed(slot: int, error: String)\nsignal autosave_triggered\n# endregion\n\n# region 常量\nconst SAVE_DIR = \"user:\u002F\u002Fsaves\u002F\"\nconst SETTINGS_FILE = \"user:\u002F\u002Fsaves\u002Fsettings.cfg\"\nconst MAX_SLOTS = 3\nconst AUTOSAVE_SLOT = -1\nconst SAVE_VERSION = \"1.0.0\"\n# endregion\n\n# region 导出变量\n@export var autosave_enabled: bool = true\n@export var autosave_interval: float = 300.0  # 5分钟\n@export var encrypt_saves: bool = false\n@export var encryption_password: String = \"your_secret_key\"\n# endregion\n\n# region 状态\nvar current_slot: int = -1\nvar game_data: Dictionary = {}\nvar _autosave_timer: Timer\nvar _is_saving: bool = false\nvar _is_loading: bool = false\n# endregion\n\n# region 生命周期\nfunc _ready() -> void:\n    _ensure_save_directory()\n    _setup_autosave_timer()\n\nfunc _ensure_save_directory() -> void:\n    var dir = DirAccess.open(\"user:\u002F\u002F\")\n    if not dir.dir_exists(\"saves\"):\n        dir.make_dir(\"saves\")\n    \n    for i in range(MAX_SLOTS):\n        var slot_dir = \"saves\u002Fslot_%d\" % (i + 1)\n        if not dir.dir_exists(slot_dir):\n            dir.make_dir(slot_dir)\n    \n    if not dir.dir_exists(\"saves\u002Fautosave\"):\n        dir.make_dir(\"saves\u002Fautosave\")\n\nfunc _setup_autosave_timer() -> void:\n    _autosave_timer = Timer.new()\n    _autosave_timer.wait_time = autosave_interval\n    _autosave_timer.timeout.connect(_on_autosave_timer)\n    add_child(_autosave_timer)\n    \n    if autosave_enabled:\n        _autosave_timer.start()\n# endregion\n\n# region 保存\nfunc save_game(slot: int) -> bool:\n    if _is_saving:\n        return false\n    \n    _is_saving = true\n    save_started.emit()\n    \n    var slot_path = _get_slot_path(slot)\n    \n    # 收集所有需要保存的数据\n    var save_data = _collect_save_data()\n    \n    # 添加元数据\n    save_data[\"_meta\"] = {\n        \"version\": SAVE_VERSION,\n        \"timestamp\": Time.get_unix_time_from_system(),\n        \"datetime\": Time.get_datetime_string_from_system(),\n        \"playtime\": game_data.get(\"playtime\", 0)\n    }\n    \n    # 保存主数据\n    var success = _write_save_file(slot_path + \"\u002Fsave.json\", save_data)\n    \n    if success:\n        # 保存元数据\n        _write_save_file(slot_path + \"\u002Fmeta.json\", save_data[\"_meta\"])\n        \n        # 保存截图\n        _save_screenshot(slot_path + \"\u002Fscreenshot.png\")\n        \n        current_slot = slot\n        save_completed.emit(slot)\n    else:\n        save_failed.emit(slot, \"Failed to write save file\")\n    \n    _is_saving = false\n    return success\n\nfunc _collect_save_data() -> Dictionary:\n    var data = {}\n    \n    # 收集基础游戏数据\n    data[\"game_data\"] = game_data.duplicate(true)\n    \n    # 通知所有可保存节点\n    get_tree().call_group(\"saveable\", \"on_save\", data)\n    \n    return data\n\nfunc _write_save_file(path: String, data: Dictionary) -> bool:\n    var json_string = JSON.stringify(data, \"\\t\")\n    \n    if encrypt_saves:\n        json_string = _encrypt(json_string)\n    \n    var file = FileAccess.open(path, FileAccess.WRITE)\n    if file:\n        file.store_string(json_string)\n        file.close()\n        return true\n    \n    return false\n\nfunc _save_screenshot(path: String) -> void:\n    # 获取视口截图\n    var image = get_viewport().get_texture().get_image()\n    image.resize(320, 180)  # 缩略图尺寸\n    image.save_png(path)\n# endregion\n\n# region 加载\nfunc load_game(slot: int) -> bool:\n    if _is_loading:\n        return false\n    \n    _is_loading = true\n    load_started.emit()\n    \n    var slot_path = _get_slot_path(slot)\n    var save_data = _read_save_file(slot_path + \"\u002Fsave.json\")\n    \n    if save_data.is_empty():\n        load_failed.emit(slot, \"Save file not found or corrupted\")\n        _is_loading = false\n        return false\n    \n    # 版本检查\n    var save_version = save_data.get(\"_meta\", {}).get(\"version\", \"0.0.0\")\n    if not _is_version_compatible(save_version):\n        load_failed.emit(slot, \"Incompatible save version: \" + save_version)\n        _is_loading = false\n        return false\n    \n    # 恢复游戏数据\n    game_data = save_data.get(\"game_data\", {})\n    \n    # 通知所有可保存节点加载数据\n    get_tree().call_group(\"saveable\", \"on_load\", save_data)\n    \n    current_slot = slot\n    load_completed.emit(slot)\n    _is_loading = false\n    \n    return true\n\nfunc _read_save_file(path: String) -> Dictionary:\n    if not FileAccess.file_exists(path):\n        return {}\n    \n    var file = FileAccess.open(path, FileAccess.READ)\n    if not file:\n        return {}\n    \n    var content = file.get_as_text()\n    file.close()\n    \n    if encrypt_saves:\n        content = _decrypt(content)\n    \n    var json = JSON.new()\n    var error = json.parse(content)\n    if error != OK:\n        push_error(\"JSON parse error: \" + json.get_error_message())\n        return {}\n    \n    return json.data\n\nfunc _is_version_compatible(save_version: String) -> bool:\n    # 简单的版本兼容性检查\n    # 实际项目中可能需要更复杂的迁移逻辑\n    var current_parts = SAVE_VERSION.split(\".\")\n    var save_parts = save_version.split(\".\")\n    \n    # 主版本号必须相同\n    return current_parts[0] == save_parts[0]\n# endregion\n\n# region 存档槽管理\nfunc get_slot_info(slot: int) -> Dictionary:\n    var slot_path = _get_slot_path(slot)\n    var meta_path = slot_path + \"\u002Fmeta.json\"\n    \n    if not FileAccess.file_exists(meta_path):\n        return {\"empty\": true}\n    \n    var meta = _read_save_file(meta_path)\n    meta[\"empty\"] = false\n    meta[\"screenshot_path\"] = slot_path + \"\u002Fscreenshot.png\"\n    \n    return meta\n\nfunc get_all_slots_info() -> Array:\n    var slots = []\n    for i in range(MAX_SLOTS):\n        slots.append(get_slot_info(i + 1))\n    return slots\n\nfunc delete_save(slot: int) -> bool:\n    var slot_path = _get_slot_path(slot)\n    var dir = DirAccess.open(slot_path)\n    \n    if not dir:\n        return false\n    \n    # 删除槽内所有文件\n    dir.list_dir_begin()\n    var file_name = dir.get_next()\n    while file_name != \"\":\n        dir.remove(file_name)\n        file_name = dir.get_next()\n    dir.list_dir_end()\n    \n    return true\n\nfunc has_save_data(slot: int = -1) -> bool:\n    if slot == -1:\n        # 检查是否有任何存档\n        for i in range(MAX_SLOTS):\n            if not get_slot_info(i + 1).get(\"empty\", true):\n                return true\n        return false\n    \n    return not get_slot_info(slot).get(\"empty\", true)\n\nfunc _get_slot_path(slot: int) -> String:\n    if slot == AUTOSAVE_SLOT:\n        return SAVE_DIR + \"autosave\"\n    return SAVE_DIR + \"slot_%d\" % slot\n# endregion\n\n# region 自动保存\nfunc _on_autosave_timer() -> void:\n    if autosave_enabled and current_slot > 0:\n        autosave_triggered.emit()\n        save_game(AUTOSAVE_SLOT)\n\nfunc trigger_autosave() -> void:\n    if autosave_enabled:\n        save_game(AUTOSAVE_SLOT)\n\nfunc set_autosave_enabled(enabled: bool) -> void:\n    autosave_enabled = enabled\n    if enabled:\n        _autosave_timer.start()\n    else:\n        _autosave_timer.stop()\n# endregion\n\n# region 加密（简单实现）\nfunc _encrypt(data: String) -> String:\n    var bytes = data.to_utf8_buffer()\n    var key_bytes = encryption_password.to_utf8_buffer()\n    \n    for i in range(bytes.size()):\n        bytes[i] = bytes[i] ^ key_bytes[i % key_bytes.size()]\n    \n    return Marshalls.raw_to_base64(bytes)\n\nfunc _decrypt(data: String) -> String:\n    var bytes = Marshalls.base64_to_raw(data)\n    var key_bytes = encryption_password.to_utf8_buffer()\n    \n    for i in range(bytes.size()):\n        bytes[i] = bytes[i] ^ key_bytes[i % key_bytes.size()]\n    \n    return bytes.get_string_from_utf8()\n# endregion\n\n# region 快捷方法\nfunc set_value(key: String, value: Variant) -> void:\n    game_data[key] = value\n\nfunc get_value(key: String, default: Variant = null) -> Variant:\n    return game_data.get(key, default)\n\nfunc has_value(key: String) -> bool:\n    return game_data.has(key)\n\nfunc delete_value(key: String) -> void:\n    game_data.erase(key)\n# endregion\n```\n\n---\n\n## 可保存组件\n\n### saveable_component.gd\n\n```gdscript\n## 可保存组件\n##\n## 附加到需要保存\u002F加载数据的节点上\nclass_name SaveableComponent\nextends Node\n\n@export var save_id: String = \"\"  # 唯一标识符\n\nfunc _ready() -> void:\n    if save_id.is_empty():\n        save_id = str(get_path())\n    \n    add_to_group(\"saveable\")\n\n## 保存数据（由 SaveManager 调用）\nfunc on_save(save_data: Dictionary) -> void:\n    var data = _collect_data()\n    if not data.is_empty():\n        if not save_data.has(\"components\"):\n            save_data[\"components\"] = {}\n        save_data[\"components\"][save_id] = data\n\n## 加载数据（由 SaveManager 调用）\nfunc on_load(save_data: Dictionary) -> void:\n    var components = save_data.get(\"components\", {})\n    if components.has(save_id):\n        _apply_data(components[save_id])\n\n## 子类重写：收集需要保存的数据\nfunc _collect_data() -> Dictionary:\n    return {}\n\n## 子类重写：应用加载的数据\nfunc _apply_data(_data: Dictionary) -> void:\n    pass\n```\n\n### 示例：玩家可保存组件\n\n```gdscript\n## 玩家存档组件\nclass_name PlayerSaveComponent\nextends SaveableComponent\n\n@export var player: CharacterBody2D\n\nfunc _collect_data() -> Dictionary:\n    return {\n        \"position\": {\n            \"x\": player.global_position.x,\n            \"y\": player.global_position.y\n        },\n        \"health\": player.current_health,\n        \"max_health\": player.max_health,\n        \"level\": player.level,\n        \"experience\": player.experience\n    }\n\nfunc _apply_data(data: Dictionary) -> void:\n    if data.has(\"position\"):\n        player.global_position = Vector2(\n            data.position.x,\n            data.position.y\n        )\n    \n    if data.has(\"max_health\"):\n        player.max_health = data.max_health\n    \n    if data.has(\"health\"):\n        player.current_health = data.health\n    \n    if data.has(\"level\"):\n        player.level = data.level\n    \n    if data.has(\"experience\"):\n        player.experience = data.experience\n```\n\n### 示例：背包可保存组件\n\n```gdscript\n## 背包存档组件\nclass_name InventorySaveComponent\nextends SaveableComponent\n\nfunc _collect_data() -> Dictionary:\n    return {\n        \"items\": InventorySystem.get_all_items(),\n        \"capacity\": InventorySystem.get_capacity()\n    }\n\nfunc _apply_data(data: Dictionary) -> void:\n    InventorySystem.load_data(data)\n```\n\n---\n\n## 设置管理器\n\n### settings_manager.gd (Autoload)\n\n```gdscript\n## 设置管理器\n##\n## 管理游戏设置（与存档分离）\nclass_name SettingsManager\nextends Node\n\nconst SETTINGS_PATH = \"user:\u002F\u002Fsaves\u002Fsettings.cfg\"\n\nvar _settings: Dictionary = {\n    # 音频\n    \"master_volume\": 1.0,\n    \"music_volume\": 1.0,\n    \"sfx_volume\": 1.0,\n    \n    # 视频\n    \"fullscreen\": false,\n    \"vsync\": true,\n    \"resolution_index\": 0,\n    \n    # 控制\n    \"sensitivity\": 1.0,\n    \"invert_y\": false,\n    \n    # 游戏\n    \"language\": \"auto\",\n    \"subtitles\": true,\n    \"screen_shake\": true\n}\n\nvar _config: ConfigFile\n\nfunc _ready() -> void:\n    _config = ConfigFile.new()\n    load_settings()\n\nfunc load_settings() -> void:\n    if _config.load(SETTINGS_PATH) == OK:\n        for key in _settings.keys():\n            if _config.has_section_key(\"settings\", key):\n                _settings[key] = _config.get_value(\"settings\", key)\n    \n    apply_settings(_settings)\n\nfunc save_settings() -> void:\n    for key in _settings.keys():\n        _config.set_value(\"settings\", key, _settings[key])\n    \n    _config.save(SETTINGS_PATH)\n\nfunc apply_settings(settings: Dictionary) -> void:\n    _settings.merge(settings, true)\n    \n    # 应用音频设置\n    AudioServer.set_bus_volume_db(\n        AudioServer.get_bus_index(\"Master\"),\n        linear_to_db(_settings.master_volume)\n    )\n    AudioServer.set_bus_volume_db(\n        AudioServer.get_bus_index(\"Music\"),\n        linear_to_db(_settings.music_volume)\n    )\n    AudioServer.set_bus_volume_db(\n        AudioServer.get_bus_index(\"SFX\"),\n        linear_to_db(_settings.sfx_volume)\n    )\n    \n    # 应用视频设置\n    if _settings.fullscreen:\n        DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)\n    else:\n        DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)\n    \n    DisplayServer.window_set_vsync_mode(\n        DisplayServer.VSYNC_ENABLED if _settings.vsync else DisplayServer.VSYNC_DISABLED\n    )\n\nfunc get_setting(key: String) -> Variant:\n    return _settings.get(key)\n\nfunc set_setting(key: String, value: Variant) -> void:\n    _settings[key] = value\n\nfunc get_all_settings() -> Dictionary:\n    return _settings.duplicate()\n\nfunc reset_to_defaults() -> void:\n    _settings = {\n        \"master_volume\": 1.0,\n        \"music_volume\": 1.0,\n        \"sfx_volume\": 1.0,\n        \"fullscreen\": false,\n        \"vsync\": true,\n        \"resolution_index\": 0,\n        \"sensitivity\": 1.0,\n        \"invert_y\": false,\n        \"language\": \"auto\",\n        \"subtitles\": true,\n        \"screen_shake\": true\n    }\n    apply_settings(_settings)\n    save_settings()\n```\n\n---\n\n## 存档 UI 组件\n\n### save_slot_ui.gd\n\n```gdscript\n## 存档槽 UI\nclass_name SaveSlotUI\nextends PanelContainer\n\nsignal slot_selected(slot: int, action: String)\n\n@export var slot_index: int = 1\n\n@onready var screenshot: TextureRect = $HBox\u002FScreenshot\n@onready var info_container: VBoxContainer = $HBox\u002FInfo\n@onready var datetime_label: Label = $HBox\u002FInfo\u002FDatetime\n@onready var playtime_label: Label = $HBox\u002FInfo\u002FPlaytime\n@onready var empty_label: Label = $HBox\u002FInfo\u002FEmptyLabel\n@onready var save_button: Button = $HBox\u002FButtons\u002FSaveButton\n@onready var load_button: Button = $HBox\u002FButtons\u002FLoadButton\n@onready var delete_button: Button = $HBox\u002FButtons\u002FDeleteButton\n\nvar _slot_info: Dictionary = {}\n\nfunc _ready() -> void:\n    save_button.pressed.connect(func(): slot_selected.emit(slot_index, \"save\"))\n    load_button.pressed.connect(func(): slot_selected.emit(slot_index, \"load\"))\n    delete_button.pressed.connect(func(): slot_selected.emit(slot_index, \"delete\"))\n    \n    refresh()\n\nfunc refresh() -> void:\n    _slot_info = SaveManager.get_slot_info(slot_index)\n    \n    if _slot_info.get(\"empty\", true):\n        _show_empty_state()\n    else:\n        _show_filled_state()\n\nfunc _show_empty_state() -> void:\n    screenshot.texture = null\n    datetime_label.hide()\n    playtime_label.hide()\n    empty_label.show()\n    empty_label.text = \"空存档槽\"\n    \n    load_button.disabled = true\n    delete_button.disabled = true\n\nfunc _show_filled_state() -> void:\n    empty_label.hide()\n    datetime_label.show()\n    playtime_label.show()\n    \n    datetime_label.text = _slot_info.get(\"datetime\", \"Unknown\")\n    \n    var playtime = _slot_info.get(\"playtime\", 0)\n    playtime_label.text = \"游戏时长: \" + _format_playtime(playtime)\n    \n    # 加载截图\n    var screenshot_path = _slot_info.get(\"screenshot_path\", \"\")\n    if FileAccess.file_exists(screenshot_path):\n        var image = Image.load_from_file(screenshot_path)\n        screenshot.texture = ImageTexture.create_from_image(image)\n    \n    load_button.disabled = false\n    delete_button.disabled = false\n\nfunc _format_playtime(seconds: int) -> String:\n    var hours = seconds \u002F 3600\n    var minutes = (seconds % 3600) \u002F 60\n    return \"%02d:%02d\" % [hours, minutes]\n```\n\n---\n\n## 使用示例\n\n### 基本使用\n\n```gdscript\n# 保存游戏\nfunc _on_save_button_pressed():\n    SaveManager.save_game(1)  # 保存到槽 1\n\n# 加载游戏\nfunc _on_load_button_pressed():\n    SaveManager.load_game(1)  # 从槽 1 加载\n\n# 存储\u002F读取数据\nSaveManager.set_value(\"player_name\", \"Hero\")\nvar name = SaveManager.get_value(\"player_name\", \"Unknown\")\n\n# 检查存档\nif SaveManager.has_save_data():\n    show_continue_button()\n```\n\n### 为节点添加保存功能\n\n```gdscript\n# 方式 1：继承 SaveableComponent\nclass_name ChestSaveComponent\nextends SaveableComponent\n\n@export var chest: Node\n\nfunc _collect_data() -> Dictionary:\n    return {\"opened\": chest.is_opened}\n\nfunc _apply_data(data: Dictionary) -> void:\n    chest.is_opened = data.get(\"opened\", false)\n    if chest.is_opened:\n        chest.show_opened_state()\n```\n\n```gdscript\n# 方式 2：直接使用 SaveManager\nfunc _ready():\n    add_to_group(\"saveable\")\n\nfunc on_save(save_data: Dictionary):\n    save_data[\"my_data\"] = {\"value\": 42}\n\nfunc on_load(save_data: Dictionary):\n    var my_data = save_data.get(\"my_data\", {})\n    var value = my_data.get(\"value\", 0)\n```\n",{"name":5,"inputs":39,"outputs":44,"version":48,"triggers":49,"description":52,"dependencies":53},[40],{"enum":41,"name":42,"type":43,"required":35},[24,25,23],"save_type","string",[45],{"name":46,"type":22,"path_pattern":47},"save_manager","res:\u002F\u002Fscripts\u002Fautoload\u002Fsave_manager.gd","1.0.0",[50],{"pattern":51},"存档|保存|加载|Save|Load|进度","存档系统技能。管理游戏进度的保存和加载，支持多存档槽、自动保存、云存档等功能。\n",[54,55],"godot-core","file-manager","main","18d0e63d1313ca87098f614aa7c1e2dcf6de79c7","backend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Fgodot-mcp\u002Fskills\u002Fgodot-dev\u002Flevel-2-modules\u002Fsave-system",1,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system","https:\u002F\u002Fgithub.com\u002Fwelflau","2026-11-12 14:55:20",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add welflau\u002Fai-dev-system --skill save-system",{"tool":69,"command":70},"bunx","bunx skills add welflau\u002Fai-dev-system --skill save-system",{"tool":72,"command":73},"pnpm","pnpm dlx skills add welflau\u002Fai-dev-system --skill save-system","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Fgodot-mcp\u002Fskills\u002Fgodot-dev\u002Flevel-2-modules\u002Fsave-system\u002FSKILL.md",true,[],[78,105,132,155,176,200],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":82,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":104},"01M6HS9Z4B0YA8CJCS2Y2F04Y3","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.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Fwebapp-testing\u002FSKILL.md",[],[87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],"testing","webapp testing","webapp","frontend","screenshots","playwright","web","debugging","toolkit","browser","ui","logs","applications","behavior","local","with","for","2026-11-11 15:11:14",{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":82,"licenseFileUrl":109,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":104},"01M6HRAGMG7JF0HXYHMA5QHS8A","internal-comms","A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Finternal-comms\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Finternal-comms\u002FSKILL.md",[],[113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],"internal comms","comms","status","help","SET","write","use","reports","me","incident","leadership","project","resources","communications","internal communications","formats","sort","my","updates",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":82,"licenseFileUrl":136,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":34},"01M6HSTDP4M3JFXEBK91VFB4PA","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Fweb-artifacts-builder\u002FSKILL.md",[],[140,93,141,142,143,90,144,145,146,147,148,149,22,150,119,151,24,152,153,103,154],"web artifacts builder","artifacts","artifacts builder","builder","css","components","react","routing","state management","state","Tailwind","single-file","ui components","multi","single",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":82,"licenseFileUrl":159,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":34},"01M6HSDXH0JSP8R3QTNY9XZ8HN","frontend-design","Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML\u002FCSS layouts, or when styling\u002Fbeautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Ffrontend-design\u002FSKILL.md",[],[90,163,164,144,93,145,146,165,166,167,141,168,99,169,119,170,171,172,173,102,174,175],"design","frontend design","react components","create","code","examples","landing","ui design","pages","aesthetics","web ui","generic","when",{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":82,"licenseFileUrl":180,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":34},"01M6HSA77QYVP7A72HREGTDN2C","algorithmic-art","Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Falgorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Falgorithmic-art\u002FSKILL.md",[],[184,185,186,166,167,187,188,189,190,119,191,192,193,194,102,195,196,197,198,199,175],"algorithmic art","Art","algorithmic","flow","js","work","interactive","generative art","exploration","systems","users","Existing","request","generative","copyright","fields",{"skillNo":201,"name":202,"nameZh":6,"description":203,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":82,"licenseFileUrl":204,"sourceHtmlUrl":205,"categories":206,"keywords":207,"publishedAt":34},"01M6HS9HE0X390Y6RQKTY1YNGJ","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Ftheme-factory\u002FSKILL.md",[],[208,209,210,211,95,212,141,117,213,214,169,215,216,171,217,102,218,219,220,103,221,222],"theme factory","factory","theme","docs","generate","fly","slides","styling","artifact","themes","you","fonts","can","apply","new"]