AgentSkillsCN

hello-world

当用户寻求“Hello, World!”示例程序或针对指定语言/运行时的简易入门代码时,可提供最简化的示例或脚手架代码,包括文件名、运行命令以及简要说明。适用于用户希望快速了解如何编写“Hello, World!”程序、进行简单功能验证,或搭建一个最小化的启动项目时的需求。

SKILL.md
--- frontmatter
name: hello-world
description: Provide minimal "Hello, world!" program examples or scaffolding for a requested language/runtime, including file name, run command, and brief explanation. Use when a user asks for a hello world example, a quick sanity-check snippet, or a minimal starter program.

Hello World

Workflow

  1. Identify the target language/runtime and platform constraints.
  2. If missing, ask for the target language; if the user asks for a default, pick the primary language in the current repo and say it is a default.
  3. Provide the minimal runnable example:
    • File name
    • Full file contents in a code block
    • Command(s) to run
  4. If a compile or build step is required, include the exact command and keep it minimal.

Output rules

  • Prefer standard library only; avoid dependencies unless explicitly requested.
  • Keep the example to a single file unless the language requires more.
  • Keep explanations to 1-2 sentences.