Skip to content

Commit fc2def1

Browse files
luiseimanclaude
andcommitted
feat: plugin-ready structure for Claude Code marketplace
Added hooks/hooks.json (plugin format) with symlinks to existing scripts. Added commands/ at root with symlinks to existing commands. Cleaned plugin.json to match current schema (removed legacy components/stacks/install keys). No files moved — symlinks only. Plugin structure: 14 skills, 7 agents, 5 hooks, 5 commands. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0853daf commit fc2def1

11 files changed

Lines changed: 72 additions & 66 deletions

File tree

.claude-plugin/plugin.json

Lines changed: 18 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,23 @@
11
{
22
"name": "claude-kit",
33
"version": "2.3.0",
4-
"description": "Configuration factory for Claude Code — templates, stacks, hooks, rules, and audit tools",
5-
"author": "luiseiman",
6-
"license": "MIT",
7-
"repository": "https://github.com/luiseiman/claude-kit",
8-
"keywords": ["claude-code", "configuration", "hooks", "rules", "audit"],
9-
"components": {
10-
"hooks": [
11-
{
12-
"file": "template/hooks/block-destructive.sh",
13-
"event": "PreToolUse",
14-
"matcher": "Bash",
15-
"description": "Block dangerous bash commands (rm -rf, DROP TABLE, force push)"
16-
},
17-
{
18-
"file": "template/hooks/lint-on-save.sh",
19-
"event": "PostToolUse",
20-
"matcher": "Write",
21-
"description": "Auto-lint on file save (Python, TypeScript, Swift)"
22-
},
23-
{
24-
"file": "template/hooks/warn-missing-test.sh",
25-
"event": "PostToolUse",
26-
"matcher": "Write",
27-
"description": "Warn when creating source files without tests (strict profile)"
28-
},
29-
{
30-
"file": "template/hooks/session-report.sh",
31-
"event": "Stop",
32-
"matcher": null,
33-
"description": "Generate session report on session end (requires FORGE_SESSION_REPORT=true)"
34-
}
35-
],
36-
"rules": [
37-
"template/rules/_common.md",
38-
"template/rules/memory.md",
39-
"template/rules/agents.md"
40-
],
41-
"commands": [
42-
"template/commands/audit.md",
43-
"template/commands/health.md",
44-
"template/commands/review.md",
45-
"template/commands/debug.md"
46-
]
47-
},
48-
"stacks": [
49-
"python-fastapi",
50-
"react-vite-ts",
51-
"swift-swiftui",
52-
"supabase",
53-
"docker-deploy",
54-
"data-analysis",
55-
"gcp-cloud-run",
56-
"redis",
57-
"node-express",
58-
"java-spring",
59-
"aws-deploy",
60-
"go-api",
61-
"devcontainer"
62-
],
63-
"install": {
64-
"method": "git-clone",
65-
"postInstall": "global/sync.sh",
66-
"note": "Plugin mode installs hooks + rules + commands only. For full features (skills, agents, practices), use git clone + global/sync.sh"
4+
"description": "Configuration factory for Claude Code — 14 skills, 7 agents, hooks, rules, audit scoring, and practices pipeline",
5+
"author": {
6+
"name": "Luis Eiman",
7+
"url": "https://github.com/luiseiman"
678
},
68-
"requires": {
69-
"claudeCode": ">=1.0.0"
70-
}
9+
"homepage": "https://github.com/luiseiman/claude-kit",
10+
"repository": "https://github.com/luiseiman/claude-kit",
11+
"license": "MIT",
12+
"keywords": [
13+
"claude-code",
14+
"configuration",
15+
"hooks",
16+
"rules",
17+
"audit",
18+
"scaffolding",
19+
"best-practices",
20+
"agents",
21+
"skills"
22+
]
7123
}

commands/audit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../template/commands/audit.md

commands/debug.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../template/commands/debug.md

commands/forge.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../global/commands/forge.md

commands/health.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../template/commands/health.md

commands/review.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../template/commands/review.md

hooks/block-destructive.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../template/hooks/block-destructive.sh

hooks/hooks.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"hooks": {
3+
"PreToolUse": [
4+
{
5+
"matcher": "Bash",
6+
"hooks": [
7+
{
8+
"type": "command",
9+
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-destructive.sh"
10+
}
11+
]
12+
}
13+
],
14+
"PostToolUse": [
15+
{
16+
"matcher": "Write|Edit",
17+
"hooks": [
18+
{
19+
"type": "command",
20+
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/lint-on-save.sh"
21+
},
22+
{
23+
"type": "command",
24+
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/warn-missing-test.sh"
25+
}
26+
]
27+
}
28+
],
29+
"Stop": [
30+
{
31+
"matcher": "",
32+
"hooks": [
33+
{
34+
"type": "command",
35+
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-report.sh"
36+
},
37+
{
38+
"type": "command",
39+
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/detect-claude-changes.sh"
40+
}
41+
]
42+
}
43+
]
44+
}
45+
}

hooks/lint-on-save.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../template/hooks/lint-on-save.sh

hooks/session-report.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../template/hooks/session-report.sh

0 commit comments

Comments
 (0)