소스 정보
- 저장소
- agent0ai/space-agent
- 최근 소스 활동
- 2026년 4월 23일 15:07
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1,385
- 포크
- 318
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/agent0ai/space-agent --skill space-widgets명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Read the supplemental project documentation module
Frontend development router. Load deeper skills before editing
Use the frontend API surface correctly for app files, discovery, identity, and permission-aware browser data access.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | Space Widgets |
| description | Create, patch, inspect, and remove widgets in the current space |
| metadata | {"placement":"system","when":{"tags":["space:open"]},"loaded":{"tags":["space:open"]}} |
Use this skill for widget work in the current open space
storage
context.import("scripts/...")transient
Current Space Widgets in _____transient lists id|name|col|row|cols|rows|state|render statusCurrent Widget appears after patchWidget(), renderWidget(), or reloadWidget()Current Widget is one envelope with rendered↓ for stripped live HTML and source↓ for the numbered readbackmain helpers
catalog and readback
space.current.* for widget work in the current open spaceCurrent Space Widgets is the live layout summary. Use it before rediscovering ids manuallysnake-game|Snake|... means use readWidget("snake-game")_____framework result↓metadata: ... line before renderer↓_____framework result↓seeWidget(id) strips script/style tags, inline handlers, class lists, ids, and data attrs by defaultseeWidget(id, true) only when you explicitly need the full live innerHTMLsource↓ id: example name: Example cols: 4 rows: 3 renderer↓ 0 async (parent, currentSpace, context) => { 1 console.log("hello"); 2 }
staged turns
Current Space Widgets or _____framework already showed the widget id you need, skip another discovery call and move to the next steprendered↓ for what mounted and source↓ for the next patchexamples Checking widget catalog _____javascript return await space.current.listWidgets()
Reading the widget source _____javascript return await space.current.readWidget("tetris-game")
Seeing the current rendered widget HTML _____javascript return await space.current.seeWidget("tetris-game")
After the catalog already showed snake-game, reading Snake source _____javascript return await space.current.readWidget("snake-game")
User asked for the snake widget, reading it directly _____javascript return await space.current.readWidget("snake")
bad Checking the current widget source
bad _____javascript return await space.current.readWidget("snake-game")
bad Which widget should I change?
bad const widgets = await space.current.listWidgets(); const snake = widgets.widgets.find(...)
bad return await space.current.readWidget("snake-game") return await space.current.patchWidget("snake-game", ...)
bad return await space.current.patchWidget("snake-game", ...) // success came back return await space.current.patchWidget("snake-game", ...)
bad Updating the snake widget background now Applying the color edits now
patch vs rewrite
source↓source↓. Do not use widget.split("\n") array indexes as patch coordinatesexample exact snippet patch _____javascript return await space.current.patchWidget("snake-game", { edits: [ { find: "parent.style.background = '#6f8f54';", replace: "parent.style.background = '#5f7f3f';" } ] })
write and reload behavior
rendered↓ and source↓source↓ before claiming successrenderer rules
const mod = await context.import("scripts/utils.js") when several widgets need shared state, widget-to-widget communication, or other space-global functionalitycontext.import(...) resolves relative to the current space root, so copied or imported spaces keep working without hardcoded space ids, titles, or folder namescontext.paths.scripts is the current space scripts folderscripts/... module from each widget so they share one module instance on that space pagescripts/*.js modulescontext instead of hardcoding globals or space ids#101b2d (rgba(16, 27, 45, 0.92)). Do not add another full-card background unless the content truly needs its own stage<x-browser src="google.com"></x-browser> or create an x-browser element in DOMcontrols="true" to x-browser only when the widget needs its own address bar and navigation controls; omit it or use controls="false" for a frameless embedded browser<iframe> for general web browsing widgets. Iframes are not registered browser surfaces, so space.browser, injected browser actions, and last-interacted browser content will not work through themfetch(url) or space.fetchExternal(url). Do not hardcode third-party CORS proxy services; the runtime already retries blocked origins through /api/proxyflow
space.proxy.buildUrl(url)