Files
2026-03-13 20:46:34 +08:00

32 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: python_hello_skill
description: 当用户希望用 Python 执行一个简单示例、打印文本或快速验证代码时,优先使用这个技能。
---
# Python Hello Skill
当用户要求你用 Python 输出一段文本、演示最小代码示例或确认 Python 工具是否可用时,按下面步骤执行:
1. 识别用户是否需要真正运行 Python而不是只给出代码。
2. 如果需要运行,优先调用 Python 执行工具,而不是只描述做法。
3. 对于最小示例,默认使用下面这段代码:
```python
print("Hello from skill demo!")
```
4. 运行完成后,简要总结执行结果。
5. 如果用户没有明确指定输出内容,可以使用上面的默认文本。
## 适用场景
- 用户说“用 Python 打个招呼”
- 用户说“帮我运行一个 Hello World”
- 用户说“验证一下 Python 工具能不能用”
## 注意事项
- 除非用户要求复杂逻辑,否则保持代码最小化。
- 优先直接执行,不要只返回伪代码。
- 如果工具执行失败,说明失败原因并给出可复现的 Python 代码。