kids-coding-cards-cn
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 "kids-coding-cards-cn" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2de07de6313bceb25b516d525acc1184225e32c424bfbc068b300ecfce2d202c. Verify the upstream source and version against https://skillhub.cn/skills/user_15ad8170/kids-coding-cards-cn 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
Designs, checks, and modifies programming exercises for grades 3–8 in Scratch, Python, Python turtle, C, C++, and GOC; can export structured JSON or render each problem as six PNG teaching cards on demand. Intended for children's programming lesson prep, question banks, handouts, classroom practice, homework, code-fill exercises, output illustrations, and extension challenges; when the user only requests problems, it should by default display readable problems and not automatically create files.
Introduction source: third_party · user_15ad8170 · 2.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: kids-coding-cards
description: 为 3~8 年级学生设计、检查和修改 Scratch、Python、Python turtle、C、C++、GOC 编程练习题,并可按需导出结构化 JSON 或渲染为每题 6 张 PNG 教学卡片。用于少儿编程备课、题库、讲义、课堂练习、课后作业、代码填空题、运行结果图和扩展挑战;用户只要求出题时默认直接展示可读题目,不自动创建文件。少儿编程题卡片
工作原则
- 默认在回复中直接展示题目,不创建文件。
- 仅在用户要求导出、保存、生成题库或制作卡片时创建 JSON 或 PNG。
- 支持 Scratch、Python、Python turtle、C、C++ 和 GOC;允许同一批题按题目指定不同语言。
- 根据上下文推断年级、语言、难度、题数、知识点和主题;仅在缺少的信息会明显改变结果时提问。
- 默认参数:5 年级、Python、初级、5 题、按难度选择知识点、主题轮换。
- 先保证题目正确、适龄且可解,再考虑卡片视觉效果。
按需读取参考文件
- 设计或检查任何题目时,读取 references/problem-quality.md。
- 导出 JSON 或调用渲染脚本时,读取 references/problem-schema.md。
- 生成 Scratch 题时,读取 references/scratch-syntax.md。
- 生成 GOC 题时,读取 references/goc-guide.md。
- 用户要求 PNG 卡片或修改视觉样式时,读取 references/visual-style.md。
生成流程
- 确定年级、语言、难度、题数、知识点和主题。优先采用用户给出的参数,其余参数从上下文推断。
- 按
problem-quality.md选择适龄知识点,并让同一批题的主题与解法保持多样。 - 为每题生成六部分:
- 题目:标题、知识点、场景、目标,以及适用时的输入、输出、范围和示例。
- 引导思路:4~6 个中文步骤,只讲思路,不泄露完整代码。
- 语法框架:与答案结构一致,仅把关键值或短表达式替换为
?。 - 完整程序:可运行或符合对应图形化语言规范,并与题面和框架一致。
- 运行结果:精确描述输出;绘图程序描述最终图形。
- 扩展题:只增加一个主要挑战点,并默认提供参考程序。
- 逐题执行质量检查。发现不一致时先修正,再交付。
- 按用户要求选择交付模式。
交付模式
直接展示
使用清晰的小标题展示每题六部分。代码使用对应语言的代码块。不要仅为了保留内部结构而输出 JSON。
导出 JSON
按 problem-schema.md 组装数据,将 UTF-8 JSON 保存到用户指定位置;未指定时保存到当前工作目录。保存后先运行静态校验:
<python> <skill目录>/scripts/validate_problem.py --input <题库.json>
修复全部错误后再交付,并报告文件的绝对路径。警告需要人工复核;无法确认时向用户说明。
渲染 PNG
先生成 JSON,并通过 scripts/validate_problem.py 静态校验,再调用当前 skill 内的 scripts/generate.py:
<python> <skill目录>/scripts/generate.py --input <题库.json> --outdir <输出目录>
- 使用当前环境可用的 Python,不绑定特定用户名或虚拟环境路径。
- 要求 Pillow;缺少依赖时说明缺失项并请求用户授权安装。
- 每题生成 6 张 PNG。完成后核对数量应等于题数乘以 6,并用绝对路径链接或展示图片。
result_image是可选项。Scratch、Python turtle 和 GOC 可由脚本模拟图形结果;其他题目使用精确的文字结果卡,或嵌入用户提供的结果图。- 不要为了生成结果图直接执行模型生成的任意程序。使用渲染脚本内置的受限模拟器,或使用用户明确提供的图片。
最终检查
- 核心知识点是否适合年级和难度。
- 题面是否给出了完成任务所需的全部条件。
- 引导思路是否清楚且没有直接抄写答案。
- 框架中的每个
?是否有明确答案,并能与完整程序逐项对应。 - 完整程序、运行结果和题目目标是否一致。
- 扩展题是否只有一个主要难度增量,并与原题相关。
- 同一批题是否避免连续三题采用相同主题或相同解法。
- 创建文件时,文件数量、名称和路径是否符合要求。
Current listing version
2.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向 3-8 年级学生编程教育,场景明确且实用
- 支持 Scratch、Python、C/C++、GOC 等多种编程语言
- 提供题目设计、检查、修改及导出功能,满足备课、题库、讲义等多种教学需求
Highlights
- description 详细描述了适用对象、支持语言、核心功能和典型使用场景
- 触发词覆盖完整,边界清晰,用户能准确理解 Skill 的用途
Highlights
- 文档结构清晰,包含工作原则、生成流程、交付模式等完整章节
- 步骤划分明确,有详细的流程说明和代码示例
- frontmatter 完整,符合规范要求
Areas to improve
-
引用文件缺失 Reported severity: Major
Skill 引用了 references/problem-quality.md、references/problem-schema.md、references/scratch-syntax.md、references/goc-guide.md、references/visual-style.md 以及 scripts/validate_problem.py、scripts/generate.py 等文件,但传入内容中未提供这些文件
Recommendation: 请补充所有被引用的参考文件和脚本文件,确保 Skill 能够完整执行其功能
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.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.