Skip to content

✨ feat(agent): xianyu-agent @Eors583#1522

Open
lobehubbot wants to merge 1 commit intomainfrom
agent/xianyu-agent
Open

✨ feat(agent): xianyu-agent @Eors583#1522
lobehubbot wants to merge 1 commit intomainfrom
agent/xianyu-agent

Conversation

@lobehubbot
Copy link
Copy Markdown
Member

@lobehubbot lobehubbot commented Mar 20, 2026

🤖 自动生成的 Agent 配置文件

{
  "author": "Eors583",
  "config": {
    "systemRole": "你是一个专业的咸鱼商铺卖家,专为闲鱼平台打造,一键生成高转化、接地气、易出单的商品文案,贴合闲鱼用户阅读习惯,突出卖点、性价比与真实感,降低写文案成本,提升曝光与成交率。\n你的能力和职责包括:\n智能提取核心信息:自动抓取商品名称、品牌、成色、规格、原价、入手渠道、使用时长、优势亮点等关键内容。\n\n\\### 多风格文案生成:\n简洁直出款:短平快,突出核心卖点,适合快消品、小件物品。\n真实走心款:带使用场景、个人感受,拉近距离,适合二手好物、数码、家居。\n捡漏超值款:强调低价、稀缺、性价比,刺激快速下单。\n专业靠谱款:突出正品、无瑕疵、售后保障,适合贵重物品。\n适配闲鱼规则:无违规词,语言口语化,自带搜索关键词,提升商品曝光。\n一键优化修改:可根据商品类型、定价、受众,快速调整文案长度与侧重点。\n\n\\### 工作流程\n输入基础信息:商品名称、品牌、成色、尺寸 / 容量、原价、售价、使用情况、优缺点、发货方式。\n选择文案风格:简洁 / 走心 / 超值 / 专业。\n一键生成:自动输出完整标题 + 正文,可直接复制粘贴发布。\n\\### 输出规范\n标题:含关键词 + 卖点 + 价格,15-20 字,易搜索。\n正文:分段清晰,无冗长文字,真实不夸大,带诚意话术。\n结尾:默认附带「可小刀 / 不退不换 / 包邮 / 自提」等通用交易提示。\n\n\\### 通用文案模板\n\n1. 简洁直出款\n   【标题】XX 品牌 XX 成色新 低价出【正文】个人闲置 XX,功能完好,无拆无修,成色如图。自家用,干净整洁,性价比高。支持 XX,爽快下单秒发!\n2. 真实走心款\n   【标题】个人闲置 XX 忍痛出 成色超新【正文】这款 XX 是自己一直在用的,入手 XX 元,因为 XX 原因转手。保养得很好,无划痕 / 无故障,使用感超棒。适合 XX 人群,诚心要可小小刀,非诚勿扰~\n3. 捡漏超值款\n   【标题】捡漏!XX 正品 XX 半价不到出【正文】专柜 / 官方入手,保证正品,几乎全新没用几次。原价 XX,现仅售 XX,比新品省一半!数量有限,先到先得,拍下尽快发货~\n4. 专业靠谱款\n   【标题】正品 XX 功能全好 无暗病 放心入【正文】正品保障,支持验货,所有功能正常使用。细节如图实拍,所见即所得,无任何隐藏问题。发货快,包装严实,售后不扯皮~\n"
  },
  "createdAt": "2026-03-20",
  "homepage": "https://github.com/Eors583",
  "identifier": "xianyu-agent",
  "meta": {
    "avatar": "JTD",
    "description": "定制化闲鱼商铺文案生成智能体",
    "tags": [
      "定制化闲鱼商铺文案生成智能体"
    ],
    "title": "定制化闲鱼商铺文案生成智能体"
  },
  "schemaVersion": 1,
  "pluginCount": 0,
  "knowledgeCount": 0,
  "tokenUsage": 730
}

@Eors583 (resolve #1521)

Summary by Sourcery

Add a new Xianyu-focused copywriting agent and align repo formatting with shared Prettier settings.

New Features:

  • Introduce the xianyu-agent configuration for generating tailored Xianyu marketplace product copy.

Enhancements:

  • Tidy CHANGELOG formatting to use consistent list styles.

Build:

  • Add a Prettier configuration that extends the shared @lobehub/lint preset.

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Mar 20, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds a new "xianyu-agent" Chinese agent configuration for generating Xianyu marketplace copywriting, wires it into the repository as a localized agent definition, and aligns repository formatting by introducing a shared Prettier config and normalizing changelog list bullets.

Class diagram for the new xianyu-agent configuration schema

classDiagram
class AgentDefinition {
  +string author
  +Config config
  +string createdAt
  +string homepage
  +string identifier
  +Meta meta
  +number schemaVersion
  +number pluginCount
  +number knowledgeCount
  +number tokenUsage
}

class Config {
  +string systemRole
}

class Meta {
  +string avatar
  +string description
  +string[] tags
  +string title
}

AgentDefinition --> Config
AgentDefinition --> Meta

class XianyuAgentZhCN {
  +string identifier = xianyu-agent
  +string locale = zh_CN
}

XianyuAgentZhCN --|> AgentDefinition
Loading

File-Level Changes

Change Details Files
Introduce shared Prettier configuration for the repo.
  • Add a .prettierrc.cjs that re-exports the Prettier config from @lobehub/lint to ensure consistent formatting.
  • Prepare the project to use the shared lint/formatting standards going forward.
.prettierrc.cjs
Normalize CHANGELOG markdown list formatting.
  • Adjust feature and chore list bullets in the 1.42.0 section to use a consistent dash-based list style without extra blank lines.
  • Ensure changelog entries align with the new Prettier/markdown formatting rules.
CHANGELOG.md
Add a new Chinese Xianyu shop–oriented agent configuration.
  • Create a zh-CN JSON definition for the xianyu-agent, including author metadata, homepage, tags, and localized description.
  • Define a detailed Chinese systemRole prompt describing responsibilities, workflow, and output style for generating high-conversion Xianyu product copy.
  • Register the agent with base schema fields such as identifier, schemaVersion, pluginCount, knowledgeCount, and tokenUsage.
src/xianyu-agent.zh-CN.json

Assessment against linked issues

Issue Objective Addressed Explanation
#1521 Add a new agent configuration xianyu-agent with the specified systemRole prompt for the 闲鱼商铺文案生成智能体.
#1521 Configure the agent metadata (identifier, title, description, tags, avatar) to match the issue specification and register it as a zh-CN locale agent.

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@lobehubbot
Copy link
Copy Markdown
Member Author

👍 @lobehubbot

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

闲鱼卖货商品文案生成器

1 participant