Initial commit
This commit is contained in:
35
examples/simple-claude-skill/.claude-plugin/marketplace.json
Normal file
35
examples/simple-claude-skill/.claude-plugin/marketplace.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"name": "code-formatter-marketplace",
|
||||
"owner": {
|
||||
"name": "Example Developer",
|
||||
"email": "dev@example.com"
|
||||
},
|
||||
"metadata": {
|
||||
"description": "Formats code files using prettier and eslint",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"plugins": [
|
||||
{
|
||||
"name": "code-formatter",
|
||||
"description": "Formats code files using prettier and eslint. Use when the user wants to format code.",
|
||||
"source": ".",
|
||||
"strict": false,
|
||||
"author": "Example Developer",
|
||||
"license": "MIT",
|
||||
"keywords": ["formatting", "prettier", "eslint", "code-quality"],
|
||||
"category": "development",
|
||||
"tags": ["formatting", "tools"],
|
||||
"skills": ["."],
|
||||
"mcpServers": {
|
||||
"formatter-tools": {
|
||||
"command": "node",
|
||||
"args": ["mcp-server/index.js"],
|
||||
"env": {
|
||||
"PRETTIER_CONFIG": "${PRETTIER_CONFIG}",
|
||||
"ESLINT_CONFIG": "${ESLINT_CONFIG}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
44
examples/simple-claude-skill/SKILL.md
Normal file
44
examples/simple-claude-skill/SKILL.md
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
name: code-formatter
|
||||
description: A simple example skill for demonstration purposes
|
||||
subagents:
|
||||
- name: reviewer
|
||||
description: You are a senior code reviewer.
|
||||
allowed-tools:
|
||||
- Read
|
||||
- Write
|
||||
---
|
||||
|
||||
# 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)
|
||||
Reference in New Issue
Block a user