docs(mail): clarify JSON output is directly usable without extra encoding#228
Conversation
…ding Users reported that AI agents sometimes wrote shell scripts to manually extract and re-decode JSON string fields (e.g. unicode_escape), causing Chinese character corruption. Add notes to mail skill docs clarifying that JSON output can be read directly without additional encoding conversion. Co-Authored-By: AI
Greptile SummaryThis documentation-only PR adds clarifying notes across five Markdown files to inform AI agents (and human readers) that the Confidence Score: 5/5Safe to merge — pure documentation update with no code or logic changes. All five changed files are Markdown documentation. The added text is factually accurate (UTF-8 JSON output, jq -r behaviour), consistent with existing content, and directly addresses the reported user confusion. No P0/P1 findings. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["lark-cli mail\n+message / +messages / +thread"] -->|"--format json"| B["UTF-8 JSON output\n(valid, no extra encoding needed)"]
B --> C{Need raw HTML?}
C -->|Yes| D["jq -r '.data.body_html'\n(resolves \\u003c → <)"]
C -->|No| E["Read JSON directly\nin AI agent / script"]
Reviews (1): Last reviewed commit: "docs(mail): clarify JSON output is direc..." | Re-trigger Greptile |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughDocumentation updates across five markdown files related to the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@ce4c867125d922aa035d3866d8b039dae0b11706🧩 Skill updatenpx skills add larksuite/cli#docs/mail-json-output-guidance -y -g |
…ding (larksuite#228) Users reported that AI agents sometimes wrote shell scripts to manually extract and re-decode JSON string fields (e.g. unicode_escape), causing Chinese character corruption. Add notes to mail skill docs clarifying that JSON output can be read directly without additional encoding conversion.
Summary
Users reported that AI agents sometimes wrote shell scripts to manually extract and re-decode JSON string fields (e.g.
unicode_escape), causing Chinese character corruption. Add notes to mail skill docs clarifying that JSON output can be read directly without additional encoding conversion.Changes
skill-template/domains/mail.md+SKILL.md: add one-liner in "读取邮件" section noting JSON output is directly usablereferences/lark-mail-message.md: add "JSON 输出可直接使用" as first note, addjq -rhint for\u003c/\u003ereferences/lark-mail-messages.mdandlark-mail-thread.md: add same "JSON 输出可直接使用" noteTest Plan
+message --format jsonSummary by CodeRabbit
Documentation