← 返回 Skills 市场
zfm-mid

编程政策查找

作者 酒不换桃花 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
68
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install query-policy-deepseek
功能描述
This skill should be used when the user asks to query or search for "科技特长生升学政策" (technology/specialty student admission policies), batch query education poli...
使用说明 (SKILL.md)

Query Policy DeepSeek Skill

批量查询各地科技特长生升学政策的 Skill,基于 DeepSeek API 实现。

Core Script

The main execution script is located at:

scripts/query_policy_v2.py

This script performs the following:

  1. Reads region list from 地区.txt
  2. Calls DeepSeek API to query technology specialty student admission policies
  3. Parses CSV-formatted responses
  4. Writes results to 政策.csv with UTF-8-sig encoding (Excel compatible)
  5. Tracks progress in 进度.txt

Key Configuration

Setting Value
API Key sk-134d7a53ebab42e4ac5af93ea28e5f13
API Endpoint https://api.deepseek.com/chat/completions
Model deepseek-chat
Temperature 0 (deterministic output)

File Paths

Default paths (configured in the script):

  • Input: C:\Users\zhufangming\Desktop\zfm_demo_02\地区.txt
  • Output: C:\Users\zhufangming\Desktop\zfm_demo_02\政策.csv
  • Progress: C:\Users\zhufangming\Desktop\zfm_demo_02\进度.txt

Important: Before running, verify these paths exist and are correct.

Output Format

CSV with 5 columns:

  1. 学段 (Education stage: 小升初/初升高)
  2. 地区 (Region)
  3. 学校名称 (School name)
  4. 赛事/项目名称 (Competition/project name)
  5. 对升学的具体帮助 (Specific admission benefits)

Policy Rules

Allowed Competitions

  • Python编程赛/Python创意编程赛
  • 全国青少年Python编程竞赛
  • 中国电子学会青少年Python编程等级测试
  • NOC大赛Python赛项
  • 全国青少年科技创新大赛(科技创新成果类)
  • 青少年机器人竞赛(不含图形化编程类)
  • 青少年电子信息智能创新大赛
  • 人工智能相关竞赛(创意编程、算法类)

Prohibited Competitions (Must NOT appear)

  • Scratch/图形化编程类
  • 蓝桥杯/BlueCloud
  • NOI系列 (NOIP, CSP-J/S, IOI, etc.)
  • C++信息学奥赛相关

Description Requirements

Each policy description MUST include:

  • 年份 (Year): Which year's admission policy
  • 招生人数 (Quota): Specific numbers (e.g., 招收3人, 招收5人)
  • 报名条件 (Conditions): Award level requirements
  • 招生对象 (Target): Which students can apply
  • 过程/方式 (Process): How admission works

Execution

To run the policy query:

python "C:\Users\zhufangming\.workbuddy\skills\query-policy-deepseek\scripts\query_policy_v2.py"

Or copy the script to the target directory and run from there.

Version History

  • v2: Base version with 5 columns
  • v3: Added 信息来源 (information source) column - not yet integrated in main script

For updates or modifications, edit scripts/query_policy_v2.py directly.

安全使用建议
Do not run this skill as-is unless the embedded DeepSeek key has been removed and replaced with your own declared credential. Also update the hardcoded file paths, back up any existing output CSV, and remember that queried region data will be sent to DeepSeek.
功能分析
Type: OpenClaw Skill Name: query-policy-deepseek Version: 1.0.0 The skill bundle contains a hardcoded DeepSeek API key (sk-134d7a53ebab42e4ac5af93ea28e5f13) within both SKILL.md and scripts/query_policy_v2.py, which is a major security vulnerability. Furthermore, the script relies on hardcoded absolute file paths pointing to a specific user's desktop (C:\Users\zhufangming\Desktop\zfm_demo_02\), which is a privacy leak and indicates the code was not sanitized for general use. While the script's logic appears to fulfill its stated purpose of querying education policies via api.deepseek.com, the inclusion of active credentials and specific local paths makes it high-risk.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The Python script matches the stated purpose: it reads a region list, queries DeepSeek for education policy information, parses CSV-like responses, and writes a CSV output.
Instruction Scope
The skill is user-invocable and documents a manual command to run the script; once run, the script immediately performs the full batch query without per-region confirmation.
Install Mechanism
There is no install spec or dependency installation, but the source is unknown and the included runnable script contains an embedded credential.
Credentials
The script uses hardcoded Windows Desktop paths and overwrites the configured output CSV each run; this is related to the stated purpose but should be user-configurable.
Persistence & Privilege
The artifacts embed a DeepSeek bearer token while metadata declares no required credential, creating an account/permission-boundary risk for anyone who installs or runs it.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install query-policy-deepseek
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /query-policy-deepseek 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Query Policy DeepSeek Skill 1.0.0 – Initial Release - Enables batch querying of technology/specialty student admission policies by region in China using DeepSeek API. - Provides script for reading input regions, querying policies, parsing results, and writing to a CSV file compatible with Excel. - Ensures only approved competition types are included per policy requirements. - CSV output includes detailed policy info: year, quota, requirements, eligible students, and admission process. - Default script paths and configuration details included for setup and execution.
元数据
Slug query-policy-deepseek
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

编程政策查找 是什么?

This skill should be used when the user asks to query or search for "科技特长生升学政策" (technology/specialty student admission policies), batch query education poli... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 68 次。

如何安装 编程政策查找?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install query-policy-deepseek」即可一键安装,无需额外配置。

编程政策查找 是免费的吗?

是的,编程政策查找 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

编程政策查找 支持哪些平台?

编程政策查找 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 编程政策查找?

由 酒不换桃花(@zfm-mid)开发并维护,当前版本 v1.0.0。

💬 留言讨论