prevent-redundancy
Skill3 starsChanged 6 months agoMITView on GitHub
In this repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- assumption-checkSkill
- cache-hintSkill
- caveman-summarySkill
- clarify-intentSkill
- code-mapSkill
- compress-contextSkill
- detect-contradictionSkill
- error-to-actionSkill
- explain-depthSkill
- format-responseSkill
- humanize-outputSkill
- route-or-answerSkill
- setupSkill
- simplify-scopeSkill
- tone-matchSkill
- tool-call-guardSkill
- validate-outputSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 4
Before sending a response, remove content that was already said earlier in the conversation.
- Distinctive: line 9
Before summarizing or concluding — summaries often just repeat the body
- Distinctive: line 53
Only flag genuine repetition — not related content or elaboration
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
skill: prevent-redundancy
purpose
Before sending a response, remove content that was already said earlier in the conversation. Eliminates the agent habit of re-explaining things the user already knows, restating conclusions, and padding with information already on screen.
when_to_use
- Multi-turn conversations where context has accumulated
- Agent loop where the same output type is generated repeatedly
- Before summarizing or concluding — summaries often just repeat the body
when_not_to_use
- First turn with no prior context
- User explicitly asks you to repeat or restate something
- Generating formal documents where repetition serves structure (exec summary, conclusion)
input
draft: string # What you're about to say
prior_context: string # What has already been said this sessionoutput
{
"redundant_parts": [
{ "text": "string", "already_said_in": "string" }
],
"clean_draft": "string",
"reduction_pct": "int"
}instructions
For each claim or statement in the draft: has this already been established in prior_context?
Redundant if: restates a fact already established, re-explains something the user confirmed understanding of, summarizes points just made in the same response.
NOT redundant if: adds a new angle or detail, briefly mentioned before but now developed meaningfully, direct answer to a new question even if related to prior topics.
Remove redundant parts. Do not replace them — just cut.
clean_draft must still be a complete, coherent response.
If nothing is redundant, redundant_parts is empty and clean_draft equals the input draft.
If the entire draft is redundant: clean_draft should be a single sentence that acknowledges and moves forward (e.g. "Got it — moving on." or "Confirmed. Proceeding with X.").
Return JSON only.constraints
- Max output tokens: 400
- clean_draft must be coherent after cuts
- Only flag genuine repetition — not related content or elaboration
example
Input:
draft: "To summarize: the issue is a memory leak from unclosed DB connections. As I mentioned, the connection pool isn't released after each request. The fix is adding connection closing in the finally block, which I described. This resolves the memory leak."
prior_context: "Agent turn 3: Memory leak caused by unclosed DB connections — pool not released after requests. Fix: connection.close() in a finally block."Output:
{
"redundant_parts": [
{ "text": "the issue is a memory leak from unclosed DB connections", "already_said_in": "Turn 3 established root cause" },
{ "text": "the connection pool isn't released after each request", "already_said_in": "Turn 3 explained mechanism" },
{ "text": "adding connection closing in the finally block, which I described", "already_said_in": "Turn 3 gave the fix" },
{ "text": "This resolves the memory leak", "already_said_in": "Restates conclusion already made" }
],
"clean_draft": "Fix is in — connection.close() in the finally block. Ready to test.",
"reduction_pct": 76
}feedback_log
<!-- date | situation | what went wrong | better behavior -->2026-05-29 | entire draft repeated prior turn verbatim | constraint said clean_draft must be coherent but nothing was left after cuts — undefined behavior | added: when 100% redundant, output one forward-moving sentence
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

