@@ -33,6 +33,87 @@ agcp status # Show proxy status
3333agcp doctor # Diagnose configuration
3434```
3535
36+ ## Git Workflow
37+
38+ ### Commit Message Format
39+
40+ Use Conventional Commits:
41+
42+ ``` text
43+ <type>(<scope>): <summary>
44+ ```
45+
46+ - ` type ` : required
47+ - ` scope ` : optional but preferred (module/area like ` tui ` , ` cloudcode ` , ` server ` , ` docs ` )
48+ - ` summary ` : imperative mood, lower-case start, no trailing period, ideally <= 72 chars
49+
50+ Examples:
51+
52+ - ` feat(tui): show popup when Gemini access is disabled `
53+ - ` fix(cloudcode): map disabled-account 403 to clear error `
54+ - ` docs(agents): add git workflow conventions `
55+
56+ ### Allowed Commit Types
57+
58+ - ` feat ` : new user-facing behavior
59+ - ` fix ` : bug fix
60+ - ` refactor ` : internal code change without behavior change
61+ - ` perf ` : performance improvement
62+ - ` test ` : add or update tests
63+ - ` docs ` : documentation-only changes
64+ - ` chore ` : maintenance, tooling, cleanup
65+ - ` ci ` : CI pipeline/workflow changes
66+ - ` build ` : build system/dependency changes
67+ - ` style ` : formatting-only (no logic change)
68+ - ` revert ` : revert a prior commit
69+
70+ For breaking changes, use ` ! ` :
71+
72+ - ` feat(api)!: rename responses endpoint fields `
73+
74+ And include a ` BREAKING CHANGE: ` footer in the commit body.
75+
76+ ### Branch Naming
77+
78+ Use short descriptive names:
79+
80+ - ` feat/<short-topic> `
81+ - ` fix/<short-topic> `
82+ - ` chore/<short-topic> `
83+ - ` docs/<short-topic> `
84+
85+ Examples:
86+
87+ - ` feat/tui-runtime-warning-popup `
88+ - ` fix/gemini-disabled-403-mapping `
89+
90+ ### Commit Hygiene
91+
92+ - Keep one logical change per commit.
93+ - Run verification before commit:
94+ - ` cargo fmt `
95+ - ` cargo clippy -- -D warnings `
96+ - ` cargo test `
97+ - Do not commit secrets, tokens, local config, or logs.
98+ - Do not amend/rewrite history unless explicitly requested.
99+
100+ ### Pull Requests
101+
102+ Use this PR structure:
103+
104+ ``` markdown
105+ ## Summary
106+ - What changed
107+ - Why it changed
108+
109+ ## Verification
110+ - cargo fmt
111+ - cargo clippy -- -D warnings
112+ - cargo test
113+ ```
114+
115+ Prefer small PRs with clear scope and explicit verification output.
116+
36117## Architecture
37118
38119```
0 commit comments