Agent skill

Xianyu Hub

by OpenMinis in OpenMinis/MinisSkills

Xianyu (Goofish) secondhand item search and lookup skill. An agent skill from OpenMinis/MinisSkills.

MITAuto-check passed

Install Xianyu Hub

skills CLI
$ npx skills add OpenMinis/MinisSkills --skill xianyu-hub -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install OpenMinis/MinisSkills xianyu-hub --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/OpenMinis/MinisSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/xianyu-hub .claude/skills/xianyu-hub && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
xianyu-hub
GitHub stars
446
Token cost
~1.8k tokens
SKILL.md length
598 words
Files
9 (incl. scripts)
Skills in repo
49
Repo updated
First seen
Licence
MIT

At a glance

Xianyu (Goofish) secondhand item search and lookup skill. An agent skill from OpenMinis/MinisSkills.

  • Works in 7 steps: Search Items - search.sh → Item Details - detail.sh → Favorites Management - favorites.sh → …
  • SKILL.md covers Core Principle, Startup Process (run before…, Script Overview and 🔎 Keyword Enhancement Module, plus 3 more sections
  • Runs Shell scripts from its folder; calls sh; reaches goofish.com

What it does

Xianyu Hub is an agent skill from OpenMinis/MinisSkills. Xianyu (Goofish) secondhand item search and lookup skill. Supports searching for items, checking price trends, filtering by city, price range, and sort order, viewing item details, managing favorites, and checking orders and listed items. Supports outputting web links and fleamarket:// direct links to the app. Built-in "Keyword Enhancement": When search results are empty or very limited, the skill automatically adds alternative keywords from the same category and retries the search, significantly improving the…

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts (for example `scripts/alt_keywords.sh`, `scripts/detail.sh` and `scripts/ensure_tab.sh`).

The repository describes itself as: Skills collection for Minis. The licence is MIT.

Example prompts

  • “Keyword Enhancement”
  • “Xianyu,”
  • “secondhand,”
  • “/xianyu-hub”

Requirements

  • A Bash shell

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Search Items - search.sh
  2. Item Details - detail.sh
  3. Favorites Management - favorites.sh
  4. Order Lookup - orders.sh
  5. My Listed Items - my_items.sh
  6. Smart Keyword Search - smart_search.sh ⭐ Recommended
  7. Alias Lookup - alt_keywords.sh

What it can do on your machine

Read from SKILL.md and the folder at commit ae8c5db. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 8 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • sh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • goofish.com

    Also links to:

    • search-sharp.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Xianyu Hub loads about 1.8k tokens when it runs. Until then it costs about 200 tokens; SKILL.md has 598 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~200
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from OpenMinis/MinisSkills at commit ae8c5db, republished under its MIT licence (© OpenMinis). 598 words, ~1,772 tokens.

Download SKILL.mdSave it as .claude/skills/xianyu-hub/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
xianyu-hub
description
Xianyu (Goofish) secondhand item search and lookup skill. Supports searching for items, checking price trends, filtering by city, price range, and sort order, viewing item details, managing favorites, and checking orders and listed items. Supports outputting web links and fleamarket:// direct links to the app. Built-in "Keyword Enhancement": When search results are empty or very limited, the skill automatically adds alternative keywords from the same category and retries the search, significantly improving the search hit rate. This skill must be triggered whenever a user mentions "Xianyu," "Xianyu," "secondhand," "goofish," "search how much xx costs," "find xx items," "can't find it," or in any scenario where they need to check Xianyu item prices or search for secondhand items.

Xianyu Search Skill (xianyu-hub)

Core Principle

In a browser tab where the user is already logged in to Xianyu, call Xianyu's internal API through minis-browser-use execute_js. The user must first log in to Xianyu in the built-in browser.

Startup Process (run before each use)

All scripts automatically call ensure_tab.sh to complete the following steps, so there is no need to manually pass --tab-id.

ensure_tab.sh Automatic Processing Logic
  1. Scan all tabs - Parse the list_tabs text and look for a tab containing goofish.com
  2. Check login state - Execute JS to determine whether the current page is logged in
  3. Logged in -> Directly output tab_id, and the script continues
  4. Not logged in -> Automatically execute:
    • navigate to the Xianyu home page
    • minis-open to open the built-in browser for the user to log in
    • Poll the login state every 5 seconds, for up to 120 seconds; after login succeeds, automatically continue

To manually specify a tab, pass --tab-id <id>; the script will still verify the login state.

Script Overview

All scripts are located in /var/minis/skills/xianyu-hub/scripts/ and are run with sh.

1. Search Items - search.sh
sh
sh scripts/search.sh -k <keyword> [options]

# Options:
#   -k <term>        Keyword (required)
#   -n <number>      Number per page (default 20, maximum 30)
#   -p <page>        Page number (default 1)
#   -s <sort>        default | price_asc | price_desc | time | reduce
#   --min-price <yuan>  Minimum price
#   --max-price <yuan>  Maximum price
#   --city <city>       City filter
#   --personal-only     Personal idle items only
#   -j              Output JSON

# Examples
sh scripts/search.sh -k "MacBook Air" -s price_asc --min-price 2000 -n 10
sh scripts/search.sh -k "iPhone15" --city Shanghai -s time
2. Item Details - detail.sh
sh
sh scripts/detail.sh <itemID>

# Returns: title, price, description, views/wants/favorites count, seller information (positive feedback rate, response rate, number sold)
3. Favorites Management - favorites.sh
sh
sh scripts/favorites.sh list [-n quantity] [-p page]   # View favorites list
sh scripts/favorites.sh add <itemID>                   # Add item to favorites
sh scripts/favorites.sh remove <itemID>                # Remove item from favorites
4. Order Lookup - orders.sh
sh
sh scripts/orders.sh [-n quantity] [-p page] [-t type]

# Type: all | wait_pay | wait_send | wait_receive | refund
5. My Listed Items - my_items.sh
sh
sh scripts/my_items.sh [-n quantity] [-p page]

🔎 Keyword Enhancement Module

When direct search results are empty or very few (< 3 results), automatically enable keyword enhancement; do not give up right away.

Core Mechanism

Some items on the platform are described with different terms, and sellers often use common industry abbreviations, alternative names, or shortened forms. This module uses the open API from SearchSharp.com to automatically retrieve a list of commonly used aliases for the item across all platforms (crowdsourced by the user community and sorted by popularity), then retries the search with each one to improve the hit rate.

Preferred when results are insufficient. Automatically completes: direct search -> add aliases -> retry

sh
sh scripts/smart_search.sh -k <keyword> [other search.sh parameters]

# Examples
sh scripts/smart_search.sh -k "GTA"
sh scripts/smart_search.sh -k "Netflix membership" --max-price 50
sh scripts/smart_search.sh -k "gpt plus"

Execution flow:

  1. Search Xianyu once with the original keyword
  2. If there are fewer than 3 results, call the SearchSharp API to look up common aliases for the term
  3. Sort by community popularity and retry the search with each alias one by one (up to 3)
  4. Output all results
Show full SKILL.md (238 more words)Show less
7. Alias Lookup - alt_keywords.sh

Only queries keyword aliases and does not search Xianyu. Used to understand common names for a specific item

sh
# Look up common aliases for a term
sh scripts/alt_keywords.sh -q <keyword>

# List popular item alias summaries (about 20 entries)
sh scripts/alt_keywords.sh --list

# Look up all aliases for an item (using an ID found in the --list results)
sh scripts/alt_keywords.sh --id <itemID>

# JSON output
sh scripts/alt_keywords.sh -q "gpt" -j
Usage Rules
SituationAction
3 or more search resultsDisplay directly; no enhancement required
Fewer than 3 search resultsAutomatically run smart_search.sh to add aliases and retry
SearchSharp API
EndpointDescription
GET /api/productsPopular item list
GET /api/products?q=<term>Look up items and aliases by keyword
GET /api/products/<id>Complete alias list for a single item
  • No authentication required; call directly with curl
  • The keywords array is sorted by net community votes; the higher the popularity, the higher the ranking

Open Item

sh
apple-open "fleamarket://item?id=<itemID>"    # Open in the Xianyu app

Use this Markdown link in conversations: [Open in the Xianyu app](fleamarket://item?id=xxx)

URL Rules

PurposeFormat
Web pagehttps://www.goofish.com/item?id=<id>
APPfleamarket://item?id=<id>
Orderfleamarket://order_detail?id=<orderId>

Notes

  • The price_asc sort may return low-quality low-price data from the server; use it together with --min-price filtering
  • City and price range filters are applied on the client side
  • --personal-only is determined by review count (>10 reviews is treated as a store), so it is not perfectly accurate
  • It is normal for searches to return empty results when sensitive terms are blocked by the platform
  • ensure_tab.sh depends on the text format returned by list_tabs (Tab N: Title — URL); if the format changes, the parsing logic must be updated accordingly
  • When not logged in, ensure_tab.sh automatically polls and waits; no manual login confirmation is required. The script blocks during the wait (up to 120 seconds)

© OpenMinis, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (scripts) in xianyu-hub of OpenMinis/MinisSkills.

  • SKILL.md
  • scripts/alt_keywords.sh
  • scripts/detail.sh
  • scripts/ensure_tab.sh
  • scripts/favorites.sh
  • scripts/my_items.sh
  • scripts/orders.sh
  • scripts/search.sh
  • scripts/smart_search.sh

Open the folder on GitHubat commit ae8c5db

Compare with similar skills

Xianyu Hub next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Xianyu Hub compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xianyu Hub this skillOpenMinis/MinisSkills446—~1.8kAutomated safety check: PassMIT
Goofish Search Listbrowser-act/skills6.1k—~2kAutomated safety check: PassMIT
Goofish Item Detailbrowser-act/skills6.1k—~1.5kAutomated safety check: PassMIT
Searchdavila7/claude-code-templates33k—~339Automated safety check: PassMIT
Research Lookupdavila7/claude-code-templates33k9 repos~5kAutomated safety check: NotesMIT
Algolia Searchdavila7/claude-code-templates33k4 repos~492Automated safety check: PassMIT

Similar skills

  • Goofish Search List

    browser-act/skills

    Scrapes second-hand item search results from Goofish (闲鱼/xianyu, goofish.com) — China's largest second-hand marketplace.

    6.1k GitHub stars~2k tokensUpdated 1 mo ago
    Data & AnalyticsAuto-check passed
  • Goofish Item Detail

    browser-act/skills

    Extracts full detail data from a single Goofish (闲鱼/xianyu, goofish.com) second-hand item page.

    6.1k GitHub stars~1.5k tokensUpdated 1 mo ago
    Data & AnalyticsAuto-check passed
  • Search

    davila7/claude-code-templates

    Search Google via Bright Data SERP API. An agent skill from davila7/claude-code-templates.

    33k GitHub stars~339 tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Research Lookup

    davila7/claude-code-templates

    Look up current research information using Perplexity's Sonar Pro Search or Sonar Reasoning Pro models through OpenRouter.

    33k GitHub starsUsed in 9 repos~5k tokens
    Research & ScienceAuto-check: notes
  • Algolia Search

    davila7/claude-code-templates

    Expert patterns for Algolia search implementation, indexing strategies, React InstantSearch, and relevance tuning Use when: adding search to, algolia, instantsearch, search api, search functionality.

    33k GitHub starsUsed in 4 repos~492 tokens
    Backend & APIsAuto-check passed
  • Perplexity Web Search

    davila7/claude-code-templates

    Runs web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff.

    33k GitHub starsUsed in 11 repos~3.5k tokens
    Research & ScienceAuto-check: notes

More from OpenMinis/MinisSkills

All 49 skills in this repo
  • Android UI Automation

    OpenMinis/MinisSkills

    Automate Android apps that have no public API or web version by driving the UI layer through the Accessibility Service.

    446 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed
  • Codex On Ish

    OpenMinis/MinisSkills

    Install and run OpenAI Codex CLI inside the Minis/iSH Alpine sandbox on iOS, where rustls TLS and async sockets are broken.

    446 GitHub stars~1k tokensUpdated 3 days ago
    Auto-check passed
  • Evidence Chain Builder

    OpenMinis/MinisSkills

    Score a claim against the evidence behind it. An agent skill from OpenMinis/MinisSkills.

    446 GitHub stars~2.4k tokensUpdated 3 days ago
    Auto-check passed
  • Hyperframes CLI

    OpenMinis/MinisSkills

    HyperFrames CLI and Minis rendering. An agent skill from OpenMinis/MinisSkills.

    446 GitHub stars~3.5k tokensUpdated 3 days ago
    Auto-check passed
  • Whenpeak

    OpenMinis/MinisSkills

    Predict when a person's brain works best from their sleep, using the WhenPeak performance-intelligence API, and turn it into concrete scheduling advice.

    446 GitHub stars~2.3k tokensUpdated 3 days ago
    Auto-check passed
  • Openstreetmap Marker

    OpenMinis/MinisSkills

    Generate a mobile-first, immersive, Amap(Gaode)-style custom landmark marker HTML map for travel itinerary planning, place showcasing, location sharing, etc.

    446 GitHub stars~1.9k tokensUpdated 3 days ago
    Auto-check passed

Questions about Xianyu Hub

What does Xianyu Hub do?

Xianyu (Goofish) secondhand item search and lookup skill. An agent skill from OpenMinis/MinisSkills. Xianyu Hub is an agent skill from OpenMinis/MinisSkills. Xianyu (Goofish) secondhand item search and lookup skill.

How do I install Xianyu Hub in Claude Code?

Run `npx skills add OpenMinis/MinisSkills --skill xianyu-hub -a claude-code`. Or copy the skill folder (xianyu-hub in OpenMinis/MinisSkills) into .claude/skills/xianyu-hub in your project. Claude Code loads it when a task matches its description.

How do I install Xianyu Hub in Codex?

Run `npx skills add OpenMinis/MinisSkills --skill xianyu-hub -a codex`. Or copy the skill folder (xianyu-hub in OpenMinis/MinisSkills) into .agents/skills/xianyu-hub in your project. Codex loads it when a task matches its description.

Can I use Xianyu Hub in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenMinis/MinisSkills --skill xianyu-hub -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xianyu-hub, .gemini/skills/xianyu-hub, .github/skills/xianyu-hub and .opencode/skills/xianyu-hub in your project.

What does Xianyu Hub need to run?

Going by SKILL.md and its folder, Xianyu Hub needs a shell for the scripts in its folder and the command-line tools its instructions call (sh). Our summary lists: A Bash shell.

Does Xianyu Hub access the network?

SKILL.md names 2 domains. In commands or code: goofish.com; the agent is likely to contact it when it follows the instructions. As links in the text: search-sharp.com. This is read from the text; nothing was executed.

Is Xianyu Hub safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Xianyu Hub use?

Xianyu Hub is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Xianyu Hub use?

About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Xianyu Hub?

Skills that share tags, products or a category with Xianyu Hub: Goofish Search List (browser-act/skills, 6.1k stars), Goofish Item Detail (browser-act/skills, 6.1k stars), Search (davila7/claude-code-templates, 33k stars) and Research Lookup (davila7/claude-code-templates, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xianyu Hub?

OpenMinis (a GitHub organization) maintains it in OpenMinis/MinisSkills, which has 446 GitHub stars. The repository holds 49 skills in this directory. The repository was last updated on October 7, 2026.

Source: OpenMinis/MinisSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.