hm-fetch-skill
- Repo stars 47
- Author repo MateBot
HM Fetch Skill
Fetch HarmonyOS docs through API first, then fallback to generic fetch.
API-First Rule
Use API route first for正文:
- Endpoint:
https://svc-drcn.developer.huawei.com/community/servlet/consumer/cn/documentPortal/getDocumentById - Request body:
{"objectId":"<slug>","language":"cn"} - Important:
objectIdis the document slug, notdocId.
Scripts
- Single page by slug:
python3 scripts/fetch_huawei_doc_api.py --slug typescript-to-arkts-migration-guide --out /tmp/doc.md
- Preset migration pages:
python3 scripts/fetch_huawei_doc_api.py --preset migration --out-dir references/huawei-migration
- One-shot refresh (API first, fallback to fetch-skill):
bash scripts/fetch_huawei_migration_refs.sh
Local-First Workflow
- Refresh local cache by
bash scripts/fetch_huawei_migration_refs.sh. - Answer questions from
references/huawei-migration/*.md. - Only if local cache is insufficient, refetch specific slug by API script.
Outputs
references/huawei-migration/01-arkts-migration-background.mdreferences/huawei-migration/02-typescript-to-arkts-migration-guide.mdreferences/huawei-migration/03-arkts-more-cases.md
- Fluxly category
- Documentation
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 88 / 100 · heuristic scan, not runtime safety proof
- Author / version / license
- @aresbit · no license declared
- Fluxly token estimate
- Lean
- Fluxly setup estimate
- Plug-and-play
- External API key
- No requirement detected
- Detected OS requirements
- Unspecified
- Runtime requirements
- Unspecified
- Detected file/system behavior
-
- Read-only
- Detected network behavior
- External requests
- Install commands
- None (reference only)
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
The current SKILL.md does not define a fixed output example. Use API route first for正文: Endpoint: https://svc-drcn.developer.huawei.com/community/servlet/consumer/cn/documentPortal/getDocumentById Request body: {"objectId":"<slug>","language":"cn"}
Single page by slug: python3 scripts/fetchhuaweidocapi.py --slug typescript-to-arkts-migration-guide --out /tmp/doc.md Preset migration pages:
Refresh local cache by bash scripts/fetchhuaweimigrationrefs.sh. Answer questions from references/huawei-migration/.md. Only if local cache is insufficient, refetch specific slug by API script.
references/huawei-migration/01-arkts-migration-background.md references/huawei-migration/02-typescript-to-arkts-migration-guide.md references/huawei-migration/03-arkts-more-cases.md
# HM Fetch Skill
Fetch HarmonyOS docs through API first, then fallback to generic fetch.
## API-First Rule
Use API route first for正文:
- Endpoint: `https://svc-drcn.developer.huawei.com/community/servlet/consumer/cn/documentPortal/getDocumentById`
- Request body: `{"objectId":"<slug>","language":"cn"}`
- Important: `objectId` is the document slug, not `docId`.
## Scripts
- Single page by slug:
- `python3 scripts/fetch_huawei_doc_api.py --slug typescript-to-arkts-migration-guide --out /tmp/doc.md`
- Preset migration pages:
- `python3 scripts/fetch_huawei_doc_api.py --preset migration --out-dir references/huawei-migration`
- One-shot refresh (API first, fallback to fetch-skill):
- `bash scripts/fetch_huawei_migration_refs.sh`
## Local-First Workflow
1. Refresh local cache by `bash scripts/fetch_huawei_migration_refs.sh`.
2. Answer questions from `references/huawei-migration/*.md`.
3. Only if local cache is insufficient, refetch specific slug by API script.
## Outputs
- `references/huawei-migration/01-arkts-migration-background.md`
- `references/huawei-migration/02-typescript-to-arkts-migration-guide.md`
- `references/huawei-migration/03-arkts-more-cases.md` Author text anchors workflow facts; Fluxly only indexes current sections, terms, files, and commands.
sections -> API-First Rule → Scripts → Local-First Workflow → Outputs
terms -> Fetch HarmonyOS docs through API first, then fallback to generic fetch. · 1. Refresh local cache by bash scripts/fetchhuaweimigrationrefs.sh.
files/cmd -> {"objectId":"<slug>","language":"cn"} · objectId · docId · python3 scripts/fetchhuaweidocapi.py --preset migration --out-dir references/huawei-migration · bash scripts/fetchhuaweimigrationrefs.sh · references/huawei-migration/.md · references/huawei-migration/01-arkts-migration-background.md · references/huawei-migration/02-typescript-to-arkts-migration-guide.md
body sha256 -> 851ecdf441bb
Decide Fit First
Design Intent
How To Use It
Boundaries And Review