LogoClawIndex
CasesSkillsAbout
LogoClawIndex

general-convention - General Coding Conventions for TypeScript and JavaScript

Applies general coding conventions when writing, refactoring, or reviewing TypeScript and JavaScript code.

Tags

Updated: 2026-09-18

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Check value existence with isDefined
  • Enforce arrow function syntax
  • Apply early return pattern
  • Require curly braces for conditionals
  • Format blank lines above control statements
  • Specify explicit function return types
  • Apply identifier naming conventions

Inputs

  • TypeScript code
  • JavaScript code

Outputs

  • Formatted TypeScript code
  • Formatted JavaScript code

Requirements

  • class-validator library

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
typescript
javascript
coding-conventions
refactoring
code-review
Check value existence with isDefined
Enforce arrow function syntax
Apply early return pattern
Require curly braces for conditionals
TypeScript code
JavaScript code
Formatted TypeScript code
Formatted JavaScript code