- Home
- /
- Categories
- /
- Refactoring
Refactoring
Code restructuring and optimization
rebuild
by luan
"Collapse branch into working tree and rebuild as clean, refined commits with code improvements per commit. Triggers: 'rebuild branch', 'rebuild commits', 'clean up and improve branch'. Unlike /split-commit which preserves the exact diff, rebuild applies refinements and simplifications to each commit."
create-test
by kvnwolf
Write automated tests following TDD principles: red-green-refactor, vertical slices, behavior over implementation. Consult this skill whenever creating tests, adding test coverage, writing test-first code, fixing a bug with a regression test, or any task that involves verifying behavior through automated tests.
split-commit
by luan
"Collapse a branch into working tree and repackage as clean, tested, vertical commits. Triggers: 'split commits', 'repackage commits', 'reorganize commits', 'clean up branch history', 'consolidate commits into clean ones'. Do NOT use when: branch already has a single clean commit or only needs amending — use /commit instead."
youtube-transcript
by audibleblink
Download YouTube video transcripts when user provides a YouTube URL or asks to download/get/fetch a transcript from YouTube. Also use when user wants to transcribe or get captions/subtitles from a YouTube video.
reflection
by davidkiss
"Analyzes the conversation and tool usage to propose improvements to skills or store user preferences."
Скоринг Facebook рекламы (крон)
by dengineproblem
ÐÑли Ð½ÐµÑ Ð°ÐºÑивнÑÑ directions или адÑеÑов â ниÑего не делай, не ÑообÑай.
cost-optimization
by QuestForTech-Investments
Optimize cloud costs through resource rightsizing, tagging strategies, reserved instances, and spending analysis. Use when reducing cloud expenses, analyzing infrastructure costs, or implementing cost governance policies.
ios-build-performance
by derKlinke
Use for slow builds: Build Timeline analysis, type-check bottlenecks, compilation caching, and incremental-build optimization
general-codereview
by xinbenlv
Perform thorough code reviews following Google's 5-step methodology. Use when reviewing pull requests, change lists, or any code changes to ensure quality, correctness, and maintainability.
code-simplifier
by derKlinke
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when asked to "simplify code", "clean up code", "refactor for clarity", "improve readability", or review recently modified code for elegance. Focuses on project-specific best practices.
ask-questions
by ferueda
Clarify requirements before implementing. Do not use automatically, only when invoked explicitly.
refactor-pass
by montagao
Perform a refactor pass focused on simplicity after recent changes. Use when the user asks for a refactor/cleanup pass, simplification, or dead-code removal and expects build/tests to verify behavior.
trent-cleanup-panes
by trentshaines
Clean up tmux panes. Use when user wants to close/kill all other panes, clean up tmux window, or reset pane layout.
retro
by alienfast
Analyze completed Linear cycles for retrospectives. Identifies velocity trends, scope creep, and patterns to improve future planning.
ask-questions-if-underspecified
by alemar11
Clarify requirements before implementing when a request is underspecified or the user asks for clarification.
gemini-watermark-remove
by kevintsai1202
移除 Google Gemini(Nano Banana)生成圖片中的浮水印,使用逆向 Alpha 混合演算法精確還原被覆蓋的像素
loop-codex-review
by corygabrielsen
Automated code review loop with progressive reasoning levels. Runs n parallel Codex reviews (configurable via -n), Claude addresses issues, climbs from low→xhigh reasoning until fixed point (all n clean). Human approval at each iteration.
analyzing-software-tradeoffs
by sumik5
Comprehensive software design trade-off analysis covering code-level decisions (duplication, error handling, flexibility, optimization), API design (usability, versioning), distributed systems (consistency, delivery semantics), and meta-decisions (library selection, trend evaluation, date-time handling). Use when evaluating design alternatives, making architectural decisions, or reviewing trade-offs in existing systems. For specific clean code rules, use writing-clean-code; for microservices patterns, use architecting-microservices; for API endpoint design, use designing-web-apis.
@tank/tdd-workflow
by tankpkg
"Test-Driven Development: RED-GREEN-REFACTOR cycle, three laws of TDD, test-first patterns, and practical workflows. Covers test doubles, testing pyramids, property-based testing, and mutation testing. Triggers: TDD, test-driven development, red green refactor, test first, unit test, failing test, test double, mock, stub, spy, test pyramid, property-based testing, mutation testing, test coverage, testing strategy, write tests."
transcribe-refiner
by PrakharMNNIT
"Clean and reconstruct raw auto-generated captions (Zoom, YouTube, Teams, Google Meet, Otter.ai, etc.) into readable, coherent transcripts. Use when the user provides raw caption files (.txt, .vtt, .srt), meeting transcripts with timestamps and speaker tags, or asks to clean up/refine a transcript. Handles: timestamp removal, speaker tag normalization, filler word removal, broken sentence reconstruction, transcription error correction, paragraph formation. Preserves every piece of substantive content while removing noise. Trigger phrases: 'clean this transcript', 'refine captions', 'fix this transcript', 'process Zoom captions', 'clean up meeting notes'."
git-workflow
by dmonteroh
"Master Git workflows for teams: clean PRs, rebasing/merging, conflict resolution, cherry-picks, safe force-push, bisect, worktrees, and recovery via reflog. Includes playbooks + safe scripts for diagnosing and fixing common Git problems."
developing-python
by sumik5
Modern Python development guide covering project setup, tooling, Pythonic best practices and exercise patterns (file I/O, data manipulation, function design, OOP composition, iterators, comprehension idioms), OOP design principles, GoF design patterns, and software engineering process (SDLC, system modeling, methodologies, project implementation patterns, CI/CD, API design). MUST load when pyproject.toml or requirements.txt is detected. Covers Python 3.13 + uv + ruff + mypy, FastAPI/FastMCP, pytest, Docker, Effective Python items (idioms, data structures, concurrency, testing), software design (encapsulation, Demeter's Law, LSP, Design by Contract, behavioral/creational/structural patterns in Python), and SE practices (SDLC phases, Scrum/Kanban, system architecture, code organization, data persistence, API framework comparison, deployment strategies). For language-agnostic clean code principles, use writing-clean-code. For application logging design and structured logging patterns, use implementing-logging.
debrief
by corygabrielsen
Reconstruct context and present next steps when a user returns to a conversation after a break. Synthesizes status into scannable summaries with actionable options.
process-modeling
by spjoshis
Master process modeling with BPMN, flowcharts, swimlane diagrams, and process optimization techniques for business process improvement.