agentleFS
OpenMinisOpenMinis/MinisSkills/maimai-hub/SKILL.md

maimai-hub

Skill438 starsChanged 3 months agoMITView on GitHub

Retrieves data from the Colleague Circle and Career Insights sections of Maimai (maimai.cn). Supports: posts from a specific company's Colleague Circle, the site-wide Career Insights feed (hot/latest/following), the Colleague Circle popularity ranking, and looking up a webcid by company name. This skill must be triggered whenever the user mentions "Maimai," "Colleague Circle," "Career Insights," "maimai," "maimai-hub," or any scenario that requires reading Maimai content.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before each use, retrieve the latest cookies with browser_use get_cookies.

    line 10
  2. Distinctive:

    When the script returns an empty array or HTTP 404, automatically switch to reading the page content directly in the browser:

    line 23
  3. Distinctive:

    When summarizing, sort by engagement (likes + cmts), identify the main topics, and do not list the original text item by item.

    line 107
  4. Distinctive:

    Returns an empty array: No permission for the Colleague Circle (not an employee of that company).

    line 111
  5. Very specific:

    Missing csrftoken: Make sure to access the site with a desktop UA before calling get_cookies.

    line 112
  6. Very specific:

    Cannot find the webcid for a company name: Ask the user to provide the Colleague Circle URL directly …

    line 113

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

maimai-hub

Authentication Process

Before each use, retrieve the latest cookies with browser_use get_cookies. This must be done on the desktop version of the page because the mobile version does not include csrftoken:

1. browser_use set_user_agent → desktop_safari
2. browser_use navigate → https://maimai.cn/web/search_center
3. browser_use get_cookies → save to env file
4. Confirm that the env file contains COOKIE_CSRFTOKEN (otherwise, retry steps 2-3)

Example ENV file path: /var/minis/offloads/env_cookies_maimai_cn_XXXXXXXX.sh

Colleague Circle Fallback Plan (When the API Is Unavailable)

When the script returns an empty array or HTTP 404, automatically switch to reading the page content directly in the browser:

Colleague Circle page URL format:
https://maimai.cn/company/gossip_discuss?webcid=<WEBCID>

Note: The old paths /web/gossip_discuss and /community/gossip_discuss now both return 404.
You must use /company/gossip_discuss.

Fallback steps:

1. browser_use navigate → https://maimai.cn/company/gossip_discuss?webcid=<WEBCID>
2. Scroll multiple times to load more content (scroll down × 4~6, 800px each time)
3. Extract post text with browser_use get_readable or execute_js:
   document.querySelectorAll('[class*="content"],[class*="text"],[class*="body"]')
   Filter criteria: length 15~800, exclude noise such as "Maimai", "illegal", and "Colleague Circle popularity"
4. Deduplicate the extracted results, then compile and summarize them

Script Invocation

Script: /var/minis/skills/maimai-hub/scripts/maimai.py

# Colleague Circle posts (must be an employee of that company)
python3 /var/minis/skills/maimai-hub/scripts/maimai.py gossip_circle \
  --webcid 9AG14xzt --count 20 --env <ENV_FILE>

# Look up a Colleague Circle by company name (automatically finds webcid)
python3 /var/minis/skills/maimai-hub/scripts/maimai.py gossip_circle \
  --company Ant Group --count 20 --env <ENV_FILE>

# Site-wide Career Insights feed
python3 /var/minis/skills/maimai-hub/scripts/maimai.py gossip_feed \
  --tab hot --count 20 --env <ENV_FILE>
  # tab: hot(Trending) | new(Latest) | follow(Following) | recommend(Recommended)

# Colleague Circle popularity ranking (gets popular company webcids)
python3 /var/minis/skills/maimai-hub/scripts/maimai.py circle_rank \
  --env <ENV_FILE>

# Look up webcid by company name
python3 /var/minis/skills/maimai-hub/scripts/maimai.py search_company \
  --name ByteDance --env <ENV_FILE>

How to Obtain the webcid

Priority:

  1. URL provided by the user → extract with regex: webcid=([A-Za-z0-9]+)
  2. Current user's company → visit https://maimai.cn/web/search_center, then execute JS:
    window.share_data.data.mycard.web_cid  // returns the webcid directly; .company is the full company name
  3. Company name matching → built-in script cache + dynamic ranking lookup (circle_rank command)

Colleague Circle page URL (for browser fallback): https://maimai.cn/company/gossip_discuss?webcid=<WEBCID>

Built-in webcid cache (major tech companies):

Companywebcid
ByteDancejYZTTwkX
Pinduoduo1cDwhLvjW
Tencent167PEUToR
AlibabaEnT6guJz
Ant Group9AG14xzt
BaidumWqfo5EX
Meituan5DDx3ANi
XiaomiKvzN4IGA
JD.comSJdjsQ5S
KuaishouRO3MvtaT

Permissions

  • Colleague Circle: Access is limited to employees of that company. error_code: 21003 indicates no permission.
  • Site-wide Career Insights: Accessible to all logged-in users.
  • Ranking: Accessible to all logged-in users.

Output Format

The script returns JSON. Fields for each post: id, time, text, likes, cmts, spreads, ip_loc

When summarizing, sort by engagement (likes + cmts), identify the main topics, and do not list the original text item by item.

Frequently Asked Questions

  • Returns an empty array: No permission for the Colleague Circle (not an employee of that company). Switch to site-wide Career Insights.
  • Missing csrftoken: Make sure to access the site with a desktop UA before calling get_cookies.
  • Cannot find the webcid for a company name: Ask the user to provide the Colleague Circle URL directly (https://maimai.cn/company/gossip_discuss?webcid=xxx).
  • API returns empty / 404: Automatically switch to the browser fallback plan. See the "Colleague Circle Fallback Plan (When the API Is Unavailable)" section.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.