跳到正文
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(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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-kit1212026年10月21日 更新

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-kit1212026年10月21日 更新

查看 nyaomaru 的全部技能

报告此技能的问题