docs(calendar): clarify identity selection by event ownership - #2071
Conversation
Reframe the identity section around event ownership: use `--as user` for the logged-in user's own events and `--as bot` for events the bot creates or participates in, with matching `+agenda` examples.
📝 WalkthroughWalkthroughUpdates the Lark calendar skill documentation to select ChangesCalendar identity guidance
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@skills/lark-calendar/SKILL.md`:
- Around line 19-28: Update the “按日程归属选身份” guidance to remove the claim that
--as user is the CLI default. Describe it as the recommended choice for the
logged-in user’s schedules, and state that omitting --as uses the
credential-derived identity hint, which may fall back to bot.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: b136efa8-16df-4a86-b3a5-879049450719
📒 Files selected for processing (1)
skills/lark-calendar/SKILL.md
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@fecb115b2173bf4e24b76604725a75f3dcb4ce96🧩 Skill updatenpx skills add larksuite/cli#docs/calendar-identity-guidance -y -g |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2071 +/- ##
=======================================
Coverage 75.16% 75.16%
=======================================
Files 912 912
Lines 96451 96451
=======================================
Hits 72495 72495
Misses 18380 18380
Partials 5576 5576 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Reframe the calendar skill's identity section around event ownership instead of framing
--as botpurely as a "wrong" choice that returns empty results. This gives agents clearer guidance on when each identity applies.Changes
--as userfor the logged-in user's own events (default, most cases),--as botfor events the bot creates or participates in.+agendacommand, differing only by--as user/--as bot.Test Plan
Related Issues
Summary by CodeRabbit
--as userand--as bot.