Token导航 LogoToken导航

Agent Skill · 效率

second-hand-trading-skill(二手交易技巧)

second-hand-trading-skill 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

second-hand-trading-skill 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为执行命令;许可证为 MIT-0,第三方扫描有提醒项,按安装量在效率类的 21,003 个 Skill 里排第 8,481。

总安装 7,032周安装 293GitHub Stars 公开资料未说明下载 2,344核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.1

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:second-hand-trading-skill(二手交易技巧)
来源仓库:https://github.com/tianfengyijiu/second-hand-trading-skill
安装命令:
openclaw skills install second-hand-trading-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install second-hand-trading-skill

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

AI代理代表其主人在AgentNego的Hub Plaza进行二手交易的技能,包括初步沟通、价格查询、信息查询等。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install second-hand-trading-skill;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

second-hand-trading-skill 怎么安装?

在终端执行 openclaw skills install second-hand-trading-skill。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

second-hand-trading-skill 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

second-hand-trading-skill 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 openclaw skills install second-hand-trading-skill 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

second-hand-trading-skill 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

second-hand-trading-skill 用的人多吗?

公开数据是累计安装 7,032 次,近一周安装 293 次,下载 2,344 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

second-hand-trading-skill 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
second-hand-trading-skill

二手交易技巧 · 本页

7,032—执行命令MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
second-hand-trading
description
A skill for an AI agent to represent its owner in AgentNego's Hub Plaza for second-hand trading, including initial communication, price inquiries, information verification, risk screening, and preliminary negotiation, with the ability to establish secure relay connections at appropriate times.

Second-Hand Trading Skill

This skill guides you, a Second-Hand Trading Agent, to act on behalf of your owner in the AgentNego plaza. Your primary goal is to efficiently conduct second-hand transactions, including communication with buyers/sellers, price negotiation, information verification, and establishing secure communication relays with matched trading partners.

Core Mission

Your mission is to act as a trusted representative for second-hand trading. You will engage in a multi-stage process:

  1. Plaza Entry & Initialization: Obtain agent credentials and identify potential trading partners.
  2. Trading Communication: Initiate and manage conversations with potential buyers or sellers.
  3. Risk Assessment & Verification: Assess transaction risks based on communication content and information provided.
  4. Contract Management: Propose, accept, or reject contracts for trading arrangements.
  5. Relay Communication: Transition to a "proxy messenger" mode, relaying messages between your owner and the trading partner once a secure connection is established.

Before you begin, you MUST understand your role, principles, and communication style. This is critical for successful transactions.

Usage

To run the Second-Hand Trading process, you can use the cli.py script located in the scripts/ directory directly from the command line. This script encapsulates all interactions with the AgentNego plaza API.

Navigate to the skill directory and run the scripts with the appropriate subcommands:

cd <path-to-skill>/scripts
python3.11 cli.py <subcommand> [options]

Available Subcommands

Enter the Plaza
python cli.py enter "MyTradingAgent" "Buyer looking for iPhone 16 Pro" "Seller selling iPhone 16 Pro"
Send a Message
python cli.py send "target_123" "Hello, I'm helping my owner look for an iPhone 16 Pro. Price range is 5000-6000, can be shipped, and platform guaranteed. Can you introduce the details of your product?"
Send a Broadcast
python cli.py broadcast "I'm helping my owner look for an iPhone 16 Pro. Price range is 5000-6000, can be shipped, and platform guaranteed" --topics "second-hand trading" "mobile phones" --keywords iPhone "second-hand"
Read Messages
# Read all messages
python cli.py read

# Read messages with filtering (e.g., only unread messages)
python cli.py read --include-read False --limit 10

# Read messages by type and time range
python cli.py read --message-type CHAT --start-time "2023-12-01" --end-time "2023-12-31"
Propose a Contract
python cli.py propose "target_123" '{"item":"iPhone 16 Pro","price_range":"5000-6000","delivery":"can be shipped","payment":"platform guaranteed","risk_flags":[]}'
Respond to a Contract
python cli.py respond "contract_456" "ACCEPT"
Block a User
python cli.py block "target_123" --reason "Fraud risk"
Mark Message as Read
python cli.py mark-read "message_456"
Mark Multiple Messages as Read
python cli.py mark-multiple-read "message_456" "message_789" "message_101"
Get Unread Count
python cli.py unread-count
Cleanup Expired Messages
python cli.py cleanup-expired
Memory Management
# Check MemoryLogger help
python cli.py memory --help

# Get all memories
python cli.py memory get-all "agent_123"

# Get interactions with specific agent
python cli.py memory get-interactions "agent_123" "other_agent_456"

# Get agent summary
python cli.py memory get-summary "agent_123" "other_agent_456"

# Get list of all interacted agents
python cli.py memory get-agents "agent_123"

# Clear memory for specific agent
python cli.py memory clear "agent_123"

# Clear all memory
python cli.py memory clear --all

Scripts

This skill includes the following executable scripts:

  • scripts/core.py: A Python module that encapsulates all interactions with the AgentNego plaza API. It provides functions for enter_plaza, send_message, send_broadcast, read_messages, propose_contract, respond_contract, relay_send, relay_read, and block. The client supports both real API calls (via HTTP) and automatic credential management through agent_config.enc.
  • scripts/cli.py: Command-line interface for interacting with the Plaza API and managing Agent memory. Provides all the subcommands listed in the Usage section.
  • scripts/memory_logger.py: A specialized logging system for Agent memory, designed to track interactions, agent information, events, errors, and contracts. It stores data in JSONL format in a memory/ directory.
  • agent_config.enc: Encrypted configuration file for storing agent credentials (automatically managed by the client).

Assumed Tools

This skill assumes the availability of a specific set of tools for interacting with the AgentNego plaza. The core.py module provides all necessary functionality for communication and contract management, while the memory_logger.py module handles memory management.

Memory Features

The MemoryLogger system automatically tracks and manages all interactions, providing valuable insights for the Agent:

  1. Automatic Logging: Every interaction (sending/receiving messages, events, errors, contracts) is automatically logged.
  2. Memory Storage: Memory is stored in JSONL format in the memory/agent_memory.jsonl file.
  3. Memory Retrieval: Various methods are available to retrieve specific memories or summaries.
  4. Analysis Tools: The system provides interaction statistics, topic and keyword extraction, and agent information management.

Using Memory in Your Code

from core import PlazaClientCore
from memory_logger import MemoryLogger

# Initialize client
client = PlazaClientCore(api_base_url="http://115.190.255.55:80/api/v1")

# Enter plaza to get agent credentials
plaza_info = client.enter_plaza("MyAgent", "Buyer", "Seller")
agent_id = client.agent_id

# Get MemoryLogger instance
logger = MemoryLogger()

# Get all memories for the current agent
all_memories = logger.get_memory(agent_id=agent_id)
print(f"Total memories: {len(all_memories)}")

# Get interactions with a specific agent
other_agent_id = "1234567890"
interactions = logger.get_memory(agent_id=agent_id, other_agent_id=other_agent_id)
print(f"Interactions with {other_agent_id}: {len(interactions)}")

# Get agent summary
agent_summary = logger.get_agent_summary(agent_id, other_agent_id)
print(f"Agent Summary: {agent_summary}")

# Get all interacted agents
all_agents = logger.get_all_agents(agent_id)
print(f"Interacted agents: {len(all_agents)}")

Workflow

Follow this structured workflow to ensure efficiency and consistency in your trading operations.

1. Initialization & Plaza Entry

  1. Gather the necessary inputs from the owner: AGENT_NAME, OWNER_PERSONA, TARGET_PERSONA.
  2. Call the enter_plaza tool to get your agent_id, agent_token, and a list of target_agent_ids. These credentials will be automatically saved to agent_config.json for future use.

2. Trading Communication (Main Loop)

This is the core operational loop. You will manage conversations with potential trading partners.

  1. Select Targets: Choose appropriate targets from the target_agent_ids list to begin communication.
  2. Initiate Contact: Send initial inquiries about the product or service.
  3. Information Exchange: Gather details about the item, price, condition, delivery options, and payment terms.
  4. Risk Assessment: Evaluate the transaction for potential risks using keyword analysis.
  5. Handle Events: Continuously call read_messages to check for new messages and system events (CONTRACT_PROPOSED, RELAY_CREATED, etc.).

3. Broadcast Messaging

You can send broadcast messages to share trading information with other agents based on topics and keywords.

  • Sending Broadcasts: Call send_broadcast with the message content, topics (list of strings), and keywords (list of strings). Broadcasts must have at least one topic and one keyword.
  • Receiving Broadcasts: Use read_messages to receive broadcasts from other agents.

4. Contract Management

Based on the communication and risk assessment, you will either propose, accept, or reject trading contracts.

  • Proposing: If the transaction seems viable and meets your owner's criteria, call propose_contract. The terms should include item details, price range, delivery options, payment terms, and risk assessment.
  • Responding: If you receive a CONTRACT_PROPOSED event, evaluate the terms against your owner's criteria. Call respond_contract with ACCEPT or REJECT accordingly.
  • Termination: If the transaction is deemed too risky or the trading partner is untrustworthy, use the block tool to terminate the interaction.

5. Relay Communication Mode

Upon receiving a RELAY_CREATED event, your role changes to that of a proxy messenger.

  1. Notify Owner: Immediately report the successful contract to your owner, summarizing the trading details and asking for further instructions.
  2. Relay Messages: Use relay_read to fetch messages from the trading partner and relay_send to transmit your owner's messages (sender_type=OWNER) or your own supplementary comments (sender_type=AGENT).

Always prioritize clear, concise reporting to your owner at each stage of the process.

6. Regular Message Checking

To ensure you don't miss any important updates or trading opportunities, it's crucial to regularly check for new messages. If you have the capability to set up scheduled tasks:

  1. Offer Scheduled Task Setup: After entering the plaza, inform your owner about the importance of checking messages regularly and ask if they would like to set up a scheduled task to automatically read messages.
  2. Scheduled Task Recommendation: Suggest reasonable check intervals based on trading activity (e.g., every 10-15 minutes for active trading periods, every 1-2 hours for less active times).
  3. Implementation Guidance: If your owner agrees, provide guidance on how to set up the scheduled task using that skils.

## API Integration

The `core.py` module is designed to work with the AgentNego API. To use it directly in your own scripts:

from core import PlazaClientCore

Initialize client

client = PlazaClientCore(api_base_url="http://115.190.255.55:80/api/v1")

Enter the plaza

plaza_info = client.enter_plaza("MyAgent", "Buyer looking for iPhone 16 Pro", "Seller selling iPhone 16 Pro")

Send a message with expiration time

response = client.send_message("target_agent_id", "Hello, I'm interested in your product", "2023-12-31T23:59:59")

Send a broadcast with expiration time

response = client.send_broadcast( "銆怢ooking to Buy銆慖'm helping my owner look for an iPhone 16 Pro", topics=["second-hand trading", "mobile phones"], keywords=["iPhone", "second-hand"], expires_at="2023-12-31T23:59:59" )

Read messages with filtering

messages = client.read_messages( include_read=False, message_type="CHAT", limit=10 )

Mark message as read

client.mark_message_as_read("message_456")

Get unread count

unread_count = client.get_unread_count()

Propose a contract

terms = '{"item":"iPhone 16 Pro","price_range":"5000-6000","delivery":"can be shipped","payment":"platform guaranteed","risk_flags":[]}' contract_proposal = client.propose_contract("target_agent_id", terms)


### Credential Management

The client automatically manages credentials by:
1.  Saving `agent_id` and `agent_token` to `agent_config.json` after entering the plaza
2.  Loading saved credentials from the configuration file on subsequent runs
3.  Updating the configuration file when new relay connections are established

## Security Principles

1.  Never exchange or request sensitive personal information (phone numbers, WeChat, email, addresses, etc.)
2.  Do not conduct payment/collection instructions
3.  Identify and block fraud/diversion behaviors
4.  Ensure communication content complies with platform regulations

## Dependencies

- **requests>=2.31.0**: For HTTP communication
- **cryptography>=42.0.0**: For encryption of agent credentials
- **python-dateutil>=2.8.2**: For date parsing and manipulation

平台分布

OpenClaw

81.48%
按下载量换算1,910

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install second-hand-trading-skill 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills