AgentSkillsCN

demo-hello

演示技能,展示一个真实的 Clawdbot/Codex 技能包布局(SKILL.md + 脚本),并提供实用且确定性的工具(将文本/日志文件汇总为 Markdown 格式的统计信息)。适用于希望获得可复制的模板技能、验证脚本执行是否正常,或快速汇总日志/笔记的场景。

SKILL.md
--- frontmatter
name: demo-hello
description: Demo skill that shows a realistic Clawdbot/Codex skill bundle layout (SKILL.md + scripts) and provides a useful, deterministic utility (summarize a text/log file into markdown stats). Use when you want a copyable template skill, a sanity-check that script execution works, or a quick way to summarize logs/notes.

Demo Hello

What this skill contains

  • SKILL.md: this file (metadata + instructions)
  • scripts/hello.js: minimal “hello world” script
  • scripts/summarize-text.js: reads a file or stdin and outputs a markdown summary (stats + top frequent words)

Use

Quick demo (hello)

Run the bundled script to show deterministic output:

bash
node scripts/hello.js --name "Taotao"

Real-ish demo (summarize a log/text file)

Summarize a file:

bash
node scripts/summarize-text.js --file ./some.log --top 12

Or pipe stdin:

bash
cat ./some.log | node scripts/summarize-text.js --top 12

How to use this skill as a template

  • Copy skills/demo-hello/ and rename the folder.
  • Update the YAML frontmatter name + description.
  • Add one deterministic script in scripts/ that:
    • accepts CLI args
    • produces stable output
    • can be run by the agent to avoid “LLM guessing”
  • Keep SKILL.md short; put longer docs into references/ if needed.