Kongyo ts prettier setup
Skill kongyo2/kongyo-ts-prettier-setup/kongyo-ts-prettier-setup
npx -y skills add kongyo2/kongyo-ts-prettier-setup --skill kongyo-ts-prettier-setupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Set up Prettier code formatter for TypeScript npm projects with merge-safe defaults.
SKILL.md
2.4 KB, 598 tokens by cl100k_base, as published. Nobody here has run it
kongyo-ts-prettier-setup
Set up Prettier for an existing or new TypeScript npm project.
Merge rules for existing projects:
- Do not overwrite existing scripts or ignore entries blindly.
- Add missing entries; keep existing behavior unless explicitly requested to replace.
Target Project Scope
- Single package repo: edit the root
package.json. - Monorepo: edit the
package.jsonin the workspace/package the user asked for. - If the target package is not explicit, ask which workspace/package to update before editing.
Installation
npm install -D prettier
If prettier is already in devDependencies, do not reinstall by default.
Reinstall or upgrade only when the user asks to pin/change the version.
Configuration Files
Create .prettierrc.json if it does not exist:
{
"semi": true
}
If .prettierrc.* already exists, keep it as-is by default.
Only change existing Prettier options when at least one is true:
- The user explicitly requested a style change.
- A team/project style guide requires it.
- The current config is invalid JSON/YAML/TOML and must be fixed.
Create .prettierignore if it does not exist:
node_modules
dist
coverage
*.min.js
package-lock.json
If .prettierignore already exists, append only missing lines from the list above.
Package.json Scripts
If format does not exist:
{
"scripts": {
"format": "prettier --write .",
"format:check": "prettier --check .",
"check:file": "prettier --check"
}
}
If format already exists for another formatter, keep it and add format:prettier instead:
{
"scripts": {
"format": "<keep existing>",
"format:prettier": "prettier --write .",
"format:check": "prettier --check .",
"check:file": "prettier --check"
}
}
Usage
Run full formatting:
npm run format(ornpm run format:prettierwhenformatis already used)
Run repository check:
npm run format:check
Run a single file check:
npm run check:file -- src/index.ts
Verification Notes
- If
package.jsonalready declaresprettierbutnode_modulesis not installed yet, runnpm installbeforeformat:check/check:file. - For
check:file, pass an existing file path in the target package (for examplesrc/index.tsor another tracked file).
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.