Skip to content

docs: add dubbo-go agent skills#3340

Open
Oxidaner wants to merge 5 commits into
apache:developfrom
Oxidaner:agent-skills
Open

docs: add dubbo-go agent skills#3340
Oxidaner wants to merge 5 commits into
apache:developfrom
Oxidaner:agent-skills

Conversation

@Oxidaner
Copy link
Copy Markdown
Contributor

@Oxidaner Oxidaner commented May 20, 2026

Description

Fixes # (issue)

Checklist

  • I confirm the target branch is develop
  • Code has passed local testing
  • I have added tests that prove my fix is effective or that my feature works

Signed-off-by: Oxidaner <18622412361@163.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.54%. Comparing base (60d1c2a) to head (bb19ec3).
⚠️ Report is 814 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3340      +/-   ##
===========================================
+ Coverage    46.76%   52.54%   +5.77%     
===========================================
  Files          295      492     +197     
  Lines        17172    37871   +20699     
===========================================
+ Hits          8031    19900   +11869     
- Misses        8287    16365    +8078     
- Partials       854     1606     +752     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a set of dubbo-go “agent skill” documents under .agents/skills/ to help route work to the right subsystem and provide reference flows/validation guidance for reviews and changes across the codebase.

Changes:

  • Introduces subsystem-specific skill definitions (config/runtime/protocol/registry/metadata/cluster/filters+observability/tools).
  • Adds reference “flow” documents for each skill to standardize investigation and validation steps.
  • Adds a top-level project/domain guide skill with architecture map and project rules references.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.agents/skills/dubbo-go-tools/SKILL.md Defines scope/workflow for tooling/codegen-related changes.
.agents/skills/dubbo-go-tools/references/tooling-flow.md Documents tools areas, Make targets, and nested-module testing guidance.
.agents/skills/dubbo-go-runtime/SKILL.md Defines scope/workflow for public runtime lifecycle and client/server construction.
.agents/skills/dubbo-go-runtime/references/client-server-lifecycle.md Documents consumer/provider/proxy/shutdown lifecycle flows.
.agents/skills/dubbo-go-registry/SKILL.md Defines scope/workflow for registry + service discovery behavior.
.agents/skills/dubbo-go-registry/references/registry-discovery-flow.md Documents registry contracts, extension points, and notification rules.
.agents/skills/dubbo-go-protocol/SKILL.md Defines scope/workflow for protocol + transport implementations.
.agents/skills/dubbo-go-protocol/references/protocol-flow.md Documents export/refer/url/destroy rules and wrapper behavior.
.agents/skills/dubbo-go-observability-filters/SKILL.md Defines scope/workflow for filters, metrics, tracing, logging, TPS, etc.
.agents/skills/dubbo-go-observability-filters/references/filter-observability-flow.md Documents filter contract and chain construction rules.
.agents/skills/dubbo-go-metadata/SKILL.md Defines scope/workflow for metadata info/service/report/mapping changes.
.agents/skills/dubbo-go-metadata/references/metadata-flow.md Documents metadata collection/reporting/service/mapping flow.
.agents/skills/dubbo-go-domain/SKILL.md Provides project-wide guide and routing to narrower subsystem skills.
.agents/skills/dubbo-go-domain/references/project-rules.md Documents compatibility, generated-file rules, and validation selection.
.agents/skills/dubbo-go-domain/references/architecture-map.md Maps subsystem ownership and end-to-end flows.
.agents/skills/dubbo-go-config/SKILL.md Defines scope/workflow for configuration loading/config center/hot reload.
.agents/skills/dubbo-go-config/references/config-flow.md Documents config loader entry points, injection, and hot reload behavior.
.agents/skills/dubbo-go-cluster/SKILL.md Defines scope/workflow for cluster strategies, routing, and load-balancing.
.agents/skills/dubbo-go-cluster/references/routing-cluster-flow.md Documents invocation path and cluster/directory/router contracts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .agents/skills/dubbo-go-domain/SKILL.md Outdated
@Alanxtl
Copy link
Copy Markdown
Contributor

Alanxtl commented May 21, 2026

pls check this https://github.com/Tsukikage7/dubbo-go-skills which in under construction

@Alanxtl
Copy link
Copy Markdown
Contributor

Alanxtl commented May 21, 2026

@Tsukikage7 check this

@Alanxtl Alanxtl added ✏️ Feature 3.3.2 version 3.3.2 labels May 22, 2026
Copy link
Copy Markdown
Contributor

@AlexStocks AlexStocks left a comment

Choose a reason for hiding this comment

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

Code Review — dubbo-go #3340

不建议合并,需重大修改。

P0 × 1:全部 19 个文件缺少 Apache 2.0 许可证头(Apache 项目硬性要求)。同时 PR 描述为模板化占位符 "Fixes # (issue)",无具体 issue 关联和变更动机说明,违反 Apache 社区贡献规范。.agents/ 目录命名(点号前缀)可能被 .gitignore 排除,需确认或改用 agents/ 目录名。

P1 × 4:Go 版本号可疑(1.25.0)、目录路径引用有误(filter/otel/ → otel/)、协议列表不准确(HTTP/3)、cluster 策略列表不完整

P2 × 3:domain SKILL.md 与 project-rules.md 内容大量重复、runtime 术语与代码组织不对应、工具流程图过于简略

改进优先级

  1. 为全部 19 个文件添加 Apache 2.0 许可证头
  2. 重写 PR 描述,关联 issue,说明变更动机
  3. 确认 .agents/ 目录不被 .gitignore 排除
  4. 逐项核实文档中的代码路径、API 签名、Go 版本号
  5. 消除 domain SKILL.md 与 project-rules.md 的内容重复

Comment thread .agents/skills/dubbo-go-domain/SKILL.md Outdated
Comment thread .agents/skills/dubbo-go-observability-filters/SKILL.md Outdated
Comment thread .agents/skills/dubbo-go-domain/SKILL.md Outdated
Comment thread .agents/skills/dubbo-go-protocol/SKILL.md Outdated
Comment thread .agents/skills/dubbo-go-cluster/SKILL.md Outdated
Comment thread .agents/skills/dubbo-go-domain/references/project-rules.md Outdated
Comment thread .agents/skills/dubbo-go-runtime/SKILL.md Outdated
Comment thread .agents/skills/dubbo-go-tools/references/tooling-flow.md Outdated
@Oxidaner
Copy link
Copy Markdown
Contributor Author

This pr is by the https://github.com/Tsukikage7/dubbo-go-skills version update.
Main changes:

  • Added a repository development skill: development/SKILL.md
  • Refreshed the imported Tsukikage7 dubbo-go skills against the current develop branch
  • Added Apache 2.0 license headers to commentable files under .agents

@Alanxtl
Copy link
Copy Markdown
Contributor

Alanxtl commented May 31, 2026

@Oxidaner
Copy link
Copy Markdown
Contributor Author

Oxidaner commented Jun 1, 2026

@Alanxtl
Copy link
Copy Markdown
Contributor

Alanxtl commented Jun 1, 2026

apache/dubbo-website#3209

我的意思是把有参考文档的这个事情写在skills里面

不过你这个pr加了就加了吧,也挺好的

Comment thread .agents/.codex/INSTALL.md
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

这个文档里面写的步骤都必要吗?我怎么感觉不太需要呀

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

只保留Tell Codex: 剩下的删掉?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

这个是面向用户的还是面向agents的文档呀

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

我晕了 I have fixed it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

我觉得无论是面向用户的还是面向agents这个文档都没啥用呀

Comment on lines +50 to +56
Checklist:
- [ ] Provider started successfully? Look for `dubbo server started` and `A provider service ... was registered successfully` in provider logs.
- [ ] Same registry address on both sides (`dubbo.WithRegistry(registry.WithAddress(...))` / YAML `dubbo.registries.xxx.address`)?
- [ ] Same application name on both sides (`dubbo.WithName(...)`)? v3 defaults to **application-level** discovery — the registry stores the app name, not the interface FQN.
- [ ] Same `interface` name passed to `pb.RegisterXxxHandler` and `pb.NewXxxService`?
- [ ] Same protocol on both sides (both `tri` or both `dubbo`)?
- [ ] Provider visible in the registry?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

这里加一种情况:是否是同一等级的服务发现,dubbo-go最新版默认使用应用级服务发现,老版本默认使用接口级服务发现,这两者并不互通

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread .agents/skills/debug/SKILL.md Outdated
- [ ] Protobuf: same `.proto` compiled on both sides? Same `go_package`?
- [ ] Hessian2: POJO `JavaClassName()` matches the Java class FQN exactly? `RegisterPOJO` called in an `init()` that actually runs?

For Hessian2 specifics, see `dubbo-go-java-interop`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

dubbo-go-java-interop加个链接

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread .agents/skills/debug/SKILL.md Outdated
**Cause**: Filter imported but `init()` not registered, or name mismatch between `extension.SetFilter` and `WithFilter`.

Checklist:
- [ ] Blank import present? e.g. `_ "dubbo.apache.org/dubbo-go/v3/filter/token"` or `_ "github.com/yourorg/yourapp/filter/myfilter"`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

这里加一个例子_ "github.com/apache/dubbo-go-extensions/filter/hystrix"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread .agents/skills/debug/SKILL.md Outdated
Comment on lines +142 to +145
For graceful shutdown:
```go
import _ "dubbo.apache.org/dubbo-go/v3/graceful_shutdown"
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

现在有这个用法吗

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread .agents/skills/guide/samples-index.md Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

直接让llm读dubbo-go-samples的readme不就完了,这个samples可能还会更新呢

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread .agents/.gitignore Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

不用单独弄一个gitingore,用根目录的不行吗

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 1, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] 已经支持AI Code Review 或者 什么AI check List了吗? [提案] 使 dubbo-go 对 AI 编程工具更加友好

5 participants