Index of every page on this site: llms.txt
All skills
meza avatar

/clean-code

@982e21e
by mezameza/skills2 stars
Run it yourself

Use when designing, writing, refactoring, reviewing, or explaining code, tests, APIs, modules, or architecture. Provides a progressive catalog of clean-code qualities covering comprehension, domain modeling, state and failure behavior, boundaries, evolvability, operability, safety, and test design.

Use this Skill: https://skilld.dev/gh/meza/skills/clean-code

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencestest-placement-and-isolation.md

≈758 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Test placement and isolation

Each test sits at the cheapest layer that can provide trustworthy evidence and is insulated from the world, so results reflect product behavior rather than environment.

Use the descriptions below to decide which individual quality references are relevant. Open only the references that can materially affect the current decision, code, or failure.

  • Integration points are exercised realistically - At least some tests cover real wiring between modules, adapters, and system boundaries.
  • Tests are deterministic - Test outcomes do not depend on timing luck, ordering accidents, external state, or flaky infrastructure.
  • Tests sit at the right level - Behavior is verified at the cheapest test layer that can provide trustworthy evidence, rather than pushed unnecessarily into broad slow tests.
  • Unit tests avoid physical I/O - Unit tests verify focused behavior without touching the real filesystem, network, database, clock, or other physical/environmental resources unless that resource is the behavior under test. Open this when assessing what a test actually touches and whether it belongs at the unit-test layer.
  • Integration tests verify real boundaries - Integration tests exercise the real seams where components, adapters, schemas, infrastructure, or configuration meet.
  • End-to-end tests protect critical journeys - End-to-end tests cover a small number of high-value user or system journeys through the deployed shape of the application.
  • Smoke tests are broad, shallow, and release-gating - Smoke tests quickly determine whether a build, deployment, or environment is healthy enough for deeper testing or use.
  • Test data is owned and isolated - Tests create, control, and clean up the data and state they depend on rather than relying on accidental shared conditions.
  • External dependencies are controlled in tests - Tests bound or replace nondeterministic third-party systems so failures reflect product behavior rather than outside instability.
  • Unit tests mock physical boundaries - Unit tests avoid real filesystem, network, database, clock, process, and environment access unless the physical boundary itself is the behavior under test. Open this when assessing whether production design exposes a substitutable seam for a physical dependency.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts28d3 checks · Risk SAFE
  • Gen Agent Trust Hub28d

    The skill 'clean-code' is a comprehensive educational catalog of software engineering principles and clean-code qualities. It provides structured guidance and pseudocode examples to help AI agents reason about code quality, security, and maintainability. No malicious code, hidden instructions, or security risks were identified during the analysis.

  • Socket28d

    No alerts

  • Snyk28d

    Risk: LOW · No issues

Signed by skilld at 982e21e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Activeupdated 3 months ago

README badge

README badge for meza/skills/clean-code