← 返回 Skills 市场
jhauga

Exclude Prompt Data

作者 John Haugabook · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
23
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install exclude-prompt-data
功能描述
Ensures AI output contains only the result, not the prompt. Use when writing code, documentation, or content where prompt instructions, rationale, or meta-co...
使用说明 (SKILL.md)

Exclude Prompt Data

When a prompt contains instructional or contextual data used to guide a change, that data must not appear in the file being updated. The output must reflect only the result of the instruction — not the instruction itself, the reasoning behind it, or any acknowledgment that it was applied.

When to Use This Skill

  • Writing code, documentation, or any file content from a prompt
  • Generating output that should appear production-ready and self-contained
  • Any situation where prompt leakage would compromise output quality

Core Rule

Never echo prompt content into the file being changed.

Only write the outcome. Strip any meta-commentary, rationale, or framing that originated in the prompt.

What Counts as Prompt Data

Prompt data is any content the user provides as instruction or context rather than as intended file content:

  • Descriptions of what to add or change ("add a --verbose flag that...")
  • Inline rationale or motivation ("because the old behavior caused...")
  • References to the prompt itself ("as requested", "per the prompt", "the new feature has been added as")
  • Meta-commentary about the update ("This section has been updated to reflect...")
  • Code comments that narrate a change rather than describe the code ("// Added email validation as requested", "// Now validates the input per the new requirement")
  • Structural scaffold labels used as section markers or template slots (the word this in ## this Title is scaffolding, not heading text)

What Belongs in the Output

The output file should contain only:

  • The feature, fix, or content the prompt requested — written as if it always belonged there
  • Documentation or code that a reader would find useful independent of how the change was requested
  • Generic, cliche placeholder data in examples (e.g., Jane Doe, [email protected], Acme Corp, example.com) — never real names, emails, domains, or organization identifiers pulled from the prompt or local configuration
  • Language formatting applied to terms in the prompt carries through to the output — if the prompt wraps a term in backticks or uses a specific syntax convention, follow that same convention in the output

Output Quality

The prompt's writing quality does not set the bar for the output. Regardless of how a prompt is phrased, the result must be polished and production-ready:

  • Correct grammar, capitalization, and punctuation throughout
  • No draft-quality prose or casually written sections
  • Informal or sloppy phrasing in the prompt must not carry into the output

Use Cases

Adding a Feature Flag to Documentation

Prompt

Update file.ext with new feature --new-opt \x3Cargument>, documenting the new
feature in features.md

Acceptable result — features.md

### --new-opt

Enables extended output. Requires a value argument. Example:

    ```bash
    file --new-opt foo
    ```

Unacceptable result — features.md

### --new-opt

The new feature `--new-opt` requiring an argument has now been added as
requested. The feature is documented as such.

Enables extended output. Requires a value argument. Example:

    ```bash
    file --new-opt foo
    ```

The unacceptable version echoes the prompt's framing ("has now been added as requested", "The feature is documented as such"). That language belongs in the prompt, not the file.


Updating a Code File

Prompt

Add input validation to the createUser function — email must be a valid format.

Acceptable result

function createUser(name, email) {
  // Rejects addresses missing a local part, @ sign, or domain
  if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
    throw new Error('Invalid email address.');
  }
  // ...
}

Unacceptable result

// Added email validation as requested in the prompt
function createUser(name, email) {
  // Per the instruction, we now validate that email must be a valid format
  if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
    throw new Error('Invalid email address.');
  }
  // ...
}

The unacceptable version leaks prompt phrasing into code comments. Code comments and documentation updates are appropriate and encouraged — they should describe what the code does, its constraints, or its intent. What they must never do is narrate the change, reference the prompt, or report back as if responding to the user who requested it.

Exceptions

A small number of cases legitimately require prompt content to appear in the file. Treat these as exceptions, not loopholes:

  • Verbatim transcription requested. The user explicitly asks for prompt text to be inserted as-is (e.g., "paste this block into the README under ## Notice"). Insert exactly what was requested and nothing more.
  • The file is a prompt or instruction artifact. When editing prompt files, skill definitions, or instruction files, instructional content is the intended payload. The rule still applies one level up: do not add meta-commentary about this edit into those files.
  • Changelog or release-note entries. A short, factual line describing the change is appropriate. Keep it about the change, not about the request (Added --verbose flag / Added --verbose flag as requested by user).

Self-Check Before Saving

Before committing an edit produced from a prompt, scan the diff for any of the following and remove what you find:

  • Phrases like "as requested", "per the prompt", "per your instruction", "as you asked"
  • Sentences that announce a change rather than describe the subject ("This section now covers...", "Updated to include...")
  • Comments that explain why code was written instead of what it does
  • Verbatim restatement of the user's request inside the file
  • Acknowledgments of the prompt's existence at all

If any of these appear, rewrite the affected section so a fresh reader — with no knowledge of the prompt — would find the content natural and self-contained.

Troubleshooting

Symptom Fix
Output contains "as requested" or "per the prompt" Remove it
Docs announce a change instead of documenting it Rewrite directly
Code comments narrate the change Describe the code's behavior
Prompt scaffold labels appear in output headings Replace with original

Summary

Write the result, not the story of how you got there. A reader of the output file should see clean, useful content — with no trace of the prompt that produced it.

安全使用建议
This appears safe to install if you want generated files to avoid phrases like "as requested" or accidental prompt leakage. Review the exceptions so it still preserves prompt text when you explicitly ask for verbatim insertion or are editing prompt/instruction artifacts.
能力评估
Purpose & Capability
The stated purpose and artifact content align: it instructs the agent to write only the requested result into code, documentation, or content files and avoid prompt-derived meta-commentary.
Instruction Scope
Instructions are scoped to output quality and include reasonable exceptions for verbatim transcription, prompt/instruction files, and changelog-style entries.
Install Mechanism
The package contains only a single SKILL.md file, declares no dependencies, requires no API key, and includes no executable scripts.
Credentials
No network use, credential access, local indexing, external tools, or file-system authority beyond normal user-directed editing guidance is requested.
Persistence & Privilege
No persistence, background workers, privilege escalation, automatic execution, or durable behavior changes are present in the artifact.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install exclude-prompt-data
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /exclude-prompt-data 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the exclude-prompt-data skill. - Ensures that AI-generated content contains only the final result, never the prompt, rationale, or meta-commentary. - Provides clear guidance and examples for excluding prompt instructions from all types of output. - Includes checklists, rules, and exceptions to help achieve production-ready, prompt-free results in code, documentation, and content files.
元数据
Slug exclude-prompt-data
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Exclude Prompt Data 是什么?

Ensures AI output contains only the result, not the prompt. Use when writing code, documentation, or content where prompt instructions, rationale, or meta-co... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 23 次。

如何安装 Exclude Prompt Data?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install exclude-prompt-data」即可一键安装,无需额外配置。

Exclude Prompt Data 是免费的吗?

是的,Exclude Prompt Data 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Exclude Prompt Data 支持哪些平台?

Exclude Prompt Data 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Exclude Prompt Data?

由 John Haugabook(@jhauga)开发并维护,当前版本 v1.0.0。

💬 留言讨论