hm fetch skill
- Repo stars 47
- Author repo MateBot
- Domain
- 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
- Runtime evidence
- Not run; no isolated runtime test evidence is currently recorded
- Author / version / license
- @aresbit · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No explicit requirements detected
- Detected file/system behavior
-
- Read-only
- Network behavior
- External requests
- Install commands
- None (reference only)
Heads up: Tool permissions are not declared; actual access depends on the runtime.
# 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`
Sections and files
Listed in source order.
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/fetch_huawei_doc_api.py --preset migration --out-dir references/huawei-migration · bash scripts/fetch_huawei_migration_refs.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
Scripts
Single page by slug:
python3 scripts/fetch_huawei_doc_api.py --slug typescript-to-arkts-migration-guide --out /tmp/doc.mdPreset migration pages:python3 scripts/fetch_huawei_doc_api.py --preset migration --out-dir references/huawei-migrationOne-shot refresh (API first, fallback to fetch-skill):Local-First Workflow
Refresh local cache by
bash scripts/fetch_huawei_migration_refs.sh. Answer questions fromreferences/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