Toolverse
All skills

rsyslog-module

by rsyslog

Encodes technical requirements for rsyslog modules, including concurrency, metadata, and initialization.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
rsyslog
Category
Security
Views
1

About this skill

Encodes technical requirements for rsyslog modules, including concurrency, metadata, and initialization.

How to use

  1. Zapoznaj się z regułą "Belt and Suspenders" – każdy dostęp do stanu współdzielonego (pData) musi być chroniony asercją i warunkiem if, aby obsłużyć błędy gracefully w wysokowspółbieżnym modelu worker'ów rsyslog v8.

  2. Rozróżnij stan współdzielony od per-worker'a: pData zawiera mutable state dostępny dla wszystkich worker'ów i musi być chroniony mutexem, natomiast wrkrInstanceData_t nigdy nie powinno być współdzielone między worker'ami.

  3. Zaimplementuj standardowe punkty wejścia modułu: modInit() do inicjalizacji danych statycznych i rejestracji interfejsów, modExit() do finalizacji i czyszczenia, oraz beginTransaction() i commitTransaction() dla efektywnego batch'owania outputu.

  4. Dodaj blok nagłówka "Concurrency & Locking" do każdego modułu output'u, aby dokumentować strategię synchronizacji i typ stanu.

  5. Utrzymuj spójność metadanych: utwórz lub zaktualizuj MODULE_METADATA.yaml w katalogu modułu i synchronizuj zmiany dotyczące locking'u i współbieżności z doc/ai/module_map.yaml.

  6. Skonfiguruj build: zaktualizuj plugins/Makefile.am i configure.ac przy dodawaniu nowych modułów, użyj makr z runtime/module-template.h (np. MODULE_TYPE(eMOD_OUT)), i postępuj zgodnie z wzorcem "Define at Top, Distribute Unconditionally, Register Conditionally" w tests/Makefile.am, aby zapewnić poprawność make distcheck.

Related skills

openapi-spec-generation

by wshobson

Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.

Security
18109

youtube-watcher

by openclaw

Fetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.

Security
2231

architect-review

by sickn33

Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural

Security
2773

software-security

by project-codeguard

A software security skill that integrates with Project CodeGuard to help AI coding agents write secure code and prevent common vulnerabilities. Use this skill when writing, reviewing, or modifying code to ensure secure-by-default practices are followed.

Security
1678

brand-voice

by anthropics

Apply and enforce brand voice, style guide, and messaging pillars across content. Use when reviewing content for brand consistency, documenting a brand voice, adapting tone for different audiences, or checking terminology and style guide compliance.

Security
48158

zendesk

by vm0-ai

Zendesk Support REST API for managing tickets, users, organizations, and support operations. Use this skill to create tickets, manage users, search, and automate customer support workflows.

Security
11100