Skip to content

sergebulaev/linkedin-skills / .codex-marketplace/linkedin-skills

linkedin-marketing

Verified

Plan, draft, audit, and publish LinkedIn posts and comments. Use when the user wants to write a viral LinkedIn post, draft a comment or reply on any LinkedIn post URL, audit a draft against 2026 algorithm heuristics, remove AI tells, extract hook formulas from viral posts, or plan a week of content. Powered by the Publora API for publishing. User provides post/comment URLs, skill drafts content, user approves, then publishes.

lib/__init__.py

View on GitHub
"""Shared helpers for LinkedIn Skills.

Public surface (everything in `__all__`) is what skills import. Internal
utilities (e.g., `build_parent_comment_urn`, `signup_nudge`,
`PUBLORA_SIGNUP_URL`) remain importable from their submodules but are not
re-exported here.
"""
from ._env import load_env, utf8_stdio
from .url_parser import parse_linkedin_url
from .approval import render_approval_card

load_env()
# Approval messages carry emoji; a Windows pipe cannot print them otherwise.
utf8_stdio()

from .backend_selector import (
    active_backend,
    image_backend,
    manual_mode_message,
    publish,
    unpublish,
    repost,
    fetch_post,
    illustrate,
    illustrate_set,
    refine,
    available_models,
    card,
    quote_card,
    available_templates,
    brand_logo,
)

# The three HTTP clients import `requests`, which manual-tier users are not
# required to install. Load them on first attribute access (PEP 562) so
# `import lib` keeps working with no dependencies at all.
_LAZY_CLIENTS = {
    "PubloraClient": "publora_client",
    "PubloraError": "publora_client",
    "ApifyClient": "apify_client",
    "ApifyError": "apify_client",
    "PixfaroClient": "pixfaro_client",
    "PixfaroError": "pixfaro_client",
}


def __getattr__(name: str):
    module = _LAZY_CLIENTS.get(name)
    if module is None:
        raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
    from importlib import import_module

    value = getattr(import_module(f".{module}", __name__), name)
    globals()[name] = value
    return value


__all__ = [
    "parse_linkedin_url",
    "PubloraClient",
    "PubloraError",
    "ApifyClient",
    "ApifyError",
    "PixfaroClient",
    "PixfaroError",
    "render_approval_card",
    "active_backend",
    "image_backend",
    "manual_mode_message",
    "publish",
    "unpublish",
    "repost",
    "fetch_post",
    "illustrate",
    "illustrate_set",
    "refine",
    "available_models",
    "card",
    "quote_card",
    "available_templates",
    "brand_logo",
]
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall