360 Secure SkillHub
360 安全技能中心

demo-content-ingest

该 Skill 用于演示内容摄取流程:读取指定目录,查找一级目录下的 .md 和 .txt 文件,排序后统计数量并打印一行摘要。它依赖 Bash 的 find 与 sort,适合作为轻量示例,不包含日志、错误处理或元数据提取。

terrycarter1985
terrycarter1985
热度 9.67
最近更新 2026-09-02 22:57:26
分类:自动化依赖:代码执行 / 读写文件应用场景:工作流 / 数据处理 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add demo-content-ingest
Metadata
name
demo-content-ingest
description
A demonstration skill for content ingestion workflows. Checks a workspace folder for text/markdown assets, generates a simple inventory report, and prints a summary. Useful as a minimal example for pipeline-driven publishing.
metadata
{"openclaw":{"emoji":"📦"}}

Demo Content Ingest

A minimal demonstration skill that scans a workspace folder and produces an inventory of text assets.

When to Use

  • You need a trivial skill to test a content pipeline or CI/CD publishing flow.
  • You want a concrete example folder structure for ClawHub ingestion.

What It Does

  1. Reads a target directory.
  2. Lists files matching *.md or *.txt.
  3. Outputs a count and a brief listing.

Steps

  1. Set TARGET_DIR to an absolute path (default: current directory).
  2. Run:
    find "$TARGET_DIR" -maxdepth 1 -type f \( -name "*.md" -o -name "*.txt" \) | sort
    
  3. Count results and print a one-line summary.

Notes

  • This skill is intentionally lightweight to serve as a publishing demo.
  • For production use, extend with logging, error handling, and metadata extraction.