Jingyi Module Skill
Use this skill when the user asks for:
- - 精易模块应该用哪个命令
- 某个精易模块命令的参数、返回值、备注
- 一段可以直接复制运行的易语言代码
This skill is designed for retrieval first, then code generation.
Goals
- - Quickly find the most relevant 精易模块命令
- Pull the official command content by id or name
- Generate directly runnable 易语言 code
- Avoid inventing commands or parameters
Workflow
- 1. Search candidate commands first
- Fetch the full command doc for the best candidates
- Write code only after confirming the signature and behavior
- Prefer concise explanation plus one runnable code block
Search commands
Run:
CODEBLOCK0
Examples:
CODEBLOCK1
The result includes:
- - INLINECODE0
- INLINECODE1
- INLINECODE2
- INLINECODE3
- INLINECODE4
- INLINECODE5
Fetch full command docs
Run:
CODEBLOCK2
or:
CODEBLOCK3
This returns the official document JSON. For three known official empty-response nodes, the script includes built-in补录 content:
- - INLINECODE6
- INLINECODE7
- INLINECODE8
Output rules
- - Output runnable 易语言 code with
.版本 2 when code is requested - Do not mention IDE automation
- Do not invent missing parameters or return types
- If there are multiple candidate commands, name the chosen command before the code
- When uncertain, keep the explanation to one short sentence
Good response shape
One short paragraph:
- - what command is being used
- why it matches the request
Then one code block:
CODEBLOCK4
Notes
- - The local index is a compact retrieval index, not the full manual
- The fetch script uses the official endpoint:
- INLINECODE10
精易模块技能
当用户询问以下内容时使用此技能:
- - 精易模块应该用哪个命令
- 某个精易模块命令的参数、返回值、备注
- 一段可以直接复制运行的易语言代码
此技能设计为先检索,后生成代码。
目标
- - 快速找到最相关的精易模块命令
- 通过ID或名称获取官方命令内容
- 生成可直接运行的易语言代码
- 避免编造命令或参数
工作流程
- 1. 首先搜索候选命令
- 获取最佳候选命令的完整文档
- 确认签名和行为后再编写代码
- 优先提供简洁说明加一个可运行的代码块
搜索命令
运行:
powershell
python {baseDir}/scripts/search_jingyi.py 随机汉字 --top 8
示例:
powershell
python {baseDir}/scripts/search_jingyi.py 随机汉字 --top 8
python {baseDir}/scripts/search_jingyi.py 选择字体 --top 8
python {baseDir}/scripts/search_jingyi.py 取月末 --top 8
结果包含:
- - id
- name
- canonical_path
- cmdtype
- score
- summary
获取完整命令文档
运行:
powershell
python {baseDir}/scripts/fetchjingyidoc.py --id 1109
或:
powershell
python {baseDir}/scripts/fetchjingyidoc.py --name 文本_取随机汉字
这将返回官方文档JSON。对于三个已知的官方空响应节点,脚本包含内置补录内容:
输出规则
- - 当需要代码时,输出带有.版本 2的可运行易语言代码
- 不提及IDE自动化
- 不编造缺失的参数或返回类型
- 如果有多个候选命令,在代码前说明所选命令
- 不确定时,保持解释为一句话
良好的响应格式
一段简短说明:
然后一个代码块:
text
.版本 2
...
注意事项
- - 本地索引是紧凑的检索索引,非完整手册
- 获取脚本使用官方端点:
- https://ec.ijingyi.com/plugin.php?id=plugin1&