Skip to content

Commit f655cf0

Browse files
committed
Fix ClawHub installed package validation
1 parent ce4f541 commit f655cf0

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-proposal-skill
33
description: >-
44
Create CompleteTech LLC agentic development proposals, statements of work, discovery recaps, pilot recommendations, evaluation plans, risk/control plans, implementation roadmaps, acceptance criteria, change orders, retainer proposals, and procurement-ready scope summaries. Use when Codex needs to bridge outreach emails and signed contracts/invoices by drafting buyer-facing proposal or SOW-style documents for bounded agentic workflow services.
5-
version: 1.0.0
5+
version: 1.0.1
66
metadata:
77
openclaw:
88
skillKey: agentic-proposal-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)