ndc-lightscorelisted
Install: claude install-skill chenwei791129/agent-skills
# NDC 景氣對策信號查詢
Fetch Taiwan National Development Council (NDC, 國發會) business cycle monitoring indicators: latest published month, score, signal light, recent series, full historical score series, consecutive red-light runs, and the next publish date shown on the NDC lightscore page.
The NDC site is protected by Cloudflare. Direct `curl` or `requests` calls often return 403, so the included script runs through `uv` and Patchright, opens Chrome, loads the relevant NDC page once, then reads official same-origin JSON endpoints from the browser context.
## Usage
Output the latest normalized JSON and recent 12-month series:
```bash
uv run ~/.claude/skills/ndc-lightscore/scripts/fetch_ndc_lightscore.py --json
```
Output latest data in human-readable text:
```bash
uv run ~/.claude/skills/ndc-lightscore/scripts/fetch_ndc_lightscore.py --text
```
Include the most recent N rows of the short lightscore series:
```bash
uv run ~/.claude/skills/ndc-lightscore/scripts/fetch_ndc_lightscore.py --json --series-limit 12
```
Fetch the full historical monthly score series from the NDC indicators endpoint:
```bash
uv run ~/.claude/skills/ndc-lightscore/scripts/fetch_ndc_lightscore.py --history --json --series-limit -1
```
Find historical consecutive red-light runs. This answers questions like "哪些年份景氣燈號超過連五紅,分別連多少紅":
```bash
uv run ~/.claude/skills/ndc-lightscore/scripts/fetch_ndc_lightscore.py --red-runs --min-red-length 5 --text
```
Machine-readable red-run output:
```bash
uv run ~/