360 Secure SkillHub
360 安全技能中心

Lorem Gen

通过本地 Python CLI 生成设计稿、开发和测试用占位文本,支持经典 Lorem Ipsum、潮人风和技术术语风格,可按段落、句子或单词计数,输出纯文本、HTML、Markdown 或 JSON,并支持固定随机种子。

johnnywang2001
johnnywang2001
热度 79.32
最近更新 2026-05-11 17:34:24
分类:创作依赖:代码执行应用场景:UI 原型 / 模板 / 文案创作

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add lorem-gen
Metadata
name
lorem-gen
description
Generate placeholder text for design mockups, development, and testing. Supports classic Lorem Ipsum, hipster-style, and tech jargon. Output as plain text, HTML, Markdown, or JSON. Use when creating dummy content, filler text, placeholder paragraphs, or sample text for layouts and prototypes.

Lorem Gen

Generate placeholder text via CLI. Supports multiple styles and output formats.

Quick Start

# 3 paragraphs of classic Lorem Ipsum
python3 scripts/lorem_gen.py

# 5 sentences
python3 scripts/lorem_gen.py -n 5 -u sentences

# 50 words of hipster-style text
python3 scripts/lorem_gen.py -n 50 -u words -s hipster

# Tech jargon as HTML
python3 scripts/lorem_gen.py -s tech -f html

# JSON output with reproducible seed
python3 scripts/lorem_gen.py -n 2 -f json --seed 42

Options

Flag Description Default
-n, --count Number of units 3
-u, --unit paragraphs, sentences, or words paragraphs
-s, --style lorem, hipster, or tech lorem
-f, --format plain, html, markdown, json plain
--no-classic Skip "Lorem ipsum dolor sit amet..." opening off
--seed Random seed for reproducible output none

Styles

  • lorem — Classic Latin placeholder text
  • hipster — Artisan / wellness / lifestyle vocabulary
  • tech — DevOps, cloud, and infrastructure jargon

Notes

  • No external dependencies (Python 3 stdlib only)
  • First paragraph starts with the classic opening by default (use --no-classic to disable)
  • Use --seed for deterministic output across runs