By rahulsub
Coding best practices for LLM-assisted development. Based on insights from Karpathy and Anthropic's Claude Code best practices.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-2 --plugin rahulsub-code-practices-pluginSystematic code cleanup after completing features. Use after refactoring or periodically to remove dead code, console statements, TODOs, and tech debt.
Review code like a skeptical senior engineer. Use when reviewing PRs, after generating significant code, or before merging changes.
Manage Claude Code sessions effectively. Use during long sessions, multi-step tasks, or when responses start degrading. Covers /clear, checklists, and subagents.
Structured workflow for non-trivial tasks. Read files first, create detailed plan, get approval, then implement. Prevents premature coding.
Define success criteria instead of step-by-step instructions. Enables autonomous LLM iteration toward testable goals.
Run Claude Code in CI/CD pipelines, pre-commit hooks, and batch processing. Covers -p flag, fan-out migrations, and pipeline patterns.
Run parallel Claude instances for writer+reviewer patterns, git worktrees, and specialist agents. Use for independent verification and parallel progress.
Implement the obvious correct solution first, then optimize while preserving correctness. Use for algorithms, data transformations, and critical code paths.
Remove over-engineering and unnecessary abstractions. Use after implementing features or when code feels bloated.
Identify and validate hidden assumptions before they become bugs. Use before implementing features or when reviewing generated code.
Write failing tests before implementation. Enables LLM self-correction through feedback loops. Use for new features and bug fixes.
Present multiple approaches with explicit tradeoffs before committing to one. Use when there are multiple valid solutions to a problem.
UI feedback loop using screenshots. Provide design mock, implement, screenshot result, iterate until matching. Use for visual work.
A collection of coding best practices for LLM-assisted development. These skills help you and your team write better code with Claude Code by applying proven patterns from Karpathy's insights and Anthropic's official best practices.
/plugin marketplace add github.com/rahulsub/code-practices-plugin
/plugin marketplace add ~/code-practices-plugin
| Skill | Command | Description |
|---|---|---|
| Explore-Plan-Code | /code-practices:explore-plan-code | Read files → plan → approve → implement workflow |
| Goal-Driven | /code-practices:goal-driven | Define success criteria instead of step-by-step instructions |
| Test-First | /code-practices:test-first | Write failing tests before implementation |
| Naive-Then-Optimize | /code-practices:naive-then-optimize | Implement obvious solution first, then optimize |
| Skill | Command | Description |
|---|---|---|
| Code-Review | /code-practices:code-review | Review code like a skeptical senior engineer |
| Simplify | /code-practices:simplify | Remove over-engineering and unnecessary abstractions |
| Cleanup | /code-practices:cleanup | Systematically remove dead code and tech debt |
| Surface-Assumptions | /code-practices:surface-assumptions | Identify and validate hidden assumptions |
| Tradeoffs | /code-practices:tradeoffs | Present multiple approaches with explicit tradeoffs |
| Skill | Command | Description |
|---|---|---|
| Visual-Iteration | /code-practices:visual-iteration | UI feedback loop with screenshots |
| Context-Management | /code-practices:context-management | Manage long sessions with /clear, checklists, subagents |
| Multi-Claude | /code-practices:multi-claude | Run parallel Claude instances for writer+reviewer patterns |
| Headless-Automation | /code-practices:headless-automation | CI/CD integration, fan-out migrations, pipelines |
/code-practices:explore-plan-code
Claude will read relevant files, create a plan, and wait for your approval before coding.
/code-practices:code-review
Review the changes for hidden assumptions, over-engineering, and edge cases.
/code-practices:naive-then-optimize
Implement the obvious correct solution first, then optimize while preserving behavior.
These practices are based on:
MIT
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Comprehensive .NET development skills for modern C#, ASP.NET, MAUI, Blazor, Aspire, EF Core, Native AOT, testing, security, performance optimization, CI/CD, and cloud-native applications
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, rules, and legacy command shims evolved over 10+ months of intensive daily use
Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls
Access thousands of AI prompts and skills directly in your AI coding assistant. Search prompts, discover skills, save your own, and improve prompts with AI.
AI-powered development tools for code review, research, design, and workflow automation.