code-implementation

Mimic existing codebase patterns to implement code changes across languages.

2|Updated Mar 15, 2025
One-click install
npx skills add https://github.com/vanillacake369/tonys-nix --skill code-implementation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-implementation
Source: https://github.com/vanillacake369/tonys-nix/tree/main/dotfiles/claude/skills/code-implementation
Command: npx skills add https://github.com/vanillacake369/tonys-nix --skill code-implementation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that all new code seamlessly integrates with the existing codebase, matching its unique patterns, conventions, and style. It eliminates inconsistencies, reduces code review friction, and makes new contributions feel native to the project, saving time and improving code quality.

Core Features & Use Cases

  • Pattern-Driven Code Generation: Learns and replicates existing naming conventions, structural patterns, import organization, error handling, and comment styles.
  • Seamless Integration: Ensures new features, modifications, or bug fixes blend perfectly, using existing utilities and respecting architectural boundaries.
  • Language & Framework Agnostic: Adapts to any programming language (TypeScript, Go, Java, Python, Nix, Rust) and framework, mimicking its specific idioms.
  • Use Case: You need to add a new CRUD operation for a Product entity in a Go microservice. Use this Skill to generate the repository, service, and handler code, and it will automatically match the project's existing Go idioms, error handling patterns, and Gin framework usage.

Quick Start

Implement a new OrderService class in src/services/order/OrderService.java that includes createOrder and getOrderById methods, following the existing patterns in UserService.java.

Frequently Asked Questions about code-implementation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write code that matches my existing codebase's style and patterns?

Pattern-driven code generation learns from your existing codebase to replicate naming conventions, structural patterns, error handling, and comment styles. It analyzes your project's idioms across TypeScript, Go, Java, Python, Nix, and Rust, then generates new code—features, bug fixes, or modifications—that seamlessly integrates without introducing inconsistencies or new dependencies.

Can I use this for bug fixes and feature development across different programming languages?

Yes, this approach is language and framework agnostic. It adapts to TypeScript, Go, Java, Python, Nix, and Rust, automatically mimicking language-specific idioms, import organization, and architectural patterns whether you're fixing bugs, adding features, or modifying logic in microservices, monoliths, or mixed-language projects.

What patterns does the Skill learn from my codebase?

The Skill learns naming conventions, structural patterns, import organization, error handling approaches, comment styles, and testing patterns specific to your project. It replicates these patterns in new code to ensure seamless integration, respects architectural boundaries, and reuses existing utilities rather than introducing fresh dependencies.

Will my existing tests continue to pass after generating new code?

Yes, the Skill ensures that generated code maintains compatibility with existing tests. By learning from and replicating established patterns, structural conventions, and error handling approaches in your codebase, new additions integrate without breaking existing test coverage or architectural assumptions.

Do I need to add new dependencies when using generated code?

No, the Skill explicitly avoids introducing new dependencies. Generated code reuses existing utilities and frameworks already present in your project, respecting current architectural choices and dependency constraints while matching your codebase's established integration patterns.