[Docs] Add LLM contribution guide#10411
Conversation
| Any incompatible change MUST: | ||
|
|
||
| * Be explicitly documented |
There was a problem hiding this comment.
Incompatible changes should be documented in docs/en/introduction/concepts/incompatible-changes.md
|
Good practice for AI coding |
|
Isn’t Chinese documentation in the plan? |
@chl-wxp I took a look at the loading logic of commonly used tools. It's all unnecessary to load Chinese items like AGENT/GPT in the root directory |
Issue 1: Missing Chinese version of documentation
|
|
Can you remind the AI to add comments for important methods? I find out that the comments in the current code are rare. |
| * `[Fix][Zeta] Fix checkpoint timeout under heavy backpressure` | ||
| * `[Feature][Transform-V2] Add LLM transform plugin` | ||
| * `[Improve][Core] Optimize jar package loading speed` | ||
| * `[Docs] Update quick start guide` |
There was a problem hiding this comment.
A small detail: the document states the strict format is [Type][Module], but the example has [Docs] ... (no Module). Let's standardize this part.
There was a problem hiding this comment.
The DOC doesn't have [Module], so I think this is fine. I feel there's no need to add anything here
There was a problem hiding this comment.
Then I think it’s better to use Doc as [Module] as before.
This can be removed.
|
| ```bash | ||
| ./mvnw -DskipUT -DskipIT=false verify | ||
| ``` |
There was a problem hiding this comment.
# Run specific connector E2E tests
./mvnw test -pl seatunnel-e2e/seatunnel-connector-v2-e2e/connector-xxx-e2e
# Run all E2E tests (warning: time-consuming)
./mvnw -DskipUT -DskipIT=false verify| # Unit tests (strongly recommended) | ||
| ./mvnw test | ||
| ``` |
There was a problem hiding this comment.
| # Unit tests (strongly recommended) | |
| ./mvnw test | |
| ``` | |
| # Unit tests (strongly recommended) | |
| ./mvnw test | |
| # Check for compilation errors in affected modules | |
| ./mvnw clean package -pl <affected-module> -am |
|
Suggested addition ## Adding a New Connector
When contributing a new connector, you MUST update:
1. `plugin-mapping.properties` - Add connector mapping
2. `seatunnel-dist/pom.xml` - Include in distribution
3. `seatunnel-e2e/` - Add E2E test cases
4. `config/plugin_config` - Add plugin configuration
5. `docs/en/connector-v2/` - Add English documentation
6. `docs/zh/connector-v2/` - Add Chinese documentationSuggested new section: ## Common Pitfalls to Avoid
1. **Don't use wildcard imports** - Spotless will fail
2. **Don't forget license headers** - All new files need ASF headers
3. **Don't skip `-nsu` flag** - Ensures build reproducibility
4. **Don't modify existing Option names** - Breaking change for users
5. **Don't commit without running spotless:apply** - CI will fail
6. **Don't use `System.out.println`** - Use proper logging frameworkWhat Works Well
|



Purpose of this pull request
This PR introduces
AGENTS.mdto the repository root.Motivation:
As AI coding assistants (like Cursor, Windsurf, Trae, etc.) are becoming more popular, having a dedicated context file helps them understand the project structure, coding standards, and testing procedures of Apache SeaTunnel. This file mirrors the
AGENTS.mdpractice found in other mature Apache projects (e.g., Apache Superset) but adapts it specifically to SeaTunnel's engineering conventions.Key contents of AGENTS.md:
seatunnel-connectors-v2andseatunnel-engine.Does this PR introduce any user-facing change?
How was this patch tested?
Check list
New License Guide
incompatible-changes.mdto describe the incompatibility caused by this PR.