policy-weekly-reporter

policy-weekly-reporter: A skill that automatically generates customized public policy weekly reports for companies. Based on user-specified industry, company profile, monitored regions, and policy focus areas, it collects central and local policy developments for the week and uses AI to produce three-part analyses (“event content / why it matters / recommended responses”), exporting reports in Markdown, DOCX, and PDF formats to the desktop. Trigger scenarios include “generate policy weekly report,” “generate for company X,” “switch industry report,” and the Monday automated run.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "policy-weekly-reporter" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5acb88acbd278c34e7ef7e4e481b874d38f7987c9769d734bd28f1b4cad3bc09. Verify the upstream source and version against https://skillhub.cn/skills/user_bccbe8ee/policy-weekly-reporter before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

policy-weekly-reporter: A skill that automatically generates customized public policy weekly reports for companies. Based on user-specified industry, company profile, monitored regions, and policy focus areas, it collects central and local policy developments for the week and uses AI to produce three-part analyses (“event content / why it matters / recommended responses”), exporting reports in Markdown, DOCX, and PDF formats to the desktop. Trigger scenarios include “generate policy weekly report,” “generate for company X,” “switch industry report,” and the Monday automated run.

0 Downloads

Introduction source: third_party · user_bccbe8ee · 1.1.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: policy-weekly-reporter
description: |
  为企业自动生成定制化公共政策周报。根据用户指定的行业(物流/互联网/金融...)、
  企业画像(满帮/字节/工行/小红书/...)、监测地域(江苏/贵州/北京/...)和
  政策关注领域(平台经济/数字经济/AI/新就业群体/...),
  抓取当周中央与地方政策动态,AI 生成「事件内容/值得关注原因/应对建议」三段式解读,
  输出 Markdown + DOCX + PDF 三格式周报到桌面。
  触发场景:(1) "生成政策周报" (2) "帮XX公司生成政策周报"
  (3) "切换XX行业周报" (4) 周一上午自动跑 automation-1778724049490。
agent_created: true
version: 1.1.0

Policy Weekly Reporter — 公共政策周报生成器

Skill 简介

把每周一手动/自动跑的"公共政策周报"任务封装为可复用 skill。 核心能力:6 个可定制参数(profile / regions / domains / top_n / output_format / style / sync_target), 让"满帮/物流/江苏贵州"模式可一键切换到"字节/互联网/北京"、"工行/金融/上海"、"通用/全国"等其他场景。

适用场景

  • 周一上午自动生成满帮集团公共政策周报(默认 automation 触发)
  • 切换行业/企业/地域生成定制周报
  • 快速产出某行业某周的政策简报(brief 风格)
  • 高管摘要型日报(executive 风格)

目录结构

policy-weekly-reporter/
├── SKILL.md (本文档)             # 工作流主入口
├── meta.json                     # skill 元数据
├── scripts/
│   ├── init_run.py               # 首次运行配置向导
│   ├── content_scout.py          # 搜索矩阵生成
│   ├── render_md.py              # Markdown 渲染核心(精简头部:仅标题+日期范围)
│   ├── export_formats.py         # MD → DOCX / PDF 导出
│   ├── compose_weekly.py         # 主编排胶水
│   └── ima_uploader.py           # IMA 知识库同步
├── references/
│   ├── config-schema.md          # 配置文件 schema
│   ├── industry-profiles.md      # 行业画像
│   ├── region-watch.md           # 地域监测重点
│   ├── policy-domain-taxonomy.md # 政策领域分类
│   ├── prompt-templates.md       # AI 提示词模板
│   └── style-presets.md          # 风格预设
├── assets/
│   ├── styles.json               # 视觉样式
│   └── sample-config-*.json      # 配置示例
├── profiles/
│   └── manbang.json              # 满帮运行时配置
├── data/                         # 运行时数据
└── archive/                      # 归档旧脚本

工作流(7 步)

Step 1: 读取配置

读 profiles/<name>.json。优先级:用户输入 > profile 文件 > defaults。

无配置文件时调用 init_run.py 启动配置向导。

Step 2: 读取记忆

读以下两个文件:

  • .workbuddy/automations/automation-1778724049490/memory.md(历史执行记录)
  • 最近一期 policy-weekly-content-YYYYMMDD.json(上周 TOP 5 内容)

提取:本期期号、报告期间、已跟踪事项的进展状态。

Step 3: 联网收集政策

调用 content_scout.py 生成搜索矩阵。规则:

query = "{domain_keywords} {region_name} {date_range}"
  • 对 domains × regions 笛卡尔积生成搜索计划
  • 优先用 WebSearch 拿摘要,再用 WebFetch 抓原文

Step 4: AI 内容分析

对每条候选政策生成三段内容(用 prompt-templates.md 模板):

  1. 事件内容(500字内,事实陈述)
  2. 值得关注原因(3个维度:政策风向/企业相关度/产业影响)
  3. 应对建议(5-6条,具名到部门/项目)

最后综合 TOP N 生成:

  • 核心政策要览(综述段落 + 5个关键词)
  • 趋势研判(3-4个趋势)
  • 持续跟踪建议(10条跟踪项)

Step 5: 渲染输出

调用 render_md.py 从 data/content_<date>.json 渲染 Markdown。

头部格式(v1.1.0 简化):

  • 仅保留:报告标题 + 报告周期(起止日期)
  • 删除:「第XX周」「第XX期」「编制单位」「报告日期」

多格式导出:

python3 export_formats.py --md <周报.md> --out-dir ~/Desktop --formats docx,pdf

输出文件:

  • ~/Desktop/公共政策周报_<YYYYMMDD>.md
  • ~/Desktop/公共政策周报_<YYYYMMDD>.docx
  • ~/Desktop/公共政策周报_<YYYYMMDD>.pdf

Step 6: 同步平台

按 sync_target 配置:

  • desktop — 必做(cp 到桌面)
  • ima — 调用 ima_uploader.py,失败时降级到"手动同步指引"

Step 7: 写记忆反馈

  1. 更新 .workbuddy/automations/automation-1778724049490/memory.md(追加本期记录)
  2. 写入 .workbuddy/memory/<YYYY-MM-DD>.md(工作日志)
  3. 向用户展示交付摘要

调用方式

方式 1: 直接命令行(推荐)

cd /Users/admin/WorkBuddy/automation-2026-05-14-task-2
python3 .workbuddy/skills/policy-weekly-reporter/scripts/compose_weekly.py \
    --profile manbang \
    --date 2026-06-29

方式 2: Python 模块调用

import sys
sys.path.insert(0, '.workbuddy/skills/policy-weekly-reporter/scripts')
from compose_weekly import main
main(profile='manbang', date='2026-06-29')

方式 3: automation 自动触发

保留 automation-1778724049490,每周一 9 点自动执行。automation 的 prompt 改为:

调用 policy-weekly-reporter skill 的 compose_weekly.py --profile manbang

方式 4: 切换 profile

# 用字节跳动配置
python3 compose_weekly.py --profile bytedance

# 第一次运行需先用 init_run.py 生成配置
python3 init_run.py --profile bytedance

6 个核心参数

参数 默认 说明
--profile manbang 企业画像,映射 profiles/<name>.json
--regions 江苏,贵州 监测地域
--domains 5个领域 政策关注领域
--top_n 5 TOP N 条数(3-10)
--output_format md md/pdf/docx(v1.1.0 默认全格式输出)
--style deep deep/brief/research/executive
--sync_target desktop,ima desktop/ima/lark-drive/tencent-docs

当前状态

  • ✅ Phase 1 MVP:Markdown + DOCX + PDF 三格式渲染,精简头部
  • ✅ 已存 profile:manbang(满帮)、huolala(货拉拉)、xiaohongshu(小红书)
  • ⏳ Phase 3:多行业 profile 模板(字节/工行/通用)
  • ⏳ Phase 4:自动同步多平台

注意事项

  • IMA 同步当前有 skill auth failed 限制,需主人在 IMA 桌面端手动上传(自动脚本会打印详细指引)
  • WebSearch 结果数量和准确性受网络影响,搜索矩阵已设计冗余(每域 2-3 个不同关键词)
  • Markdown 文件强制 UTF-8 编码,兼容主流 Markdown 阅读器

Current listing version

1.1.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 面向企业用户,解决政策信息聚合与解读的实际痛点
  • 支持多行业、多地域、多格式定制化输出
  • 具备自动化触发能力,提升高频任务效率
Trigger Precision92/100

Highlights

  • 触发词覆盖多种自然语言变体,边界清晰
  • 明确区分手动触发与自动化触发场景
Structure and Standards95/100

Highlights

  • 文档结构完整,工作流步骤清晰
  • 提供多种调用方式与参数说明
  • 包含当前状态与注意事项,信息透明
Execution Reliability88/100

Highlights

  • 工具模块分工明确,来源清晰
  • 异常处理机制完善(如 IMA 同步失败降级)
  • 输出格式兼容主流办公软件
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.