Skip to content

Add .github/copilot-instructions.md to onboard Copilot coding agents#28

Merged
ShreckYe merged 6 commits intodevfrom
copilot/fix-abca91ab-9bdd-4c62-a01b-8cdfebbf7764
Sep 27, 2025
Merged

Add .github/copilot-instructions.md to onboard Copilot coding agents#28
ShreckYe merged 6 commits intodevfrom
copilot/fix-abca91ab-9bdd-4c62-a01b-8cdfebbf7764

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Sep 22, 2025

This PR adds comprehensive instructions for Copilot coding agents to work efficiently in this repository by creating .github/copilot-instructions.md.

Problem

Coding agents working on this repository need to spend significant time exploring the codebase to understand:

  • How to build, test, and validate changes
  • The multi-module project structure and architecture
  • Known issues, workarounds, and compatibility requirements
  • Key file locations and development workflows

This exploration time increases the likelihood of build failures and reduces agent efficiency.

Solution

The new .github/copilot-instructions.md file provides:

Repository Overview

  • Clear description of the Gradle plugin library with multiple modules
  • Technology stack: Gradle 9.0.0, Kotlin 2.2.20, JDK 17+ compatibility
  • Project scope and API stability expectations

Validated Build Instructions

All commands tested and include execution times:

  • ./gradlew build - Full build (~30 seconds)
  • ./gradlew check - Validation without distributions (~1 minute)
  • ./gradlew publishToMavenLocal - Local publishing (~2 seconds)
  • ./gradlew apiCheck - API compatibility validation
  • ./gradlew dokkaGeneratePublicationHtml - Documentation generation

Project Architecture

  • 4 main modules: kotlin-common-gradle-plugins, architecture-common-gradle-plugins, common-gradle-dependencies, huanshankeji-team-gradle-plugins
  • Key configuration files and their purposes
  • CI/CD pipeline details (GitHub Actions with JDK 17)
  • Dependency management and version compatibility

Known Issues & Workarounds

  • Kotlin version warnings (safe to ignore)
  • Memory requirements (-Xmx2G needed for architecture module)
  • IntelliJ IDEA 2024.3 compatibility issue (IDEA-363846)
  • Bootstrap dependency resolution (may need to build common-gradle-dependencies first)

Development Guidelines

  • IDE setup recommendations for IntelliJ IDEA
  • Plugin development workflow with publishToMavenLocal
  • Version alignment strategies

Updates Made

After merging the dev branch, the instructions were updated to reflect the latest versions:

  • Updated Gradle version from 8.11.1 to 9.0.0
  • Updated Kotlin version from 2.1.0 to 2.2.20
  • Updated Compose Multiplatform version from 1.7.1 to 1.10.0-alpha01
  • Updated Dokka version from 2.0.0 to 2.1.0-Beta
  • Updated Binary Compatibility Validator version from 0.16.3 to 0.18.1
  • Updated Gradle Plugin Publish Plugin version to 2.0.0
  • Corrected JDK version requirements from JDK 8+ to JDK 17+ (required by Gradle 9.0.0)
  • Removed outdated Dokka V2 migration messages
  • Clarified that Kotlin version warnings are normal behavior
  • Added note about potential bootstrap dependency issues after version updates

Benefits

This documentation will:

  • Reduce coding agent exploration time
  • Minimize build failures and command errors
  • Provide immediate context about project structure
  • Document validated workflows and common pitfalls
  • Enable agents to focus on implementation rather than discovery

The instructions are comprehensive yet concise, fitting within 2 pages while covering all essential information needed for effective development in this repository.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

…epository

Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com>
Copilot AI changed the title [WIP] Your task is to "onboard" this repository to Copilot coding agent by adding a .github/copilot-instructions.md file in the repository that contains information describing how a coding agent seeing it for the first time can work most efficiently. You wi... Add .github/copilot-instructions.md to onboard Copilot coding agents Sep 22, 2025
Copilot AI requested a review from ShreckYe September 22, 2025 08:52
@ShreckYe ShreckYe changed the base branch from main to dev September 27, 2025 07:13
@ShreckYe
Copy link
Copy Markdown
Member

@copilot I have merged dev into this branch. Please update accordingly.

Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Sep 27, 2025

@copilot I have merged dev into this branch. Please update accordingly.

Updated the copilot instructions to reflect the dev branch merge. Updated all version references:

  • Gradle: 8.11.1 → 9.0.0
  • Kotlin: 2.1.0 → 2.2.20
  • Compose Multiplatform: 1.7.1 → 1.10.0-alpha01
  • Dokka: 2.0.0 → 2.1.0-Beta
  • Binary Compatibility Validator: 0.16.3 → 0.18.1

Also added a note about potentially needing to build common-gradle-dependencies first if dependency resolution fails. All build commands validated and working with the updated versions. (commit: 3746dc8)

Copy link
Copy Markdown
Member

@ShreckYe ShreckYe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ShreckYe ShreckYe marked this pull request as ready for review September 27, 2025 09:22
… instructions

Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Sep 27, 2025

@copilot

Addressed all the review feedback: updated JDK version requirements to 17+, corrected version references, removed outdated Dokka messages, and clarified build behavior explanations. All changes tested and validated. (commit: 77db21b)

Copilot AI requested a review from ShreckYe September 27, 2025 09:29
@ShreckYe ShreckYe merged commit 39b612a into dev Sep 27, 2025
1 check passed
@ShreckYe ShreckYe deleted the copilot/fix-abca91ab-9bdd-4c62-a01b-8cdfebbf7764 branch September 27, 2025 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants