test-skill
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTest Skill
测试Skill
This skill exists to verify the OpenCode Skills Plugin API works correctly.
该Skill用于验证OpenCode Skills Plugin API能否正常工作。
Testing Checklist
测试清单
Use this skill to verify:
- use_skill - You're reading this, so it works!
- read_skill_file - Load or
example-config.jsonhelper-docs.md - run_skill_script - Execute or
greetscriptsecho-args - find_skills - Should list this skill and others
使用该Skill可验证以下功能:
- use_skill - 你正在阅读此内容,说明该功能可用!
- read_skill_file - 加载或
example-config.json文件helper-docs.md - run_skill_script - 执行或
greet脚本echo-args - find_skills - 应列出此Skill及其他所有Skill
Available Files
可用文件
- - This file (the main skill content)
SKILL.md - - Additional documentation to test read_skill_file
helper-docs.md - - Sample config file to test non-markdown loading
example-config.json - - Simple script that prints a greeting
scripts/greet - - Script that echoes back its arguments
scripts/echo-args
- - 此文件(Skill主内容文件)
SKILL.md - - 用于测试read_skill_file功能的附加文档
helper-docs.md - - 用于测试非Markdown文件加载的示例配置文件
example-config.json - - 用于输出问候语的简单脚本
scripts/greet - - 用于回显传入参数的脚本
scripts/echo-args
Example Workflow
示例工作流
1. find_skills # List available skills
2. use_skill test-skill # Load this skill (you're here!)
3. read_skill_file test-skill helper-docs.md # Load supporting docs
4. run_skill_script test-skill greet # Run a script
5. run_skill_script test-skill echo-args --foo bar # Run with args1. find_skills # 列出所有可用Skill
2. use_skill test-skill # 加载此Skill(你现在就在这里!)
3. read_skill_file test-skill helper-docs.md # 加载辅助文档
4. run_skill_script test-skill greet # 执行脚本
5. run_skill_script test-skill echo-args --foo bar # 带参数执行脚本Expected Outputs
预期输出
When everything works:
- returns "Skill 'test-skill' loaded." with scripts listed
use_skill - returns "File 'X' from skill 'test-skill' loaded."
read_skill_file - returns "Hello from test-skill!"
run_skill_script greet - returns the arguments passed to it
run_skill_script echo-args
当所有功能正常时:
- 返回“Skill 'test-skill' loaded.”并列出所有脚本
use_skill - 返回“File 'X' from skill 'test-skill' loaded.”
read_skill_file - 返回“Hello from test-skill!”
run_skill_script greet - 返回传入的所有参数
run_skill_script echo-args