Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FEATURE (agents): Add commit and branch conventions

Rostislav Duginedc1c175670a
diff --git a/.agents/skills/git-commits/SKILL.md b/.agents/skills/git-commits/SKILL.md
new file mode 100644
index 00000000..9123a9a1
--- /dev/null
+++ b/.agents/skills/git-commits/SKILL.md
@@ -0,0 +1,29 @@
+---
+name: git-commits
+description: Write Databasus commit messages and branch names using the repository's release-compatible format. Use when creating, editing or reviewing a commit message or branch name in this repository.
+---
+
+# Git commits
+
+Use one of these subject formats:
+
+- `FEATURE (scope): Summary`
+- `FIX (scope): Summary`
+- `REFACTOR (scope): Summary`
+
+Never use `!` anywhere in the subject. The release workflow treats it as a breaking change and triggers a major version bump.
+
+Keep the body to a short bullet list of what changed. Do not write long narrative paragraphs or hard-wrap lines at 80 characters. For example:
+
+```text
+- validate PostgreSQL targets and quote conninfo values
+- verify workspace access before applying saved credentials
+- isolate local sockets and rotate internal database credentials
+- add regression coverage and OpenSpec documentation
+```
+
+Keep the reasons and implementation details in OpenSpec. When a change has related OpenSpec files, commit them together with the implementation.
+
+Name branches `feature/<scope>`, `fix/<scope>` or `refactor/<scope>`.
+
+Do not include co-author attribution unless the user requests it directly.
diff --git a/AGENTS.md b/AGENTS.md
index b0aa7cca..bdd915e1 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -170,6 +170,6 @@ Databasus handles sensitive data, so security is a layered defence. CodeQL, Code
The README's `🛡️ Security & reliability engineering` section is the public-facing version of these practices — keep both consistent if substance changes. That section, like the rest of `README.md`, exists in 6 languages: a substantive edit lands in the English file and in all five `assets/readme/README.<locale>.md` copies.
-## Commiting
+## Committing
-Never put Co-Authoring in commit message until it is requested directly
+Follow the [Git commits skill](.agents/skills/git-commits/SKILL.md) for commit messages and branch names.
diff --git a/website/app/(en)/contribute/page.tsx b/website/app/(en)/contribute/page.tsx
index 3e718c91..d15f4f19 100644
--- a/website/app/(en)/contribute/page.tsx
+++ b/website/app/(en)/contribute/page.tsx
@@ -214,8 +214,6 @@ export default function ContributePage() {
<h2 id="how-to-create-pr">How to create a pull request?</h2>
- <p>We use gitflow approach.</p>
-
<ol>
<li>Create a new branch from main</li>
<li>Make changes</li>
@@ -224,27 +222,6 @@ export default function ContributePage() {
<li>Merge pull request</li>
</ol>
- <h3 id="commit-naming">Commit naming convention</h3>
-
- <p>
- Commits should be named in the following format depending on the
- type of change:
- </p>
-
- <ul>
- <li>
- <code>FEATURE (area): What was done</code>
- </li>
- <li>
- <code>FIX (area): What was fixed</code>
- </li>
- <li>
- <code>REFACTOR (area): What was refactored</code>
- </li>
- </ul>
-
- <p>To see examples, look at commit history in main branch.</p>
-
<h3 id="branch-naming">Branch naming convention</h3>
<p>Branches should be named in the following format:</p>