Restructure into proper Claude Code plugin format

- Move tea/ → skills/tea/ so the plugin loader can find the skill
- Add .claude-plugin/plugin.json with name, version, description, author, keywords
- Add MIT LICENSE file
- Update README with marketplace install command and corrected manual install paths

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
zero
2026-04-08 02:33:45 +02:00
parent f865302cb4
commit 9b51cc9d3e
5 changed files with 61 additions and 20 deletions

View File

@@ -0,0 +1,11 @@
{
"name": "tea",
"version": "1.0.0",
"description": "Full operability with the tea CLI for Gitea — manage issues, PRs, releases, branches, notifications, and more from the command line.",
"author": {
"name": "zero"
},
"homepage": "https://gittea.kammenstraatha.duckdns.org/admin/tea-skill",
"license": "MIT",
"keywords": ["gitea", "tea", "git", "issues", "pull-requests", "cli"]
}

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 zero
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -24,48 +24,57 @@ When installed, Claude will know how to use `tea` to:
## Installation
Skills in Claude Code live inside plugin packages under `~/.claude/plugins/`. To install this skill, copy the `tea/` folder into a plugin's `skills/` directory.
### Option A — standalone plugin (recommended)
Create a minimal plugin structure and drop the skill in:
### From the Claude Code marketplace (once listed)
```bash
PLUGIN_DIR=~/.claude/plugins/cache/local-plugins/tea-skill/1.0.0
mkdir -p "$PLUGIN_DIR/skills"
cp -r tea "$PLUGIN_DIR/skills/"
/plugin install tea@claude-plugins-official
```
### Manual install
Clone and register as a local plugin:
```bash
git clone https://gittea.kammenstraatha.duckdns.org/admin/tea-skill
PLUGIN_DIR=~/.claude/plugins/cache/local-plugins/tea/1.0.0
mkdir -p "$PLUGIN_DIR"
cp -r tea-skill/* "$PLUGIN_DIR/"
```
Then register it in `~/.claude/plugins/installed_plugins.json` under the `"plugins"` key:
```json
"tea-skill@local-plugins": [{
"tea@local-plugins": [{
"scope": "user",
"installPath": "/home/YOUR_USER/.claude/plugins/cache/local-plugins/tea-skill/1.0.0",
"installPath": "/home/YOUR_USER/.claude/plugins/cache/local-plugins/tea/1.0.0",
"version": "1.0.0",
"installedAt": "2025-01-01T00:00:00.000Z",
"lastUpdated": "2025-01-01T00:00:00.000Z"
}]
```
### Option B — clone and symlink
### Clone and symlink (for development)
```bash
git clone https://github.com/yourname/tea-skill
PLUGIN_DIR=~/.claude/plugins/cache/local-plugins/tea-skill/1.0.0
mkdir -p "$PLUGIN_DIR/skills"
ln -s "$(pwd)/tea-skill/tea" "$PLUGIN_DIR/skills/tea"
git clone https://gittea.kammenstraatha.duckdns.org/admin/tea-skill
PLUGIN_DIR=~/.claude/plugins/cache/local-plugins/tea/1.0.0
mkdir -p "$PLUGIN_DIR"
ln -s "$(pwd)/tea-skill/.claude-plugin" "$PLUGIN_DIR/.claude-plugin"
ln -s "$(pwd)/tea-skill/skills" "$PLUGIN_DIR/skills"
```
Then register as above. With a symlink, pulling the repo updates the skill immediately.
With symlinks, pulling the repo updates the skill immediately.
## Structure
```
tea/
── SKILL.md # Main skill instructions
└── references/
└── commands.md # Full command & flag reference
.claude-plugin/
── plugin.json # Plugin metadata
skills/
└── tea/
├── SKILL.md # Main skill instructions
└── references/
└── commands.md # Full command & flag reference
```
## License