Initial scaffold: Researcher Endorsement frontend

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-14 20:18:24 -05:00
commit 333c31c912
79 changed files with 4806 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
---
name: "Prettier Automator"
description: "Generates Prettier configuration and optional Husky + lint-staged hooks to auto-format code on commit."
triggers:
- "setup prettier"
- "create .prettierrc"
- "add husky lint-staged"
---
# Prettier Automator
Purpose
- Create a consistent Prettier config and add scripts/hooks to keep code formatted automatically.
Example prompts
- "create .prettierrc and format script"
- "add husky pre-commit to run prettier via lint-staged"
Example .prettierrc
```json
{
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all",
"semi": true
}
```
Suggested package.json additions
```json
"scripts": {
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,css,scss,md}\""
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx}": [
"prettier --write"
]
}
```
Husky notes
- `npx husky-init && npm install` then `npx husky set .husky/pre-commit "npx lint-staged"` to hook formatting.
- This agent suggests commands and scaffold snippets; applying hooks requires running the commands locally.