Install
openclaw skills install exclude-prompt-dataEnsures AI output contains only the result, not the prompt. Use when writing code, documentation, or content where prompt instructions, rationale, or meta-commentary must not leak into the output. Applies to all file types to prevent phrases like "as requested", "per the prompt", or change announcements from appearing in generated content.
openclaw skills install exclude-prompt-dataWhen 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.
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.
Prompt data is any content the user provides as instruction or context rather than as intended file content:
"add a --verbose flag that...")"because the old behavior caused...")"as requested", "per the prompt",
"the new feature has been added as")"This section has been updated to reflect...")"// Added email validation as requested",
"// Now validates the input per the new requirement")this in ## this Title is scaffolding, not heading text)The output file should contain only:
Jane Doe,
jane.doe@example.com, Acme Corp, example.com) — never real names,
emails, domains, or organization identifiers pulled from the prompt or local
configurationThe 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:
Prompt
Update file.ext with new feature --new-opt <argument>, 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.
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.
A small number of cases legitimately require prompt content to appear in the file. Treat these as exceptions, not loopholes:
## Notice"). Insert exactly what was requested and nothing more.Added --verbose flag / Added --verbose flag as requested by user).Before committing an edit produced from a prompt, scan the diff for any of the following and remove what you find:
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.
| 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 |
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.