hm fetch skill

Documentation Community

Skill notes

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):

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.md references/huawei-migration/02-typescript-to-arkts-migration-guide.md references/huawei-migration/03-arkts-more-cases.md

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
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.

Author source file SKILL.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`

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.