Files
n8n-skills/build.sh
czlonkowski 1530f09bbc feat: Add indirect prompt injection guidance to AI agent pattern (v1.6.0)
Adds a "Security: Treat Tool Output as Untrusted Input" section to
ai_agent_workflow.md covering guardrails for agents that fetch
third-party content (HTTP, Serper, Wikipedia, GitHub, MCP Client).

Guidance: gate destructive tools behind human approval, use
least-privilege scopes, constrain the system prompt, validate
structured outputs, and keep tool calls auditable.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 19:26:46 +02:00

55 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
# Build script for n8n-skills distribution packages
# Creates zip files for both Claude.ai (individual skills) and Claude Code (bundle)
set -e
DIST_DIR="dist"
VERSION="1.6.0"
echo "🔨 Building n8n-skills distribution packages..."
# Create dist directory if it doesn't exist
mkdir -p "$DIST_DIR"
# Remove old zips
echo "🗑️ Removing old zip files..."
rm -f "$DIST_DIR"/*.zip
# Build individual skill zips (for Claude.ai)
# Structure: skill-name/SKILL.md at zip root (not nested under skills/)
echo "📦 Building individual skill zips for Claude.ai..."
SKILLS=(
"n8n-expression-syntax"
"n8n-mcp-tools-expert"
"n8n-workflow-patterns"
"n8n-validation-expert"
"n8n-node-configuration"
"n8n-code-javascript"
"n8n-code-python"
)
for skill in "${SKILLS[@]}"; do
echo " - $skill"
(cd skills && zip -rq "../$DIST_DIR/${skill}-v${VERSION}.zip" "${skill}/" -x "*.DS_Store")
done
# Build complete bundle (for Claude Code)
echo "📦 Building complete bundle for Claude Code..."
zip -rq "$DIST_DIR/n8n-mcp-skills-v${VERSION}.zip" \
.claude-plugin/ \
README.md \
LICENSE \
skills/ \
-x "*.DS_Store"
# Show results
echo ""
echo "✅ Build complete! Files in $DIST_DIR/:"
echo ""
ls -lh "$DIST_DIR"/*.zip
echo ""
echo "📊 Package sizes:"
du -h "$DIST_DIR"/*.zip