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-isolationend-to-end-tests-protect-critical-journeys.md

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

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.

End-to-end tests are expensive evidence and should be spent on flows that matter. They should prove that critical journeys work across the system, not exhaustively retest every validation branch or internal rule through the slowest path. Strong signs include stable user-visible selectors, independent test data, controlled external dependencies, minimal unrelated setup through the UI, and useful artifacts such as traces, screenshots, logs, or correlation identifiers when failures occur. Weak signs include arbitrary sleeps, CSS-selector fragility, global shared accounts, ordering dependence between tests, uncontrolled third-party calls, and large UI suites that duplicate lower-level coverage. This symptom matters because brittle end-to-end suites train teams to rerun instead of investigate. Review should ask whether each end-to-end test protects a critical journey that is worth its cost.

Examples

Bad

E2E "customer completes checkout"
  customer = sharedCustomer("checkout-user")
  checkout uses livePaymentProvider
  click ".product:nth-child(7) .add"
  enter shared test card details
  click "#checkout .submit"
  sleep 3000
  assert confirmation and every checkout rule

Good

E2E "customer completes checkout"
  customer = createIndependentCustomer()
  product = createAvailableProduct()
  checkout uses controlledApprovedPaymentProvider
  customer signs in using role "Sign in"
  customer adds product using role "Add to cart"
  customer enters sandbox card details
  customer uses role "Place order"
  assert order confirmation shows the new order

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