agentleFS
lexicalninjalexicalninja/my-little-scrum-team/skills/utility-implementer/SKILL.md

utility-implementer

Skill2 starsChanged 4 months agoMITView on GitHub

Implements utility functions, helpers, and shared code. Use when implementing reusable functions, validation utilities, formatting functions, or helper modules. Creates clean, reusable utility code.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Pure Functions: Prefer pure functions when possible

    line 75
  2. Distinctive:

    Documentation: Document function purpose, parameters, return values

    line 78
  3. Distinctive:

    Performance: Consider performance implications

    line 81

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Utility Implementer Skill

Instructions

  1. Analyze utility requirements from task
  2. Design utility function interface
  3. Implement utility function with proper error handling
  4. Add input validation
  5. Handle edge cases
  6. Write comprehensive tests
  7. Return implementation with:
    • Utility function code
    • Input validation
    • Error handling
    • Documentation
    • Tests

Examples

Input: "Implement password hashing utility" Output:

// utils/password.js
const bcrypt = require('bcrypt');

/**
 * Hash a password using bcrypt
 * @param {string} password - Plain text password
 * @param {number} rounds - Number of bcrypt rounds (default: 10)
 * @returns {Promise<string>} Hashed password
 * @throws {Error} If password is invalid
 */
async function hashPassword(password, rounds = 10) {
    if (!password || typeof password !== 'string') {
        throw new Error('Password must be a non-empty string');
    }
    if (password.length < 8) {
        throw new Error('Password must be at least 8 characters');
    }
    return await bcrypt.hash(password, rounds);
}

/**
 * Verify a password against a hash
 * @param {string} password - Plain text password
 * @param {string} hash - Hashed password
 * @returns {Promise<boolean>} True if password matches
 */
async function verifyPassword(password, hash) {
    if (!password || !hash) {
        return false;
    }
    return await bcrypt.compare(password, hash);
}

module.exports = { hashPassword, verifyPassword };

Utility Types

  • Validation Utilities: Input validation, data validation
  • Formatting Utilities: Date formatting, number formatting, text formatting
  • Transformation Utilities: Data transformation, conversion functions
  • Security Utilities: Password hashing, token generation, encryption
  • Helper Functions: Common operations, calculations, string manipulation
  • Constants: Shared constants, configuration values

Best Practices

  • Pure Functions: Prefer pure functions when possible
  • Error Handling: Comprehensive error handling
  • Input Validation: Validate all inputs
  • Documentation: Document function purpose, parameters, return values
  • Reusability: Make utilities reusable
  • Testing: Comprehensive test coverage
  • Performance: Consider performance implications

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.