test-skill

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Test 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:
  1. use_skill - You're reading this, so it works!
  2. read_skill_file - Load
    example-config.json
    or
    helper-docs.md
  3. run_skill_script - Execute
    greet
    or
    echo-args
    scripts
  4. find_skills - Should list this skill and others
使用该Skill可验证以下功能:
  1. use_skill - 你正在阅读此内容,说明该功能可用!
  2. read_skill_file - 加载
    example-config.json
    helper-docs.md
    文件
  3. run_skill_script - 执行
    greet
    echo-args
    脚本
  4. find_skills - 应列出此Skill及其他所有Skill

Available Files

可用文件

  • SKILL.md
    - This file (the main skill content)
  • helper-docs.md
    - Additional documentation to test read_skill_file
  • example-config.json
    - Sample config file to test non-markdown loading
  • scripts/greet
    - Simple script that prints a greeting
  • scripts/echo-args
    - Script that echoes back its arguments
  • SKILL.md
    - 此文件(Skill主内容文件)
  • helper-docs.md
    - 用于测试read_skill_file功能的附加文档
  • example-config.json
    - 用于测试非Markdown文件加载的示例配置文件
  • 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 args
1. 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:
  • use_skill
    returns "Skill 'test-skill' loaded." with scripts listed
  • read_skill_file
    returns "File 'X' from skill 'test-skill' loaded."
  • run_skill_script greet
    returns "Hello from test-skill!"
  • run_skill_script echo-args
    returns the arguments passed to it
当所有功能正常时:
  • use_skill
    返回“Skill 'test-skill' loaded.”并列出所有脚本
  • read_skill_file
    返回“File 'X' from skill 'test-skill' loaded.”
  • run_skill_script greet
    返回“Hello from test-skill!”
  • run_skill_script echo-args
    返回传入的所有参数