360 Secure SkillHub
360 安全技能中心

Template Tool

该 Skill 提供 template-tool 命令行工具,可将模板文件或标准输入中的 {{ }} 占位符替换为 key=value 参数值,并支持用 -d 自定义分隔符、用 -o 将结果写入文件,适合批量生成动态文本内容。

dinghaibin
dinghaibin
热度 30.57
最近更新 2026-05-11 17:47:30
分类:效率依赖:代码执行 / 读写文件应用场景:模板 / 文件转换 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add template-tool
Metadata
name
template-tool
description
Process text templates with variable substitution. Use for generating dynamic content from template files.

Template - Text Template Processor

Replace placeholders in template files with provided values. Supports variable substitution with configurable delimiters for content generation.

Usage

template-tool [options] <template_file> [key=value...]

Options

  • -d DELIM: Use custom delimiter (default: {{ }})
  • -o FILE: Write output to file

Examples

template-tool greeting.txt name=World
template-tool report.md title="Annual Report" year=2026
echo "Hello {{name}}" | template-tool name=Jack