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

gctoolkit

Copilot instructions1.3k starsChanged 12 months agoMITView on GitHub

Trending

Quiet this year.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/gctoolkit repository that our weekly crawl found: only 1 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about microsoft/gctoolkit

The biggest 1 of 1 mention linking to the repository that our crawl found. Each line is their own headline.

The file

Show its rules and text

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow standard Java naming conventions

    line 29
  2. Distinctive:

    Use proper JavaDoc for public APIs

    line 30
  3. Distinctive:

    Use logging with java.util.logging

    line 32
  4. Distinctive:

    Use Promise/Future patterns for asynchronous operations with Vert.x

    line 34
  5. Distinctive:

    Use Vert.x deployVerticle for async operations

    line 51
  6. Distinctive:

    Use java.util.logging.Logger for logging

    line 55
  7. Distinctive:

    Use Verticles for isolated processing units

    line 60
  8. Distinctive:

    Use the event bus for inter-verticle communication

    line 62
  9. Very specific:

    Test GC log files are stored in gclogs/ with organized subdirectories

    line 69
  10. Very specific:

    Use the Maven Wrapper (i.e., mvnw)

    line 74
  11. Distinctive:

    Keep dependencies up to date, unless you see a comment saying why not to

    line 75
  12. Distinctive:

    Use dependencyManagement in parent POM for version consistency

    line 76
  13. Distinctive:

    Consider the event-driven nature of the architecture

    line 80
  14. Distinctive:

    Ensure proper async handling with Vert.x patterns

    line 81
  15. Distinctive:

    Add appropriate logging and error handling

    line 83
  16. Distinctive:

    Follow the established module boundaries

    line 84
  17. Distinctive:

    Consider performance implications for GC log processing

    line 85
  18. Distinctive:

    Ensure proper resource cleanup (channels, verticles, etc.)

    line 86

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

Project Overview

GCToolKit is a Java-based toolkit for analyzing Garbage Collection logs from various JVM implementations. The project uses Maven as its build system and is structured as a multi-module project.

Architecture & Design Patterns

  • Multi-module Maven project with clear separation of concerns
  • Event-driven architecture using Vert.x for message passing
  • Parser framework for processing various GC log formats
  • Channel-based communication between parsers and event consumers
  • Verticle pattern for asynchronous processing with Vert.x

Module Structure

  • api/ - Core API definitions, interfaces, and base classes
  • parser/ - GC log parsing implementations for different JVM types
  • vertx/ - Vert.x-based messaging and event handling infrastructure
  • sample/ - Example usage and sample applications
  • IT/ - Integration tests
  • gclogs/ - Test data and sample GC logs

Key Technologies

  • Java 21+ with module system (module-info.java files)
  • Vert.x 5.0.2 for reactive programming and event bus
  • JUnit 5 for testing
  • Maven for build management
  • Spotbugs, PMD, Checkstyle for code quality

Code Style & Conventions

  • Follow standard Java naming conventions
  • Use proper JavaDoc for public APIs
  • Implement equals/hashCode when appropriate
  • Use logging with java.util.logging
  • Handle exceptions appropriately with try-catch blocks
  • Use Promise/Future patterns for asynchronous operations with Vert.x

Common Patterns in This Codebase

Event Processing

public void start(Promise<Void> promise) {
    vertx.eventBus().<EventType>consumer(inbox, message -> {
        processor.receive(message.body());
    }).completion()
      .onComplete(ar -> promise.complete());
}

Channel Implementation

  • Extend appropriate base channel classes
  • Implement proper lifecycle management (open/close)
  • Use Vert.x deployVerticle for async operations
  • Handle deployment IDs for proper cleanup

Error Handling

  • Use java.util.logging.Logger for logging
  • Log warnings/errors with proper context
  • Handle Future completion with onComplete callbacks

Vert.x Specific Guidelines

  • Use Verticles for isolated processing units
  • Deploy verticles asynchronously with completion handlers
  • Use the event bus for inter-verticle communication
  • Properly manage deployment IDs to avoid double-undeploy issues
  • Handle Promise<Void> completion in start() methods

Testing Conventions

  • Integration tests go in the IT/ module
  • Unit tests use JUnit 5
  • Test GC log files are stored in gclogs/ with organized subdirectories
  • Mock external dependencies appropriately

Build & Dependencies

  • Maven 3.9.11+ required
  • Use the Maven Wrapper (i.e., mvnw)
  • Keep dependencies up to date, unless you see a comment saying why not to
  • Use dependencyManagement in parent POM for version consistency
  • Include proper test scopes for test dependencies

When Suggesting Code Changes

  1. Consider the event-driven nature of the architecture
  2. Ensure proper async handling with Vert.x patterns
  3. Maintain compatibility with existing interfaces
  4. Add appropriate logging and error handling
  5. Follow the established module boundaries
  6. Consider performance implications for GC log processing
  7. Ensure proper resource cleanup (channels, verticles, etc.)

Common Issues to Avoid

  • Double-undeployment of Vert.x verticles
  • Blocking operations in Vert.x event loops
  • Memory leaks from unclosed channels or resources
  • Incorrect Promise/Future completion handling
  • Missing error handling in async operations

File Naming Patterns

  • Verticles: *Verticle.java
  • Channels: *Channel.java
  • Events: *Event.java
  • Tests: *Test.java
  • Integration tests: *IT.java or in IT module

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.