{"id":26496325,"url":"https://github.com/stepfenshawn/shitcodify","last_synced_at":"2026-01-20T02:23:35.091Z","repository":{"id":282539901,"uuid":"948914396","full_name":"StepfenShawn/ShitCodify","owner":"StepfenShawn","description":"一位AI驱动的祖传代码炼金师，将优雅代码『精心』重构为屎山💩。An AI-powered legacy code alchemist that carefully transforms clean code into shit code.","archived":false,"fork":false,"pushed_at":"2025-03-15T10:07:01.000Z","size":2055,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T10:18:41.126Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://stepfenshawn.github.io/ShitCodify/#/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StepfenShawn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-15T08:45:28.000Z","updated_at":"2025-03-15T10:06:15.000Z","dependencies_parsed_at":"2025-03-15T18:15:33.514Z","dependency_job_id":null,"html_url":"https://github.com/StepfenShawn/ShitCodify","commit_stats":null,"previous_names":["stepfenshawn/shitcodify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepfenShawn%2FShitCodify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepfenShawn%2FShitCodify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepfenShawn%2FShitCodify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepfenShawn%2FShitCodify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StepfenShawn","download_url":"https://codeload.github.com/StepfenShawn/ShitCodify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244608197,"owners_count":20480769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-20T11:39:18.900Z","updated_at":"2026-01-20T02:23:35.048Z","avatar_url":"https://github.com/StepfenShawn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ShitCodify\n一款AI驱动的祖传代码炼金师，将优雅代码『精心』重构为屎山💩。An AI-powered legacy code alchemist that carefully transforms clean code into shit code.  \n\n## 简介\nShitCodify是一个能够将正常、易读、易维护的代码转换为难以理解、难以维护但仍然能够正常工作的\"屎山代码\"的工具。\n它利用大型语言模型（如GPT-4, Claude）来分析你的代码，并应用各种\"反模式\"和不良实践来降低代码的可读性和可维护性，同时保持代码的功能不变。\n\n## 为什么需要这个工具?\n- 工作保障计划: 确保你的代码像谜题一样存在, 提升你在公司不可替代的地位\n- 职场关系优化：让代码评审变成「你猜我在写什么」的悬疑社交游戏, 强迫产品经理理解技术负债的价值\n- 时间加速器：10分钟体验10年屎山沉积的「包浆」质感  \n- 学习反面案例: 展示不良编程习惯的影响  \n- ...  \n\n## 特性\n- 支持多种编程语言(Rust、Python、JavaScript、Java、C++、Go等)\n- 支持多种开发框架(Django, Flask, Spring-Boot, React等)\n- 能确保代码功能不变，但使其难以阅读和维护\n- 应用语言特定的\"反模式\"和不良实践\n- 提供命令行界面，方便集成到工作流程中\n- 可配置的\"屎山生成策略\"\n- 支持根据配置生成.cursorrules\n- 支持单个文件和代码片段转换\n- 支持工程目录的转换 (todo)\n- 支持AI Agent交互模式，方便快速测试 (todo)\n\n## 如何使用?\n当前 ShitCodify 还不支持像 cursor, trae 那样的 AI Agent 模式, 现在的实现仅仅只是通过codebase生成一段Prompt。  \n直接访问 https://stepfenshawn.github.io/ShitCodify/#/ 生成 Prompt 后将其复制给大模型使用:      \n![截图](img/screenshot3.png)\n\n\n## \"屎山\"程度配置\n可以根据需要自定义\"屎山\"程度:  \n![配置示例](img/screenshot1.png)    \n自定义跳转到的大模型网页:  \n![配置示例](img/screenshot2.png)  \n\n## 使用示例:  \n一段十分规范的Rust代码:   \n![正常代码](img/example1.png)\n通过gpt-4o转化成屎山后:     \n![屎山代码](img/shit1.png)\n## Build\n```sh\ngit clone git@github.com:StepfenShawn/ShitCodify.git\ncd ShitCodify\n```\n运行:  \n```sh\nnpm install\nnpm run dev\n```\n部署:\n```sh\nnpm run build\n```\n\n## 贡献 Prompts\n所有语言的 prompts 模板在 [这个](src/prompt/) 目录下.  \n欢迎贡献代码、报告问题或提出建议！  \n\n## 后续\n- 支持更多语言的特定 Prompt 和优化 Prompt.\n- 用 Rust 实现 CLI 和支持调用本地模型.\n- 实现 AI Agent, 实现类似 cursor 的屎山代码助手, 可以快速构建出屎山项目.\n- 实现\"自举\" (用屎山生成器重写本项目)\n\n## 免责声明\n本工具仅供学习和娱乐目的使用。请不要在生产环境或重要项目中使用生成的\"屎山代码\"。作者不对因使用本工具生成的代码而导致的任何问题负责。\n\n## 自动部署\n本项目使用 GitHub Actions 实现自动构建和部署。每当代码推送到 main 分支时，GitHub Actions 会自动执行以下操作：\n\n1. 检出代码\n2. 设置 Node.js 环境\n3. 安装依赖\n4. 构建项目\n5. 将构建结果部署到 gh-pages 分支\n\n这样，您只需要关注代码开发，无需手动部署。项目会自动部署到 GitHub Pages 上，访问地址为：https://stepfenshawn.github.io/ShitCodify/#/\n\n## 许可证\n本项目采用MIT许可证。  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepfenshawn%2Fshitcodify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepfenshawn%2Fshitcodify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepfenshawn%2Fshitcodify/lists"}