技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
capacity【数据与研究】Use when updating installed capacity data, adding capacity parsers, or diagnosing Electricity Maps capacity configuration timelines.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill for installed-capacity workflows: capacity parsers,
capacity_update, zone capacity config timelines, capacity source groups, and
aggregate parent-zone capacity updates.
Do not use this route for live production/consumption/price/exchange parser smoke tests; use parsers. Use configuration for zone/exchange config validation that is not specifically about installed capacity.
Decide whether the user wants a single zone update, a source group update, or a capacity parser implementation.
Inspect available capacity parser ownership before mutating files:
python scripts/capacity_update.py --repo-root <checkout> --list-sources
python scripts/capacity_update.py --repo-root <checkout> --zone DK-DK1 \
--target-datetime 2023-01-01
Execute only after confirming network/API-token requirements and expected YAML mutations:
python scripts/capacity_update.py --repo-root <checkout> --zone DK-DK1 \
--target-datetime 2023-01-01 --update-aggregate --execute
Review the config diff and run focused native tests before formatting or broadening to full-suite checks.
scripts/capacity_update.py is a safe wrapper/command generator. It lists
registry mappings by default and requires --execute before live mutation.--zone and --source are mutually exclusive. --source groups all zones
configured for one capacity parser source such as EIA, EMBER, ENTSOE, IRENA,
ONS, OPENNEM, or REE.target_datetime is required. Use an ISO date such as 2023-01-01 unless a
source requires more precision.--update-aggregate updates the parent zone when subzone capacity changes;
it can fail if subzones do not share compatible capacity list structures.ENTSOE_TOKEN, EIA_KEY,
EMBER_CAPACITY_KEY, OPENELECTRICITY_TOKEN, or FINGRID_TOKEN.config/zones diffs for trend breaks and source
consistency before running prettier/formatting.uv run pytest tests/test_capacity.py tests/test_update_capacity_configuration.py -q
uv run pytest electricitymap/contrib/capacity_parsers/tests/test_ONS.py \
electricitymap/contrib/capacity_parsers/tests/test_OPENELECTRICITY.py -q
If a capacity update also changes parser mappings or broader zone YAML fields, run the configuration sub-skill's model/filename checks as well.