agentleFS
MicrosoftKnown publishermicrosoft/kompli/.github/copilot-instructions.md

kompli

Copilot instructions6 starsChanged 5 months agoMITView on GitHub

Trust these instructions first. Only search the repo if information here is incomplete or found to be incorrect. Kompli is a Linux security compliance engine derived from Azure OSConfig. The repository keeps the ComplianceEngine module and the direct dependencies needed to build, test, package, and fuzz that module. The code is written in C11/C++11, uses CMake and vcpkg, and targets Linux only. Build outputs include build/adapters/mc/complianceengine/libOsConfigResourceComplianceEngine.so and build/modules/bin/complianceengine.so. Tests are registered from the retained common libraries and src/modules/complianceengine/tests/. Some tests…

The file

We split this copilot-instructions.md into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run pre-commit before submitting changes:

    line 65
  2. Distinctive:

    When adding or changing built-in procedures, keep the procedure implementation, schema, tests, and generated procedure map in sync.

    line 91

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Copilot Coding Agent Instructions for kompli

Trust these instructions first. Only search the repo if information here is incomplete or found to be incorrect.

Project Overview

Kompli is a Linux security compliance engine derived from Azure OSConfig. The repository keeps the ComplianceEngine module and the direct dependencies needed to build, test, package, and fuzz that module.

The code is written in C11/C++11, uses CMake and vcpkg, and targets Linux only.

Repository Layout

src/
  CMakeLists.txt                  Root CMake file and build options
  adapters/mc/complianceengine/   Machine Configuration adapter for ComplianceEngine
  common/
    commonutils/                  Shared OS utility functions used by ComplianceEngine
    logging/                      Circular file logging
    mpiclient/                    MPI REST API client used by the MC adapter
    parson/                       Vendored JSON parser
    telemetry/                    Telemetry support used by ComplianceEngine
  modules/
    complianceengine/             ComplianceEngine module and tests
    inc/                          Module interface headers
    mim/                          ComplianceEngine MIM definition
    schema/                       MIM validation schema
  tests/fuzzer/                   ComplianceEngine libFuzzer target
external/vcpkg/                   vcpkg package manager submodule
devops/                           Remaining build, package, and container assets

Build Instructions

Prerequisites

  • CMake >= 3.21
  • GCC or Clang with C11/C++11 support
  • Git submodules initialized with git submodule update --init --recursive
  • VCPKG_ROOT unset, so the project uses external/vcpkg

Clean Build

cmake -S src -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON -DBUILD_TELEMETRY=OFF
cmake --build build --config Release --parallel $(nproc)

Build outputs include build/adapters/mc/complianceengine/libOsConfigResourceComplianceEngine.so and build/modules/bin/complianceengine.so.

Running Tests

ctest --test-dir build --output-on-failure -j$(nproc)

Tests are registered from the retained common libraries and src/modules/complianceengine/tests/. Some tests requiring root or special filesystem permissions are skipped when run as a normal user.

CI Checks

Pull requests run the retained build, formatting, static-analysis, sanitizer, and CodeQL workflows. Use -DBUILD_TELEMETRY=OFF for local builds unless telemetry credentials are intentionally configured.

Formatting and Linting

Run pre-commit before submitting changes:

python3 -m pre_commit run --all-files

The clang-format and clang-tidy hooks focus on ComplianceEngine and telemetry C++ sources.

ComplianceEngine Module

ComplianceEngine evaluates security compliance rules using recursive payloads with logical combinators (allOf, anyOf, not), built-in C++ procedures, and Lua scripts. It supports audit and remediation actions.

Rule payloads are generated by the Compliance Augmentation Engine, which transforms benchmark content into JSON payloads and base64-encodes them into MOF fields consumed by the MC adapter.

Key directories:

src/modules/complianceengine/
  src/lib/              Core engine, evaluator, procedures, and Lua integration
  src/so/               Module shared-object entry point
  src/benchmarkio/      Benchmark-definition parsing + input-file security
  src/kompli/           kompli CLI tool
  src/lua-evaluator/    Lua evaluator tool
  tests/                Unit tests

When adding or changing built-in procedures, keep the procedure implementation, schema, tests, and generated procedure map in sync.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.