Initial commit
This commit is contained in:
@@ -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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
47
examples/before-after/code-formatter-converted/GEMINI.md
Normal file
47
examples/before-after/code-formatter-converted/GEMINI.md
Normal file
@@ -0,0 +1,47 @@
|
||||
# code-formatter - Gemini CLI Extension
|
||||
|
||||
Formats code files using prettier and eslint. Use when the user wants to format code, fix linting issues, or clean up code style.
|
||||
|
||||
## Quick Start
|
||||
|
||||
After installation, you can use this extension by asking questions or giving commands naturally.
|
||||
|
||||
|
||||
# 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)
|
||||
|
||||
|
||||
---
|
||||
|
||||
*This extension was converted from a Claude Code skill using [skill-porter](https://github.com/jduncan-rva/skill-porter)*
|
||||
42
examples/before-after/code-formatter-converted/SKILL.md
Normal file
42
examples/before-after/code-formatter-converted/SKILL.md
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
name: code-formatter
|
||||
description: Formats code files using prettier and eslint. Use when the user wants to format code, fix linting issues, or clean up code style.
|
||||
allowed-tools:
|
||||
- Read
|
||||
- Write
|
||||
- Bash
|
||||
---
|
||||
|
||||
# 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)
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "code-formatter",
|
||||
"version": "1.0.0",
|
||||
"description": "Formats code files using prettier and eslint. Use when the user wants to format code, fix linting issues, or clean up code style.",
|
||||
"contextFileName": "GEMINI.md",
|
||||
"mcpServers": {
|
||||
"formatter-tools": {
|
||||
"command": "node",
|
||||
"args": [
|
||||
"${extensionPath}/mcp-server/index.js"
|
||||
],
|
||||
"env": {
|
||||
"PRETTIER_CONFIG": "${PRETTIER_CONFIG}",
|
||||
"ESLINT_CONFIG": "${ESLINT_CONFIG}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"excludeTools": [
|
||||
"Edit",
|
||||
"Glob",
|
||||
"Grep",
|
||||
"Task",
|
||||
"WebFetch",
|
||||
"WebSearch",
|
||||
"TodoWrite",
|
||||
"AskUserQuestion",
|
||||
"SlashCommand",
|
||||
"Skill",
|
||||
"NotebookEdit",
|
||||
"BashOutput",
|
||||
"KillShell"
|
||||
],
|
||||
"settings": [
|
||||
{
|
||||
"name": "PRETTIER_CONFIG",
|
||||
"description": "Prettier Config"
|
||||
},
|
||||
{
|
||||
"name": "ESLINT_CONFIG",
|
||||
"description": "Eslint Config"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# Usage Examples
|
||||
|
||||
Comprehensive usage examples and tutorials.
|
||||
@@ -0,0 +1,3 @@
|
||||
# Technical Reference
|
||||
|
||||
Detailed API documentation and technical reference.
|
||||
Reference in New Issue
Block a user