Skip to content

Commit 8399531

Browse files
committed
Fix ClawHub installed package validation
1 parent 6a37586 commit 8399531

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: agentic-invoice-skill
33
description: >-
44
Create tailored invoices, invoice line items, payment requests, credit memos, pro forma invoices, recurring invoices, milestone invoices, change-order invoices, expense pass-through invoices, late-fee notices, and end-to-end billing workflows for agentic development services. Use when Codex needs to choose, draft, validate, or adapt invoice documents for agentic software workflow engagements from deposit through final payment and post-sale support.
5-
version: 1.0.0
5+
version: 1.0.1
66
metadata:
77
openclaw:
88
skillKey: agentic-invoice-skill

scripts/validate_quality.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
".md", ".mmd", ".ps1", ".py", ".sh", ".svg", ".toml", ".txt", ".yaml", ".yml",
3232
}
3333
SPECIAL_TEXT_FILES = {"LICENSE", "README", "SKILL.md", "QUALITY.md", "CLAW_HUB_PUBLISHING.md", ".clawhubignore"}
34+
DEFAULT_CLAWHUBIGNORE_PATTERNS = [
35+
"*.png", "*.jpg", "*.jpeg", "*.gif", "*.ico", "*.pdf", "*.docx", "*.ipynb", "*.ttf", "*.otf", "*.woff", "*.woff2",
36+
"preview/", "output/", "__pycache__/", "*.py[cod]", "*$py.class", ".mypy_cache/", ".pytest_cache/", ".ruff_cache/",
37+
".venv/", "venv/", "env/", "ENV/", ".env", ".env.*", "secrets.json", "*_secret.ini", "*_local.ini", "*.tmp",
38+
".DS_Store", "Thumbs.db", "desktop.ini",
39+
]
3440

3541

3642
def iter_files(*suffixes: str) -> list[Path]:
@@ -175,7 +181,10 @@ def frontmatter() -> dict[str, Any]:
175181
def ignore_patterns() -> list[str]:
176182
ignore_file = ROOT / ".clawhubignore"
177183
if not ignore_file.exists():
178-
raise RuntimeError(".clawhubignore is required for ClawHub publishing")
184+
if (ROOT / ".git").exists():
185+
raise RuntimeError(".clawhubignore is required for ClawHub publishing")
186+
print("clawhub ignore defaults used: .clawhubignore is not present in this installed package")
187+
return DEFAULT_CLAWHUBIGNORE_PATTERNS.copy()
179188
patterns = []
180189
for raw in ignore_file.read_text(encoding="utf-8").splitlines():
181190
line = raw.strip()

0 commit comments

Comments
 (0)