Back to list
OxisIndustries

modern-c

by OxisIndustries

Fully AI Driven codebase for rendering

0🍴 0📅 Jan 21, 2026

SKILL.md


name: Modern C++ description: Standards for using C++23 features in the codebase

Modern C++ Skill

The AstralRenderer project targets C++23. All new code must adhere to modern standards.

Core Features

1. Standard Library

  • std::expected: Use for error handling instead of output parameters or exceptions where appropriate.
  • std::span: Use for contiguous memory access instead of raw pointer + size.
  • std::string_view: Use for read-only string arguments.
  • Modules: (If enabled) Prefer standard imports; otherwise use standard #include.

2. Smart Pointers

  • Ownership: default to std::unique_ptr for exclusive ownership.
  • Sharing: Use std::shared_ptr ONLY when ownership is truly shared (e.g., Resources used by multiple scenes).
  • Raw Pointers: Use ONLY for non-owning views (observers). Never delete a raw pointer.

3. Algorithms & Ranges

Use std::ranges for cleaner loop logic.

Preferred:

std::ranges::for_each(items, [](auto& item) { item.update(); });

Avoid:

for (auto it = items.begin(); it != items.end(); ++it) { ... }

4. Lambdas

Use captures carefully. Prefer [&] only in short-lived local scopes (like RenderGraph callbacks). explicit captures [this] or [var] are preferred for longer scopes.

5. Formatting

  • Indentation: 4 spaces.
  • Braces: Same line for functions/classes/control structures (K&R style variation or Allman depending on project .clang-format, check existing files). (Note: Check .clang-format if available, otherwise match surrounding code).

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon