本文へ移動
cccskills
無料GitHub で公開

prettier-format

Run Prettier for the is-kit repository. Use when asked to format or check formatting in this project. Always consult AGENTS.md in the repo root before executing commands.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md1.5 KB
  • scripts/run_prettier.sh1.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Prettier Format (is-kit)

Overview

Format or check code using this repo's Prettier configuration and ignore rules. Prefer local binaries and the project's package manager.

Workflow

  1. Read repository instructions.
  • Open AGENTS.md in the repo root and follow all constraints (commands, formatting, tests, etc.).
  • If AGENTS.md is missing, ask how to proceed.
  1. Determine intent and scope.
  • Use --check for "verify formatting" requests.
  • Use --write for "format" or "fix" requests.
  • Ask for target paths when not specified; do not assume whole repo unless requested.
  1. Run Prettier with local tooling.
  • Prefer ./node_modules/.bin/prettier.
  • Alternative: pnpm prettier (repo uses pnpm).
  • Avoid npx unless the user explicitly approves network downloads.
  1. Report results.
  • Summarize changed files or confirm a clean check.
  • If a command fails, include the error and propose the next step.

Quick Commands

  • Format repo: ./node_modules/.bin/prettier --write .
  • Check formatting: ./node_modules/.bin/prettier --check .
  • Format paths: ./node_modules/.bin/prettier --write src tests
  • Check paths: pnpm prettier --check src tests

Resources

scripts/

  • run_prettier.sh: Run Prettier with --write or --check and auto-pick a runner.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

learn

無料

Extract reusable patterns from non-trivial work in the is-kit repository and store them as project knowledge. Use after meaningful API design, type-system work, debugging, or compatibility discoveries.

日本語の概要は準備中です。原文の説明を表示しています。

nyaomaru/is-kit982026年10月11日 更新

Create, compose, migrate, and review TypeScript runtime type guards with is-kit. Use when adding reusable guards; replacing typeof, null checks, or handwritten type predicates; narrowing unknown values; validating JSON or API responses; building collection or object schemas with struct or typedStruct; or reviewing existing is-kit usage. Do not use for one-off environment checks or validation that requires data transformation or rich error reporting.

日本語の概要は準備中です。原文の説明を表示しています。

nyaomaru/is-kit982026年10月11日 更新

nyaomaru のスキルをすべて見る

このスキルの問題を報告する