pragmatic-programmer

Provide refactoring, debugging, and workflow guidance for code quality improvements.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/fuxiang123/unity-harness --skill pragmatic-programmer-fuxiang123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pragmatic-programmer
Source: https://github.com/fuxiang123/unity-harness/tree/main/assets/github/skills/software-patterns/references/pragmatic-programmer
Command: npx skills add https://github.com/fuxiang123/unity-harness --skill pragmatic-programmer-fuxiang123

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps developers and teams reduce knowledge duplication, improve code quality, and recover from fragile or error-prone designs by providing concise, actionable software engineering principles and techniques. It targets persistent development problems such as DRY violations, brittle coupling, poor testing practices, and ineffective debugging workflows.

Core Features & Use Cases

  • Practical guidance on avoiding and removing duplication, applying DRY at the knowledge level, and choosing when to refactor versus when to prototype.
  • Debugging techniques and reproducible workflows: binary search debugging, rubber-ducking, stack-trace analysis, and building minimal reproductions.
  • Refactoring and architecture advice: extractor methods, replacing type codes with polymorphism, dependency injection, and design-by-contract patterns.
  • Automation and productivity: shell scripting, CI/CD patterns, build/test/deploy automation, and tracer-bullet incremental delivery.
  • Use Case: During a code review for duplicated logic and flaky tests, ask for prioritized refactor steps, relevant assertion checks, and automation opportunities to prevent regression.

Quick Start

Ask the pragmatic-programmer skill for concrete refactoring steps and debugging tactics for a specific code snippet or workflow issue.

Frequently Asked Questions about pragmatic-programmer

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

FAQPage Schema
How do I fix DRY violations and tight coupling during a code review?

To fix DRY violations and tight coupling during code review, apply knowledge-level DRY extraction, replace type codes with polymorphism, and use dependency injection to decouple brittle modules.

What is the best way to debug flaky tests and build a minimal reproduction?

The best way to debug flaky tests is to build minimal reproductions using binary search debugging, stack-trace analysis, and rubber-ducking to isolate the failing condition reproducibly.

How do I integrate test-driven workflows and assertion checks into CI pipelines?

Integrate test-driven workflows into CI pipelines by adding design-by-contract assertion checks, shell scripting for build automation, and tracer-bullet incremental delivery to prevent regressions.

When should I refactor existing code versus building a prototype?

Refactor existing code when addressing DRY violations and brittle coupling, but build a prototype when exploring uncertain designs to validate architecture before committing to refactoring.

Does pragmatic programming guidance apply across different programming languages and projects?

Pragmatic programming guidance applies across languages and projects, offering actionable refactoring techniques, debugging workflows, and automation patterns independent of specific frameworks.

What are the limitations of using tracer-bullet development for incremental delivery?

Tracer-bullet development for incremental delivery requires end-to-end integration early; it may not suit projects with fully unknown requirements where disposable prototyping is more appropriate.