技能备份 - 2026-04-15 (40个技能)

This commit is contained in:
root
2026-04-15 18:53:15 +08:00
parent f62f14814f
commit c65fce24e4
791 changed files with 190773 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
# Competitor Analyzer
Analyze any company's competitive position in minutes. Takes a company name or URL and produces a structured report covering what they do, pricing, social presence, and recent news.
## Usage
```
./analyze.sh <company_name_or_url>
```
### Example
```
./analyze.sh "Notion"
./analyze.sh "https://linear.app"
```
## Output
A structured competitive analysis report with:
- **Company Overview** — What they do, market position
- **Pricing Analysis** — Plans, tiers, free tier details
- **Social Presence** — Twitter, LinkedIn, GitHub activity
- **Recent News** — Latest announcements, funding, launches
- **Strengths & Weaknesses** — Quick SWOT-lite summary
## Requirements
- `curl` (standard)
- Internet access for web searches
- Works best when run by an AI agent with `web_search` tool access
## How It Works
The script uses web search queries to gather intel, then formats results into a clean markdown report. When run by an OpenClaw agent, it leverages the `web_search` tool for richer results. Standalone mode uses curl + DuckDuckGo.
+6
View File
@@ -0,0 +1,6 @@
{
"ownerId": "kn73pggwgch91znm1x7sjpfc5581jeen",
"slug": "competitor-analyzer",
"version": "1.0.0",
"publishedAt": 1771785543875
}
+88
View File
@@ -0,0 +1,88 @@
#!/usr/bin/env bash
# Competitor Analyzer — gather competitive intelligence on any company
# Usage: ./analyze.sh <company_name_or_url>
set -euo pipefail
COMPANY="${1:?Usage: ./analyze.sh <company_name_or_url>}"
OUTFILE="competitor-report-$(echo "$COMPANY" | tr ' /' '-' | tr '[:upper:]' '[:lower:]').md"
TIMESTAMP=$(date '+%Y-%m-%d %H:%M')
# Strip protocol for search-friendly name
SEARCH_NAME=$(echo "$COMPANY" | sed 's|https\?://||;s|/.*||;s|www\.||')
echo "🦞 Competitor Analyzer — Analyzing: $SEARCH_NAME"
echo "================================================="
echo ""
# Function to search via DuckDuckGo HTML (no API key needed)
search() {
local query="$1"
curl -sL "https://html.duckduckgo.com/html/?q=$(python3 -c "import urllib.parse; print(urllib.parse.quote('$query'))")" \
-H "User-Agent: Mozilla/5.0" 2>/dev/null | \
python3 -c "
import sys, re, html
content = sys.stdin.read()
results = re.findall(r'class=\"result__snippet\">(.*?)</a>', content, re.DOTALL)
for i, r in enumerate(results[:5]):
text = html.unescape(re.sub(r'<[^>]+>', '', r)).strip()
if text:
print(f'- {text}')
" 2>/dev/null || echo "- (search unavailable — run with an AI agent for better results)"
}
echo "🔍 Searching for company overview..."
OVERVIEW=$(search "$SEARCH_NAME company overview what do they do")
echo "💰 Searching for pricing info..."
PRICING=$(search "$SEARCH_NAME pricing plans cost")
echo "📱 Searching for social presence..."
SOCIAL=$(search "$SEARCH_NAME twitter linkedin social media followers")
echo "📰 Searching for recent news..."
NEWS=$(search "$SEARCH_NAME news announcements 2025 2026")
echo "⚔️ Searching for competitors..."
COMPETITORS=$(search "$SEARCH_NAME competitors alternatives vs")
# Generate report
cat > "$OUTFILE" << EOF
# Competitive Analysis: $SEARCH_NAME
*Generated: $TIMESTAMP*
---
## 🏢 Company Overview
$OVERVIEW
## 💰 Pricing & Plans
$PRICING
## 📱 Social Presence
$SOCIAL
## 📰 Recent News
$NEWS
## ⚔️ Competitors & Alternatives
$COMPETITORS
---
## 📊 Quick Assessment
| Category | Notes |
|----------|-------|
| Market Position | See overview above |
| Pricing Model | See pricing section |
| Social Reach | See social section |
| Recent Momentum | See news section |
---
*Report generated by Competitor Analyzer 🦞 — a ClawHub skill by Shelly*
EOF
echo ""
echo "✅ Report saved to: $OUTFILE"
echo ""
cat "$OUTFILE"
@@ -0,0 +1,33 @@
# Competitive Analysis: niuqicha.com
*Generated: 2026-03-18 12:10*
---
## 🏢 Company Overview
## 💰 Pricing & Plans
## 📱 Social Presence
## 📰 Recent News
## ⚔️ Competitors & Alternatives
---
## 📊 Quick Assessment
| Category | Notes |
|----------|-------|
| Market Position | See overview above |
| Pricing Model | See pricing section |
| Social Reach | See social section |
| Recent Momentum | See news section |
---
*Report generated by Competitor Analyzer 🦞 — a ClawHub skill by Shelly*