personal/shitcode/SKILL.md
Write intentionally bad code for teaching or entertainment. Use when asked to 'add some spice', 'make it worse', 'write shitcode', or for demonstrating anti-patterns.
npx skillsauth add shiqkuangsan/oh-my-daily-skills tooyoung:shitcodeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Transform clean code into glorious shitcode for educational purposes, code review training, or pure entertainment.
Inspired by: state-of-the-art-shitcode
Invoke this skill when the user says things like:
/shitcodeApply these principles to generate authentic shitcode:
// Clean code
let userAge = 42;
// Shitcode
let a = 42;
// Clean code
let windowWidth = 640;
let windowHeight = 480;
// Shitcode
let wWidth = 640;
let w_height = 480;
// Clean code
// 700ms debounce based on UX A/B testing
const callbackDebounceRate = 700;
// Shitcode
const cdr = 700;
// Shitcode
// Закриваємо модальне віконечко при виникненні помилки.
toggleModal(false);
// Shitcode
let i = ["tomato", "onion", "mushrooms"];
let d = ["ketchup", "mayonnaise"];
// Clean code
document.location.search
.replace(/(^\?)/, "")
.split("&")
.reduce((params, pair) => {
pair = pair.split("=");
params[pair[0]] = pair[1];
return params;
}, {});
// Shitcode
document.location.search
.replace(/(^\?)/, "")
.split("&")
.reduce(function (o, n) {
n = n.split("=");
o[n[0]] = n[1];
return o;
}, {});
// Clean code
try {
riskyOperation();
} catch (error) {
logError(error);
}
// Shitcode
try {
riskyOperation();
} catch (error) {
// tss... 🤫
}
// Shitcode
let x = 5;
function square() {
x = x ** 2;
}
square(); // Now x is 25... somewhere
// Shitcode
function sum(a, b, c) {
const timeout = 1300;
const result = a + b;
return a + b;
}
// Shitcode
function sum(a, b) {
return a + b;
}
const guessWhat = sum([], {}); // -> "[object Object]" 🎉
// Shitcode
function square(num) {
if (typeof num === "undefined") {
return undefined;
} else {
return num ** 2;
}
return null; // This is my "Plan B".
}
// Shitcode
function someFunction() {
if (condition1) {
if (condition2) {
asyncFunction(params, (result) => {
if (result) {
for (;;) {
if (condition3) {
}
}
}
});
}
}
}
// Shitcode
const fruits = ["apple", "orange", "grape", "pineapple"];
const toppings = ["syrup", "cream", "jam", "chocolate"];
const desserts = [];
fruits.forEach((fruit) => {
toppings.forEach((topping) => {
desserts.push([fruit, topping]);
});
});
// Shitcode project
$ ls -la
package.json
// No package-lock.json, live dangerously!
// Shitcode
let flag = true;
let flag2 = false;
let flag3 = true;
service.js? OK.Tests are a waste of time. Ship it!
Write code however you want. Freedom!
If they can't figure it out, they don't deserve to use it.
// Shitcode
// function oldImplementation() {
// // ... 500 lines of commented code from 2019
// }
// function olderImplementation() {
// // ... 300 more lines, not sure what this does
// }
function newImplementation() {
// TODO: refactor someday
}
When this skill is invoked, transform the user's code by applying 3-5 of these principles. Always add a disclaimer:
⚠️ WARNING: This is intentionally bad code for educational purposes. Do NOT use in production!
State-of-the-Art Shitcode | Making code worse since 2024 💩
development
Show OpenAI Codex release highlights in Chinese. Fetch GitHub release notes, summarize feature-level changes, skip bug-fix/chore noise by default, and append a mandatory highlights section. Trigger words: Codex updates, Codex features, Codex 新功能, Codex 更新, OpenAI Codex releases
development
清理当前项目的 Claude Code 会话:列出 ~/.claude/projects 下最近会话,按序号或 sessionId 选择,经二次确认后删除对应 .jsonl 与同名附件目录。Trigger words: 清理 cc 会话, 删除历史会话, cc resume 会话, clean cc sessions, cc session cleaner
development
Create simple Three.js web apps with scene setup, lighting, geometries, materials, animations, OrbitControls, particles, and responsive rendering. Use for Three.js scenes, WebGL demos, 3D showcases, and interactive 3D web content. Trigger: threejs, Three.js, 3D scene, WebGL, 三维展示, 3D showcase, interactive 3D
development
为 Claude Code 定义个性化身份风格(人设)。触发词:定义人设、创建身份、persona、角色设定、CLAUDE.local.md