gt-core-skill
/install gt-core-skill
Gumtree Skills
Use this skill only for Gumtree tasks that must run in a real browser via this repository's bridge.
When To Use
- The user wants to inspect Gumtree content from a live browser session instead of plain HTTP scraping.
- The user wants to check login state, log in, log out, search listings, open favourites, read a detail page, send a Gumtree message, or start the post-ad flow.
- The user already has or can provide a Gumtree listing URL, keyword, login credentials, message text, or post-ad keyword.
What This Skill Does
- Runs Gumtree actions through
uv run python scripts/cli.py .... - Uses a local WebSocket bridge server plus the Chrome extension in
extension/. - Returns structured JSON from the CLI and should preserve key result fields in the final answer.
Hard Boundaries
- Do not use unofficial alternate Gumtree automation projects or invent nonexistent Gumtree APIs.
- Do not run commands with system
pythonor a random virtualenv; useuv run. - Do not claim support for features outside the implemented commands.
- Current scope stops at category selection for
post-ad; filling and submitting the final ad form is not implemented.
Setup And Environment
Work from the directory that contains SKILL.md, pyproject.toml, uv.lock, scripts/, and extension/.
Prerequisites:
- Python 3.11+
uv- Google Chrome
First-time setup:
- Run
uv sync. - Open
chrome://extensions/. - Enable Developer Mode.
- Load the unpacked extension from
extension/. - Confirm
Gumtree Bridgeis enabled.
Runtime notes:
- The CLI automatically checks and starts the local bridge server if needed.
- If the extension is not connected, the CLI may open Chrome and wait for the extension bridge.
- If you see
No module named 'websockets', run from this project directory and useuv runafteruv sync.
Command Routing
Use these commands exactly from the project root:
- Check login:
uv run python scripts/cli.py check-login - Login:
uv run python scripts/cli.py login --username "\x3Cemail>" --password "\x3Cpassword>" - Logout:
uv run python scripts/cli.py logout - Search:
uv run python scripts/cli.py search --keyword "\x3Ckeyword>" - Home recommendations:
uv run python scripts/cli.py home-recommend - Favourites:
uv run python scripts/cli.py favourites - Detail page:
uv run python scripts/cli.py detail --url "\x3Cdetail-url>" - Favourite detail page:
uv run python scripts/cli.py detail-favourite --url "\x3Cdetail-url>" - Messages:
uv run python scripts/cli.py messages - Detail message flow:
uv run python scripts/cli.py detail-message --url "\x3Cdetail-url>" - Post ad category flow:
uv run python scripts/cli.py post-ad --keyword "\x3Ckeyword>"
Installed entrypoint variants are also valid:
uv run gumtree-skills ...
Search And Filter Rules
For search, add optional flags only when the user asks for filtering or sorting:
--limit \x3CN>--search-location \x3Clocation>--search-category \x3Ccategory>--sort relevance|date|price_lowest_first|price_highest_first|distance--distance \x3CN>--min-price \x3CN>--max-price \x3CN>--condition as_good_as_new|good|new|fairand repeat when needed--seller-type trade|privateand repeat when needed--mobile-storage-capacity \x3Cvalue>--common-for-sale-colour \x3Cvalue>--mobile-model-apple \x3Cvalue>
Preserve Gumtree's default search behavior unless the user asks to constrain it.
Feature-Specific Notes
Login State
check-loginshould treat page-embedded JS data as the primary source of truth.__GUMTREE_ANALYTICS_CONFIG__,initialDataLayer,gumtreeDataLayer,legacy.loggedIn, andwindow.clientDataare stronger signals than DOM text.- DOM labels such as
Manage my Ads,My Orders,Favourites,My Alerts,My Details,Login, andSign upare only fallbacks.
Authentication
loginuses the page login modal, switches to email login, then submits the email and password.- Credential arguments appear in shell history; avoid unnecessary repetition in summaries.
logoutuses the user menu and submitslogout-form.
Favourites
favouritesopenshttps://www.gumtree.com/my-account/favourites.- The extractor prefers
window.clientData.favouriteAds.adverts. - If the user is not logged in, Gumtree may redirect to login or return empty results.
Detail Favourite
detail-favouriterequires a logged-in session.- It checks favourite state before and after clicking and may return flags such as
already_favouritedorjust_favourited.
Messages
messagesopenshttps://www.gumtree.com/manage/messages.- Add
--conversation-id "\x3Cid>"to target a specific conversation. - Add
--message "\x3Ctext>"to send a message in the current or selected conversation. detail-messagefirst enters messaging from the listing detail page, then reads or sends messages.messagesanddetail-messageboth require a logged-in session.
Post Ad
post-adcalls Gumtree's category suggestion API with the provided keyword.- With only
--keyword, it returns suggested categories for user confirmation. - Add
--category-name "\x3Cname>"for fuzzy name matching. - Add
--category-index \x3Cindex>to pick a suggestion directly. - After category selection it navigates to
/postad/create?categoryId=\x3Cid>.
Response Handling
- The CLI prints JSON and exits with
0on success or2on failure. - Keep the JSON structure intact when possible and summarize only the most important fields.
- If a command fails, report the CLI error instead of fabricating results.
Known Limitations
- No session import mode.
- No official Gumtree API mode.
- No favourite sync or general favourite management beyond
detail-favourite. post-adstops after category selection and redirect.- All content extraction depends on the live browser DOM and embedded page data, so site changes may require script updates.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gt-core-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/gt-core-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
gt-core-skill 是什么?
Use this skill when the user needs to work with Gumtree in a real Chrome browser session. It runs the local Python CLI and Chrome extension bridge to: - chec... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 36 次。
如何安装 gt-core-skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gt-core-skill」即可一键安装,无需额外配置。
gt-core-skill 是免费的吗?
是的,gt-core-skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
gt-core-skill 支持哪些平台?
gt-core-skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 gt-core-skill?
由 gumtree-tech(@bluebluebbb)开发并维护,当前版本 v1.0.0。