文件历史

提交图

13 次代码提交

作者 SHA1 备注 提交日期
Saurav Panda 56eb057456 Merge pull request #259 from zhanning68-stack/domain-skills/cn-hotels
domain-skills: add ly.com, ctrip, wehotel (Chinese hotel sites)
2026-05-02 12:20:09 -07:00
Saurav Panda 318e3f01cc address cubic feedback on cn-hotels skills
- ly-com: read Vue ref via stable .value with _rawValue fallback
  rather than the brittle internal _rawValue path.
- wehotel: ancestor walk now identifies the hotel-name anchor by
  identity/innerText instead of an href-based negation against text
  (查看详情 lives on the link body, not in href), which previously
  let the loop stop on the detail anchor itself.
- ctrip: raise an explicit error when the destination input or 搜索
  button isn't found, instead of dereferencing None and crashing
  with a confusing TypeError.
2026-05-02 12:03:44 -07:00
Saurav Panda 059407785c Merge pull request #267 from jamster/domain-skills/claude-ai-share-export
domain-skills: add claude-ai/share-export
2026-05-02 12:01:25 -07:00
Saurav Panda 9ce945026d fix utf-8 encoding and document source_url in json schema
- write_text calls now pin encoding="utf-8" so non-ASCII transcripts
  don't depend on the locale default.
- share-export.md schema now lists source_url, matching what the script
  actually emits.
2026-05-02 11:40:04 -07:00
Saurav Panda 756fa93a5c Merge pull request #268 from vedantggwp/domain-skills/articulate-rise-code-blocks
domain-skills: articulate-rise — code blocks
2026-05-02 11:36:21 -07:00
Saurav Panda 2b88cf40cb move articulate-rise skill under agent-workspace/domain-skills/
Match the canonical location used by all other domain-skills.
2026-05-02 11:32:13 -07:00
MAX0MAX d7986fdb97 domain-skills: add bilibili navigation and structure skill (#270)
* domain-skills: add bilibili navigation and structure skill

Covers site architecture, URL patterns, content channels, video
interaction features (三连/投币/弹幕), and navigation quirks for
the Chinese video platform.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* domain-skills: fix PR review — correct history URL and ranking tab count

- Fix history URL from bilibili.com/history to https://www.bilibili.com/account/history
- Remove incorrect "also contains 稍后再看 tab" note (watch later is a separate SPA)
- Fix ranking category tab count from 23 to 24

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 11:30:19 -07:00
MAX0MAX de55c38e90 domain-skills: add BOSS直聘 (zhipin.com) navigation, job search, and chat skills (#271)
* domain-skills: add BOSS直聘 (zhipin.com) navigation and job search skills

Verified content only — navigation structure and job card extraction
confirmed via browser CDP.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* domain-skills: verify zhipin job search with API-first approach

Browser-verified: the /wapi/zpgeek/pc/recommend/job/list.json API
returns real salary numbers ("18-22K") unlike the DOM which uses
font-encoded PUA characters. Added full API reference for job list,
job detail, and filter conditions endpoints.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* domain-skills: verify zhipin chat with WebSocket + REST API

Browser-verified: conversation list loads via WebSocket (ws6.zhipin.com),
message history via /wapi/zpchat/geek/historyMsg API. Documented message
body types (text=1, job card=8, system=16), DOM selectors, pagination,
and bossId extraction.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* domain-skills: add zhipin chat filter tabs with clickable UI control

Browser-verified: 全部/未读/新招呼/更多/有交换/有面试/不感兴趣/AI筛选
filters with click_filter() and click_more_filter() functions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* domain-skills: browser-verify job-search.md and fix API field names

Verified all functions against live zhipin.com. Fixed brandInfo→brandComInfo
with correct sub-fields (brandName/logo/industryName), corrected city codes
(101280100=Guangzhou not Shenzhen), documented page-based pagination as
unreliable, added encryptExpectId default params, and noted anti-bot timing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* domain-skills: fix PR review — add API response validation, narrow bossId extraction, clarify city slug

- Guard all d.zpData accesses with d.code !== 0 checks across job-search.md and chat.md
- Filter bossId extraction to /wapi/zpchat/geek/historyMsg URLs only
- Correct "Chinese" to "pinyin" for city slug and add API code cross-reference

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 11:28:54 -07:00
Jason Amster 7740c2e42d domain-skills: add claude-ai/share-export
Captures durable selectors and gotchas for exporting transcripts from
claude.ai/share/<uuid> URLs:

- [data-testid=user-message] for user turns, .font-claude-response for
  assistant turns, [data-testid=page-header] for the chat title
- Container-walk pattern (no semantic wrapper — turns are alternating
  siblings of a common ancestor)
- The H2.sr-only "Claude responded:" trap that pollutes innerText if you
  select the outer turn div instead of .font-claude-response
- Auth requirement: share pages render the conversation only for
  signed-in viewers; logged-out sessions get an empty app shell

Includes a working extract-share-transcript.py that emits both JSON and
LLM-friendly Markdown ({Human|Assistant} headers).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 18:53:12 -04:00
alex e1eabc4584 fix: move shopify-admin skills to agent-workspace/domain-skills/
PR #247 added these under domain-skills/ at the repo root, but the
canonical location for domain skills is agent-workspace/domain-skills/
(referenced in README.md, SKILL.md, and helpers.py).
2026-04-29 23:39:22 -07:00
zhanning eb8b708f49 domain-skills: add ly.com, ctrip, wehotel (Chinese hotel sites)
Field-tested 2026-04-29. First batch covering Chinese hotel-booking sites:

- ly-com (同程旅行): hotels.md — prices gated behind login; Nuxt SSR
  state holds metadata. Documents the ¥? placeholder pattern, Nuxt data
  key randomization, login flow via passport.ly.com.
- ctrip (携程): hotels.md — anonymous price extraction works *only*
  with the canonical 6-param URL schema. Documents the schema gate,
  homepage-form fallback, phantom-¥ regex trap, no-href-on-cards
  reality.
- wehotel (锦江): hotels.md — fully anonymous; covers all Jin Jiang
  sub-brands (J酒店/锦江/维也纳/7天/IU etc). Documents the
  inconsistent checkinDate vs checkInDate capitalization between list
  and detail URLs.

All three include URL patterns, list/detail extraction JS, traps, and
quick-start snippets per the SKILL.md "durable site map" guidance.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-30 13:55:02 +08:00
FuLin 1c5a5681bb domain-skills: add Xiaohongshu scraping skill (web search, sorting, and note-opening) (#246)
* Add Xiaohongshu search and note-opening skill

* Clarify Xiaohongshu search URL encoding
2026-04-29 11:46:32 -07:00
Sarath S Menon fb1a51dd9b refactor: move to src layout, agent-workspace, and fix SKILL.md invocation format (#229)
* refactor(tests): reorganize into tests/unit and tests/integration

Moves all root-level test_*.py files into a structured tests/ directory:
- tests/unit/ — admin, helpers (was test_screenshot), run
- tests/integration/ — js expression tests
- tests/conftest.py — shared fake_png pytest fixture, eliminating duplication

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* refactor: move to src layout, agent-workspace, and fix SKILL.md invocation format

- Move package to src/browser_harness/ and domain-skills/interaction-skills to agent-workspace/
- Fix all browser-harness <<'PY' heredoc examples in SKILL.md and run.py HELP string to use the correct -c '...' flag format (heredoc was never supported by the CLI)
- Update SKILL.md path references from domain-skills/ to agent-workspace/domain-skills/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 15:38:11 +05:30