docs(base): add common filter condition examples - #2310
Merged
zgz2048 merged 1 commit intoAug 12, 2026
Conversation
📝 WalkthroughWalkthrough本次更新补充 Lark Base 筛选条件示例,覆盖文本、选择和人员字段的集合匹配,并明确 Changes筛选条件文档
Estimated code review effort: 1 (Trivial) | ~5 minutes 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 |
zgz2048
marked this pull request as ready for review
August 12, 2026 03:32
kongenpei
approved these changes
Aug 12, 2026
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-base/references/lark-base-filter-condition.md`:
- Around line 63-76: 更新该过滤条件说明段落,明确将 intersects 定义为判断是否包含目标片段,将 disjoint
定义为判断是否不包含目标片段;保持 == / != 的完整文本比较说明及现有 JSON 示例不变,并与
lark-base-data-analysis-sop.md 中的表述一致。
🪄 Autofix
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: bca58fdc-b192-469b-8a7b-370ddeae2535
📒 Files selected for processing (2)
skills/lark-base/references/lark-base-data-analysis-sop.mdskills/lark-base/references/lark-base-filter-condition.md
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@27ceb0d9f1c22aac72d81fc441ab1867b7d8a87d🧩 Skill updatenpx skills add zgz2048/cli#codex/base-filter-common-fewshots -y -g |
Merged
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
intersects/disjointsemantics for select and user fieldsempty/non_emptyas one field-agnostic cell-empty contract instead of duplicating examples by field typeWhy
Usage metrics show that select intersection, text containment, empty checks, and negative text/user predicates make up the most frequent filter combinations. Existing examples covered the positive cases well but left several negative forms to inference, which made generated filters less reliable.
Impact
Agents can compose common
--filter-jsontuples for both+record-listand+record-searchdirectly from the SOP and shared filter reference, with less trial and error and without adding formula-specific examples.Validation
git diff --checkgo test ./shortcuts/base -run "Filter|GuideContract" -count=1Summary by CodeRabbit
intersectsanddisjointconditions.emptyandnon_empty, including empty multi-value fields.