gctoolkit
Copilot instructions1.3k starsChanged 12 months agoMITView on GitHub
Trending
Quiet this year.thin dataabout the whole repository
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
- Distinctive: line 29
Follow standard Java naming conventions
- Distinctive: line 30
Use proper JavaDoc for public APIs
- Distinctive: line 32
Use logging with java.util.logging
- Distinctive: line 34
Use Promise/Future patterns for asynchronous operations with Vert.x
- Distinctive: line 51
Use Vert.x deployVerticle for async operations
- Distinctive: line 55
Use java.util.logging.Logger for logging
- Distinctive: line 60
Use Verticles for isolated processing units
- Distinctive: line 62
Use the event bus for inter-verticle communication
- Very specific: line 69
Test GC log files are stored in gclogs/ with organized subdirectories
- Very specific: line 74
Use the Maven Wrapper (i.e., mvnw)
- Distinctive: line 75
Keep dependencies up to date, unless you see a comment saying why not to
- Distinctive: line 76
Use dependencyManagement in parent POM for version consistency
- Distinctive: line 80
Consider the event-driven nature of the architecture
- Distinctive: line 81
Ensure proper async handling with Vert.x patterns
- Distinctive: line 83
Add appropriate logging and error handling
- Distinctive: line 84
Follow the established module boundaries
- Distinctive: line 85
Consider performance implications for GC log processing
- Distinctive: line 86
Ensure proper resource cleanup (channels, verticles, etc.)
≈ “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.
Files
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 classesparser/- GC log parsing implementations for different JVM typesvertx/- Vert.x-based messaging and event handling infrastructuresample/- Example usage and sample applicationsIT/- Integration testsgclogs/- 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
- Consider the event-driven nature of the architecture
- Ensure proper async handling with Vert.x patterns
- Maintain compatibility with existing interfaces
- Add appropriate logging and error handling
- Follow the established module boundaries
- Consider performance implications for GC log processing
- 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.javaor in IT module
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.

