Skip to content

fix(skills): correct suite guide rewrite path - #2836

Open
pei711 wants to merge 1 commit into
larksuite:mainfrom
pei711:fix/lark-skill-maker-guide-rewrite
Open

pei711 wants to merge 1 commit into
larksuite:mainfrom
pei711:fix/lark-skill-maker-guide-rewrite

Conversation

@pei711

@pei711 pei711 commented Oct 20, 2026 •

Copy link
Copy Markdown

修正 isolated lark-suite 中 lark-skill-maker 的共享指南重写路径,移除多余的 lark-suite/references/ 层级,并增加配置契约回归测试,避免生成的 GUIDE 链接指向不存在的位置。

验证:针对性 go test ./internal/skillscheck、go vet ./...、gofmt 和 go mod tidy 检查通过。完整单测中 shortcuts/im 与 shortcuts/minutes 的既有 URL 安全测试因环境将 example.com 判为内网地址而失败;固定版本 golangci-lint 2.1.6 在本机 Go 1.27.2 下因 export data 版本不兼容无法完成。

关联 #2797。

Summary by CodeRabbit

  • Bug Fixes
    • Corrected the shared guide path used by the skill-maker configuration.
    • Added validation to ensure the configured guide rewrite continues to reference the correct location.

@pei711
pei711 requested a review from liangshuo-1 as a code owner October 20, 2026 21:49
@CLAassistant

CLAassistant commented Oct 20, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions Bot added the size/S Low-risk docs, CI, test, or chore only changes label Oct 20, 2026
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cd864aae-8a9e-424a-92a2-0bd3b2b2c6ce
📥 Commits

Reviewing files that changed from the base of the PR and between 017b19a and 697c540.

📒 Files selected for processing: 2
  • internal/skillscheck/template_contract_test.go
  • skill-template/lark-suite-config.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

The lark-skill-maker guide rewrite now points to the sibling lark-shared/GUIDE.md path. A regression test checks that the configured override uses this replacement.

Changes: Shared guide path rewrite

Layer / File(s) Summary
Update and verify the guide rewrite
skill-template/lark-suite-config.json, internal/skillscheck/template_contract_test.go
The lark-skill-maker replacement path now points to ../lark-shared/GUIDE.md. A regression test checks that the override exists and uses this path.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Suggested reviewers: tantanz20020918

Merge Risk: ⚪ Minimal · up to 697c5

The guide rewrite matches the expected suite layout, and no actionable merge risk remains after normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. (1 skipped: 1 … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main change: correcting the suite guide rewrite path.
Description check Passed The description explains the motivation, code changes, verification results, known environment-related test limitations, and related issue. It does not use the required section headings or explicitly …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the motivation, code changes, verification results, known environment-related test limitations, and related issue. It does not use the required section headings or explicitly confirm the manual lark-cli flow, but the required information is mostly present.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

PR Quality Summary

CI did not complete successfully. Use the failed check links below to decide whether this PR needs a code change or a rerun.

CI status

  • Workflow conclusion: failure.

This branch has not been deployed

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

Labels

size/S Low-risk docs, CI, test, or chore only changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants