360 Secure SkillHub
360 安全技能中心

meta prompt architect lite

该 Skill 运行 Node 脚本从任务描述中提取 {{变量}}、检测输出格式并组装 ROLE/TASK/INPUT/CONSTRAINTS/OUTPUT 脚手架;随后由代理改写措辞、规范变量名并处理警告。脚本零依赖、离线运行,输出 JSON 报告和模板;不包含完整版的语气/受众检测与测试用例生成。

nenadzivotic
nenadzivotic
热度 16.02
最近更新 2026-10-17 23:36:01
分类:效率依赖:代码执行 / 读写文件应用场景:模板 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add nenadzivotic/meta-prompt-architect-lite
Metadata
name
meta-prompt-architect-lite
description
Turn a plain-language task description into a minimal prompt template — extracts {{variable}} placeholders, detects output format, assembles a ROLE/TASK/INPUT/CONSTRAINTS/OUTPUT scaffold. Use when the user asks to write or templatize a prompt for an LLM.

Meta-Prompt Architect (Lite)

scripts/generate.mjs deterministically extracts structure from a task description; you refine wording and variable names. The script never invents requirements — it surfaces what's missing.

Rules

  • The template is a scaffold, not the final prompt. Rewrite vague sections with the user's specifics.
  • Keep {{variable}} names stable between INPUT and references.
  • The CONSTRAINTS injection rule is load-bearing — do not remove it.
  • Resolve each warnings[] item by asking the user or stating an explicit assumption.

1. Run

Requires Node 18+, zero dependencies. Fully offline.

node <skill-dir>/scripts/generate.mjs task.txt
echo "..." | node <skill-dir>/scripts/generate.mjs -

JSON on stdout; exit 1 when warnings exist, 2 on read/usage error.

2. Read the report

  • variables[]: {name, source} candidate {{placeholders}}.
  • format: detected output format or null.
  • warnings[]: gaps to close.
  • template: the assembled scaffold.

3. Refine before delivering

  1. Rename variables to the user's domain vocabulary.
  2. Fill # OUTPUT with a concrete shape (JSON schema, section list, length cap).
  3. Add domain constraints the description implies.

Lite vs full

The full meta-prompt-architect additionally detects tone and audience, adds assumption/ambiguity edge-case rules, and emits happy-path / edge / adversarial test-case stubs.