.moai/config.json official schema documentation, structure validation, project metadata, language settings, and configuration migration guide...
.moai/config.json 파일의 공식 스키마와 각 필드의 목적, 유효한 값, 마이그레이션 규칙을 정의합니다.
{
"version": "0.17.0",
"project": {
"name": "ProjectName",
"codebase_language": "python",
"conversation_language": "ko",
"conversation_language_name": "Korean"
},
"language": {
"conversation_language": "ko",
"conversation_language_name": "Korean"
},
"git": {
"strategy": "github-pr",
"main_branch": "main",
"protected": true,
"auto_delete_branches": true,
"spec_git_workflow": "feature_branch"
},
"report_generation": {
"enabled": true,
"auto_create": false,
"warn_user": true
},
"tag": {
"prefix_style": "DOMAIN-###"
}
}
Section: report_generation (new in v0.17.0)
Controls automatic document generation frequency to manage token usage:
{
"report_generation": {
"enabled": true,
"auto_create": false,
"warn_user": true,
"user_choice": "Minimal",
"allowed_locations": [
".moai/docs/",
".moai/reports/",
".moai/analysis/",
".moai/specs/SPEC-*/"
]
}
}
Fields:
enabled (boolean): Turn report generation on/off (0 tokens when disabled)auto_create (boolean): Auto-create full reports vs essential onlywarn_user (boolean): Show token/time warnings in surveysuser_choice (string): User's selected level (Enable/Minimal/Disable)allowed_locations (array): Where auto-generated reports are placedToken Savings:
Section: git.spec_git_workflow (new in v0.17.0)
Controls how features are developed in team mode:
{
"git": {
"spec_git_workflow": "feature_branch"
}
}
Valid Values:
feature_branch (recommended for team mode)
develop_direct (recommended for rapid development)
per_spec (maximum flexibility)
Learn more in reference.md for complete schema reference, validation rules, and migration examples.
Related Skills: moai-foundation-git, moai-foundation-specs