format-js

Format JavaScript and TypeScript code with Prettier.

33|5|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/y1feng200156/ham-study --skill format-js
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: format-js
Source: https://github.com/y1feng200156/ham-study/tree/main/.agent/skills/format-js
Command: npx skills add https://github.com/y1feng200156/ham-study --skill format-js

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures consistent code formatting across JavaScript and TypeScript projects, improving readability and maintainability.

Core Features & Use Cases

  • Automated Formatting: Applies Prettier's rules to format code automatically.
  • Wide Language Support: Formats JS, TS, JSX, TSX, JSON, CSS, and Markdown files.
  • Use Case: After writing a new feature in TypeScript, use this Skill to automatically format all the new files according to the project's Prettier configuration.

Quick Start

Use format-js to format my JavaScript code.

Frequently Asked Questions about format-js

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I format JavaScript and TypeScript code automatically?

To format JavaScript and TypeScript code automatically, this Skill applies Prettier's rules to enforce consistent styling across your project files. It formats JS, TS, JSX, TSX, JSON, CSS, and Markdown files to improve readability and maintainability.

Do I need Prettier installed to format my JS and TS code?

Yes, you need Prettier installed and configured to format your JS and TS code. This Skill requires Node.js and Prettier to be set up in your environment so it can apply your project's existing formatting configuration.

What's the best way to keep TypeScript code style consistent across a project?

The best way to keep TypeScript code style consistent is to use Prettier for automated formatting. This Skill applies Prettier rules to format all new TypeScript files according to your project configuration, ensuring maintainability.

Can I use this formatting tool for JSON and CSS files too?

Yes, you can format JSON and CSS files too, along with JavaScript, TypeScript, JSX, TSX, and Markdown. The Skill uses Prettier to enforce consistent styling across these supported file formats in your software development workflow.