Agent Skills
› jasonkneen/tiny-world-builder
› tinyworld-auto-batching
tinyworld-auto-batching
GitHub定义 Tiny World Builder 自动批处理逻辑,通过缓存模型建议减少调用频率。涉及前端状态管理、API密钥处理及浏览器端验证测试。
Trigger Scenarios
修改 Auto 调色板行为或模型推理逻辑
调整建议生成或 API 密钥处理流程
进行前端自动化功能测试
Install
npx skills add jasonkneen/tiny-world-builder --skill tinyworld-auto-batching -g -y
SKILL.md
Frontmatter
{
"name": "tinyworld-auto-batching",
"description": "Use when changing Tiny World Builder Auto palette behavior, model inference, suggestions, or provider\/model\/API-key logic."
}
Tiny World Auto Batching
Auto should not call the model on every placement.
Current intended model:
- Capture the current home board as sparse 8x8 JSON using
snapshotCells(). - Ask the model for a ranked batch of candidate tile actions matching
AUTO_SUGGESTIONS_SCHEMA. - Spend
autoSuggestionQueuelocally for multiple Auto placements. - Refresh after
AUTO_REFRESH_EVERYAuto placements or when the queue runs out. - Auto still places on the clicked cell. The model suggests tile/action definitions, not coordinates.
Implementation guardrails:
- Keep provider/model/key state shared with the Generate modal via
AI_LS. - Use
normalizeAutoActionbefore applying model output. - Use
adaptAutoSuggestionToCell(action, x, z)so same-kind clicks increase local intensity. - If no API key exists, open the Generate modal with the Auto key message.
- Do not add a backend or new dependency.
Validation:
- Stub
generateAutoSuggestionsin browser eval and verify two Auto suggestions only call the stub once. - Verify no network call is needed while spending cached suggestions.
Version History
- 2ffaf91 Current 2026-07-06 00:19


