code-review
Skill21k starsChanged 3 years agoApache-2.0View on GitHub
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
188 other projects use a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- github/spec-kittheir own version, first seen Nov 23, 2026
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- rafaelob/pragmatic-agent-skillstheir own version, first seen Oct 5, 2026
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- dzhng/skillstheir own version, first seen Oct 4, 2026
Who's talking about google/filament
- @romainguy.dev“Android XR was unveiled today! You can download the preview SDK today and start using the Compose and …”Bluesky · Dec 12, 2024 · 131 likes
- godotengine/godot“[DRAFT] A Collection of Scene Shader Fixes”GitHub · Dec 13, 2024 · 44 reactions
- godotengine/godot“Properly conserve energy when calculating ambient lighting.”GitHub · Sep 11, 2026 · 12 reactions
- glfw/glfw“Use sRGB colour space by default on macOS”GitHub · Jul 26, 2025 · 5 reactions
- conan-io/conan-center-index“[request] filament/1.12.0”GitHub · Aug 18, 2021 · 4 reactions
The biggest 5 of 43 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 43
Talked about on GitHub, Bluesky and Hacker News (43 times).
On GitHub · 38
- Dec 13, 2024[DRAFT] A Collection of Scene Shader Fixes — godotengine/godot44 reactions · 4 comments
- Sep 11, 2026Properly conserve energy when calculating ambient lighting. — godotengine/godot12 reactions · 4 comments
- Jul 26, 2025Use sRGB colour space by default on macOS — glfw/glfw5 reactions · 1 comment
- Aug 18, 2021[request] filament/1.12.0 — conan-io/conan-center-index4 reactions · 1 comment
- May 13, 2024Add emissive_exposure_weight to the StandardMaterial — bevyengine/bevy2 reactions · 1 comment
33 more on GitHub
- Jan 15, 2022Use amount and perceptual roughness constants from Filament. — godotengine/godot2 reactions · 12 comments
- Aug 13, 2026📝 Record initial configured-source skill reviews — CypherPoet/custom-agent-skills1 reaction
- Mar 8, 2026TASK-010: Cross-Platform Sample App — matt-goldman/filament1 reaction
- Mar 8, 2026TASK-006: iOS Objective-C++ Wrapper Framework — matt-goldman/filament1 reaction
- Mar 9, 2025Renderer API — google-deepmind/mujoco1 reaction · 13 comments
- Aug 20, 2024volume — galacean/engine1 reaction · 8 comments
- Jun 14, 2024Include extended asset loader android — Fieldwire/filament1 reaction
- May 5, 2024wanted: filament — bazelbuild/bazel-central-registry1 reaction
- Dec 25, 2022The reference information regarding the use of cgltf_load_buffer_base64 is unclear — jkuhlmann/cgltf1 reaction
- Jun 13, 2022Fixed synchronization of 3D scene state and camera frames using Frame.getCameraTextureName — sceneview/sceneview1 reaction
- Apr 8, 2022__Pyx_KwValues_FASTCALL: avoid triggering UB by adding non-zero to NULL (caught by UBSAN nullptr-with-nonzero-offset) — cython/cython1 reaction · 2 comments
- Oct 5, 2021RFC: Renderer Upgrade Project — vircadia/vircadia-native-core1 reaction · 25 comments
- Dec 2, 2020[New Port Request] filament — microsoft/vcpkg1 reaction · 1 comment
- Aug 26, 2020test for triangle winding / mirroring via negative determinant — KhronosGroupArchives/glTF-Sample-Models1 reaction · 3 comments
- Oct 31, 2019Implement physically based rendering (PBR) — OpenXRay/xray-161 reaction · 1 comment
- Mar 20, 2019Feature request: Human friendly Camera API for SceneView — google-ar/sceneform-android-sdk1 reaction · 2 comments
- Feb 18, 2019Add Khronos glTF sample models to fidelity test suite — google/model-viewer1 reaction · 3 comments
- Oct 15, 2018Someone should try making this run on Apple — andrewrk/zig-vulkan-triangle1 reaction · 3 comments
- Oct 23, 2026build(deps): bump the maven group across 1 directory with 20 updates — peo1108/Cam-Kernel-SU0 reactions · 1 comment
- Oct 17, 2026build(deps): bump com.google.android.filament:filament-android from 1.77.0 to 1.77.3 — daanbouwman19/flight-planner-android0 reactions
- Oct 3, 2026build(deps): bump com.google.android.filament:filament-android from 1.77.0 to 1.77.1 — daanbouwman19/flight-planner-android0 reactions · 1 comment
- Sep 28, 2026Bump com.google.android.filament:filament-android from 1.66.0 to 1.77.1 — yossfu/Ephora-Viewer0 reactions
- Sep 28, 2026Bump com.google.android.filament:filament-utils-android from 1.66.0 to 1.77.1 — yossfu/Ephora-Viewer0 reactions · 1 comment
- Sep 26, 2026build(deps): bump com.google.android.filament:filament-android from 1.76.1 to 1.77.0 — daanbouwman19/flight-planner-android0 reactions
- Sep 19, 2026build(deps): bump com.google.android.filament:filament-android from 1.75.1 to 1.76.1 — daanbouwman19/flight-planner-android0 reactions
- Sep 19, 2026Adds OSS-Fuzz project for Google Filament (https://github.com/google/filament). — google/oss-fuzz0 reactions · 2 comments
- Aug 29, 2026build(deps): bump filament from 1.75.0 to 1.75.1 — daanbouwman19/flight-planner-android0 reactions
- Aug 29, 2026Bump the dependencies group with 3 updates — Olsc/Android_ORB-SLAM2s0 reactions · 1 comment
- Aug 22, 2026chore(deps): bump filament from 1.71.5 to 1.75.0 — tianshantingyun/smart-mistake-book0 reactions
- Jun 13, 2026Add filament project — google/oss-fuzz0 reactions · 1 comment
- Mar 16, 2026deps(deps): bump filament_version from 1.68.2 to 1.70.0 — jtakumi/VtuberCamera0 reactions · 1 comment
- Dec 17, 2024Support cuda 12.2 — Open3DV/Open3D0 reactions
- Oct 7, 2024chore(deps): bump filament from `3ca9b9c` to `e9aeb93` — margelo/react-native-filament0 reactions
On Bluesky · 3
- Dec 12, 2024Android XR was unveiled today! You can download the preview SDK today and start using the Compose and Material Design APIs. I'm also… — @romainguy.dev131 likes and reposts · 2 replies
- Dec 3, 2025OpenGL at the moment; via filament (github.com/google/filam...) — @xenoprimate.bsky.social2 likes and reposts · 1 reply
- Aug 21, 2025I didn't write/work on the app, but I'm one of the authors of the 3D engine used by the app (github.com/google/filam...). I would have… — @romainguy.dev1 likes and repost
On Hacker News · 2
- Aug 4, 2018Physically Based Rendering Engine for Android, Windows, Linux and MacOS3 points
- Aug 5, 2018Google/filament: Filament is a physically based rendering engine1 point
Used with
Projects with it also use starter, media-processing and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ww-w-aiSkillstarter
Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).
Also in 4 projects that use this
mrgoonieSkillmedia-processing
Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.
Also in 5 projects that use this
loulanyueSkillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 15 projects that use this
mrgoonieSkillaesthetic
Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.
Also in 4 projects that use this
AWSSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 32 projects that use this
AWSSkillresolving-merge-conflicts
Use when you need to resolve an in-progress git merge/rebase conflict.
Also in 48 projects that use this
- +1 more from mrgoonie
- +2 more from aws
Other versions188 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 188
- mattpocock/skills★ 335ksame name
- microsoft/vscode★ 196ksame name
- github/spec-kit★ 153ksame name
- shareAI-lab/learn-claude-code★ 78ksame name
- github/awesome-copilot★ 40ksame name
- langchain-ai/deepagents★ 30ksame name
- microsoft/vcpkg★ 28ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- Donchitos/Claude-Code-Game-Studios★ 26ksame name
- microsoft/onnxruntime★ 22ksame name
178 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- docs/llms.txtllms.txt
- bindings-synchronizationSkill
- cpp-header-inclusionSkill
- cpp-static-thread-safetySkill
- filament-android-developmentSkill
- filament-build-cleanSkill
- filament-desktop-testingSkill
- header-self-containmentSkill
- preprocessor-guard-hygieneSkill
- verification-protocolsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. 0 are common, 11 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Zero Superficial Feedback: Do not waste review bandwidth on formatting, whitespace, or obvious variable naming unless it actively impairs …
- Very specific: line 18
Cross-Function & State-Machine Tracing: Never review functions in isolation.
- Distinctive: line 19
False-Positive Elimination: Before reporting a finding, attempt to disprove it by searching for compensating synchronization, refcount …
- Distinctive: line 25
Every review must systematically evaluate the change through these six analytical lenses:
- Very specific: line 30
Verify barrier directions: memory_order_release prevents *prior* memory writes from sinking below the release store, but does not prevent …
- Very specific: line 32
Check if condition variable signals (notify_one() / wakeOne()) or waiting loops (wait()) are gated by unlocked relaxed loads (e.g., relaxed …
- Distinctive: line 33
Verify that the happens-before relationship between producer publication and consumer sleep is never bypassed.
- Distinctive: line 36
Ensure that slot identity (e.g., thread ID, generation counter) is re-validated *after* copying payload data, not just the slot state, to …
- Distinctive: line 38
Verify that plain (non-atomic) fields are never read concurrently with plain writes in other threads without a formal synchronization …
- Very specific: line 40
Verify lock acquisition order.
- Very specific: line 44
Check all numeric assignments and casts between types of differing bit widths (e.g., uint32_t $\to$ uint16_t, size_t $\to$ uint32_t).
- Distinctive: line 49
Ensure budget calculations cannot silently drop minimum guarantees (e.g., combined thread limits reducing worker pool size to 0 without …
- Very specific: line 55
Verify that template traits (e.g., SplitterTraits) do not silently ignore legacy interfaces or custom types without a compilation error or …
- Distinctive: line 57
Verify that documented thread-safety guarantees (e.g., "wait-free", "thread-safe for concurrent readers") are actually fulfilled by the …
- Very specific: line 61
Verify that adopted threads or registered slots properly decrement active counters upon exit/emancipation (emancipate()), preventing …
- Very specific: line 63
Ensure captured references ([&]) or raw pointers (this) outlive background job execution.
- Distinctive: line 65
Verify that root jobs / parent structures hold an explicit refcount credit during worker dispatch so refcounts cannot hit zero …
- Distinctive: line 71
Verify that multi-threaded tests genuinely create contention on the guarded path rather than executing deterministically or passing due to …
- Very specific: line 73
Verify new test files are wired into the corresponding CMakeLists.txt.
- Very specific: line 77
When introducing a new capability (e.g., adopted worker threads), verify that all sizing, partitioning, and helper calculations (e.g., …
- Distinctive: line 109
When instructed to review code, a branch, a commit range, or a PR:
- Very specific: line 118
Read the modified files alongside their callers and dependencies using view_file to understand the complete cross-function state machine.
- Distinctive: line 122
Verify every potential finding against the codebase to eliminate false positives.
“Common” is measured: kept by at least 6 in 10 of the 174 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Systems & Concurrency Code Review Protocol
This skill defines the mandatory protocol for conducting rigorous, adversarial code reviews on Filament source code. Standard single-pass reviews focusing on style or superficial idioms are strictly prohibited. Reviews must prioritize correctness, concurrency invariants, memory models, lifecycle safety, API contracts, arithmetic boundaries, and test integrity.
1. Core Review Philosophy
- Adversarial Stance: Assume the code contains subtle race conditions, memory ordering errors, and unhandled edge cases until proven otherwise.
- Zero Superficial Feedback: Do not waste review bandwidth on formatting, whitespace, or obvious variable naming unless it actively impairs correctness or violates CODE_STYLE.md.
- Cross-Function & State-Machine Tracing: Never review functions in isolation. Concurrency bugs (e.g., lost wakeups, ABA races) live at the intersection of multiple functions (e.g.,
put(),wakeOne(),waitForWork(),loop()). Trace full execution state machines across caller/callee boundaries. - False-Positive Elimination: Before reporting a finding, attempt to disprove it by searching for compensating synchronization, refcount credits, or structural invariants elsewhere in the file or call chain.
2. Mandatory Analytical Lenses (The 6 Pillars)
Every review must systematically evaluate the change through these six analytical lenses:
Pillar 1: Concurrency, Synchronization & Memory Models
- Atomic Memory Ordering & Barrier Direction:
- Inspect every
std::atomicoperation and itsstd::memory_order(relaxed,acquire,release,acq_rel,seq_cst). - Verify barrier directions:
memory_order_releaseprevents prior memory writes from sinking below the release store, but does not prevent subsequent non-atomic writes from floating above it.memory_order_acquireprevents subsequent reads from floating above the acquire load, but does not protect prior reads.
- Inspect every
- Lost Wakeups & Condition Variable Invariants:
- Check if condition variable signals (
notify_one()/wakeOne()) or waiting loops (wait()) are gated by unlocked relaxed loads (e.g., relaxed check of waiter counts). - Verify that the happens-before relationship between producer publication and consumer sleep is never bypassed.
- Check if condition variable signals (
- ABA, Slot-Reuse & Torn Reads:
- In wait-free, lock-free, or seqlock data structures, trace multi-step read-then-validate patterns.
- Ensure that slot identity (e.g., thread ID, generation counter) is re-validated after copying payload data, not just the slot state, to prevent returning payload data read during an erase/re-emplace.
- Data Races in Lock-Free / Wait-Free APIs:
- Verify that plain (non-atomic) fields are never read concurrently with plain writes in other threads without a formal synchronization barrier.
- Deadlock & Lock Invariants:
- Verify lock acquisition order. Ensure code uses
utils::Mutex/utils::ConditionwithLockGuard constas mandated by skills/cpp_static_thread_safety.
- Verify lock acquisition order. Ensure code uses
Pillar 2: Arithmetic, Narrowing & Numerical Boundaries
- Integer Truncation & Narrowing Conversions:
- Check all numeric assignments and casts between types of differing bit widths (e.g.,
uint32_t$\to$uint16_t,size_t$\to$uint32_t). - Determine what happens when values equal or exceed the narrower type's capacity (e.g., exact multiples of 65,536 truncating to 0 and inducing infinite loops).
- Check all numeric assignments and casts between types of differing bit widths (e.g.,
- Boundary Conditions:
- Evaluate behavior at
count == 0,count == 1, $2^{16}$, $2^{32}$,INT_MAX, and overflow/underflow points.
- Evaluate behavior at
- Resource & Pool Budgets:
- Ensure budget calculations cannot silently drop minimum guarantees (e.g., combined thread limits reducing worker pool size to 0 without assertion or fallback).
Pillar 3: API Contracts & Behavioral Deltas
- Semantic Regressions:
- Compare old vs. new contracts. Did zero-sized inputs (
count == 0), empty containers, or null arguments change behavior (e.g., skipping a functor that previously ran once)?
- Compare old vs. new contracts. Did zero-sized inputs (
- Trait Specializations & SFINAE / Concepts:
- Verify that template traits (e.g.,
SplitterTraits) do not silently ignore legacy interfaces or custom types without a compilation error or fallback.
- Verify that template traits (e.g.,
- Doc-Comment vs. Reality:
- Verify that documented thread-safety guarantees (e.g., "wait-free", "thread-safe for concurrent readers") are actually fulfilled by the implementation.
Pillar 4: Object Lifetime, Teardown & RAII
- Thread Lifecycle & Cleanup:
- Verify that adopted threads or registered slots properly decrement active counters upon exit/emancipation (
emancipate()), preventing capacity degradation.
- Verify that adopted threads or registered slots properly decrement active counters upon exit/emancipation (
- Asynchronous Lambda Captures:
- Ensure captured references (
[&]) or raw pointers (this) outlive background job execution.
- Ensure captured references (
- Refcount Draining & Destruction Races:
- Verify that root jobs / parent structures hold an explicit refcount credit during worker dispatch so refcounts cannot hit zero mid-execution on worker failure.
Pillar 5: Test Integrity & False-Pass Audits
- Tautological Assertions:
- Inspect test assertions to ensure they are not tautologies (e.g., assertions that can never evaluate to false).
- Concurrency Stress & Race Coverage:
- Verify that multi-threaded tests genuinely create contention on the guarded path rather than executing deterministically or passing due to timing coincidence.
- Build Wiring:
- Verify new test files are wired into the corresponding
CMakeLists.txt.
- Verify new test files are wired into the corresponding
Pillar 6: Architectural Completeness & Scaling
- Feature Completeness:
- When introducing a new capability (e.g., adopted worker threads), verify that all sizing, partitioning, and helper calculations (e.g.,
parallel_forhelper job counts) scale with the new capability rather than only querying legacy state.
- When introducing a new capability (e.g., adopted worker threads), verify that all sizing, partitioning, and helper calculations (e.g.,
3. Standard Review Output Format
Reviews must be structured using the following format:
<File Path>
- <line> [<category>] <Concise finding description detailing the exact failure mechanism.>
...
Review Summary:
- **The Blocker**: Identify the single most critical blocking issue, explaining the thread interleaving or failure sequence.
- **Intent vs. Code**: Assess whether the PR achieves its architectural goals and note any systematic omissions.
- **Explicitly Checked & Ruled Out**: List non-obvious complex areas investigated and verified as safe/correct (proves thorough inspection and eliminates false positives).
- **Minor Cleanups**: Note dead code, minor un-decremented tracking counters, or triplicated logic below the blocking finding bar.Category Tags:
[correctness]— Logic errors, data races, memory ordering bugs, lost wakeups, narrowing bugs, crashes.[efficiency]— Scaling bottlenecks, false sharing, unnecessary allocations, missed parallelism.[api-contract]— Broken traits, dropped interface support, violated preconditions/postconditions.[behavior-change]— Silent changes to edge-case behavior (e.g.,count == 0).[test-coverage]— Tautological tests, missing failure checks, unwired tests.
4. Review Execution Workflow for AI Agents
When instructed to review code, a branch, a commit range, or a PR:
- Discover Changes:
git diff <base_branch>...<target_branch> # or git log -n <count> --stat - Read Related Context:
Read the modified files alongside their callers and dependencies using
view_fileto understand the complete cross-function state machine. - Execute the 6 Analytical Pillars: Systematically audit the diff against each pillar.
- Draft & Filter Findings: Verify every potential finding against the codebase to eliminate false positives.
- Format Report: Output the structured findings following the format in Section 3.
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
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.

