Rewrite codestack

From BattleWen/JailbreakSkill · View interactive version

Rewrite codestack is an AI agent skill from the GitHub repository BattleWen/JailbreakSkill. CodeAttack — wraps the seed prompt into a Python code completion task using deque stack operations. Words are pushed in reverse order, then the code asks the model to decode the stack and complete the task.

How to use this skill

Skill file

rewrite-codestack

Technique

Split the seed prompt into words, push them onto a Python deque stack in reverse order (popping reconstructs the original), and wrap it in a Python function with comments instructing the model to "follow the code." Two variants: (0) steps template requesting specific actionable instructions, (1) paragraphs template requesting detailed 100-word paragraphs. Deterministic — no LLM call needed, 100% intent preservation through code completion context.

I/O protocol

| Direction | Format |

|-----------|--------|

| stdin | SkillContext JSON |

| stdout | SkillExecutionResult JSON |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.