Agent skill
code-formatter
A simple example skill for demonstration purposes
Install this agent skill to your Project
npx add-skill https://github.com/jduncan-rva/skill-porter/tree/main/examples/simple-claude-skill
SKILL.md
Code Formatter Skill
Automatically formats code files using industry-standard tools.
Capabilities
- Format JavaScript/TypeScript with Prettier
- Fix ESLint issues automatically
- Format JSON, YAML, and Markdown files
- Run format checks before commits
Usage Examples
Format a single file:
"Format the src/index.js file"
Format entire directory:
"Format all files in the src/ directory"
Check formatting without changes:
"Check if files in src/ are properly formatted"
Configuration
Set these environment variables for custom configuration:
PRETTIER_CONFIG: Path to prettier config (default: .prettierrc)ESLINT_CONFIG: Path to eslint config (default: .eslintrc.js)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
code-formatter
Formats code files using prettier and eslint. Use when the user wants to format code, fix linting issues, or clean up code style.
api-connector
Connect to REST APIs, manage authentication, and process responses. Use for API integration tasks.
scaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
Didn't find tool you were looking for?