agentleFS
lexicalninjalexicalninja/my-little-scrum-team/skills/best-practices-checker/SKILL.md

best-practices-checker

Skill2 starsChanged 4 months agoMITView on GitHub

Checks code for best practice violations including DRY violations, SOLID principles, error handling patterns, testing practices, documentation standards, and version control practices. Returns structured best practice reports with improvement suggestions.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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:

    Check for DRY (Don't Repeat Yourself) violations

    line 11
  2. Distinctive:

    Verify SOLID principles are followed

    line 12
  3. Distinctive:

    Check testing practices and coverage

    line 14
  4. Distinctive:

    Check version control practices

    line 16
  5. Distinctive:

    Testing: Test coverage, test quality, testing patterns

    line 73
  6. Distinctive:

    Version Control: Commit message quality, branch naming, git practices

    line 75

≈ “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

Best Practices Checker Skill

Instructions

  1. Review code for best practice violations
  2. Check for DRY (Don't Repeat Yourself) violations
  3. Verify SOLID principles are followed
  4. Review error handling patterns
  5. Check testing practices and coverage
  6. Review documentation standards
  7. Check version control practices
  8. Return structured best practice reports with:
    • File path and line numbers
    • Best practice violation type
    • Current code
    • Suggested improvement
    • Reason
    • Priority (usually Should-Fix or Nice-to-Have)

Examples

Input: Code duplication Output:

### BEST-001
- **File**: `utils.js`, `helpers.js`
- **Lines**: 15-20 (utils.js), 30-35 (helpers.js)
- **Priority**: Should-Fix
- **Issue**: Duplicate code for calculating total price
- **Current Code**:
  ```javascript
  // In utils.js
  function calculateTotal(items) {
      let total = 0;
      for (let item of items) {
          total += item.price;
      }
      return total;
  }
  
  // In helpers.js (duplicate)
  function getTotal(items) {
      let total = 0;
      for (let item of items) {
          total += item.price;
      }
      return total;
  }
  • Suggested Fix:
    // In shared/utils.js
    export function calculateTotal(items) {
        return items.reduce((sum, item) => sum + item.price, 0);
    }
    
    // Import in both files
    import { calculateTotal } from './shared/utils';
  • Reason: DRY principle - code duplication makes maintenance harder and increases bug risk

## Best Practice Areas to Check

- **DRY Violations**: Code duplication that should be extracted
- **SOLID Principles**: Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion
- **Error Handling**: Consistent error handling patterns, proper error propagation
- **Testing**: Test coverage, test quality, testing patterns
- **Documentation**: Code comments, API documentation, README quality
- **Version Control**: Commit message quality, branch naming, git practices
- **Code Organization**: Logical file structure, module organization
- **Naming Conventions**: Clear, descriptive names
- **Function Size**: Functions that are too long
- **Complexity**: Cyclomatic complexity, nested conditionals

## Priority Guidelines

- **Must-Fix**: Best practice violations that cause bugs or significant maintainability issues
- **Should-Fix**: Best practice improvements that enhance code quality
- **Nice-to-Have**: Minor best practice enhancements

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.