git-ai
代码同步
debug_log("handle_flush_cas");
debug_log(&format!("http_get请求, URL: {}", url));测试构建
cargo build
sh scripts/dev-symlinks.sh
task debug:localconfig
git-ai config set prompt_storage defaultGIT_AI_API_BASE_URL=http://localhost:5169/starfishapi/api/gitai git-ai login
GIT_AI_DEBUG=1
git-ai flush-logs
git-ai flush-cas
git-ai flush-metrics-db在不影响原来代码逻辑的基础上,尽可能的把英语翻译成中文,包含注释、代码返回信息、报错信息等。# Skill 打包提示词
我们刚才的对话已经磨合出了完整的工作流程和输出标准。请现在将这个过程整理成一个标准的Agent Skill,要求如下:
1.创建完整的Skil文件夹结构
2.SKILL.md写清楚: Skill职责、触发场景、执行步骤、输出标准
3.references放入我们确认过的所有格式要求和内容标准
4.可自动化的步骤写入scripts
5.assets放入需要复用的模板文件
输出一个我可以直接安装使用的Skil文件夹commit
/worker/cas/upload
{
"objects": [
{
"content": {
"messages": [
{
"text": "在不影响原来代码逻辑的基础上,尽可能的把英语翻译成中文,包含注释、代码返回信息、报错信息等。",
"timestamp": "2026-03-24T00:57:00.550+00:00",
"type": "user"
}
]
},
"hash": "f8d18b9d4a21a0e09bc6e818946a759ea0af6abd3c4d8640e14dfe823343530e",
"metadata": {
"repo_url": "https://gitee.com/liuyulu/git-ai",
"kind": "prompt",
"api_version": "v1"
}
},
{
"content": {
"messages": [
{
"text": "在不影响原来代码逻辑的基础上,尽可能的把英语翻译成中文,包含注释、代码返回信息、报错信息等。",
"timestamp": "2026-03-24T01:23:03.331+00:00",
"type": "user"
}
]
},
"hash": "f19fbcec09130b62ba0db5f512525f66dc7dabdd3e5c2f08a60f2dd2141eb867",
"metadata": {
"api_version": "v1",
"repo_url": "https://gitee.com/liuyulu/git-ai",
"kind": "prompt"
}
}
]
}# Build
cargo build # debug build (used by integration tests)
cargo build --release # release build
cargo build --features test-support # debug build with git2 (needed for test binary)
# Lint & Format
# CI uses Rust 1.93.0 pinned, RUSTFLAGS="-D warnings" (warnings are errors)
cargo clippy # lint (CI runs on all 3 platforms)
cargo fmt -- --check # format check
cargo fmt # auto-format