Files
skillfactor-pipeline/pipeline/push_marketplace.py
skillfactor-pipeline af05383bb1 chore: v1 baseline - full 3,039-package catalog with AI-skill enrichment and O*NET backfill
Snapshot before the quality program (relevance gates, tiered mapping,
QA linter). v1 is the immutable before/after reference; evidence crawl
was at ~175/3039 occupations when tagged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PDKeXvpT6tENSvyQGLV1Uq
2026-07-09 05:32:49 +02:00

19 lines
694 B
Python

"""Rebuild + push ONLY the marketplace repo (index, README with provenance pie)."""
import os
import shutil
import sys
sys.path.insert(0, os.path.dirname(__file__))
import p4_publish as p4
slugs = sorted(d for d in os.listdir(p4.SKILLS_DIR)
if os.path.isdir(os.path.join(p4.SKILLS_DIR, d)))
market = p4.build_marketplace_dir(slugs)
try:
p4.ensure_repo("skills-core", "marketplace", "skillfactor marketplace index")
p4.push_dir("skills-core", "marketplace", market,
"docs: marketplace index + README (adds AI-skill-pack provenance)")
print(f"marketplace pushed ({len(slugs)} packages indexed)")
finally:
shutil.rmtree(market, ignore_errors=True)