Generate, create, or scaffold Ansible playbooks, roles, tasks, handlers, inventory, vars.
中文简介正在准备中。当前显示原文说明。
Validate, lint, audit, or check Fluent Bit configs (INPUT, FILTER, OUTPUT, tag routing).
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Use this skill to run deterministic, repeatable validation for Fluent Bit classic-mode configs.
Use this skill when prompts look like:
fluent-bit.conf before deploy"Run steps in order. Do not skip Stage 0.
Run from skill directory:
cd devops-skills-plugin/skills/fluentbit-validator
Check required and optional binaries:
command -v python3 >/dev/null 2>&1 && echo "python3: available" || echo "python3: missing"
command -v fluent-bit >/dev/null 2>&1 && echo "fluent-bit: available" || echo "fluent-bit: missing (dry-run will be skipped)"
Precheck protocol:
python3 is missing: stop script-based validation, report blocker, and switch to manual config review only.fluent-bit is missing: continue static checks, skip dry-run, and record a Recommendation explaining skip reason and next step.Default command:
python3 scripts/validate_config.py --file <config-file> --check all
Use targeted checks only when requested:
python3 scripts/validate_config.py --file <config-file> --check structure
python3 scripts/validate_config.py --file <config-file> --check sections
python3 scripts/validate_config.py --file <config-file> --check tags
python3 scripts/validate_config.py --file <config-file> --check security
python3 scripts/validate_config.py --file <config-file> --check performance
python3 scripts/validate_config.py --file <config-file> --check best-practices
python3 scripts/validate_config.py --file <config-file> --check dry-run
Strict CI gate (optional):
python3 scripts/validate_config.py --file <config-file> --check all --fail-on-warning
Dry-run command:
fluent-bit -c <config-file> --dry-run
Skip protocol:
fluent-bit is unavailable, do not fail static validation by default.Recommendation: Dry-run skipped because fluent-bit binary is not available in PATH; run dry-run in CI or a Fluent Bit runtime image.python3 scripts/validate_config.py --file <config-file> --check dry-run --require-dry-run
fluent-bit must be reported as Error.Use only when plugin/parameter behavior is unclear after local checks.
Lookup order:
docs.fluentbit.io.Capture only:
Use exactly these severity labels:
ErrorWarningRecommendationDo not introduce alternate labels (Info, Best Practice, Critical, etc.).
Report format:
Validation Report: <config-file>
Error:
- <blocking issue>
Warning:
- <non-blocking risk>
Recommendation:
- <improvement or skipped-step guidance>
Remediation flow:
No-issue fast path:
| Constraint | Behavior |
|---|---|
python3 missing | Stop scripted validator, report blocker as Error, provide manual review-only output. |
fluent-bit missing | Continue static checks, skip dry-run, emit one Recommendation with next step. |
| No network/docs access | Continue local validation, report unknown plugin details as Warning with explicit "doc lookup deferred". |
| User requests report-only | Do not edit files; return findings and rerun command suggestion. |
bash scripts/validate.sh --precheck
python3 scripts/validate_config.py --file tests/valid-basic.conf --check all
fluent-bit unavailable)bash scripts/validate.sh --precheck
python3 scripts/validate_config.py --file tests/invalid-security-issues.conf --check all --json
Expected outcome:
Recommendation.Work is done only when all are true:
Error, Warning, Recommendation.scripts/validate_config.py: main validator.scripts/validate.sh: wrapper and environment precheck helper.tests/*.conf: sample valid/invalid configs.tests/test_validate_config.py: regression coverage for parser and severity behavior.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Generate, create, or scaffold Ansible playbooks, roles, tasks, handlers, inventory, vars.
中文简介正在准备中。当前显示原文说明。
Validate, lint, audit, or debug Ansible playbooks, roles, inventories, FQCN, tasks.
中文简介正在准备中。当前显示原文说明。
Generate/create/scaffold azure-pipelines.yml, stages, jobs, steps, or reusable templates.
中文简介正在准备中。当前显示原文说明。
Validate, lint, audit, or review azure-pipelines.yml — syntax, security, best practices.
中文简介正在准备中。当前显示原文说明。
Create, generate, write, or scaffold bash/shell scripts (.sh), automation, or CLI tools.
中文简介正在准备中。当前显示原文说明。
Validate, lint, audit, or fix bash/shell/.sh scripts via ShellCheck.
中文简介正在准备中。当前显示原文说明。