skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
damianwrooby/javascript-clean-code-skills130 installs

clean-codejs-functions

Function design patterns emphasizing single responsibility and clarity.

How do I install this agent skill?

npx skills add https://github.com/damianwrooby/javascript-clean-code-skills --skill clean-codejs-functions
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill provides educational documentation on JavaScript function design patterns and best practices. No security issues or malicious patterns were detected.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerwarn

    1/1 file flagged

What does this agent skill do?

Clean Code JavaScript – Function Patterns

Table of Contents

  • Single Responsibility
  • Function Size
  • Parameters
  • Side Effects

Single Responsibility

// ❌ Bad
function handleUser(user) {
  saveUser(user);
  sendEmail(user);
}

// ✅ Good
function saveUser(user) {}
function notifyUser(user) {}

Function Size

Keep functions small (ideally < 20 lines).

Parameters

// ❌ Bad
function createUser(name, age, city, zip) {}

// ✅ Good
function createUser({ name, age, address }) {}

Side Effects

// ❌ Bad
let total = 0;
function add(value) {
  total += value;
}

// ✅ Good
function add(total, value) {
  return total + value;
}

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/damianwrooby/javascript-clean-code-skills/clean-codejs-functions">View clean-codejs-functions on skillZs</a>