Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

balatro-mod-dev巴拉特罗模组开发

Agent Skill

balatro-mod-dev 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

988

周安装

42

GitHub Stars

2

下载量

346
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:balatro-mod-dev(巴拉特罗模组开发)
来源仓库:https://github.com/liafonx/open-balatro
仓库路径:skills/balatro-mod-dev
安装命令:
npx skills add https://github.com/liafonx/open-balatro --skill balatro-mod-dev
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/liafonx/open-balatro --skill balatro-mod-dev

简介

balatro-mod-dev 支持 Balatro 游戏模组的创建、调试与资源检索,覆盖 Steamodded、Lovely 和 SMODS 框架。

  • 它可根据任务自动选择子代理(如 API 研究者、模式匹配者),加速模组开发与问题定位。
  • 适用于查找游戏函数实现、SMODS API 用法或参考其他模组写法,提升开发效率。
  • 使用前应确认本地环境已配置相关运行时,并限定搜索范围以避免无关干扰。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Balatro Mod Development

Create and debug Balatro mods with Steamodded, Lovely, and SMODS.

Quick Agent Selection

When researching or writing code, spawn the right sub-agent via the Task tool:

Need to find...Use agentModelSearch boundary
Game function implementationgame-source-researchersonnetBalatro_src/ only
SMODS API usage/hookssmods-api-researchersonnetsmods/ only
How other mods do Xmod-pattern-researchersonnetMods/ folder only
Lovely patch syntaxlovely-patch-researchersonnetlovely files only
Project architecture/explorationproject-explorersonnetCurrent project only
Write code per plancode-writersonnetCurrent project only
Run temp script for datascript-runnerhaikuN/A (execution)
Review code for correctnesscode-revieweropusCurrent project only
Synthesize multi-source researchresearch-analystopusCurrent project only
Plan complex implementationstrategic-planneropusCurrent project only
Inspect runtime logs, dumps, compatdebug-inspectorsonnetLovely logs/dumps only

The main agent handles directly: User interaction, small edits (<20 lines), presenting results.

Parallel: When researching DIFFERENT sources — spawn multiple Task calls in one message Sequential: When second query depends on first result

See references/sub-agents.md for the 5-phase workflow, iterative retrieval protocol, and delegation rules.

Repo Type Awareness

Auto-detection: Compare mod manifest author with git remote username.

# Get git remote username
git_user=$(git remote get-url origin 2>/dev/null | sed -E 's|.*[:/]([^/]+)/[^/]+\.git$|\1|' | tr '[:upper:]' '[:lower:]')

# Get mod author from manifest (first author, lowercase)
mod_author=$(jq -r '.author[0] // .author // ""' *.json 2>/dev/null | head -1 | tr '[:upper:]' '[:lower:]')

# Compare: match = own, no match = fork
[[ "$git_user" == "$mod_author" ]] && echo "own" || echo "fork"
TypeDetectionImplications
newEmpty repo (no files)Full docs, Logger.lua, localization
ownAuthor matches git userFull docs, standardize structure
forkAuthor differs from git userMinimal changes, temp logs only

File Convention

FilePurposeGit
AGENTS.mdMod structure, functions, dependencies, constraints, Quick Reference (for AI agents)ignored
mod.config.jsonFile lists for sync/release scriptsignored
docs/knowledge-base.mdIssues & lessons learnedignored

AGENTS.md Purpose: Enable seamless handover between agents. Another agent should quickly understand mod structure, functions, dependencies, constraints, and repo type from a single file.

File Placement Rules

Only these .md files belong in root:

  • README.md, README_zh.md
  • CHANGELOG.md, CHANGELOG_zh.md
  • AGENTS.md
  • LICENSE.md

ALL other .md files MUST go in docs/

External References (No Symlinks Needed)

Access reference code directly via absolute paths. No setup required.

Source Locations (macOS)

ResourcePath
Game Source (desktop)~/Development/GitWorkspace/Balatro_src/desktop/
Game Source (mobile)~/Development/GitWorkspace/Balatro_src/ios_plus/
Steamodded Source~/Development/GitWorkspace/smods/src/
Steamodded Lovely~/Development/GitWorkspace/smods/lovely/
Lovely Docs~/Development/GitWorkspace/lovely-injector/
Installed Mods~/Library/Application Support/Balatro/Mods/
Lovely Logs~/Library/Application Support/Balatro/Mods/lovely/log/

Source Locations (Windows)

ResourcePath
Game SourceVaries by setup
Installed Mods%APPDATA%/Balatro/Mods/
Lovely Logs%APPDATA%/Balatro/Mods/lovely/log/

Pattern References

Read these files for specific topics:

TopicReference File
Lovely.toml syntaxpatterns/lovely-patches.md
SMODS hooks, config, localizationpatterns/smods-api.md
Desktop vs mobile differencespatterns/mobile-compat.md
UIBox, CardArea, draw orderpatterns/ui-system.md
Game source file map + search tipsreferences/game-files.md
G.GAME, G.STATES, G.P_* globalsreferences/globals.md
Lua/LuaJIT pitfalls, common mod bugsreferences/lua-gotchas.md

New Mod Setup (type: new)

Templates in ${CLAUDE_PLUGIN_ROOT}/templates/ folder:

FilePurpose
agents-md-template.mdAGENTS.md template for standard mods
agents-texture-pack-template.mdAGENTS.md for Malverk texture packs
mod-config-template.jsonScript configuration
gitignore-templateStandard.gitignore
logger-template.luaCentralized logging utility

Meta Files:

FilePurpose
mod-json-template.jsonSMODS mod manifest ({ModName}.json)
manifest-json-template.jsonThunderstore manifest

User Docs in templates/docs/:

FilePurpose
description-template.mdConcise README for docs/
NEXUSMODS_DESCRIPTION-template.txtBBCode for NexusMods
knowledge-base-template.mdIssues & lessons learned

Basic Mod Structure (new repos):

{ModName}/
├── main.lua                 # Entry point, mod registration
├── config.lua               # Config defaults (optional)
├── lovely.toml              # Lovely patches (if needed)
├── {ModName}.json           # SMODS mod manifest
├── manifest.json            # Thunderstore manifest
├── mod.config.json          # Script configuration
├── Utils/
│   └── Logger.lua           # Centralized logging
├── localization/
│   ├── en-us.lua            # English (required)
│   └── zh_CN.lua            # Chinese
├── assets/                  # Sprites, shaders
├── scripts/                 # Utility scripts
└── docs/                    # Documentation

Available Commands (16 total — plugin-bundled, auto-loaded)

  • /balatro-mod-dev:familiar - Get familiar with this mod (reads AGENTS.md, maps architecture)
  • /balatro-mod-dev:init - Initialize new mod
  • /balatro-mod-dev:sync-mod - Start sync with watch mode (run once at start)
  • /balatro-mod-dev:bump-version [patch|minor|major] - Increment version, update changelogs
  • /balatro-mod-dev:release - Create release packages (auto-detects version from manifests)
  • /balatro-mod-dev:fix-sprites <directory> [--preview] - Fix grey borders on sprites
  • /balatro-mod-dev:refactor [focus-area] - Review code for redundancy, outdated fallbacks, modularization
  • /balatro-mod-dev:debug - Verify fix by checking Lovely logs (auto-detects mod key from repo)
  • /balatro-mod-dev:test [scenario] - Run test scenarios and verify mod behavior via Lovely logs
  • /balatro-mod-dev:draft-pr - Draft PR message (for forks)
  • /balatro-mod-dev:check - Audits project health, scaffolds missing rules
  • /balatro-mod-dev:update-docs - Review all docs for accuracy, staleness, duplication, verbosity
  • /balatro-mod-dev:update-plugin - Update plugin based on new knowledge
  • /balatro-mod-dev:knowledge - Review session work, capture discoveries
  • /balatro-mod-dev:compact - Evaluate whether to compact context now
  • /balatro-mod-dev:help - List all available commands and agents

Sub-agents (11 total — plugin-bundled)

  • game-source-researcher - Find game functions and injection points (sonnet)
  • smods-api-researcher - Find SMODS API patterns and usage (sonnet)
  • mod-pattern-researcher - Find how other mods implement features (sonnet)
  • lovely-patch-researcher - Find Lovely patch syntax and examples (sonnet)
  • project-explorer - Extensive codebase exploration (sonnet)
  • code-writer - Execute implementation plans, write code (sonnet)
  • script-runner - Run temp scripts and return results (haiku)
  • code-reviewer - Review code for correctness and edge cases (opus)
  • research-analyst - Synthesize findings from multiple researchers (opus)
  • strategic-planner - Plan implementation strategy for complex features (opus)
  • debug-inspector - Inspect runtime logs, dumps, mod compatibility (sonnet)

Logging

For new/my repos:

Use Utils/Logger.lua (from ${CLAUDE_PLUGIN_ROOT}/templates/logger-template.lua):

local Logger = require("Utils.Logger")
local log = Logger.create("ModuleName")
log("info", "Initialized")
log("error", "Failed: " .. err)

For forks/others' repos:

Use temp logs only (remove before PR):

pcall(print, "[Debug] checkpoint: " .. tostring(var))

Utility Scripts

ScriptPurpose
${CLAUDE_PLUGIN_ROOT}/scripts/sync_to_mods.template.shSync mod files to game's Mods folder
${CLAUDE_PLUGIN_ROOT}/scripts/create_release.template.shCreate release packages
${CLAUDE_PLUGIN_ROOT}/scripts/fix_transparent_pixels.pyFix grey borders on sprites

Workflow: Debugging

  1. Check references/lua-gotchas.md for known pitfalls (FFI cdata, nil scoping, boolean normalization)
  2. Check platform (desktop vs mobile)
  3. Search game source for function
  4. Check other mods for implementations
  5. Add logs (Logger.lua for own, temp for fork)
  6. Check Lovely logs
  7. If fix fails 3+ times: Invoke research-analyst (opus) to synthesize all debugging context

Workflow: Update User Docs

When user says "update all user docs":

  1. Review ALL files: README(_zh).md, CHANGELOG(_zh).md
  2. Review docs/: description.md, NEXUSMODS_DESCRIPTION.txt
  3. Update version in {ModName}.json, manifest.json
  4. Ensure EN/ZH consistency

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.69%
按下载量换算127

Claude

27.34%
按下载量换算95

Cursor

19.23%
按下载量换算67

Gemini CLI

9.94%
按下载量换算34

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/liafonx/open-balatro --skill balatro-mod-dev 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills