mirror of
https://github.com/rsyslog/rsyslog.git
synced 2026-05-10 20:50:49 +02:00
Modernize the rsyslog contribution workflow for AI agents to improve policy compliance and reduce instruction verbosity. Impact: Repository-wide reduction in AGENTS.md bloat. Before: Fragmented and redundant procedural instructions in AGENTS.md. After: Modular skills in .agent/skills/ with streamlined subtree guides. This change encapsulates build, test, documentation, module authoring, and commit policies into reusable skills. It introduces: - A specialized AI memory lifecycle auditor. - A boilerplate snippets library. - The 'rsyslog_doc_dist' skill for doc/Makefile.am synchronization. - YAML frontmatter 'triggers' for automatic skill activation. The workflow is further optimized to skip redundant builds after stylistc code formatting, ensuring faster iteration for AI-led development. AI-Agent: Antigravity 2026-01
2.8 KiB
2.8 KiB
AGENTS.md – rsyslog Repository Agent Guide
This file defines the high-level roadmap for AI assistants to understand and contribute to the rsyslog codebase. Technical workflows are now modularized into Skills.
AI Agent Skills
To ensure consistency and high-quality contributions, AI agents SHOULD use the following standardized skills located in .agent/skills/:
| Skill | Purpose |
|---|---|
rsyslog_build |
Environment setup and incremental parallel builds. |
rsyslog_test |
Standardized validation and debugging via diag.sh. |
rsyslog_doc |
Structured, RAG-optimized documentation and metadata. |
rsyslog_doc_dist |
Syncing documentation files in doc/Makefile.am. |
rsyslog_module |
Technical patterns for concurrency and module authoring. |
rsyslog_commit |
Compliant commit messages and branching policies. |
Agent Quick Start: The "Happy Path"
Follow these three steps for a typical development task:
- Build: Use the
rsyslog_buildskill to set up and compile. - Validate: Use the
rsyslog_testskill to run relevant shell tests. - Commit: Use the
rsyslog_commitskill to format code and draft your message.- Tip: You do NOT need to re-run your build/test cycle after formatting if you already validated the code immediately before.
Repository Overview
- Primary Language: C (v8 worker model)
- Architecture: Microkernel core (
runtime/) + Loadable Plugins (plugins/) - Metadata: Every module directory contains
MODULE_METADATA.yaml. - Knowledge Base:
doc/ai/contains canonical patterns for RAG ingestion.
Context Discovery (Subtree Guides)
Each major subtree contains a specialized AGENTS.md that points to area-specific context and requirements:
- Documentation:
doc/AGENTS.md - Core Plugins:
plugins/AGENTS.md - Contrib Modules:
contrib/AGENTS.md - Runtime Core:
runtime/AGENTS.md - Testbench:
tests/AGENTS.md - Built-in Tools:
tools/AGENTS.md
Agent Chat Keywords
SETUP: Triggers thersyslog_buildsetup workflow.BUILD: Triggers thersyslog_buildincremental build workflow.TEST: Triggers thersyslog_testvalidation workflow.SUMMARIZE: Generates PR and commit summaries usingrsyslog_committemplates.FINISH: Final review of code and style before conclusion.
For human-facing guidelines, see CONTRIBUTING.md and DEVELOPING.md.