skills/fluent-bit/patch-workflow.md
Use this guide when implementing or reviewing Fluent Bit changes.
rg first.lib/, get explicit user
confirmation before editing. Use a confirmation popup when the environment
supports one; otherwise ask in chat.if, else, while, and do blocks;snake_case names with existing component prefixes;/* ... */ comments only where useful.Prioritize:
When reviewing claims like "this enables validation" or "this caches resolution," distinguish:
Use component-prefix subjects consistent with local history:
git commit -s -m "component: short imperative description"
Common examples:
engine: fix flush buffer handlingtests: internal: add parser regression coveragetests: integration: cover schema registry resolutionFor bundled library changes, keep the library patch in its own commit unless the user explicitly asks otherwise. Use the prefix accepted for that path by the repository linter, and mention the upstream project/path in the commit body when that context is useful.
Do not invent generic prefixes when the repository linter infers a narrower prefix. Run the linter when creating commits:
python .github/scripts/commit_prefix_check.py
If gitpython is missing:
python3 -m pip install gitpython
Before pushing or opening a PR, fetch the base branch and lint the PR range, not
just HEAD. The checker can fall back to HEAD-only validation if the base ref
is missing locally:
git fetch --all --prune
git fetch origin <base-branch>:origin/<base-branch>
GITHUB_EVENT_NAME=pull_request GITHUB_BASE_REF=<base-branch> \
python .github/scripts/commit_prefix_check.py
Do not open issues, pull requests, or remote branches unless explicitly asked. Do not rewrite history, amend commits, or force-push unless explicitly asked.