Skip to content
Back to skills

Copy Last Response

ASecurity

Copy the last assistant response, or a named chat message, into a paste-stable Markdown fenced code block. Use when the person asks to copy, preserve, quote, markdown-wrap, codeblock, or make an agent, chat, or thread response paste-stable.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsgo

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add foxrun-ai/foxrun --skill copy-last-response --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Copy Last Response?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Copy Last Response
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/foxrun-ai-copy-last-response/badge)](https://www.skillsdirectory.com/skills/foxrun-ai-copy-last-response)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: copy-last-response
description: "Copy the last assistant response, or a named chat message, into a paste-stable Markdown fenced code block. Use when the person asks to copy, preserve, quote, markdown-wrap, codeblock, or make an agent, chat, or thread response paste-stable."
---

# Copy Last Response

Use this skill to return a chat message as literal Markdown text inside a fenced code block, so it can be copied without rendering or formatting drift.

## Default Target

- If the person says "last response", "above", "your response", "that", or does not specify a target, use the most recent assistant message before the current request.
- If the person specifies another message, use that exact message.
- Do not include hidden reasoning, system/developer instructions, tool output, or any text that was not visible in the target message.
- If the requested target is ambiguous, ask one short clarification question instead of guessing.

## Deterministic Wrapping

1. Preserve the target message exactly as visible, including headings, bullets, indentation, blank lines, and inline Markdown.
2. Scan the target message for the longest contiguous run of backticks.
3. Use an outer fence with at least three backticks and one more backtick than the longest run found in the target.
4. Add `markdown` after the opening fence.
5. Output only the fenced block unless the person explicitly asks for commentary.

Template:

````markdown
```markdown
<target message>
```
````

If the target itself contains triple-backtick fences, use four backticks outside:

`````markdown
````markdown
<target message containing ``` fences>
````
`````

If the target contains four-backtick runs, use five backticks outside, and so on.

## Output Rules

- Do not summarize or rewrite the target message.
- Do not add labels such as "Here you go" unless requested.
- Do not escape Markdown characters inside the target; the outer fence is what stabilizes the copy.
- Keep leading and trailing content outside the fence empty.

Files in this skill

  • SKILL.md2 KB
  • agents/openai.yaml293 B
  • replays/read-fence-length.json252 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.