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.

referencesoperability-and-production-behaviorperformance-and-scale-behavior-are-intentional.md

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

Performance and scale behavior are intentional

Load handling, hot paths, optimization choices, and scalability are shaped deliberately so the system continues to behave predictably as demand grows without spreading complexity unnecessarily.

Performance quality is not just about making code fast. It is about knowing where speed, latency, memory, throughput, or contention actually matter and making explicit tradeoffs that preserve maintainability while meeting real constraints. Backpressure and load behavior, identifiable hot paths, explicit performance tradeoffs, and scalability all belong together because they describe whether the system has an intentional story for growth and stress.

Strong signs include identified critical paths, bounded queues or clear overload behavior, optimizations tied to real measurements or known constraints, and designs that allow traffic, data volume, or feature growth without forcing unrelated parts of the codebase to become more complex. Weak signs include speculative micro-optimizations, no visible plan for overload, slow dependencies allowed to fan out without control, and architecture that appears fine at small scale but would require broad redesign as usage grows.

The educational point is that scalable design is as much about preserving local simplicity as it is about raw capacity. Review this symptom by asking whether the change reveals where performance matters, states the tradeoffs honestly, and keeps growth from turning into systemic fragility. A weak result here means the code may work today but accumulates hidden risk under load, in large datasets, or as the system evolves.

Examples

Bad

queue = Queue()
onDocumentUploaded(document):
  queue.push(document)
forever:
  document = queue.pop()
  spawn index(document)

Good

capacity = measuredCapacity("representative-load-test")
queue = Queue(max = capacity.safeBacklog)
workers = WorkerPool(size = capacity.safeConcurrency)
workers.consume(queue, index)
onDocumentUploaded(document):
  if not queue.tryPush(document):
    return OVERLOADED
  return ACCEPTED

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