* refactor(skills): shipped-set slim — 15 skills to optional, github six-way merge, pdf absorbs OCR+nano-pdf, channel-gated teams pipeline
Maintainer-directed shipped-skills curation (skills index 1,900 -> ~1,400
tok/call on desktop; every session pays the index, so this is a per-call
diet on all installs):
- optional-skills moves (installable via skills hub, history preserved):
creative comfyui/ascii-art/excalidraw/pretext/sketch/touchdesigner-mcp;
ALL of mlops (huggingface-hub, llama-cpp, serving-llms-vllm,
weights-and-biases, evaluating-llms-harness — subcategory structure
kept); research-paper-writing (55 supporting files, 17.3K-tok load);
openhue; blogwatcher (first taught the cronjob monitor-field watch
pattern + web_extract instead of pre-cron manual workflows)
- DELETED session-librarian (Aug-12 'inspired by Perplexity Computer'
port, never maintainer-intended; session_search covers discovery)
- github: six skills (auth, issues, pr-workflow, issue-to-pr,
code-review, repo-management) merged into ONE software-development/
github skill — routing body + complete per-workflow references;
benbarclay authorship credited; codebase-inspection rides along;
discipline pins from test_github_issue_to_pr_skill.py preserved
against the reference body in the new test_github_skill.py
- pdf absorbs ocr-and-documents + nano-pdf as references/ + scripts
(extract_pymupdf, extract_marker converted to the argparse house
standard its contract test enforces)
- NEW session_platforms frontmatter gate (metadata.hermes): hides a
skill from the index on gateway channels it is not for; fail-open on
unknown platform; teams-meeting-pipeline gated to [teams, cron]
- blocked-page-recovery: research -> new web category; trigger-first
description ('Use when a fetch fails: 403/429, paywall, WAF, bot
wall.') so the model actually reaches for it on blocked fetches
- docs regenerated via generate-skill-docs.py (195 pages); related_skills
swept repo-wide; tests: 1672 passed (2 openclaw failures pre-existing
on clean main, Windows-local)
* chore: ignore .skills_prompt_snapshot.json (local index cache, accidentally committed)
65 lines
1.5 KiB
Python
65 lines
1.5 KiB
Python
"""Pytest configuration for the comfyui skill test suite.
|
|
|
|
Adds `scripts/` to sys.path so tests can `from _common import ...`, and
|
|
provides a few common fixtures.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import json
|
|
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
ROOT = Path(__file__).resolve().parent.parent
|
|
SCRIPTS = ROOT / "scripts"
|
|
WORKFLOWS = ROOT / "workflows"
|
|
|
|
sys.path.insert(0, str(SCRIPTS))
|
|
|
|
|
|
@pytest.fixture
|
|
def sd15_workflow() -> dict:
|
|
return json.loads((WORKFLOWS / "sd15_txt2img.json").read_text(encoding="utf-8"))
|
|
|
|
|
|
@pytest.fixture
|
|
def flux_workflow() -> dict:
|
|
return json.loads((WORKFLOWS / "flux_dev_txt2img.json").read_text(encoding="utf-8"))
|
|
|
|
|
|
@pytest.fixture
|
|
def video_workflow() -> dict:
|
|
return json.loads((WORKFLOWS / "wan_video_t2v.json").read_text(encoding="utf-8"))
|
|
|
|
|
|
@pytest.fixture
|
|
def workflows_dir() -> Path:
|
|
return WORKFLOWS
|
|
|
|
|
|
@pytest.fixture
|
|
def scripts_dir() -> Path:
|
|
return SCRIPTS
|
|
|
|
|
|
@pytest.fixture
|
|
def cloud_key() -> str | None:
|
|
"""Cloud API key if set, otherwise None.
|
|
|
|
Tests that need cloud connectivity should skip when this is None.
|
|
"""
|
|
return os.environ.get("COMFY_CLOUD_API_KEY")
|
|
|
|
|
|
def pytest_collection_modifyitems(config, items):
|
|
"""Auto-skip cloud tests when no API key is set."""
|
|
if os.environ.get("COMFY_CLOUD_API_KEY"):
|
|
return
|
|
skip_cloud = pytest.mark.skip(reason="Set COMFY_CLOUD_API_KEY to run cloud tests")
|
|
for item in items:
|
|
if "cloud" in item.keywords:
|
|
item.add_marker(skip_cloud)
|