nphu0811/pmg-skills

pmg-visual-assets

Intelligent visual asset research, retrieval, licensing, and media preparation.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/nphu0811/pmg-skills --skill pmg-visual-assets

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

PMG Visual Assets Engine

pmg-visual-assets provides source-first media research, licensing assessment, and asset preparation for PowerPoint Motion Graphics. It is integrated with the canonical PMG engine via pmg.visual_assets.VisualAssetEngine.

Key Principles & Boundaries

  1. Search vs. Generation Distinction:
  • Searching for existing authentic assets and generating synthetic assets are distinct operations.
  • The engine prefers authentic permitted sources (Wikimedia Commons, NASA media archive, open vector repositories).
  • Generative fallback is activated only when no suitable asset exists and a supported generator adapter is configured.
  • Never fabricate search results, URLs, licenses, or generative output.
  1. Licensing & Rights Management:
  • Every asset records provenance (retrieved vs generated), license name, license URL, author attribution, and restrictions.
  • Trademarks and brand logos require explicit rights review.
  1. Evaluation Criteria:
  • Semantic relevance to the presentation topic.
  • Technical quality: resolution, aspect ratio, contrast, transparency.
  • Suitability for downstream decomposition and native PowerPoint animation.
  1. Engine Integration:
  • Prepares media files and structured AssetRecord objects.
  • Does not compile PowerPoint animations directly; hands off assets to pmg-image-decomposer, pmg-core, and pmg-morph.

Python API Usage

python
from pmg.visual_assets import VisualAssetEngine, AssetRequirement, WikimediaProvider, NASAProvider

# 1. Initialize engine with configured providers
engine = VisualAssetEngine(providers=[WikimediaProvider(), NASAProvider()])

# 2. Define asset requirements
req = AssetRequirement(
    query="Space exploration Saturn rocket",
    kind="image",
    min_width=1280,
    min_height=720,
    transparency=False,
)

# 3. Research and rank candidates
search_result = engine.research(req, limit=5)

# 4. Acquire permitted asset with download and quality validation
acquired = engine.acquire(req, output_dir="internal_qa/assets")
if acquired["status"] == "READY":
    asset_record = acquired["asset"]
    print(f"Acquired: {asset_record.title} at {asset_record.local_path}")
같은 저장소의 Skills

더 많은 Skills

모든 Skills