generate

GitHub

用于 Keychat 项目的代码生成工具,支持 Dart、Flutter、国际化及 Isar 模型序列化。可根据参数或场景自动执行 melos 命令,生成数据库模式、本地化文件或 JSON 序列化代码,并报告错误。

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

Trigger Scenarios

修改 Isar 模型文件后需要重新生成数据库模式 添加新翻译内容后需要重新生成本地化文件 修改包含 @JsonSerializable 的模型后需要重新生成 JSON 序列化代码 需要运行项目所有代码生成器时

Install

npx skills add keychat-io/keychat-app --skill generate -g -y
More Options

Non-standard path

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

Use without installing

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

Version History

  • 294d00d Current 2026-07-05 10:51

Same Skill Collection

.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

Metadata

Files
0
Version
294d00d
Hash
ad5599ec
Indexed
2026-07-05 10:51

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-18 13:04
浙ICP备14020137号-1 $mapa de visitantes$