@reddb-io/red-skills-internal 2.88.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reddb-io/red-skills-internal",
3
- "version": "2.88.0",
3
+ "version": "3.0.0",
4
4
  "description": "reddb.io internal plugin - maintainer-only skills for operating the red-skills repository.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/reddb-io/red-skills",
@@ -59,10 +59,12 @@ SKILL_DIR="$PLUGIN_DIR/skills/core/$SKILL_NAME"
59
59
  [ ! -e "$PLUGIN_DIR" ] || fail "plugin already exists: plugins/$PLUGIN"
60
60
  [ -f "$ROOT/.claude-plugin/marketplace.json" ] || fail "missing .claude-plugin/marketplace.json"
61
61
  [ -f "$ROOT/.agents/plugins/marketplace.json" ] || fail "missing .agents/plugins/marketplace.json"
62
+ [ -f "$ROOT/.gemini-plugin/marketplace.json" ] || fail "missing .gemini-plugin/marketplace.json"
62
63
 
63
64
  mkdir -p \
64
65
  "$PLUGIN_DIR/.claude-plugin" \
65
66
  "$PLUGIN_DIR/.codex-plugin" \
67
+ "$PLUGIN_DIR/.gemini-plugin" \
66
68
  "$SKILL_DIR" \
67
69
  "$PLUGIN_DIR/scripts"
68
70
 
@@ -116,6 +118,46 @@ cat > "$PLUGIN_DIR/.codex-plugin/plugin.json" <<EOF
116
118
  }
117
119
  EOF
118
120
 
121
+ cat > "$PLUGIN_DIR/.gemini-plugin/plugin.json" <<EOF
122
+ {
123
+ "name": "$PLUGIN",
124
+ "version": "0.1.0",
125
+ "description": "reddb.io $PLUGIN plugin - repository-local RedSkills extension.",
126
+ "author": {
127
+ "name": "reddb.io",
128
+ "url": "https://github.com/reddb-io"
129
+ },
130
+ "homepage": "https://github.com/reddb-io/red-skills",
131
+ "repository": "https://github.com/reddb-io/red-skills",
132
+ "license": "Apache-2.0",
133
+ "keywords": [
134
+ "gemini-cli",
135
+ "skills",
136
+ "agents"
137
+ ],
138
+ "skills": [
139
+ "./skills/core/$SKILL_NAME/"
140
+ ],
141
+ "interface": {
142
+ "displayName": "$PLUGIN",
143
+ "shortDescription": "Repository-local RedSkills extension.",
144
+ "longDescription": "The $PLUGIN plugin is a repository-local RedSkills extension scaffolded with born-compliant marketplace metadata, skill structure, documentation, changelog, and structural smoke checks.",
145
+ "developerName": "reddb.io",
146
+ "category": "Developer Tools",
147
+ "capabilities": [
148
+ "Interactive",
149
+ "Read",
150
+ "Shell"
151
+ ],
152
+ "websiteURL": "https://github.com/reddb-io/red-skills",
153
+ "defaultPrompt": [
154
+ "Run \$$SKILL_NAME to verify the $PLUGIN plugin is available."
155
+ ],
156
+ "brandColor": "#2563EB"
157
+ }
158
+ }
159
+ EOF
160
+
119
161
  cat > "$SKILL_DIR/SKILL.md" <<EOF
120
162
  ---
121
163
  name: $SKILL_NAME
@@ -238,6 +280,27 @@ jq --arg name "$PLUGIN" --arg path "./plugins/$PLUGIN" --arg description "Reposi
238
280
  ' "$ROOT/.agents/plugins/marketplace.json" > "$tmp"
239
281
  mv "$tmp" "$ROOT/.agents/plugins/marketplace.json"
240
282
 
283
+ jq --arg name "$PLUGIN" --arg path "./plugins/$PLUGIN" --arg description "Repository-local RedSkills extension." '
284
+ if any(.plugins[]?; .name == $name) then
285
+ error("Gemini marketplace already contains plugin " + $name)
286
+ else
287
+ .plugins += [{
288
+ "name": $name,
289
+ "description": $description,
290
+ "source": {
291
+ "source": "local",
292
+ "path": $path
293
+ },
294
+ "policy": {
295
+ "installation": "AVAILABLE",
296
+ "authentication": "ON_USE"
297
+ },
298
+ "category": "Developer Tools"
299
+ }]
300
+ end
301
+ ' "$ROOT/.gemini-plugin/marketplace.json" > "$tmp"
302
+ mv "$tmp" "$ROOT/.gemini-plugin/marketplace.json"
303
+
241
304
  if ! grep -Fq "./plugins/$PLUGIN/README.md" "$ROOT/README.md"; then
242
305
  cat >> "$ROOT/README.md" <<EOF
243
306