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

DirectXTK

Copilot instructions2.9k starsChanged 4 months agoMITView on GitHub

These instructions define how GitHub Copilot should assist with this project. The goal is to ensure consistent, high-quality code generation aligned with our conventions, stack, and best practices. - Code Style: The project uses an .editorconfig file to enforce coding standards. Follow the rules defined in .editorconfig for indentation, line endings, and other formatting. Additional information can be found on the wiki at Implementation. The library's public API requires C++11, and the project builds with C++17 (CMAKE_CXX_STANDARD 17). The command-line…

Trending

Quiet since August.about the whole repository

Dec 2025: 1 mentionJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 1 mentionMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 2 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/DirectXTK repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/DirectXTK

The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 15

Talked about on GitHub, Hacker News and Bluesky (15 times).

On GitHub · 13

8 more on GitHub

On Hacker News · 1

The file

Show its rules and text

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

40 rules. About 0 are common, 24 are distinctive, and 16 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈24

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 16

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Error Handling: Use C++ exceptions for error handling and use RAII smart pointers to ensure resources are properly managed.

    line 25
  2. Distinctive:

    Use RAII for all resource ownership (memory, file handles, etc.).

    line 54
  3. Very specific:

    Use std::unique_ptr for exclusive ownership and std::shared_ptr for shared ownership.

    line 56
  4. Very specific:

    Use Microsoft::WRL::ComPtr for COM object management.

    line 57
  5. Very specific:

    Use 16-byte alignment (_aligned_malloc / _aligned_free) to support SIMD operations in the implementation, but do not expose this …

    line 63
  6. Very specific:

    All implementation .cpp files include pch.h as their first include (precompiled header).

    line 64
  7. Very specific:

    Use static constexpr for class-scope constants (e.g., static constexpr int MaxDirectionalLights = 3;, static constexpr unsigned int …

    line 67
  8. Very specific:

    All public API functions must use SAL annotations on every parameter.

    line 74
  9. Very specific:

    All public free functions use __cdecl explicitly for ABI stability.

    line 117
  10. Very specific:

    All public function declarations are prefixed with DIRECTX_TOOLKIT_API, which wraps __declspec(dllexport) / __declspec(dllimport) or the …

    line 119
  11. Very specific:

    When importing DLL classes under MSVC, headers suppress warnings C4251 and C4275 via #pragma warning(disable : 4251 4275) inside a #if …

    line 121
  12. Very specific:

    All query and utility functions that cannot fail are marked noexcept.

    line 125
  13. Very specific:

    All HRESULT-returning I/O and processing functions are also noexcept — errors are communicated via return code, never via exceptions.

    line 126
  14. Very specific:

    Avoid macros for constants—prefer constexpr or inline const.

    line 167
  15. Very specific:

    Avoid using using namespace in header files to prevent polluting the global namespace.

    line 169
  16. Very specific:

    Don't use [[deprecated]] or __declspec(deprecated) attributes.

    line 170
  17. Very specific:

    Every source file (.cpp, .h, .hlsl, .fx, etc.) must begin with this block:

    line 186
  18. Very specific:

    Use CompileShaders.cmd in Src/Shaders/ to regenerate the .inc files.

    line 211
  19. Distinctive:

    Only document features, patterns, and decisions that are explicitly present in the source code.

    line 239
  20. Distinctive:

    Only include configurations and requirements that are clearly specified.

    line 240
  21. Distinctive:

    Do not make assumptions about implementation details.

    line 241
  22. Distinctive:

    Ask the user questions to gather missing information.

    line 245
  23. Distinctive:

    Document gaps in current implementation or specifications.

    line 246
  24. Distinctive:

    Always cite the specific source file and line numbers for documented features.

    line 251
  25. Distinctive:

    Remove any speculative content.

    line 258
  26. Distinctive:

    Ensure all documentation is verifiable against the current state of the codebase.

    line 259
  27. Distinctive:

    Use these established guards — do not invent new ones:

    line 272
  28. Distinctive:

    When reviewing code, focus on the following aspects:

    line 299
  29. Distinctive:

    Ensure that all public functions and classes are covered by unit tests located on GitHub where applicable.

    line 309
  30. Distinctive:

    Check for performance implications, especially in geometry processing algorithms.

    line 310
  31. Distinctive:

    When reviewing documentation, do the following:

    line 315
  32. Distinctive:

    Read the code located in this git repository in the main branch.

    line 317
  33. Distinctive:

    Read the documentation on the wiki located in this git repository.

    line 319
  34. Distinctive:

    Don't fix pre-existing issues unrelated to your task.

    line 325
  35. Distinctive:

    Update documentation if it is directly related to the changes you are making.

    line 326
  36. Distinctive:

    Always validate that your changes don't break existing behavior.

    line 327
  37. Distinctive:

    Only run linters, builds and tests that already exist.

    line 331
  38. Distinctive:

    Use the smallest targeted test, build, or lint command that covers the changed behavior.

    line 332
  39. Distinctive:

    Prefer ecosystem tools (package managers, scaffolding, refactoring tools, linters) over manual changes.

    line 337
  40. Distinctive:

    Only comment code that needs a bit of clarification.

    line 342

≈ “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

GitHub Copilot Instructions

These instructions define how GitHub Copilot should assist with this project. The goal is to ensure consistent, high-quality code generation aligned with our conventions, stack, and best practices.

Context

  • Project Type: Graphics Library / DirectX / Direct3D 11 / Game Audio
  • Project Name: DirectX Tool Kit for DirectX 11
  • Language: C++
  • Framework / Libraries: STL / CMake / CTest
  • Architecture: Modular / RAII / OOP

Getting Started

  • See the tutorial at Getting Started.
  • The recommended way to integrate DirectX Tool Kit for DirectX 11 into your project is by using the vcpkg Package Manager. See d3d11game_vcpkg for a template which uses VCPKG.
  • You can make use of the nuget.org packages directxtk_desktop_win10 or directxtk_uwp.
  • You can also use the library source code directly in your project or as a git submodule.

General Guidelines

  • Code Style: The project uses an .editorconfig file to enforce coding standards. Follow the rules defined in .editorconfig for indentation, line endings, and other formatting. Additional information can be found on the wiki at Implementation. The library's public API requires C++11, and the project builds with C++17 (CMAKE_CXX_STANDARD 17). The command-line tools also use C++17, including <filesystem> for long file path support. This code is designed to build with Visual Studio 2022, Visual Studio 2026, clang for Windows v12 or later, or MinGW 12.2.

Notable .editorconfig rules: C/C++ and HLSL files use 4-space indentation, crlf line endings, and latin1 charset — avoid non-ASCII characters in source files. HLSL files have separate indent/spacing rules defined in .editorconfig.

  • Documentation: The project provides documentation in the form of wiki pages available at Documentation.
  • Error Handling: Use C++ exceptions for error handling and use RAII smart pointers to ensure resources are properly managed. For some functions that return HRESULT error codes, they are marked noexcept, use std::nothrow for memory allocation, and should not throw exceptions.
  • Testing: Unit tests for this project are implemented in this repository Test Suite and can be run using CTest per the instructions at Test Documentation. See test copilot instructions for additional information on the tests.
  • Security: This project uses secure coding practices from the Microsoft Secure Coding Guidelines, and is subject to the SECURITY.md file in the root of the repository. Functions that read input from image files, geometry files, and audio files are subject to OneFuzz fuzz testing to ensure they are secure against malformed files.
  • Dependencies: The project uses CMake and VCPKG for managing dependencies, making optional use of DirectXMath, GameInput, and XAudio2Redist. The project can be built without these dependencies, relying on the Windows SDK for core functionality. CMake build options include BUILD_GAMEINPUT, BUILD_WGI, and BUILD_XINPUT for alternative input backends.
  • Continuous Integration: This project implements GitHub Actions for continuous integration, ensuring that all code changes are tested and validated before merging. This includes building the project for a number of configurations and toolsets, running a subset of unit tests, and static code analysis including GitHub super-linter, CodeQL, and MSVC Code Analysis.
  • Code of Conduct: The project adheres to the Microsoft Open Source Code of Conduct. All contributors are expected to follow this code of conduct in all interactions related to the project.

File Structure

.azuredevops/   # Azure DevOps pipeline configuration and policy files.
.github/        # GitHub Actions workflow files and linter configuration files.
.nuget/         # NuGet package configuration files.
build/          # Miscellaneous build files and scripts.
Audio/          # DirectX Tool Kit for Audio implementation files.
Inc/            # Public header files.
Src/            # Implementation header and source files.
  Shaders/      # HLSL shader files.
MakeSpriteFont/ # C# CLI tool for capturing sprite fonts.
XWBTool/        # C++ CLI tool for creating XACT-style wave banks.
skills/         # Published CoPilot skills for use by developers.
Tests/          # Tests are designed to be cloned from a separate repository at this location.
wiki/           # Local clone of the GitHub wiki documentation repository.

Patterns

Patterns to Follow

  • Use RAII for all resource ownership (memory, file handles, etc.).
  • Many classes utilize the pImpl idiom to hide implementation details, and to enable optimized memory alignment in the implementation.
  • Use std::unique_ptr for exclusive ownership and std::shared_ptr for shared ownership.
  • Use Microsoft::WRL::ComPtr for COM object management.
  • Make use of anonymous namespaces to limit scope of functions and variables.
  • Make use of assert for debugging checks, but be sure to validate input parameters in release builds.
  • Make use of the DebugTrace helper to log diagnostic messages, particularly at the point of throwing an exception.
  • Explicitly = delete copy constructors and copy-assignment operators on all classes that use the pImpl idiom.
  • Explicitly utilize = default or = delete for copy constructors, assignment operators, move constructors and move-assignment operators where appropriate.
  • Use 16-byte alignment (_aligned_malloc / _aligned_free) to support SIMD operations in the implementation, but do not expose this requirement in public APIs.
  • All implementation .cpp files include pch.h as their first include (precompiled header). MinGW builds skip precompiled headers.
  • Model and related classes require RTTI (/GR on MSVC, __GXX_RTTI on GCC/Clang). The CMake build enables /GR automatically; do not disable RTTI when using Model.
  • Many public headers use inline namespace DX11 inside namespace DirectX to disambiguate from DirectX Tool Kit for DirectX 12 types when both libraries are used together. This is usually indicated when parameters use ID3D11Device or ID3D11DeviceContext types. Follow this pattern for new headers that have Direct3D 11-specific types in the public API.
  • Use static constexpr for class-scope constants (e.g., static constexpr int MaxDirectionalLights = 3;, static constexpr unsigned int InputElementCount = 1;). SimpleMath types use constexpr constructors for compile-time initialization.
  • Functions that load data from memory (texture loaders, Model) provide both const uint8_t* and const std::byte* overloads. When adding new memory-buffer APIs, provide both overload variants. The const std::byte * overloads are guarded by #ifdef __cpp_lib_byte to maintain compatibility with older C++ standards.
  • Each public header wraps the DIRECTX_TOOLKIT_API macro definition in #ifndef DIRECTX_TOOLKIT_API so it is only defined once. Follow this guard pattern when adding new headers.
  • Headers use #pragma comment(lib, ...) under _MSC_VER to auto-link platform libraries (e.g., gameinput.lib, xinput.lib, runtimeobject.lib). Follow this pattern for new platform library dependencies.

SAL Annotations

All public API functions must use SAL annotations on every parameter. Use _Use_decl_annotations_ at the top of each implementation that has SAL in the header declaration — never repeat the annotations in the .cpp or .inl file.

Common annotations:

AnnotationMeaning
_In_Input parameter
_Out_Output parameter
_Inout_Bidirectional parameter
_In_reads_bytes_(n)Input buffer with byte count
_In_reads_(n)Input array with element count
_In_z_Null-terminated input string
_In_opt_Optional input parameter (may be null)
_Out_opt_Optional output parameter
_COM_Outptr_Output COM interface

Example:

// Header (BufferHelpers.h)
DIRECTX_TOOLKIT_API
    HRESULT __cdecl CreateStaticBuffer(
        _In_ ID3D11Device* device,
        _In_reads_bytes_(count* stride) const void* ptr,
        size_t count,
        size_t stride,
        unsigned int bindFlags,
        _COM_Outptr_ ID3D11Buffer** pBuffer) noexcept;

// Implementation (.cpp)
_Use_decl_annotations_
HRESULT DirectX::CreateStaticBuffer(
    ID3D11Device* device,
    const void* ptr,
    size_t count,
    size_t stride,
    unsigned int bindFlags,
    ID3D11Buffer** pBuffer) noexcept
{ ... }

Calling Convention and DLL Export

  • All public free functions use __cdecl explicitly for ABI stability.
  • Functions that take XMVECTOR, FXMVECTOR, or XMMATRIX parameters use XM_CALLCONV instead of __cdecl to enable efficient SIMD register passing. This is the DirectXMath calling convention and is used extensively in SpriteBatch, SpriteFont, Effects, Model, GeometricPrimitive, and VertexTypes.
  • All public function declarations are prefixed with DIRECTX_TOOLKIT_API, which wraps __declspec(dllexport) / __declspec(dllimport) or the GCC __attribute__ equivalent when using BUILD_SHARED_LIBS in CMake. The underlying macros are DIRECTX_TOOLKIT_EXPORT (for building the library) and DIRECTX_TOOLKIT_IMPORT (for consuming it).
  • For free functions, DIRECTX_TOOLKIT_API appears on the line above the return type. For inner classes and interfaces, the macro is placed inline: class DIRECTX_TOOLKIT_API ClassName.
  • When importing DLL classes under MSVC, headers suppress warnings C4251 and C4275 via #pragma warning(disable : 4251 4275) inside a #if defined(DIRECTX_TOOLKIT_IMPORT) && defined(_MSC_VER) guard.

noexcept Rules

  • All query and utility functions that cannot fail are marked noexcept.
  • All HRESULT-returning I/O and processing functions are also noexcept — errors are communicated via return code, never via exceptions.
  • Constructors and functions that perform heap allocation or utilize Standard C++ containers that may throw are marked noexcept(false).

Enum Flags Pattern

Flags enums follow this pattern — a uint32_t-based unscoped enum with a _DEFAULT = 0 base case, followed by a call to DEFINE_ENUM_FLAG_OPERATORS to enable |, &, and ~ operators:

  enum DDS_LOADER_FLAGS : uint32_t
  {
      DDS_LOADER_DEFAULT = 0,
      DDS_LOADER_FORCE_SRGB = 0x1,
      DDS_LOADER_IGNORE_SRGB = 0x2,
      DDS_LOADER_IGNORE_MIPS = 0x20,
  };

DEFINE_ENUM_FLAG_OPERATORS(DDS_LOADER_FLAGS);

See this blog post for more information on this pattern.

Clang Diagnostic Pragmas

Headers that trigger Clang warnings use paired #pragma clang diagnostic push/pop blocks under #ifdef __clang__ to suppress specific diagnostics. Common suppressions include -Wunsafe-buffer-usage, -Wfloat-equal, and -Wunknown-warning-option. Follow this pattern when adding code that legitimately triggers Clang-specific warnings:

#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
#endif

// ... code ...

#ifdef __clang__
#pragma clang diagnostic pop
#endif

Patterns to Avoid

  • Don’t use raw pointers for ownership.
  • Avoid macros for constants—prefer constexpr or inline const.
  • Don’t put implementation logic in header files unless using templates, although the SimpleMath library does use an .inl file for performance.
  • Avoid using using namespace in header files to prevent polluting the global namespace.
  • Don't use [[deprecated]] or __declspec(deprecated) attributes. Feature retirement is communicated via CHANGELOG.md notes, not in-source deprecation markers.

Naming Conventions

ElementConventionExample
Classes / structsPascalCaseVertexPosition
Public functionsPascalCase + __cdecl or XM_CALLCONVComputeDisplayArea
Private data membersm_ prefixm_count
Static constexpr membersc_ prefix (camelCase) or PascalCasec_MostRecent, MaxDirectionalLights
Enum type namesUPPER_SNAKE_CASEDDS_LOADER_FLAGS
Enum valuesUPPER_SNAKE_CASEDDS_LOADER_DEFAULT
FilesPascalCaseScreenGrab.h, SpriteEffect.fx

File Header Convention

Every source file (.cpp, .h, .hlsl, .fx, etc.) must begin with this block:

//--------------------------------------------------------------------------------------
// File: {FileName}
//
// {One-line description}
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
//
// https://go.microsoft.com/fwlink/?LinkId=248929
//--------------------------------------------------------------------------------------

Section separators within files use:

  • Major sections: //--------------------------------------------------------------------------------------
  • Subsections: //----------------------------------------------------------------------------------

The project does not use Doxygen. API documentation is maintained exclusively on the GitHub wiki.

HLSL Shader Compilation

Shaders in Src/Shaders/ are compiled with FXC, producing embedded C++ header files (.inc):

  • Use CompileShaders.cmd in Src/Shaders/ to regenerate the .inc files.
  • The CMake option USE_PREBUILT_SHADERS=ON skips shader compilation and uses pre-built .inc files; requires COMPILED_SHADERS variable to be set.

References

No speculation

When creating documentation:

Document Only What Exists

  • Only document features, patterns, and decisions that are explicitly present in the source code.
  • Only include configurations and requirements that are clearly specified.
  • Do not make assumptions about implementation details.

Handle Missing Information

  • Ask the user questions to gather missing information.
  • Document gaps in current implementation or specifications.
  • List open questions that need to be addressed.

Source Material

  • Always cite the specific source file and line numbers for documented features.
  • Link directly to relevant source code when possible.
  • Indicate when information comes from requirements vs. implementation.

Verification Process

  • Review each documented item against source code whenever related to the task.
  • Remove any speculative content.
  • Ensure all documentation is verifiable against the current state of the codebase.

Cross-platform Support Notes

  • The code targets Win32 desktop applications for Windows 8.1 or later, legacy Xbox One XDK, and Universal Windows Platform (UWP) apps for Windows 10 and Windows 11.
  • Portability and conformance of the code are validated by building with Visual C++, clang/LLVM for Windows, and MinGW.
  • For PC development using the Microsoft GDK, the project provides MSBuild solution DirectXTK_GDKW_2022.sln for the x64 or ARM64 architectures.
  • The MSBuild solution DirectXTK_GDK_2022.sln is for Microsoft GDK with Xbox Extensions development for PC using the legacy Gaming.Desktop.x64 custom platform. There is no support for the Gaming.Xbox.*.x64 custom platforms since they do not support DirectX 11.
  • The project ships MSBuild projects for Visual Studio 2022 (.sln / .vcxproj) and Visual Studio 2026 (.slnx / .vcxproj). VS 2019 projects have been retired.
  • The CMake build supports legacy Xbox One XDK via the XBOX_CONSOLE_TARGET variable (durango). Xbox Series X|S (scarlett) and Xbox One (xboxone) via the Microsoft GDK with Xbox Extensions only support DirectX 12, so this version of the library cannot support those platforms.

Platform and Compiler #ifdef Guards

Use these established guards — do not invent new ones:

GuardPurpose
_WIN32Windows platform (desktop, UWP, Xbox)
_GAMING_XBOXXbox platform (GDK - covers both Xbox One and Xbox Series X|S)
_GAMING_XBOX_SCARLETTXbox Series X|S (GDK with Xbox Extensions)
_GAMING_XBOX_XBOXONEXbox One (GDK with Xbox Extensions)
_GAMING_DESKTOPGaming desktop platform (GDK); used for GRDK edition version checks
_XBOX_ONE && _TITLELegacy Xbox One XDK
_MSC_VERMSVC-specific (and MSVC-like clang-cl) pragmas and warning suppression
__clang__Clang/LLVM diagnostic suppressions
__MINGW32__MinGW compatibility headers
__GNUC__MinGW/GCC DLL attribute equivalents
_M_ARM64 / _M_X64 / _M_IX86Architecture-specific code paths for MSVC (#ifdef)
_M_ARM64ECARM64EC ABI (ARM64 code with x64 interop) for MSVC
__aarch64__ / __x86_64__ / __i386__Additional architecture-specific symbols for MinGW/GNUC (#if)
USING_GAMEINPUTGameInput API for GamePad, Keyboard, Mouse
USING_WINDOWS_GAMING_INPUTWindows.Gaming.Input API for GamePad
USING_XINPUTXInput API for GamePad
USING_COREWINDOWCoreWindow-based input (UWP) for Keyboard, Mouse
GAMEINPUT_API_VERSIONGameInput SDK version detection for API-level feature checks

_M_ARM / __arm__ is legacy 32-bit ARM which is deprecated.

Code Review Instructions

When reviewing code, focus on the following aspects:

  • Adherence to coding standards defined in .editorconfig and on the wiki.
  • Make coding recommendations based on the C++ Core Guidelines.
  • Proper use of RAII and smart pointers.
  • Correct error handling practices and C++ Exception safety.
  • Clarity and maintainability of the code.
  • Adequate comments where necessary.
  • Public interfaces located in Inc\*.h should be clearly defined and documented on the GitHub wiki.
  • Compliance with the project's architecture and design patterns.
  • Ensure that all public functions and classes are covered by unit tests located on GitHub where applicable. Report any gaps in test coverage.
  • Check for performance implications, especially in geometry processing algorithms.
  • Provide brutally honest feedback on code quality, design, and potential improvements as needed.

Documentation Review Instructions

When reviewing documentation, do the following:

  • Read the code located in this git repository in the main branch.
  • Review the public interface defined in the Inc folder.
  • Read the documentation on the wiki located in this git repository.
  • Report any specific gaps in the documentation compared to the public interface.

Code Change Rules

  • Make precise, surgical changes that fully address the request. Don't modify unrelated code, but ensure changes are complete and correct.
  • Don't fix pre-existing issues unrelated to your task. However, if you discover bugs directly caused by or tightly coupled to the code you're changing, fix those too.
  • Update documentation if it is directly related to the changes you are making.
  • Always validate that your changes don't break existing behavior.

Linting, Building, Testing

  • Only run linters, builds and tests that already exist. Do not add new linting, building or testing tools unless necessary for the task.
  • Use the smallest targeted test, build, or lint command that covers the changed behavior. When related targeted selectors use the same runner, include them in one invocation; escalate to full-suite or baseline runs only when targeted validation shows they are needed.
  • Documentation changes do not need to be linted, built or tested unless there are specific tests for documentation.

Using Ecosystem Tools

  • Prefer ecosystem tools (package managers, scaffolding, refactoring tools, linters) over manual changes.
  • Install packages only when changing dependencies or after a missing-dependency failure.

Code Commenting Style

  • Only comment code that needs a bit of clarification. Do not comment otherwise.

Release Process

The release process is documented in the release skill. Invoke the release skill for step-by-step guidance when performing a release.

CoPilot Skills

The project includes published CoPilot skills for developers:

  • Release-Process: Guide for performing the DirectX Tool Kit release process. Invoked when asked to help with releasing a new version, publishing packages, or updating ports. See Release Process skill for details.
  • directxtk-usage: Provides usage guidance for the DirectX Tool Kit for DX11 library. Located in the skills/directxtk-usage/ directory.
  • directxtk-tutorial: Provides an interactive tutorial which can create a project, add the toolkit, and implement features in a step-by-step fashion. Located in the skills/directxtk-tutorial directory.

To use these skills in the Copilot CLI:

/skills list
/skills search directxtk

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.