Skip to content

Add AI Agent coding guide (AGENTS.md & AGENTS.zh-CN.md)#27968

Closed
fightBoxing wants to merge 1 commit intoapache:masterfrom
fightBoxing:add-agents-guide
Closed

Add AI Agent coding guide (AGENTS.md & AGENTS.zh-CN.md)#27968
fightBoxing wants to merge 1 commit intoapache:masterfrom
fightBoxing:add-agents-guide

Conversation

@fightBoxing
Copy link
Copy Markdown

Summary

  • Add AGENTS.md (English): comprehensive AI agent coding guide for Apache Flink contributors
  • Add AGENTS.zh-CN.md (Chinese): Chinese translation of the same guide

The guide covers 13 sections:

  1. Critical rules (forbidden imports, required utility classes, Java version compatibility, AssertJ assertions)
  2. API stability & design patterns
  3. Code organization & module structure
  4. Error handling
  5. Concurrency & thread safety
  6. Testing standards
  7. Dependencies & shading
  8. Configuration
  9. Serialization/RPC
  10. Module boundaries
  11. Build & CI conventions
  12. Git & Pull Request workflow
  13. AI Agent behavioral boundaries

Motivation

As AI coding agents become more common contributors to open-source projects, having a dedicated AGENTS.md guide helps agents understand project-specific conventions, architectural patterns, and quality standards enforced by Checkstyle, Spotless, ArchUnit, and RAT.

Test Plan

  • No code changes; documentation only
  • Verified file content is accurate against existing Checkstyle rules (tools/maven/checkstyle.xml), Spotless config, and architecture tests (flink-architecture-tests/)

Add AGENTS.md (English) and AGENTS.zh-CN.md (Chinese) which provide
comprehensive coding guidelines for AI agents contributing to Flink.

The guide covers:
- Critical rules (forbidden imports, required utility classes, Java version)
- API stability and design patterns
- Code organization and module structure
- Error handling and concurrency
- Testing standards (AssertJ mandatory)
- Dependencies and shading
- Build & CI conventions
- Git & Pull Request workflow
- AI Agent behavioral boundaries
@flinkbot
Copy link
Copy Markdown
Collaborator

flinkbot commented Apr 19, 2026

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@spuru9
Copy link
Copy Markdown
Contributor

spuru9 commented Apr 19, 2026

@fightBoxing A PR for introducing Agents in already in discussion #27776
Refer: https://lists.apache.org/thread/l0n4w86v1o5cwkqpqtf2q7lb7zdyrymf

@MartijnVisser
Copy link
Copy Markdown
Contributor

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.

4 participants