[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C5BP43WWDCV7Q3PD41NSZ0":3,"skill-same:01M6C5BP43WWDCV7Q3PD41NSZ0":56},{"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":23,"publishedAt":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M6C5BP43WWDCV7Q3PD41NSZ0","stellaris-ui",null,"Design and implement robust Stellaris mod user interfaces.","Lyther\u002Fagent-surface","Lyther","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F29906124?v=4","01M6C587M9T34T0SAGJSRK043Y","Enderaoe","01M6C587R0TXH3MFR8SRFPV61G",65,"MIT","https:\u002F\u002Fgithub.com\u002FLyther\u002Fagent-surface\u002Fblob\u002Fmain\u002Fskills\u002Fstellaris-ui\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[24,25,26,27,28],"ui","stellaris ui","design","implement","user","2026-11-10 10:12:30",false,"---\nname: stellaris-ui\ndescription: \"Design and implement robust Stellaris mod user interfaces.\"\n---\n\n## Objective\n\nDesign and implement safe, robust Stellaris user interfaces. Stellaris UI is brittle: use event window hijacking for menus (safe) and scripted GUIs for logic (robust), and keep visual assets (`.gfx`) separate from layout logic (`.gui`).\n\n## Rules\n\n1. Never hardcode X\u002FY > 1080 without `orientation`.\n2. Every window name starts with `[NS]_`.\n3. A button that modifies game state must be an `effectButtonType`. Standard `buttonType` is hardcoded to engine functions; never use it for custom logic.\n\n## 1. Architecture\n\nChoose the integration method by risk versus control:\n\n| Strategy | Mechanism | Use case | Risk |\n| :--- | :--- | :--- | :--- |\n| A. Event hijack (green) | Trigger an event with `diplomatic_title`; map a custom `.gui` window to it. | Story choices, shops | Zero (native flow) |\n| B. Smart button (yellow) | Inject a `containerWindowType` with an `effectButtonType` into a vanilla view (e.g. `planet_view`). | Context actions | Low (self-managing) |\n| C. Dashboard (orange) | A floating `containerWindowType` toggled by a `scripted_gui`. | Managers, global tools | Medium (needs open\u002Fclose logic) |\n\n## 2. Assets (`.gfx`)\n\nRegister every sprite in `src\u002Finterface\u002F[NS]_icons.gfx`; buttons need 3 frames (rest, hover, click):\n\n```pdx\nspriteTypes = {\n    # Standard Button (3 Frames)\n    spriteType = {\n        name = \"GFX_[NS]_button_action\"\n        texturefile = \"gfx\u002Finterface\u002Fbuttons\u002Fbutton_142_34.dds\"\n        effectFile = \"gfx\u002FFX\u002Fbuttonstate.lua\"\n        noOfFrames = 3\n    }\n}\n\n```\n\n## 3. Layout (`.gui`)\n\nIn `src\u002Finterface\u002F[NS]_view.gui`, always anchor with `orientation` and `origo` (pivot): `center` \u002F `center` for modals, `upper_left` for lists and sidebars. Script interaction uses `effectButtonType` { `effect = \"my_scripted_effect\"` }.\n\n## 4. Logic Bridge (`scripted_guis`)\n\nDefine when the UI updates and what data it sees in `src\u002Fcommon\u002Fscripted_guis\u002F[NS]_guis.txt`:\n\n```pdx\n[NS]_main_gui_logic = {\n    scope = country\n    saved_scopes = { target_planet }\n    is_shown = { always = yes }\n    is_enabled = { minerals > 100 }\n}\n\n```\n\n## Output Template (`.gui`)\n\n```pdx\nguiTypes = {\n    containerWindowType = {\n        name = \"[NS]_main_window\"\n        orientation = center\n        origo = center\n        size = { width = 500 height = 400 }\n        moveable = yes\n\n        background = {\n            name = \"bg\"\n            quadTextureSprite = \"GFX_tile_outliner_bg\"\n        }\n\n        # Header\n        instantTextBoxType = {\n            name = \"header\"\n            font = \"malgun_goth_24\"\n            text = \"[NS]_window_title\" # TODO: LOC\n            position = { x = 0 y = 20 }\n            maxWidth = 500\n            format = center\n        }\n\n        # Logic Button\n        effectButtonType = {\n            name = \"[NS]_action_btn\"\n            quadTextureSprite = \"GFX_[NS]_button_action\"\n            position = { x = -71 y = -50 }\n            orientation = center_down\n            buttonText = \"[NS]_btn_text\"\n            buttonFont = \"cg_16b\"\n\n            # The Link to Logic\n            effect = \"[NS]_effect_do_something\"\n        }\n\n        # Close Button (Standard)\n        buttonType = {\n            name = \"close\"\n            quadTextureSprite = \"GFX_close_square\"\n            orientation = UPPER_RIGHT\n            position = { x = -45 y = 15 }\n            shortcut = \"ESCAPE\"\n            clicksound = \"back_click\"\n            actionShortcut = \"cancel\"\n        }\n    }\n}\n\n```\n","## Objective\n\nDesign and implement safe, robust Stellaris user interfaces. Stellaris UI is brittle: use event window hijacking for menus (safe) and scripted GUIs for logic (robust), and keep visual assets (`.gfx`) separate from layout logic (`.gui`).\n\n## Rules\n\n1. Never hardcode X\u002FY > 1080 without `orientation`.\n2. Every window name starts with `[NS]_`.\n3. A button that modifies game state must be an `effectButtonType`. Standard `buttonType` is hardcoded to engine functions; never use it for custom logic.\n\n## 1. Architecture\n\nChoose the integration method by risk versus control:\n\n| Strategy | Mechanism | Use case | Risk |\n| :--- | :--- | :--- | :--- |\n| A. Event hijack (green) | Trigger an event with `diplomatic_title`; map a custom `.gui` window to it. | Story choices, shops | Zero (native flow) |\n| B. Smart button (yellow) | Inject a `containerWindowType` with an `effectButtonType` into a vanilla view (e.g. `planet_view`). | Context actions | Low (self-managing) |\n| C. Dashboard (orange) | A floating `containerWindowType` toggled by a `scripted_gui`. | Managers, global tools | Medium (needs open\u002Fclose logic) |\n\n## 2. Assets (`.gfx`)\n\nRegister every sprite in `src\u002Finterface\u002F[NS]_icons.gfx`; buttons need 3 frames (rest, hover, click):\n\n```pdx\nspriteTypes = {\n    # Standard Button (3 Frames)\n    spriteType = {\n        name = \"GFX_[NS]_button_action\"\n        texturefile = \"gfx\u002Finterface\u002Fbuttons\u002Fbutton_142_34.dds\"\n        effectFile = \"gfx\u002FFX\u002Fbuttonstate.lua\"\n        noOfFrames = 3\n    }\n}\n\n```\n\n## 3. Layout (`.gui`)\n\nIn `src\u002Finterface\u002F[NS]_view.gui`, always anchor with `orientation` and `origo` (pivot): `center` \u002F `center` for modals, `upper_left` for lists and sidebars. Script interaction uses `effectButtonType` { `effect = \"my_scripted_effect\"` }.\n\n## 4. Logic Bridge (`scripted_guis`)\n\nDefine when the UI updates and what data it sees in `src\u002Fcommon\u002Fscripted_guis\u002F[NS]_guis.txt`:\n\n```pdx\n[NS]_main_gui_logic = {\n    scope = country\n    saved_scopes = { target_planet }\n    is_shown = { always = yes }\n    is_enabled = { minerals > 100 }\n}\n\n```\n\n## Output Template (`.gui`)\n\n```pdx\nguiTypes = {\n    containerWindowType = {\n        name = \"[NS]_main_window\"\n        orientation = center\n        origo = center\n        size = { width = 500 height = 400 }\n        moveable = yes\n\n        background = {\n            name = \"bg\"\n            quadTextureSprite = \"GFX_tile_outliner_bg\"\n        }\n\n        # Header\n        instantTextBoxType = {\n            name = \"header\"\n            font = \"malgun_goth_24\"\n            text = \"[NS]_window_title\" # TODO: LOC\n            position = { x = 0 y = 20 }\n            maxWidth = 500\n            format = center\n        }\n\n        # Logic Button\n        effectButtonType = {\n            name = \"[NS]_action_btn\"\n            quadTextureSprite = \"GFX_[NS]_button_action\"\n            position = { x = -71 y = -50 }\n            orientation = center_down\n            buttonText = \"[NS]_btn_text\"\n            buttonFont = \"cg_16b\"\n\n            # The Link to Logic\n            effect = \"[NS]_effect_do_something\"\n        }\n\n        # Close Button (Standard)\n        buttonType = {\n            name = \"close\"\n            quadTextureSprite = \"GFX_close_square\"\n            orientation = UPPER_RIGHT\n            position = { x = -45 y = 15 }\n            shortcut = \"ESCAPE\"\n            clicksound = \"back_click\"\n            actionShortcut = \"cancel\"\n        }\n    }\n}\n\n```\n",{"name":5,"description":7},"main","bb71e1631303bd27cb8ac18dc04830c97db8ac4d","skills\u002Fstellaris-ui",0,"https:\u002F\u002Fgithub.com\u002FLyther\u002Fagent-surface","https:\u002F\u002Fgithub.com\u002FLyther","Why so serious?","2026-11-13 17:36:21",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add Lyther\u002Fagent-surface --skill stellaris-ui",{"tool":48,"command":49},"bunx","bunx skills add Lyther\u002Fagent-surface --skill stellaris-ui",{"tool":51,"command":52},"pnpm","pnpm dlx skills add Lyther\u002Fagent-surface --skill stellaris-ui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLyther\u002Fagent-surface\u002Fblob\u002Fmain\u002Fskills\u002Fstellaris-ui\u002FSKILL.md",true,[],[57,83,97,111,130,141],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":68,"publishedAt":29},"01M6C5CQAHK34J7RNHEJE1G366","workflow-runtime","Prove skill or workflow discovery, full-autonomy tool execution, and task-shaped materialization before assigning a CLI, extension, provider, or model to a workflow role.","https:\u002F\u002Fgithub.com\u002FLyther\u002Fagent-surface\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow-runtime\u002FSKILL.md",[63],{"categoryNo":64,"categoryName":65,"taxonomyType":66,"taxonomyTypeDesc":67},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[69,70,71,72,73,74,75,76,77,78,79,80,81,82],"workflow","workflow runtime","runtime","execution","cli","discovery","tool","model","autonomy","provider","task","full","extension","role",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":29},"01M6C5CNCTDS39453E66MQYTTQ","workflow-reviewer","Review batched implementation output against the BOSS spec and evidence.","https:\u002F\u002Fgithub.com\u002FLyther\u002Fagent-surface\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow-reviewer\u002FSKILL.md",[],[90,91,69,92,93,94,95,96],"workflow reviewer","reviewer","spec","review","evidence","implementation","output",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":104,"publishedAt":29},"01M6C5CKVKQF6NE9263HGRB2K3","workflow-rescue","Resolve repeated workflow failures with a single decisive action.","https:\u002F\u002Fgithub.com\u002FLyther\u002Fagent-surface\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow-rescue\u002FSKILL.md",[103],{"categoryNo":64,"categoryName":65,"taxonomyType":66,"taxonomyTypeDesc":67},[69,105,106,107,108,109,110],"workflow rescue","rescue","single","decisive action","with","action",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":118,"publishedAt":29},"01M6C5CHCW474Y5F49WME2G12H","workflow-orchestrator","Run risk-adaptive development, review, multi-agent, and release workflows with runtime preflight, bounded retries, liveness checks, isolated writers, and evidence-backed handoffs.","https:\u002F\u002Fgithub.com\u002FLyther\u002Fagent-surface\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow-orchestrator\u002FSKILL.md",[117],{"categoryNo":64,"categoryName":65,"taxonomyType":66,"taxonomyTypeDesc":67},[119,120,69,109,121,93,122,123,124,125,126,127,94,71,128,129],"orchestrator","workflow orchestrator","development","workflows","run","release","risk","preflight","multi-agent","multi","retries",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":29},"01M6C5CFCYEW1J4ETBNDD4EQPK","workflow-judger","Arbitrate repeated task failures and decide merge, rework, or escalation.","https:\u002F\u002Fgithub.com\u002FLyther\u002Fagent-surface\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow-judger\u002FSKILL.md",[],[137,69,138,139,140,79],"workflow judger","merge","escalation","decide",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":148,"publishedAt":29},"01M6C5CDADZX0YM26H2QWWDJMF","workflow-doctor","Validate active workflow state before any role acts on it.","https:\u002F\u002Fgithub.com\u002FLyther\u002Fagent-surface\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow-doctor\u002FSKILL.md",[147],{"categoryNo":64,"categoryName":65,"taxonomyType":66,"taxonomyTypeDesc":67},[69,149,150,151,152,153,154,82],"workflow doctor","doctor","validate","state","active","it"]