generate

GitHub

用于Keychat项目的代码生成工具,支持Isar模型、JSON序列化及i18n国际化。可根据参数执行全量或特定类型的代码生成命令,并在修改模型或翻译后自动重建相关代码。

.claude/skills/generate/SKILL.md keychat-io/keychat-app

触发场景

修改Isar模型文件后需要重新生成数据库架构 添加新翻译内容后需要重新生成本地化文件 修改带有@JsonSerializable注解的模型后需要重新生成JSON序列化代码

安装

npx skills add keychat-io/keychat-app --skill generate -g -y
更多选项

非标准路径

npx skills add https://github.com/keychat-io/keychat-app/tree/main/.claude/skills/generate -g -y

不安装直接使用

npx skills use keychat-io/keychat-app@generate

指定 Agent (Claude Code)

npx skills add keychat-io/keychat-app --skill generate -a claude-code -g -y

安装 repo 全部 skill

npx skills add keychat-io/keychat-app --all -g -y

预览 repo 内 skill

npx skills add keychat-io/keychat-app --list

SKILL.md

Frontmatter
{
    "name": "generate",
    "description": "Run code generation for Isar models, JSON serialization, and i18n",
    "allowed-tools": "Bash(melos *), Bash(flutter pub run *)",
    "argument-hint": "[type]",
    "disable-model-invocation": true
}

Run code generation for the Keychat project.

Arguments

  • $ARGUMENTS - Optional: type of generation (all, dart, flutter, intl, runner)

Generation Commands

Type Command Description
all melos run generate:all Run all code generators
dart melos run generate:dart Dart package generators only
flutter melos run generate:flutter Flutter package generators only
intl melos run intl:generate Internationalization strings
runner melos run build:runner App build_runner only

Common scenarios

After modifying Isar model files

Run melos run build:runner to regenerate database schemas.

After adding new translations

Run melos run intl:generate to regenerate localization files.

After modifying any model with @JsonSerializable

Run melos run generate:all to regenerate JSON serialization code.

Workflow

  1. If no argument, run melos run generate:all
  2. If specific type provided, run the corresponding command
  3. Report any errors encountered during generation

版本历史

  • 294d00d 当前 2026-07-05 10:51

同 Skill 集合

.claude/skills/architecture/SKILL.md
.claude/skills/batch/SKILL.md
.claude/skills/bootstrap/SKILL.md
.claude/skills/flutter-check/SKILL.md
.claude/skills/lint/SKILL.md
.claude/skills/pods/SKILL.md
.claude/skills/clean/SKILL.md
.claude/skills/run/SKILL.md
.claude/skills/rust-build/SKILL.md
.claude/skills/test/SKILL.md

元信息

文件数
0
版本
0cdb462
Hash
ad5599ec
收录时间
2026-07-05 10:51

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-01 08:25
浙ICP备14020137号-1 $访客地图$