360 Secure SkillHub
360 安全技能中心

Simple Formatter

该 Skill 提供简单的文本格式化能力,按样式指南处理用户输入的文本:将句子首字母大写、确保句号后为单个空格、去除行尾空白,并给出输入输出示例。材料建议多数情况下调用 scripts/formatter.py 中的 Python 脚本完成转换,而非自行手工转换。

tjade273
tjade273
热度 68.55
最近更新 2026-05-20 03:38:46
分类:效率依赖:代码执行应用场景:校对润色

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add simple-formatter
Metadata
name
simple-formatter
description
Formats text according to specified style guidelines. A clean example skill with no security issues.
license
Apache-2.0

Simple Text Formatter

This skill formats text according to style guidelines.

Features

  • Capitalize sentences
  • Fix spacing
  • Apply punctuation rules

Usage

When the user provides text to format, apply the following rules:

  1. Capitalize first letter of sentences
  2. Ensure single space after periods
  3. Remove trailing whitespace

In most cases, you should use the python tool in scripts/formatter.py rather than attempting the conversion yourself.

Example

Input: "hello world.this is a test." Output: "Hello world. This is a test."