Agent Skillsjasonkneen/tiny-world-builder › tinyworld-auto-batching

tinyworld-auto-batching

GitHub

定义 Tiny World Builder 自动批处理逻辑,通过缓存模型建议减少调用频率。涉及前端状态管理、API密钥处理及浏览器端验证测试。

.codex/skills/tinyworld-auto-batching/SKILL.md jasonkneen/tiny-world-builder

Trigger Scenarios

修改 Auto 调色板行为或模型推理逻辑 调整建议生成或 API 密钥处理流程 进行前端自动化功能测试

Install

npx skills add jasonkneen/tiny-world-builder --skill tinyworld-auto-batching -g -y
More Options

Non-standard path

npx skills add https://github.com/jasonkneen/tiny-world-builder/tree/main/.codex/skills/tinyworld-auto-batching -g -y

Use without installing

npx skills use jasonkneen/tiny-world-builder@tinyworld-auto-batching

指定 Agent (Claude Code)

npx skills add jasonkneen/tiny-world-builder --skill tinyworld-auto-batching -a claude-code -g -y

安装 repo 全部 skill

npx skills add jasonkneen/tiny-world-builder --all -g -y

预览 repo 内 skill

npx skills add jasonkneen/tiny-world-builder --list

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 autoSuggestionQueue locally for multiple Auto placements.
  • Refresh after AUTO_REFRESH_EVERY Auto 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 normalizeAutoAction before 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 generateAutoSuggestions in 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

Same Skill Collection

.agents/skills/lightweight-3d-effects/SKILL.md
.agents/skills/threejs-primitive-reconstructor/SKILL.md
.agents/skills/tinyworld-i18n/SKILL.md
.claude/skills/tinyworld-i18n/SKILL.md
.codex/skills/threejs-primitive-reconstructor/SKILL.md
.codex/skills/tinyworld-25d-template-sprites/SKILL.md
.codex/skills/tinyworld-asset-editing/SKILL.md
.codex/skills/tinyworld-block-button-style/SKILL.md
.codex/skills/tinyworld-cctv-truman/SKILL.md
.codex/skills/tinyworld-ghost-world-gen/SKILL.md
.codex/skills/tinyworld-integrations/SKILL.md
.codex/skills/tinyworld-island-and-planes/SKILL.md
.codex/skills/tinyworld-island-viewer/SKILL.md
.codex/skills/tinyworld-lowpoly-stylized-3d/SKILL.md
.codex/skills/tinyworld-lowpoly-world-prompt/SKILL.md
.codex/skills/tinyworld-mesh-terrain/SKILL.md
.codex/skills/tinyworld-opacity-torch/SKILL.md
.codex/skills/tinyworld-render-performance/SKILL.md
.codex/skills/tinyworld-runtime-state/SKILL.md
.codex/skills/tinyworld-settings/SKILL.md
.codex/skills/tinyworld-shader-fx/SKILL.md
.codex/skills/tinyworld-single-file/SKILL.md
.codex/skills/tinyworld-tile-variation/SKILL.md
.codex/skills/tinyworld-tinyverse-collectibles/SKILL.md
.codex/skills/tinyworld-tinyverse-race-track/SKILL.md
.codex/skills/tinyworld-tool-icons-and-modes/SKILL.md
.codex/skills/tinyworld-visual-qa/SKILL.md
.codex/skills/tinyworld-webxr/SKILL.md
.agents/skills/3d-modeling/SKILL.md
.agents/skills/fractal/SKILL.md
.agents/skills/poly-pizza-api/SKILL.md

Metadata

Files
0
Version
8afdf00
Hash
6782a5ca
Indexed
2026-07-06 00:19

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-05 05:14
浙ICP备14020137号-1 $Гость$