skills/implementation/implementation-construction/SKILL.md
Writes new code following Code Complete 2 construction principles: consistent naming, single responsibility, type hints, docstrings, and minimal surface area. Use when implementing a designed component or function; follows design-consult output.
npx skillsauth add pkuppens/pkuppens implementation-constructionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Constructs code from a design specification following Code Complete 2 principles. Focuses on correctness, clarity, and consistency — not cleverness.
| Principle | Application | |-----------|-------------| | One purpose | Each function/class does one thing; name reflects it | | Minimal surface | Private by default; expose only what callers need | | Intention-revealing names | Names describe what, not how | | Type hints on all public signatures | Enables tooling and documents intent | | Defensive at boundaries | Validate at system entry points (API, user input); trust internal code | | Short functions | Target ≤ 20 lines; extract helpers when logic nests 3+ levels | | No premature abstraction | Abstract when you have 3+ concrete cases; not before |
pyproject.toml line length, import style (absolute), and naming conventions.TODO: implement this.uv run ruff check . and uv run ruff format --check . before committing.import *; absolute imports onlydef f(x=[]))Produce the implementation as a code block with the target file path:
# path/to/module/new_thing.py
from module.base import BaseX
class NewThing(BaseX):
"""One-line description of what this does."""
def method_a(self, param: str) -> int:
"""Returns the length of param after processing."""
...
testing
Syncs remote default branch locally (checkout, fetch --prune, pull) and returns to the previous branch when it still exists. Reports stashes and worktrees not yet handled. Use when the user asks to sync main, update default branch, fetch/pull origin, or run /sync-branch.
tools
Creates, queries, updates, and links Azure Boards work items via az boards CLI. Use when filing ADO work items, running WIQL queries, or setting area path, iteration, tags, and assignee.
tools
Creates, reviews, and completes Azure Repos pull requests and branch policies via az repos CLI. Use when opening ADO PRs, setting required reviewers, or configuring build validation policies.
development
Guides Azure Pipelines YAML structure, build validation on PRs, and staged deployment with environments and approvals. Use when authoring azure-pipelines.yml or configuring CI/CD on Azure DevOps.