Skip to main content

fluent-bit

Work in the Fluent Bit C/C++ repository using its scoped patch, testing, runtime, integration, lifecycle, and review conventions. Use for Fluent Bit source, plugin, pipeline, Windows runtime-test, CI, configuration, protocol, or regression tasks.

Source facts

Repository
fluent/fluent-bit
Last source activity
July 14, 2026 at 13:55
Detected SKILL.md language
English
Stars
8,142
Forks
2,012

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
6 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
fluent-bit
description
Work in the Fluent Bit C/C++ repository using its scoped patch, testing, runtime, integration, lifecycle, and review conventions. Use for Fluent Bit source, plugin, pipeline, Windows runtime-test, CI, configuration, protocol, or regression tasks.
# Fluent Bit Repository Skill Use this skill when working in the Fluent Bit repository or in a similar C/C++ plugin-based telemetry pipeline. It is written for any LLM agent: read the relevant linked files, inspect the current checkout, make the smallest correct change, and report exact verification. ## When to Use - A task mentions Fluent Bit source, tests, plugins, runtime behavior, routing, storage, shutdown, configuration validation, or protocol encoding. - A task asks whether a reported Fluent Bit bug is still present. - A task asks for implementation or review of a Fluent Bit patch. - A task asks for the right focused tests, integration scenarios, or valgrind checks for a touched Fluent Bit component. ## Required Reading Order 1. Read this file. 2. Read `testing.md` before changing behavior or closing out a task. 3. Read `patch-workflow.md` before editing code or reviewing a patch. 4. Read `pipeline-architecture.md` for shared runtime, routing, lifecycle, processor, chunk, task, storage, metrics, retry, or signal-aware changes. 5. Read `subsystem-patterns.md` when the task touches one of the listed recurring areas. ## Operating Principles - Verify the current checkout before patching. A report may already be fixed. - Prefer the repository's existing helpers, source-of-truth resolvers, and local conventions over new parallel logic. - Keep changes scoped to the affected component. Put plugin logic in its plugin directory; shared behavior belongs in `src/`, `include/fluent-bit/`, or `lib/`. - Treat bundled libraries under `lib/` as third-party or separately maintained code unless the path is clearly Fluent Bit-owned. Ask for explicit user confirmation before editing them, using a confirmation popup when available. Keep those edits isolated and upstreamable as focused patches. - Fix shared helper semantics when the bug is in a helper, instead of patching only one visible caller. - Preserve real input paths. If the request asks to enrich or correct an existing path, solve it in the relevant layer instead of faking another input route. - Treat shutdown, architecture-specific failures, memory errors, and route accounting mismatches as real lifecycle problems until traced through the exact failing path. - Separate validated behavior from environment noise. If a focused test passes but a broader legacy suite fails for unrelated reasons, report both signals. ## Standard Commands ```sh cmake -S . -B build -DFLB_TESTS_RUNTIME=On -DFLB_TESTS_INTERNAL=On cmake --build build -j8 ctest --test-dir build --output-on-failure ctest --test-dir build -R <name> --output-on-failure ./build/bin/fluent-bit -c conf/fluent-bit.conf ``` Windows supports runtime-test builds and execution on the latest master revision. Initialize the appropriate MSVC environment, configure runtime tests, and prefer focused targets or CTest matches: ```sh cmake -S . -B build -DFLB_TESTS_RUNTIME=On -DFLB_TESTS_INTERNAL=On cmake --build build --target <flb-rt-target> ctest --test-dir build -R '^<flb-rt-target>$' --output-on-failure ``` The GitHub Actions Windows unit-test matrix executes runtime tests only for x64 to control CI running time. Keep that workflow policy scoped to GitHub Actions; local agents and AI cloud builds should enable and run applicable runtime tests without inheriting the x86/ARM64 CI restriction. For Python integration scenarios: ```sh cd tests/integration && ./setup-venv.sh cd tests/integration && ./run_tests.py --list cd tests/integration && ./run_tests.py ``` ## Close-Out Requirements Final responses for implementation tasks should include: - What changed, with file paths. - The exact verification commands run. - Pass/fail status. - Whether valgrind was used when integration coverage applies. - Any bundled library patch touched, including the upstream project/path and confirmation that the user approved editing it. - Any concrete blocker for required tests that could not run.
View on GitHub