CCDB Factor Search
This skill does not just search factors.
It selects the most usable CCDB factor for real carbon-accounting work, explains why it fits, surfaces risks, and warns when a result should not be used directly.
It is built to answer the real business question:
Which factor should I actually use?
What this skill does
Use this skill when the user needs more than a raw candidate list.
It can:
- - search CCDB carbon / emission factors in Chinese + English
- compare multiple candidates and select the best-fit one
- distinguish carbon footprint factor vs emission factor
- reject weak matches such as wrong-region, wrong-unit, or spend-based factors
- explain whether a result is safe to use directly or should only be used as reference
In short:
- - plain factor search → raw factor list
- this skill → best-fit recommendation + risk explanation + use guidance
When to use this skill
Activate this skill when the user asks to:
- - 查找 / 匹配 / 选择 CCDB 因子
- 查碳因子 / 排放因子 / emission factor / carbon factor
- 比较多个因子候选
- 判断某个因子能不能直接用于正式报告
- 支持 PCF / LCA / 碳核算 / ESG / 供应链核算中的因子匹配
Typical scenarios:
- - product carbon footprint (PCF)
- life cycle assessment (LCA)
- supplier-data factor matching
- carbon accounting / emissions reporting
- sustainability consulting delivery
Very short examples
- - 查询最新中国全国电力因子
- 帮我找聚酯切片的碳因子
- 这个因子能不能直接用于正式报告?
- Compare carbon footprint factor vs emission factor for electricity
- Find the best CCDB factor for primary aluminium
How to invoke
Natural-language examples
- - INLINECODE0
- INLINECODE1
- INLINECODE2
- INLINECODE3
- INLINECODE4
Script examples
python3 scripts/query_ccdb.py --auto --user-request "查询最新的中国全国电力因子,单位最好是 kgCO2e/kWh。"
python3 scripts/query_ccdb.py --query "electricity" --lang en --top 5
Typical example prompts
Example 1
查询最新的中国全国电力因子,单位最好是 kgCO2e/kWh。
Expected behavior:
- - prioritize China electricity candidates
- prefer recent applicable years
- distinguish carbon footprint factor vs emission factor
- return direct-use guidance
Example 2
帮我找聚酯切片的碳因子,如果中文结果不好就切英文继续找。
Expected behavior:
- - derive PET / polyester synonyms
- search bilingually
- compare candidates across rounds
- return one recommended factor plus alternatives
Example 3
请帮我找原铝的排放因子,优先物理量单位,不要误选成按金额计算的因子。
Expected behavior:
- - reject or downgrade spend-based factors
- prefer physical-unit candidates
- explain why the chosen factor is safer
Example 4
这个因子能不能直接用于正式报告?
Expected behavior:
- - explain whether it is direct-use / needs review / estimate-only / not suitable
Standard output example
CODEBLOCK1
Key fields to return when possible
A good result should explain these fields clearly:
- - 因子名称 / name
- 因子值 / factor value
- 单位 / unit
- 适用地区 / countries
- 适用年份开始 / 结束 / applyYear ~ applyYearEnd
- 发布年份 / year
- 来源机构 / institution
- 来源级别 / sourceLevel
- 来源说明 / source
- 使用建议 / direct-use guidance
Match classes
- -
direct_match → highly aligned, usually safe to use after quick sanity check - INLINECODE6 → mostly aligned, should usually be reviewed before formal reporting
- INLINECODE7 → usable only as rough estimate / placeholder
- INLINECODE8 → should not be used directly
- INLINECODE9 → no recommendation; retry later
What this skill must do
1. Parse the real search intent
Identify as much as possible from the request:
- - material / process / activity
- region
- year
- unit
- use purpose
- whether the user wants 碳足迹因子 or 排放因子
2. Search bilingually
For non-trivial factor matching, do not search in only one language.
Always try:
- - Chinese core term
- English equivalent
- a few nearby synonyms where needed
3. Rank candidates instead of trusting the first hit
Do not judge a factor from one field only.
Key ranking dimensions include:
- - semantic fit (
name, description, specification) - region fit (
countries) - unit fit (
unit) - applicability time (
applyYear ~ applyYearEnd) - publication year (
year) - authority (
institution, sourceLevel) - factor-type fit (碳足迹因子 vs 排放因子)
4. Be conservative
Do not force a recommendation when evidence is weak.
Prefer:
- - INLINECODE20
- INLINECODE21
over a misleading confident answer.
5. Explain the choice
The final answer should explain:
- - what was selected
- why it was selected
- what risks remain
- what alternatives were considered
- whether the result can be used directly or only as reference
Key working rules
Carbon footprint factor vs emission factor
These are not always interchangeable.
- - If the user explicitly asks for 碳足迹 / carbon footprint / PCF, prefer carbon footprint factors.
- If the user explicitly asks for 排放因子 / CO2 emission factor / emissions accounting, prefer emission factors.
- If the user only says something vague like “电力因子”, warn that multiple factor types may exist and should not be mixed directly.
China-first bias for Chinese requests
If:
- - the request is in Chinese
- no explicit region is given
- the query is geo-sensitive (especially 电力 / 蒸汽 / 天然气)
then Chinese candidates should be preferred by default.
Region warning for geo-sensitive factors
For electricity / steam / natural gas queries, if region is missing, surface that clearly as a risk.
Latest-factor requests
If the user asks for “最新 / latest”, ranking should prefer more recent
applyYear, not only lexical similarity.
No spend-based mismatch
If the user wants a physical activity factor, do not recommend spend-based / monetary-unit factors as if they were equivalent.
Implementation notes
- - Main script: INLINECODE23
- API contract: INLINECODE24
- Matching logic notes: INLINECODE25
- Output template: INLINECODE26
If the API contract changes, update the script and references/api-contract.md together.
Keep scoring / filtering logic in code rather than overloading SKILL.md with implementation detail.
Packaging guidance
For public packaging, keep the skill folder lean.
Recommended public package contents:
- - INLINECODE28
- INLINECODE29
- INLINECODE30
- INLINECODE31
- INLINECODE32
- INLINECODE33
- INLINECODE34
- INLINECODE35
- INLINECODE36
Draft notes and publishing scratch files should not be included in the final public package.
CCDB 因子搜索
此技能不仅仅是搜索因子。
它能为实际碳核算工作选择最适用的CCDB因子,解释其适用原因,揭示风险,并在结果不应直接使用时发出警告。
该技能旨在回答真实的业务问题:
我到底应该使用哪个因子?
此技能的功能
当用户需要的不仅仅是原始候选列表时,请使用此技能。
它可以:
- - 以中英文搜索CCDB碳/排放因子
- 比较多个候选因子并选择最匹配的因子
- 区分碳足迹因子与排放因子
- 排除弱匹配项,如区域错误、单位错误或基于支出的因子
- 解释结果是否可以直接安全使用,或仅应作为参考
简而言之:
- - 普通因子搜索 → 原始因子列表
- 此技能 → 最佳匹配推荐 + 风险解释 + 使用指导
何时使用此技能
当用户要求以下内容时,激活此技能:
- - 查找 / 匹配 / 选择 CCDB 因子
- 查碳因子 / 排放因子 / emission factor / carbon factor
- 比较多个因子候选
- 判断某个因子能不能直接用于正式报告
- 支持 PCF / LCA / 碳核算 / ESG / 供应链核算中的因子匹配
典型场景:
- - 产品碳足迹(PCF)
- 生命周期评估(LCA)
- 供应商数据因子匹配
- 碳核算 / 排放报告
- 可持续发展咨询交付
简短示例
- - 查询最新中国全国电力因子
- 帮我找聚酯切片的碳因子
- 这个因子能不能直接用于正式报告?
- Compare carbon footprint factor vs emission factor for electricity
- Find the best CCDB factor for primary aluminium
如何调用
自然语言示例
- - 查询最新中国全国电力因子
- 帮我找聚酯切片的碳因子,如果中文结果不好就切英文继续找
- 这个因子能不能直接用于正式报告?
- Compare carbon footprint factor vs emission factor for electricity
- Find the best CCDB factor for primary aluminium, prefer physical-unit factor
脚本示例
bash
python3 scripts/query_ccdb.py --auto --user-request 查询最新的中国全国电力因子,单位最好是 kgCO2e/kWh。
python3 scripts/query_ccdb.py --query electricity --lang en --top 5
典型示例提示
示例1
查询最新的中国全国电力因子,单位最好是 kgCO2e/kWh。
预期行为:
- - 优先考虑中国电力候选因子
- 偏好较新的适用年份
- 区分碳足迹因子与排放因子
- 返回直接使用指导
示例2
帮我找聚酯切片的碳因子,如果中文结果不好就切英文继续找。
预期行为:
- - 推导PET / 聚酯同义词
- 双语搜索
- 跨轮次比较候选因子
- 返回一个推荐因子及备选方案
示例3
请帮我找原铝的排放因子,优先物理量单位,不要误选成按金额计算的因子。
预期行为:
- - 排除或降级基于支出的因子
- 优先选择物理单位候选因子
- 解释所选因子为何更安全
示例4
这个因子能不能直接用于正式报告?
预期行为:
- - 解释其是否可直接使用 / 需要复核 / 仅为估算 / 不适用
标准输出示例
yaml
推荐结果:
匹配等级: close_match
因子名称: 电力
因子值: 0.5777
单位: kgCO2e/kWh
适用地区: 中国
适用年份开始: 2024
适用年份结束: 2024
发布年份: 2024
来源机构: 生态环境部
来源级别: 国家排放因子
使用建议: 建议人工复核后使用
风险与注意事项:
- 这是碳足迹因子,不等同于 CO2 排放因子
- 若用于正式核算或核查,请先确认适用口径
尽可能返回的关键字段
一个好的结果应清晰解释以下字段:
- - 因子名称 / name
- 因子值 / factor value
- 单位 / unit
- 适用地区 / countries
- 适用年份开始 / 结束 / applyYear ~ applyYearEnd
- 发布年份 / year
- 来源机构 / institution
- 来源级别 / sourceLevel
- 来源说明 / source
- 使用建议 / direct-use guidance
匹配等级
- - directmatch → 高度一致,通常经过快速合理性检查后即可安全使用
- closematch → 基本一致,通常在正式报告前应进行复核
- fallbackgeneric → 仅可作为粗略估算 / 占位符使用
- notsuitable → 不应直接使用
- api_unavailable → 无推荐;稍后重试
此技能必须做到的事项
1. 解析真实搜索意图
尽可能从请求中识别:
- - 材料 / 工艺 / 活动
- 地区
- 年份
- 单位
- 使用目的
- 用户想要的是碳足迹因子还是排放因子
2. 双语搜索
对于非平凡的因子匹配,不要仅用一种语言搜索。
始终尝试:
- - 中文核心术语
- 英文对应词
- 必要时使用几个相近同义词
3. 对候选因子进行排序,而非信任第一个结果
不要仅凭一个字段判断因子。
关键排序维度包括:
- - 语义匹配度(name、description、specification)
- 地区匹配度(countries)
- 单位匹配度(unit)
- 适用时间(applyYear ~ applyYearEnd)
- 发布年份(year)
- 权威性(institution、sourceLevel)
- 因子类型匹配度(碳足迹因子 vs 排放因子)
4. 保持保守
当证据不足时,不要强行推荐。
优先选择:
- - notsuitable
- apiunavailable
而非给出误导性的自信答案。
5. 解释选择
最终答案应解释:
- - 选择了什么
- 为什么选择它
- 存在哪些风险
- 考虑了哪些备选方案
- 结果是否可以直接使用或仅作为参考
关键工作规则
碳足迹因子 vs 排放因子
这两者并非总是可以互换。
- - 如果用户明确要求碳足迹 / carbon footprint / PCF,优先选择碳足迹因子。
- 如果用户明确要求排放因子 / CO2 emission factor / emissions accounting,优先选择排放因子。
- 如果用户仅模糊地说“电力因子”,应警告可能存在多种因子类型,不应直接混用。
中文请求优先考虑中国
如果:
- - 请求为中文
- 未明确指定地区
- 查询具有地理敏感性(尤其是电力 / 蒸汽 / 天然气)
则默认优先选择中国候选因子。
地理敏感因子的地区警告
对于电力 / 蒸汽 / 天然气查询,如果缺少地区信息,应明确将其作为风险点指出。
最新因子请求
如果用户要求“最新 / latest”,排序应优先考虑较新的applyYear,而非仅词汇相似度。
避免基于支出的不匹配
如果用户需要物理活动因子,不要推荐基于支出 / 货币单位的因子作为等效替代。
实施说明
- - 主脚本:scripts/query_ccdb.py
- API 合同:references/api-contract.md
- 匹配逻辑说明:references/matching-strategy.md
- 输出模板:references/output-template.md
如果 API 合同发生变更,请同时更新脚本和 references/api-contract.md。
将评分 / 过滤逻辑保留在代码中,而非在 SKILL.md 中堆砌实现细节。
打包指导
对于公开发布,保持技能文件夹精简。
推荐的公开发布包内容:
- - SKILL.md
- README.md
- meta.json
- CHANGELOG.md
- scripts/queryccdb.py
- references/api-contract.md
- references/matching-strategy.md
- references/output-template.md
- evals/evals.json
草稿说明和发布临时文件不应包含在最终公开发布包中。