feat(affordance): support domain skill lists - #2291
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughDomain-level ChangesDomain skill parsing and storage
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant AffordanceParser
participant serviceAffordance
participant PrepareDomainHelp
participant SkillFilesystem
AffordanceParser->>serviceAffordance: load domain skill references
PrepareDomainHelp->>serviceAffordance: request DomainSkills
serviceAffordance-->>PrepareDomainHelp: return configured references
PrepareDomainHelp->>SkillFilesystem: resolve available references
SkillFilesystem-->>PrepareDomainHelp: return readable skills
PrepareDomainHelp->>PrepareDomainHelp: render domain guide or skill list
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@d39b2d75bb7ec8aeb4d6c642f4fb50de952464aa🧩 Skill updatenpx skills add larksuite/cli#agent/affordance-domain-skills -y -g |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2291 +/- ##
==========================================
+ Coverage 76.44% 76.47% +0.03%
==========================================
Files 1013 1013
Lines 111932 112079 +147
==========================================
+ Hits 85561 85707 +146
+ Misses 19860 19859 -1
- Partials 6511 6513 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Extend affordance Markdown so a business domain can declare the skills shown on
lark-cli <domain> --helpindependently from command-level skill inheritance. Existing single-skill domain help remains byte-compatible unless a domain opts into the new list.Changes
## Skillssection while preserving> skill:as the canonical command default and### Skillsas command-specific guidance.Domain guideoutput and render a list only when multiple configured skills remain available.Test Plan
make unit-test, including race detection).lark-cli <domain> <command>flow works as expected.go test -count=1 -timeout=15m ./tests/plugin_e2e/...).make build,make vet,make fmt-check,go mod tidy, andmake quality-gatepass.Related Issues
Summary by CodeRabbit
New Features
Documentation