Engineering Practices

VerifiedSafe

Approach to building and changing software: research, planning, TDD, refactoring, and quality verification before implementing features or fixes.

Sby Skills Guide Bot
DevelopmentIntermediate
8/7/2026
Claude Code
#tdd#code-review#planning#refactoring#workflow

Recommended for

Automated summary

A process-level engineering skill describing how to research, plan, test, and review a code change before and while writing it.

Strengths

  • Forces research and convention-matching (2-3 similar examples) before any new code is written.
  • Makes RED-GREEN-REFACTOR the default loop, with an explicit list of exceptions such as scripts, spikes, and config tweaks.
  • Defines a completion chain (tests → integration → /simplify → /code-review) and requires stopping to re-plan when execution goes sideways.
  • Names what must never be simplified away: input validation, error handling, security, and accessibility.

Limitations

  • Tightly coupled to Claude Code specifics (plan mode, /simplify, /code-review high), so little transfers verbatim to other agents.
  • Leans on model judgment to decide when TDD applies; the exception list is broad enough to justify skipping tests.
  • Gives no concrete method for performance baselines beyond profiling first.
When to use it

Use it before implementing a feature, refactoring, fixing a bug, or reviewing a non-trivial change.

When not to use it

Skip it for prose edits, content changes, or Company OS data work, where the ceremony adds no value.

Security analysis

Safe
Quality score92/100

The skill is a set of engineering guidelines for an AI coding agent. It does not instruct any destructive, exfiltrating, or obfuscated actions. It mentions using tools like Grep/Glob for research, but no execution of shell commands or network operations is prescribed. No sensitive data handling or security bypass is involved.

No concerns found

How this analysis is made

Examples

New feature, test-first
Add rate limiting to our Express API. Map the existing middleware patterns first, show me a high-level then task-level plan, and implement it test-first.
Non-trivial bug fix
Coupon codes get applied twice when a payment retry happens. Plan the fix and write a failing test that reproduces it before touching any code.
Refactor and review pass
Refactor the billing module for readability without changing behavior — work make-it-work then make-it-right, and run the review pass once tests are green.

name: engineering description: >- How to approach building and changing software: research before writing, plan, TDD, the work/right/fast progression, documentation hierarchy, fail-fast validation, and what to do when stuck. Use before implementing a feature, refactoring, fixing a bug, reviewing a change, or planning non-trivial repository work. Skip for content edits, prose, and Company OS data.

Engineering

Readability and changeability are primary. Small functions, single responsibility. Reserve mocks for isolated test seams.

Research before writing

  • Use Grep/Glob to map the space. Read files end-to-end when you will edit them, plus immediate callers and tests.

Conform before creating

  • Before adding new code, find 2-3 examples of similar code in the codebase. Match their naming, file structure, error handling, and test style.
  • Priority: architecture docs (CLAUDE.md, rules) outrank existing code. Documented intent wins when current code contradicts it.
  • Without a target doc, follow established codebase conventions. Consistency beats personal preference.

Plan

  • Enter plan mode for non-trivial tasks (3+ steps, architectural decisions, verification work).
  • Plan at two levels: high-level (overall goals and flow), then task-level (specific files or features). Implement only after the user approves both levels.
  • Before planning anything complex, list every source document, methodology file, and reference you intend to use. Wait for the user to add or remove items before producing the plan.
  • When something goes sideways mid-execution, stop and re-plan.

Test-driven development (default)

Follow RED-GREEN-REFACTOR for new features and non-trivial logic:

  1. RED: write a concrete failing test that defines the requirement.
  2. GREEN: write the minimum code to make it pass.
  3. REFACTOR: clean up via /simplify and /code-review high while keeping tests green.

TDD applies to features and non-trivial logic in real projects. Scripts, spikes, one-off tools, config tweaks, doc edits, typo fixes, and one-line changes skip the cycle and get the minimal runnable check instead. Use judgment.

Progression

  1. Make it work: functioning code that passes tests.
  2. Make it right: refactor for clarity and maintainability.
  3. Make it fast: optimize only after profiling reveals a real bottleneck.

One feature at a time

  • Finish one well-defined feature before the next. Defer nice-to-haves until the core is complete and verified.
  • Completion chain: tests pass -> integration works end-to-end -> /simplify -> /code-review high. Run /simplify before the final summary on any task touching 3+ files or refactoring a non-trivial module. For auth/data/billing/external-API changes, add security and performance checks against baseline.
  • Fix broken links in the chain before moving on.
  • Cleanup, review, and quality passes scan the whole working tree (git status + git diff), not only files touched in the current conversation. In-flight changes from another session sit alongside today's work: read them for context and leave them to their author. An unstaged change you revert is gone from git for good.

Fail fast and validate

  • Validate aggressively at inputs and integration boundaries. Give clear, descriptive errors when something breaks.
  • Actively probe edge cases, invalid inputs, and unexpected conditions.

When not to be lazy

Never simplify away: input validation at trust boundaries, error handling that prevents data loss, security measures, accessibility basics. Work that doesn't warrant full TDD still leaves one runnable check behind: the smallest thing that fails if the logic breaks. Trivial one-liners need no test. YAGNI applies to tests too.

Comments and documentation

Deletion is the default. Write a comment only for a fact the code cannot state: an ordering constraint, an external limit or quirk, a security rationale, the bug a guard exists for, or a cross-file contract nothing else records. One sentence, in the file's prevailing style. Keep directive comments (shellcheck, eslint, noqa, pragma, shebang).

Documentation hierarchy, in order of preference:

  1. Working code: self-documenting through clear naming.
  2. Tests: executable documentation; the tests are the spec.
  3. README / docs: setup, architecture, API specs.
  4. Comments: last resort.

Leave it better

  • Leave it better than you found it, even when fixing something unrelated.
  • Clean up test scripts, data files, temporary backups, and files from abandoned strategies when done.

When stuck: STOP -> INVESTIGATE -> SIMPLIFY -> CLARIFY -> SEARCH

  1. STOP: more code won't fix it. Re-plan.
  2. INVESTIGATE: use a debugger, add logging, inspect actual I/O.
  3. SIMPLIFY: isolate the problem with a smaller test.
  4. CLARIFY: ask before guessing at requirements.
  5. SEARCH: look for existing solutions in this codebase or elsewhere.

After 3 distinct investigation attempts without progress, escalate with: goal, attempts, actual vs expected, environment state, next steps needed.

Autonomous bug fixing

Given a clear bug report: fix it. Errors, logs, failing tests point the way. Fix failing CI without waiting to be told how. Ask for clarification when the requirement contradicts itself, references a missing artifact, or has more than one defensible interpretation. Otherwise proceed.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/engineering-practices-msih94wc/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/engineering-practices-msih94wc' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/engineering-practices-msih94wc/download' --output '.skill-downloads/engineering-practices-msih94wc/SKILL.md.part' && mv '.skill-downloads/engineering-practices-msih94wc/SKILL.md.part' '.skill-downloads/engineering-practices-msih94wc/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/engineering-practices-msih94wc/SKILL.md' && test -s '.skill-downloads/engineering-practices-msih94wc/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/engineering' && cp -R '.skill-downloads/engineering-practices-msih94wc' '.claude/skills/engineering'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/engineering-practices-msih94wc'

openskills read 'engineering-practices-msih94wc'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/engineering-practices-msih94wc/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills