Rules and patterns for safely injecting new features into existing codebases. Ensures consistency with project conventions and SOLID principles.
How this skill is triggered — by the user, by Claude, or both
Slash command
/chkim-su-serena-refactor:feature-injection-rulesThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Inject features that blend seamlessly with existing code while maintaining architectural integrity.**
Inject features that blend seamlessly with existing code while maintaining architectural integrity.
| Check | Serena Tool | Required |
|---|---|---|
| Project knowledge loaded | read_memory | Yes |
| Target location identified | find_symbol | Yes |
| Conventions extracted | Knowledge graph | Yes |
| Impact scope analyzed | find_referencing_symbols | Yes |
| SOLID compliance verified | SOLID rules | Yes |
| Type | Use Case | Key Tool |
|---|---|---|
| New Symbol | Add new class/function | insert_after_symbol |
| Extension | Add method to class | insert_after_symbol |
| Implementation | New interface impl | insert_before_symbol |
| Modification | Change existing | replace_symbol_body |
Detailed templates:
Read("references/injection-templates.md")
| Element | Common Patterns |
|---|---|
| Class | PascalCase, suffix (Service, Controller) |
| Method | camelCase, verb prefix (get, set, is) |
| Variable | camelCase or snake_case |
| Constant | UPPER_SNAKE_CASE |
| Interface | I-prefix or -able/-er suffix |
| Principle | Injection Rule |
|---|---|
| SRP | One clear purpose per symbol |
| OCP | Prefer new implementations over modifications |
| LSP | Honor interface contracts |
| ISP | Don't bloat existing interfaces |
| DIP | Inject dependencies, depend on abstractions |
Code templates:
Read("references/code-templates.md")
npx claudepluginhub chkim-su/serena-refactorGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Provides Slack GIF creation utilities with dimension/FPS/color constraints and Python PIL-based frame generation. Use for animated Slack emoji or message GIFs.