360 Secure SkillHub
360 安全技能中心

Template Tool

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

分类:效率
dinghaibin
dinghaibin
热度 21.69
最近更新 2026-05-11 17:47:30

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add dinghaibin/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