Skip to content

Commit 762bce9

Browse files
committed
fix: restructure to single-plugin layout + add components.json
1 parent 910a6fe commit 762bce9

1,236 files changed

Lines changed: 202 additions & 326377 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude-plugin/plugin.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "enhance",
3-
"version": "1.0.0",
3+
"version": "5.1.0",
44
"description": "Plugin structure and tool use analyzer - validates plugin.json, MCP tools, and security patterns",
55
"author": {
66
"name": "Avi Fenesh",
77
"email": "[email protected]",
88
"url": "https://github.com/avifenesh"
99
},
10-
"homepage": "https://github.com/agent-sh/enhance",
11-
"repository": "https://github.com/agent-sh/enhance",
10+
"homepage": "https://github.com/agent-sh/agentsys#enhance",
11+
"repository": "https://github.com/agent-sh/agentsys",
1212
"license": "MIT",
1313
"keywords": [
1414
"plugin-analyzer",

README.md

Lines changed: 173 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,188 @@
11
# enhance
22

3-
Plugin structure and tool use analyzer - validates plugin.json, MCP tools, and security patterns
3+
Master enhancement orchestrator for plugins, agents, prompts, docs, hooks, and skills.
44

5-
## Installation
5+
## Overview
66

7-
```bash
8-
# Claude Code
9-
claude mcp add-plugin agent-sh/enhance
7+
The enhance plugin provides specialized analyzers for different content types, identifying issues and suggesting improvements based on prompt engineering best practices.
108

11-
# Or install from marketplace
12-
agentsys install enhance
9+
## Architecture
10+
11+
```
12+
/enhance
13+
14+
├─→ /enhance:agent → Agent-specific analysis (frontmatter, tool restrictions)
15+
├─→ /enhance:prompt → General prompt patterns (clarity, structure, examples)
16+
├─→ /enhance:docs → Documentation analysis (RAG optimization, readability)
17+
├─→ /enhance:plugin → Plugin structure (MCP tools, security patterns)
18+
├─→ /enhance:claudemd → Project memory optimization (CLAUDE.md/AGENTS.md)
19+
├─→ /enhance:hooks → Hook definitions (frontmatter, safety)
20+
└─→ /enhance:skills → SKILL.md structure and triggers
1321
```
1422

15-
## Usage
23+
**Analysis depth**: Certainty-based findings (HIGH, MEDIUM, LOW)
24+
**Auto-fix**: Available for HIGH certainty issues with `--fix` flag
25+
**Model selection**: Opus for quality-critical analyzers, Sonnet for pattern-based checks
26+
27+
## Commands
28+
29+
### `/enhance`
30+
31+
Run all applicable enhancers on current directory.
1632

1733
```
18-
/enhance
34+
/enhance # Auto-detect and run all relevant analyzers
35+
/enhance --fix # Apply HIGH certainty auto-fixes
36+
/enhance --verbose # Include LOW certainty issues
37+
```
38+
39+
### `/enhance:agent [target]`
40+
41+
Analyze agent prompt files for configuration and structure issues.
42+
43+
```
44+
/enhance:agent # All agents in directory
45+
/enhance:agent my-agent.md # Specific agent
46+
/enhance:agent --fix # Apply auto-fixes
47+
```
48+
49+
**Detects**: Missing frontmatter, unrestricted Bash, missing role section, tool configuration issues
50+
51+
### `/enhance:prompt [target]`
52+
53+
Analyze prompts for prompt engineering best practices.
54+
55+
```
56+
/enhance:prompt # All prompts in directory
57+
/enhance:prompt system-prompt.md # Specific prompt
58+
/enhance:prompt --fix # Apply auto-fixes
59+
```
60+
61+
**Detects**: Vague instructions, missing examples, aggressive emphasis, structural issues, invalid code blocks (JSON/JS syntax, language mismatches, heading hierarchy)
62+
63+
### `/enhance:docs [target]`
64+
65+
Analyze documentation for readability and RAG optimization.
66+
67+
```
68+
/enhance:docs # All docs in directory
69+
/enhance:docs --ai # AI-only mode (aggressive optimization)
70+
/enhance:docs agent-docs/ --ai # Specific directory
71+
```
72+
73+
**Detects**: Verbose phrases, poor chunking, broken links, token inefficiency
74+
75+
### `/enhance:plugin [target]`
76+
77+
Analyze plugin structure and MCP tool definitions.
78+
79+
```
80+
/enhance:plugin # All plugins
81+
/enhance:plugin my-plugin # Specific plugin
82+
/enhance:plugin --fix # Apply auto-fixes
83+
```
84+
85+
**Detects**: Missing schema fields, security patterns, version mismatches
86+
87+
### `/enhance:claudemd`
88+
89+
Analyze project memory files (CLAUDE.md, AGENTS.md).
90+
91+
```
92+
/enhance:claudemd # Find and analyze project memory
93+
/enhance:claudemd --fix # Apply auto-fixes
94+
```
95+
96+
**Detects**: Missing sections, broken references, README duplication, cross-platform issues
97+
98+
### `/enhance:hooks`
99+
100+
Analyze hook definitions for frontmatter quality.
101+
102+
```
103+
/enhance:hooks # All hook definitions
104+
/enhance:hooks pre-commit.md # Specific hook
19105
```
20106

21-
## Keywords
107+
**Detects**: Missing frontmatter, missing name/description
108+
109+
### `/enhance:skills`
110+
111+
Analyze SKILL.md files for required metadata and trigger clarity.
112+
113+
```
114+
/enhance:skills # All SKILL.md files
115+
/enhance:skills enhance-docs # Specific skill
116+
```
117+
118+
**Detects**: Missing frontmatter, missing name/description, missing trigger phrase
119+
120+
## Agents
121+
122+
| Agent | Purpose | Model |
123+
|-------|---------|-------|
124+
| `agent-enhancer` | Frontmatter, tool restrictions, agent structure | opus |
125+
| `prompt-enhancer` | Clarity, examples, structure, anti-patterns | opus |
126+
| `docs-enhancer` | RAG optimization, readability, token efficiency | opus |
127+
| `plugin-enhancer` | MCP schemas, security patterns, structure | sonnet |
128+
| `claudemd-enhancer` | Project memory validation, cross-platform | opus |
129+
| `hooks-enhancer` | Hook frontmatter, structure, safety | sonnet |
130+
| `skills-enhancer` | SKILL.md structure, trigger phrases | sonnet |
131+
132+
## Certainty Levels
133+
134+
| Level | Meaning | Auto-Fixable |
135+
|-------|---------|--------------|
136+
| HIGH | Definite issues | Some |
137+
| MEDIUM | Likely improvements | No |
138+
| LOW | Advisory suggestions | No |
139+
140+
LOW certainty issues only shown with `--verbose` flag.
141+
142+
## Common Flags
143+
144+
| Flag | Description |
145+
|------|-------------|
146+
| `--fix` | Apply HIGH certainty auto-fixes |
147+
| `--verbose` | Include LOW certainty issues |
148+
| `--dry-run` | Show what would be fixed without applying |
149+
| `--ai` | AI-only mode (docs analyzer) |
150+
| `--both` | Both audiences mode (docs analyzer, default) |
151+
152+
## Output Format
153+
154+
Each analyzer generates a markdown report:
155+
156+
```markdown
157+
## Analysis: {name}
158+
159+
**File**: {path}
160+
**Analyzed**: {timestamp}
161+
162+
### Summary
163+
- HIGH: {count} issues
164+
- MEDIUM: {count} issues
165+
- LOW: {count} issues (verbose only)
166+
167+
### {Category} Issues ({n})
168+
169+
| Issue | Fix | Certainty |
170+
|-------|-----|-----------|
171+
| Description | Suggested fix | HIGH |
172+
```
173+
174+
## Integration
175+
176+
Can be invoked by:
177+
- Direct command: `/enhance:*`
178+
- Phase 9 review loop during workflow
179+
- `delivery-validator` before shipping
180+
- Individual analysis workflows
181+
182+
## Requirements
22183

23-
`plugin-analyzer`, `mcp-tools`, `validation`, `security`, `best-practices`
184+
- Claude Code
185+
- Node.js (for lib functions)
24186

25187
## License
26188

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)