Skip to content

📝 docs: add agent code style guidance#15434

Merged
tjx666 merged 3 commits into
canaryfrom
chore/agents-docs
Jun 3, 2026
Merged

📝 docs: add agent code style guidance#15434
tjx666 merged 3 commits into
canaryfrom
chore/agents-docs

Conversation

@tjx666

@tjx666 tjx666 commented Jun 3, 2026

Copy link
Copy Markdown
Member

💻 Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • ✅ test
  • 📝 docs
  • 🔨 chore

🔗 Related Issue

N/A

🔀 Description of Change

  • Add React skill guidance for extracting stateful business component logic into custom hooks.
  • Add AGENTS.md guidance to split large files into focused components, hooks, helpers, or types.

🧪 How to Test

  • Tested locally
  • Added/updated tests
  • No tests needed

Automated checks:

  • git diff --check origin/canary...HEAD

📸 Screenshots / Videos

N/A

📝 Additional Information

No runtime behavior changes.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 3, 2026
@vercel

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment Jun 3, 2026 10:59am

Request Review

@sourcery-ai sourcery-ai Bot left a comment

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.

We've reviewed this pull request using the Sourcery rules engine

@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.02%. Comparing base (41bccc4) to head (7783bf4).

Additional details and impacted files
@@           Coverage Diff            @@
##           canary   #15434    +/-   ##
========================================
  Coverage   71.02%   71.02%            
========================================
  Files        3212     3212            
  Lines      321283   321283            
  Branches    34068    35015   +947     
========================================
+ Hits       228180   228182     +2     
+ Misses      92928    92926     -2     
  Partials      175      175            
Flag Coverage Δ
app 61.84% <ø> (+<0.01%) ⬆️
database 92.49% <ø> (ø)
packages/agent-runtime 80.48% <ø> (ø)
packages/builtin-tool-lobe-agent 18.52% <ø> (ø)
packages/context-engine 84.17% <ø> (ø)
packages/conversation-flow 91.29% <ø> (ø)
packages/file-loaders 87.89% <ø> (ø)
packages/memory-user-memory 74.99% <ø> (ø)
packages/model-bank 99.99% <ø> (ø)
packages/model-runtime 84.72% <ø> (ø)
packages/prompts 72.49% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/types 35.36% <ø> (ø)
packages/utils 88.69% <ø> (ø)
packages/web-crawler 88.08% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store 68.43% <ø> (ø)
Services 54.58% <ø> (ø)
Server 72.32% <ø> (+<0.01%) ⬆️
Libs 57.01% <ø> (ø)
Utils 81.44% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tjx666 tjx666 merged commit a5ab99f into canary Jun 3, 2026
29 of 30 checks passed
@tjx666 tjx666 deleted the chore/agents-docs branch June 3, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant