Skip to content
Skills Library
Programming · Learning & explanation

craftsmanship

/craftsmanship

Use when applying software craftsmanship principles — code quality, professional practices, and continuous improvement drawn from canonical works. USE FOR: code quality principles, Boy Scout Rule, DRY/KISS/YAGNI, craftsmanship practices, choosing quality improvement approaches DO NOT USE FOR: specific principle details (use clean-code, solid, refactoring sub-skills), architecture decisions (use dev/architecture), testing strategy (use testing)

Licence
MIT
Last repository change
09.06.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
76
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 09.06.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when applying software craftsmanship principles — code quality, professional practices, and continuous improvement drawn from canonical works. USE FOR: code quality principles, Boy Scout Rule, DRY/KISS/YAGNI, craftsmanship practices, choosing quality improvement approaches DO NOT USE FOR: specific principle details (use clean-code, solid, refactoring sub-skills), architecture decisions (use dev/architecture), testing strategy (use testing)

Original author description

Use when applying software craftsmanship principles — code quality, professional practices, and continuous improvement drawn from canonical works. USE FOR: code quality principles, Boy Scout Rule, DRY/KISS/YAGNI, craftsmanship practices, choosing quality improvement approaches DO NOT USE FOR: specific principle details (use clean-code, solid, refactoring sub-skills), architecture decisions (use dev/architecture), testing strategy (use testing)

How it works

  1. Overview
  2. The Boy Scout Rule
  3. The Pragmatic Programmer Principles
  4. Principles Quick-Reference
  5. Canonical Works
  6. When to Use Which Sub-Skill
  7. The Craftsmanship Mindset
  8. Best Practices
Original SKILL.md headings · 101 lines, 1,197 words
SKILL.md preview
---
name: craftsmanship
description: |
    Use when applying software craftsmanship principles — code quality, professional practices, and continuous improvement drawn from canonical works.
    USE FOR: code quality principles, Boy Scout Rule, DRY/KISS/YAGNI, craftsmanship practices, choosing quality improvement approaches
    DO NOT USE FOR: specific principle details (use clean-code, solid, refactoring sub-skills), architecture decisions (use dev/architecture), testing strategy (use testing)
license: MIT
metadata:
  displayName: "Software Craftsmanship"
  author: "Tyler-R-Kendrick"
compatibility: claude, copilot, cursor
references:
  - title: "Manifesto for Software Craftsmanship"
    url: "http://manifesto.softwarecraftsmanship.org/"
  - title: "The Pragmatic Programmer — pragprog.com"
    url: "https://pragprog.com/titles/tpp20/the-pragmatic-programmer-20th-anniversary-edition/"
---

# Software Craftsmanship

## Overview
Software craftsmanship is a movement that emphasizes the coding skills of developers themselves. It extends agile development by focusing not just on working software, but on *well-crafted* software. The Software Craftsmanship Manifesto (2009) declares:

> As aspiring Software Craftsmen we are raising the bar of professional software development by practicing it and helping others learn the craft. Through this work we have come to value:
>
> - Not only working software, but also **well-crafted software**
> - Not only responding to change, but also **steadily adding value**
> - Not only individuals and interactions, but also a **community of professionals**
> - Not only customer collaboration, but also **productive partnerships**

## The Boy Scout Rule

> "Leave the code better than you found it." — Robert C. Martin

Every time you touch code, improve it. Fix a name, extract a method, add a missing test, remove dead code. The cumulative effect of small, continuous improvements is a codebase that gets healthier over time rather than decaying.

**Applying the Boy Scout Rule:**
- Rename a variable to be more descriptive while fixing a bug nearby.
- Extract a duplicated block into a shared function when adding a feature.
- Delete commented-out code that has been dead for months.
- Add a missing null check or guard clause when reading through a function.
- Write a test for an untested path you discover while investigating an issue.

## The Pragmatic Programmer Principles

From *The Pragmatic Programmer* by Andrew Hunt and David Thomas:

| Principle | Meaning |
|-----------|---------|
| Care About Your Craft | There is no point in developing software unless you care about doing it well. |
| Think! About Your Work | Turn off the autopilot and take control — constantly critique and appraise your work. |
| DRY — Don't Repeat Yourself | Every piece of knowledge must have a single, unambiguous, authoritative representation within a system. |
| Orthogonality | Eliminate effects between unrelated things. Changes in one area should not ripple into others. |
| Tracer Bullets | Use code that glows in the dark — build thin, end-to-end slices to validate architecture early. |
| Prototypes and Post-It Notes | Prototype to learn. Prototypes are disposable — make that clear. |
| Domain Languages | Program close to the problem domain. |
| Estimate | Learn to estimate to avoid surprises. "I'll get back to you" is always an acceptable answer. |
| Good-Enough Software | Know when to stop. Great software today is often preferable to perfect software tomorrow. |
| Invest Regularly in Your Knowledge Portfolio | Learn at least one new language every year. Read a technical book each month. |
| It's Both What You Say and the Way You Say It | Know your audience. Communicate effectively. |

## Principles Quick-Reference

| Principle | Definition | Violation Sign |
|-----------|-----------|----------------|
| **DRY** (Don't Repeat Yourself) | Every piece of knowledge has a single, unambiguous representation. | Copy-pasted logic, duplicated constants, repeated validation rules. |
| **KISS** (Keep It Simple, Stupid) | The simplest solution that works is the best solution. | Over-engineered abstractions, unnecessary design patterns, premature optimization. |
| **YAGNI** (You Aren't Gonna Need It) | Do not build functionality until it is needed. | Speculative features, unused abstractions, configuration for hypothetical scenarios. |
| **Separation of Concerns** | Each module addresses a distinct concern. | UI logic mixed with business logic, data access scattered across layers. |
| **Law of Demeter** | A method should only talk to its immediate friends. | Long chains like `order.getCustomer().getAddress().getCity()`. |
| **Principle of Least Surprise** | Software should behave in a way that users and developers expect. | A `save()` method that also sends an email; a getter that modifies state. |
| **Composition over Inheritance** | Favor assembling behavior from small parts over deep class hierarchies. | Deep inheritance trees, fragile base class problems. |
| **Fail Fast** | Report errors as soon as they are detected. | Swallowing exceptions, returning null instead of throwing, silent data corruption. |
| **Single Source of Truth** | Every data element is mastered in exactly one place. | Duplicated database columns, config in multiple files, competing state stores. |
| **Encapsulation** | Hide internal details and expose only what is necessary. | Public fields, leaking internal collections, exposing implementation types in APIs. |

## Canonical Works

| Book | Author(s) | Sub-Skill | Key Contribution |
|------|-----------|-----------|------------------|
| *Clean Code* | Robert C. Martin | `clean-code` | Naming, functions, formatting, comments, error handling |
| *Clean Architecture* | Robert C. Martin | `clean-architecture` | Dependency Rule, concentric layers, boundaries |
| *Refactoring* | Martin Fowler | `refactoring` | Code smells catalog, refactoring techniques, safe transformation |
| *SOLID Principles* | Robert C. Martin | `solid` | Five principles for maintainable object-oriented design |
| *The Twelve-Factor App* | Adam Wiggins | `twelve-factor` | Cloud-native application methodology |
| *The Pragmatic Programmer* | Hunt & Thomas | (this skill) | Professional mindset, pragmatic philosophy, career practices |
| *A Philosophy of Software Design* | John Ousterhout | — | Deep vs. shallow modules, complexity management |
| *Code Complete* | Steve McConnell | — | Construction practices, defensive programming, self-documenting code |
| *Working Effectively with Legacy Code* | Michael Feathers | — | Seam model, characterization tests, breaking dependencies |

## When to Use Which Sub-Skill

| Situation | Reach For |
|-----------|-----------|
| Code is hard to read, names are unclear, functions are long | `clean-code` |
| Dependencies flow in the wrong direction, layers are tangled | `clean-architecture` |
| Classes have too many responsibilities, changes break unrelated things | `solid` |
| Deploying to the cloud, configuring environments, managing processes | `twelve-factor` |
| Code smells accumulate, need systematic improvement without changing behavior | `refactoring` |
| General quality mindset, deciding which approach to take first | This skill (`craftsmanship`) |

## The Craftsmanship Mindset

1. **Practice deliberately.** Kata, code retreats, and mob programming sessions sharpen your skills outside of production pressure.
2. **Seek feedback.** Code reviews, pair programming, and retrospectives expose blind spots.
3. **Own your mistakes.** When something breaks, fix it, learn from it, and share the lesson.
4. **Mentor and be mentored.** Teaching deepens understanding; learning from others shortens the path.
5. **Measure and reflect.** Track defect rates, cycle times, and code churn — but remember that metrics are guides, not goals.

## Best Practices
- Apply the Boy Scout Rule on every commit — even a small improvement counts.
- Use DRY for knowledge, not just code — duplicated business rules in documentation, tests, and code are three bugs waiting to diverge.
- Apply KISS by asking "What is the simplest thing that could possibly work?" before reaching for a pattern.
- Apply YAGNI by deleting speculative code that has not been needed for two sprints.
- Treat the principles as guardrails, not laws — context always wins over dogma.
- Invest time in learning: read one canonical book per quarter, attend one conference or meetup per year.
- Prefer small, reversible decisions over big, irreversible ones.
Files in this package (76)
  • AGENTS.md 7 KB
  • README.md 1 KB
  • SKILL.md 8 KB
  • metadata.json 1 KB
  • clean-architecture/AGENTS.md 13 KB
  • clean-architecture/README.md 1 KB
  • clean-architecture/SKILL.md 14 KB
  • clean-architecture/metadata.json 1 KB
  • clean-architecture/rules/_sections.md 2 KB
  • clean-architecture/rules/_template.md 1 KB
  • clean-architecture/rules/clean-architecture-defer-framework-decisions-as-long-as-possible.md 1 KB
  • clean-architecture/rules/clean-architecture-enforce-the-dependency-rule-with-linter-rules-or.md 1 KB
  • clean-architecture/rules/clean-architecture-keep-use-cases-as-pure-orchestrators.md 1 KB
  • clean-architecture/rules/clean-architecture-name-modules-after-business-capabilities-not-technical.md 1 KB
  • clean-architecture/rules/clean-architecture-test-inner-layers-with-unit-tests-fast-no-i-o.md 1 KB
  • clean-architecture/rules/clean-architecture-use-the-humble-object-pattern-at-every-boundary-to-maximize.md 1 KB
  • clean-architecture/rules/clean-architecture-when-in-doubt-about-which-layer-something-belongs-to-ask.md 1 KB
  • clean-code/AGENTS.md 11 KB
  • clean-code/README.md 1 KB
  • clean-code/SKILL.md 12 KB
  • clean-code/metadata.json 1 KB
  • clean-code/rules/_sections.md 1 KB
  • clean-code/rules/_template.md 1 KB
  • clean-code/rules/clean-code-apply-the-boy-scout-rule.md 1 KB
  • clean-code/rules/clean-code-prefer-polymorphism-over-switch-if-else-chains-when-you.md 1 KB
  • clean-code/rules/clean-code-read-code-aloud.md 1 KB
  • clean-code/rules/clean-code-treat-tests-as-first-class-citizens-of-clean-code.md 1 KB
  • clean-code/rules/clean-code-use-automated-linters-and-formatters-to-handle-formatting.md 1 KB
  • clean-code/rules/clean-code-when-you-write-a-comment-first-ask.md 1 KB
  • refactoring/AGENTS.md 16 KB
  • refactoring/README.md 1 KB
  • refactoring/SKILL.md 17 KB
  • refactoring/metadata.json 1 KB
  • refactoring/rules/_sections.md 2 KB
  • refactoring/rules/_template.md 1 KB
  • refactoring/rules/refactoring-commit-after-each-successful-refactoring-step.md 1 KB
  • refactoring/rules/refactoring-if-a-refactoring-takes-more-than-an-hour-without.md 1 KB
  • refactoring/rules/refactoring-name-the-refactoring-you-are-applying.md 1 KB
  • refactoring/rules/refactoring-never-refactor-and-change-behavior-in-the-same-step.md 1 KB
  • refactoring/rules/refactoring-pair-on-refactoring-when-possible.md 1 KB
  • refactoring/rules/refactoring-refactor-toward-the-design-you-need-for-the-next-feature.md 1 KB
  • refactoring/rules/refactoring-track-technical-debt-explicitly-todo-comments-issue.md 1 KB
  • refactoring/rules/refactoring-use-ide-refactoring-tools-rename-extract-inline.md 1 KB
  • rules/_sections.md 1 KB
  • rules/_template.md 1 KB
  • rules/craftsmanship-apply-kiss-by-asking-what-is-the-simplest-thing-that-could.md 1 KB
  • rules/craftsmanship-apply-the-boy-scout-rule-on-every-commit.md 1 KB
  • rules/craftsmanship-apply-yagni-by-deleting-speculative-code-that-has-not-been.md 1 KB
  • rules/craftsmanship-invest-time-in-learning.md 1 KB
  • rules/craftsmanship-prefer-small-reversible-decisions-over-big-irreversible.md 1 KB
  • rules/craftsmanship-treat-the-principles-as-guardrails-not-laws.md 1 KB
  • rules/craftsmanship-use-dry-for-knowledge-not-just-code.md 1 KB
  • solid/AGENTS.md 13 KB
  • solid/README.md 1 KB
  • solid/SKILL.md 13 KB
  • solid/metadata.json 1 KB
  • solid/rules/_sections.md 1 KB
  • solid/rules/_template.md 1 KB
  • solid/rules/solid-apply-solid-principles-as-guardrails-during-code-review.md 1 KB
  • solid/rules/solid-balance-solid-with-yagni.md 1 KB
  • solid/rules/solid-review-class-names-regularly.md 1 KB
  • solid/rules/solid-use-constructor-injection-as-the-default-mechanism-for-dip.md 1 KB
  • solid/rules/solid-when-you-feel-friction-adding-a-feature-check-which-solid.md 1 KB
  • solid/rules/solid-write-tests-first-tdd.md 1 KB
  • twelve-factor/AGENTS.md 16 KB
  • twelve-factor/README.md 1 KB
  • twelve-factor/SKILL.md 17 KB
  • twelve-factor/metadata.json 1 KB
  • twelve-factor/rules/_sections.md 1 KB
  • twelve-factor/rules/_template.md 1 KB
  • twelve-factor/rules/twelve-factor-adopt-factors-incrementally.md 1 KB
  • twelve-factor/rules/twelve-factor-automate-compliance.md 1 KB
  • twelve-factor/rules/twelve-factor-combine-twelve-factor-with-cloud-native-patterns.md 1 KB
  • twelve-factor/rules/twelve-factor-treat-the-twelve-factors-as-a-checklist-during-architecture.md 1 KB
  • twelve-factor/rules/twelve-factor-use-containers-docker-as-the-natural-packaging-for.md 1 KB
  • twelve-factor/rules/twelve-factor-when-twelve-factor-conflicts-with-pragmatism-e.md 1 KB

Versions

The database has no other skills named craftsmanship.

Database snapshot: 13.11.2026 · package version 1768ebf0b15a (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100clean-code-principles
    SOLID principles, design patterns, DRY, KISS, and clean code fundamentals. Use when reviewing architecture, checking code quality, refactoring, or discussing design decisions. Triggers on "review architecture", "check code quality", "SOLID principles", "design patterns", or "clean code".
  • 100code-quality-principles
    Applies KISS, YAGNI, and SOLID principles for clean code with reduced complexity. Use when refactoring or reviewing code for over-engineering.
  • 100react-principles
    Principles and practices for writing React: SOLID, DRY/KISS/YAGNI, Hooks, state, effects, TypeScript and testing. Use when creating, refactoring or reviewing React components, Hooks, props or frontend structure.
  • 86engineering-principles
    Core code-quality rules — YAGNI, KISS, DRY with judgment, small single-purpose units, clear naming, minimal-scope diffs. Use whenever writing, refactoring, or reviewing code in this repo.
  • 100dev-software-design
    Opinionated guide to software design principles and architectural patterns. Use when reviewing code design, planning feature architecture, asking "is this the right design?", "how should I structure this?", or requesting design philosophy guidance. Triggers on questions about…
  • 100code-quality
    Provides code quality principles including SOLID, DRY, testing strategies, and best practices for implementation review. Use when reviewing code or applying quality standards.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.