@giljae/ag-lazyweb-skill 0.0.1

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.
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: lazyweb-remove-inspo-source
3
+ description: |
4
+ Disconnect an inspiration source from Lazyweb design skills.
5
+ Lists connected sources and removes the selected one.
6
+ Trigger on: "remove inspo source", "remove inspiration source",
7
+ "disconnect Mobbin", "remove design source", "unlink source".
8
+ allowed-tools:
9
+ - Bash
10
+ - Read
11
+ - Write
12
+ - AskUserQuestion
13
+ ---
14
+
15
+ # Remove Inspiration Library
16
+
17
+ Disconnect an external inspiration library so Lazyweb design skills no longer search it.
18
+
19
+ ## Workflow
20
+
21
+ ### 1. List Connected Libraries
22
+
23
+ ```bash
24
+ cat ~/.lazyweb/libraries.json 2>/dev/null || echo '{"libraries":[]}'
25
+ ```
26
+
27
+ If no libraries are connected, tell the user: "No inspiration libraries are connected.
28
+ Use `/lazyweb-add-inspo-source` to connect one."
29
+
30
+ ### 2. Ask Which to Remove
31
+
32
+ If the user didn't specify, show the list and ask which library to disconnect.
33
+ If only one library is connected, confirm they want to remove it.
34
+
35
+ ### 3. Remove from Config
36
+
37
+ Read `~/.lazyweb/libraries.json`, remove the selected library from the `libraries`
38
+ array, write back. If the array is now empty, you can either leave the empty array
39
+ or delete the file.
40
+
41
+ ### 4. Confirm
42
+
43
+ Tell the user: "{Name} has been disconnected. Lazyweb design skills will no longer search it."
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@giljae/ag-lazyweb-skill",
3
+ "version": "0.0.1",
4
+ "description": "Antigravity Lazyweb Skill - Optimized port for deep design research, visual inspiration, and design critiques.",
5
+ "main": "index.js",
6
+ "files": [
7
+ "lazyweb-add-inspo-source",
8
+ "lazyweb-design-brainstorm",
9
+ "lazyweb-design-improve",
10
+ "lazyweb-design-research",
11
+ "lazyweb-quick-references",
12
+ "lazyweb-remove-inspo-source",
13
+ "scripts",
14
+ "README.md",
15
+ "README_KO.md",
16
+ "LICENSE"
17
+ ],
18
+ "publishConfig": {
19
+ "access": "public"
20
+ },
21
+ "keywords": [
22
+ "antigravity",
23
+ "lazyweb",
24
+ "skill",
25
+ "design",
26
+ "research"
27
+ ],
28
+ "author": "giljae",
29
+ "license": "MIT"
30
+ }
@@ -0,0 +1,41 @@
1
+ #!/bin/bash
2
+
3
+ # Antigravity Lazyweb Skill Installer
4
+ # Target: ~/.gemini/antigravity/skills/
5
+
6
+ set -e
7
+
8
+ SKILLS_DIR="$HOME/.gemini/antigravity/skills"
9
+ MCP_CONFIG="$HOME/.gemini/antigravity/mcp_config.json"
10
+ REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
11
+
12
+ echo "๐Ÿš€ Installing Antigravity Lazyweb Skills..."
13
+
14
+ # 1. Ensure Antigravity skills directory exists
15
+ mkdir -p "$SKILLS_DIR"
16
+
17
+ # 2. Copy skill folders to the global skills directory
18
+ echo "๐Ÿ“ฆ Copying skills to $SKILLS_DIR..."
19
+ cp -R "$REPO_DIR"/lazyweb-add-inspo-source "$SKILLS_DIR/"
20
+ cp -R "$REPO_DIR"/lazyweb-design-brainstorm "$SKILLS_DIR/"
21
+ cp -R "$REPO_DIR"/lazyweb-design-improve "$SKILLS_DIR/"
22
+ cp -R "$REPO_DIR"/lazyweb-design-research "$SKILLS_DIR/"
23
+ cp -R "$REPO_DIR"/lazyweb-quick-references "$SKILLS_DIR/"
24
+ cp -R "$REPO_DIR"/lazyweb-remove-inspo-source "$SKILLS_DIR/"
25
+
26
+ # 3. Update global MCP configuration
27
+ if [ ! -f "$MCP_CONFIG" ] || [ ! -s "$MCP_CONFIG" ]; then
28
+ echo "๐Ÿ†• Initializing mcp_config.json..."
29
+ cp "$REPO_DIR/.mcp.json" "$MCP_CONFIG"
30
+ else
31
+ echo "๐Ÿ”„ Updating mcp_config.json with Lazyweb server..."
32
+ # Use jq to merge the lazyweb server definition into the existing config
33
+ if command -v jq >/dev/null 2>&1; then
34
+ jq -s '.[0] * .[1]' "$MCP_CONFIG" "$REPO_DIR/.mcp.json" > "$MCP_CONFIG.tmp" && mv "$MCP_CONFIG.tmp" "$MCP_CONFIG"
35
+ else
36
+ echo "โš ๏ธ Warning: jq not found. Please manually add the lazyweb server from .mcp.json to $MCP_CONFIG"
37
+ fi
38
+ fi
39
+
40
+ echo "โœ… Installation complete!"
41
+ echo "๐Ÿ’ก Tip: Restart Antigravity to activate the new skills."
@@ -0,0 +1,31 @@
1
+ #!/bin/bash
2
+
3
+ # Antigravity Lazyweb Skill Uninstaller
4
+
5
+ set -e
6
+
7
+ SKILLS_DIR="$HOME/.gemini/antigravity/skills"
8
+ MCP_CONFIG="$HOME/.gemini/antigravity/mcp_config.json"
9
+
10
+ echo "๐Ÿ—‘๏ธ Uninstalling Antigravity Lazyweb Skills..."
11
+
12
+ # 1. Remove skill folders
13
+ echo "๐Ÿ“‚ Removing skills from $SKILLS_DIR..."
14
+ rm -rf "$SKILLS_DIR"/lazyweb-add-inspo-source
15
+ rm -rf "$SKILLS_DIR"/lazyweb-design-brainstorm
16
+ rm -rf "$SKILLS_DIR"/lazyweb-design-improve
17
+ rm -rf "$SKILLS_DIR"/lazyweb-design-research
18
+ rm -rf "$SKILLS_DIR"/lazyweb-quick-references
19
+ rm -rf "$SKILLS_DIR"/lazyweb-remove-inspo-source
20
+
21
+ # 2. Remove Lazyweb server from MCP config
22
+ if [ -f "$MCP_CONFIG" ]; then
23
+ echo "๐Ÿงน Removing Lazyweb server from mcp_config.json..."
24
+ if command -v jq >/dev/null 2>&1; then
25
+ jq 'del(.mcpServers.lazyweb)' "$MCP_CONFIG" > "$MCP_CONFIG.tmp" && mv "$MCP_CONFIG.tmp" "$MCP_CONFIG"
26
+ else
27
+ echo "โš ๏ธ Warning: jq not found. Please manually remove the 'lazyweb' entry from $MCP_CONFIG"
28
+ fi
29
+ fi
30
+
31
+ echo "โœ… Uninstallation complete!"