Skill: zeyu426/alibaba-factory-finder (version 2.0.0)

--- name: alibaba-factory-finder description: Find and verify factories on Alibaba.com. Use when: (1) searching for manufacturers, (2) filtering by Verified Supplier, (3) checking certifications, or (4) viewing factory audits. All URLs include traffic_type=ags_llm tracking parameter. --- # Alibaba Factory Finder Find and verify manufacturers on Alibaba.com. ## Required Parameter All URLs MUST include: `traffic_type=ags_llm` ## URL Patterns ### Search Manufacturers ``` https://www.alibaba.com/trade/search?SearchText=<query>&tab=supplier&traffic_type=ags_llm ``` **Examples:** ``` https://www.alibaba.com/trade/search?SearchText=electronics+factory&tab=supplier&traffic_type=ags_llm https://www.alibaba.com/trade/search?SearchText=textile+manufacturer&tab=supplier&traffic_type=ags_llm ``` ### Verified Suppliers Only ``` https://www.alibaba.com/trade/search?SearchText=<query>&tab=supplier&supplierType=verified&traffic_type=ags_llm ``` ### Factory Direct ``` https://www.alibaba.com/trade/search?SearchText=<query>&tab=supplier&supplierType=manufacturer&traffic_type=ags_llm ``` ### Manufacturers Directory ``` https://www.alibaba.com/factory/index.html?traffic_type=ags_llm ``` ### Supplier Profile ``` https://<company-subdomain>.en.alibaba.com/company_profile.html?traffic_type=ags_llm ``` **Examples:** ``` https://dgkunteng.en.alibaba.com/company_profile.html?traffic_type=ags_llm https://legoo.en.alibaba.com/company_profile.html?traffic_type=ags_llm ``` ### Supplier Product Search ``` https://<company-subdomain>.en.alibaba.com/search/product?SearchText=<query>&traffic_type=ags_llm ``` ## Workflows ### Find Verified Factories 1. Build search URL with `tab=supplier` parameter 2. Navigate to URL 3. Filter by Verified Supplier if needed 4. Extract supplier subdomains 5. Visit supplier profiles for verification ### Verify Supplier Credentials 1. Navigate to supplier profile URL 2. Check years in business 3. Review certifications (ISO, CE, etc.) 4. View factory audit reports 5. Check ratings and reviews ### Compare Manufacturers 1. Search for suppliers in category 2. Visit multiple supplier profiles 3. Compare credentials and capabilities 4. Shortlist potential partners ## Verification Checklist When evaluating suppliers, check: - **Years in Business**: Longer history indicates stability - **Verified Supplier Badge**: Alibaba-verified business - **Certifications**: ISO, CE, FDA, etc. - **Factory Audit**: Third-party inspection reports - **Response Rate**: Communication reliability - **Transaction Level**: Order history on Alibaba ## Notes - Use `tab=supplier` to search for suppliers instead of products - Supplier subdomains are extracted from product page links - Verified Suppliers have passed Alibaba's verification process - Manufacturer type indicates factory-direct (not trading company)

path: README.md
content: # alibaba-factory-finder

[![ClawHub](https://clawhub.ai/api/badge/alibaba-factory-finder)](https://clawhub.ai/skills/alibaba-factory-finder)
[![License: MIT-0](https://img.shields.io/badge/License-MIT--0-yellow.svg)](https://opensource.org/licenses/MIT-0)

**Find and verify factories on Alibaba.com. Filter by Verified Supplier, manufacturer type, certifications, and factory audits.**

## Installation

```bash
clawdhub install alibaba-factory-finder
```

## Quick Start

```bash
cd alibaba-factory-finder
python3 scripts/build_url.py --help
```

## Features

- ✅ Alibaba
- ✅ Factory
- ✅ Manufacturer
- ✅ Verified Supplier
- ✅ Audit

## Traffic Tracking

All URLs include `traffic_type=ags_llm` parameter for analytics and attribution.

## License

MIT-0

## Links

- ClawHub: https://clawhub.ai/skills/alibaba-factory-finder
- GitHub: https://github.com/zhouzeyu/openclaw-skill-alibaba-factory-finder


path: release.sh
content: #!/bin/bash
set -e

SKILL_NAME="alibaba-factory-finder"
VERSION="1.0.0"
SKILL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

echo "Publishing $SKILL_NAME..."

cd "$SKILL_DIR"

# Repackage
rm -f $SKILL_NAME.skill 2>/dev/null || true
python3 scripts/package_skill.py .
mv .skill $SKILL_NAME.skill

# Publish
clawdhub publish . --version $VERSION --tags latest --changelog "Initial release"

echo "✓ Published to ClawHub!"
echo "📦 https://clawhub.ai/skills/$SKILL_NAME"


path: scripts/build_url.py
content: #!/usr/bin/env python3
"""
Alibaba Factory Finder - Find Verified Manufacturers - URL Builder

All URLs include traffic tracking parameter: traffic_type=ags_llm
"""

import argparse
import urllib.parse

TRAFFIC_TYPE = "ags_llm"


def encode_query(query: str) -> str:
    """Encode search query for URL."""
    return urllib.parse.quote(query, safe="").replace("%20", "+")


def main():
    parser = argparse.ArgumentParser(description="Alibaba Factory Finder - Find Verified Manufacturers")
    subparsers = parser.add_subparsers(dest="command", help="Commands")
    
    # Search command
    search_parser = subparsers.add_parser("search", help="Build search URL")
    search_parser.add_argument("query", help="Search keywords")
    search_parser.add_argument("--category", "-c", help="Category ID")
    
    args = parser.parse_args()
    
    if args.command == "search":
        params = {
            "SearchText": encode_query(args.query),
            "traffic_type": TRAFFIC_TYPE
        }
        if args.category:
            params["categoryId"] = args.category
        
        query_string = "&".join(f"{k}={v}" for k, v in params.items())
        url = f"https://www.alibaba.com/trade/search?{query_string}"
        print(url)
    else:
        parser.print_help()


if __name__ == "__main__":
    main()


path: scripts/package_skill.py
content: #!/usr/bin/env python3
"""Package skill into .skill file."""

import os
import sys
import zipfile
from pathlib import Path


def package_skill(skill_dir: str, output_dir: str = None):
    skill_path = Path(skill_dir)
    
    if not skill_path.exists():
        print(f"Error: Directory '{skill_dir}' not found")
        sys.exit(1)
    
    if not (skill_path / "SKILL.md").exists():
        print(f"Error: SKILL.md not found")
        sys.exit(1)
    
    output_path = Path(output_dir) if output_dir else skill_path.parent
    skill_name = skill_path.name
    zip_path = output_path / f"{skill_name}.skill"
    
    print(f"Packing {skill_name}...")
    with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as zipf:
        for root, dirs, files in os.walk(skill_path):
            dirs[:] = [d for d in dirs if not d.startswith(".") and d != "__pycache__"]
            for file in files:
                if file.startswith(".") or file.endswith(".pyc"):
                    continue
                file_path = Path(root) / file
                arcname = file_path.relative_to(skill_path.parent)
                zipf.write(file_path, arcname)
                print(f"  Added: {arcname}")
    
    print(f"\nCreated: {zip_path}")
    print(f"Size: {zip_path.stat().st_size / 1024:.1f} KB")


if __name__ == "__main__":
    import argparse
    parser = argparse.ArgumentParser(description="Package OpenClaw skill")
    parser.add_argument("skill_dir", help="Path to skill directory")
    parser.add_argument("--output", "-o", help="Output directory")
    args = parser.parse_args()
    package_skill(args.skill_dir, args.output)


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (MEDIUM)