Install
openclaw skills install easycode-skillUse when users ask to generate Java code from database tables with EasyCode-style templates, including parsing db config, remembering last-used generation settings, resolving output paths from base package, and producing a file generation plan/execution.
openclaw skills install easycode-skillThis skill turns natural-language requests into deterministic EasyCode-style generation inputs and execution steps.
Use this skill when users ask for:
base_package to project output pathsgenerate_java_code schema in references/function-schema.json.generation_config.table_columns for full field-level rendering parity.table_columns is absent, script attempts JDBC metadata fetch from db_connection..easycode-skill/state.json by running:
python3 scripts/easycode_skill.py state --showtemplate_group is Custom-V3.src/main/java.python3 scripts/easycode_skill.py plan --spec '<json>'python3 scripts/easycode_skill.py execute --spec '<json>'--overwrite only when user confirms replacement--run-project-format to run formatter after generationpython3 scripts/easycode_skill.py state --save --spec '<json>'python3 scripts/easycode_skill.py check-driver --db-type mysqlpython3 scripts/easycode_skill.py spec-template --db-type mysql --tables user,orderpython3 scripts/easycode_skill.py interactive (首次 1~9 步引导,后续仅输入表名)base_package (for example com.app.admin) to src/main/java/com/app/admin.entity, mapper, service, controller).MyBatisPlus -> configs/EasyCodeConfig-mybatispuls.json (fallback project root file)Custom-V2 -> configs/EasyCodeConfig-V2.json (fallback project root file)Custom-V3 -> configs/EasyCodeConfig-V3.json (fallback project root file)drivers/drivers-paths.json.drivers/<db>/ are supported.db_connection.driver_jar.overwrite_candidate and ask for confirmation before replacing.code with EasyCode global macros (init/define/autoImport/mybatisSupport).execute writes rendered output (not scaffold), and plan can include rendered content with --include-content.table_columns is missing, script auto-fetches metadata through JDBC.db_connection.driver_jar (and optional db_connection.driver_class) or provide table_columns.LongDategeneration_config.type_mapping when needed.--interactive-type-mapping to plan/execute when type_mapping is not specified.generation_config.project_format_command to custom command(s), or--run-project-format and let script auto-detect gradlew/mvnw format tasks.Persist these keys after successful run:
db_type, url, userauthor, base_package, template_groupproject_root, output_rootpass, driver_jar, driver_class, type_mapping, project_format_command for next-run defaults.Do not store plaintext password in state. If password must be cached, store encrypted value from host secret manager.
When reporting execution: