← Files SEO & Growth CopilotARCHIVED FILE

scripts/validate_package.py

1.61 KB · Nov 20, 2026 · 06:39 UTC

↓ Download file

See the change to this file →

from pathlib import Path
from zipfile import ZipFile
import json, re
root=Path(__file__).resolve().parents[1]
meta=json.loads((root/'plugin.json').read_text())
iface=meta['extensions']['com.openai']['interface']
assert meta['name']=='seo-website-growth-copilot'
assert meta['version']=='0.2.0'
assert meta['author']['name']=='Tekris Labs' and iface['developerName']=='Tekris Labs'
assert len(iface['defaultPrompt'])==3 and all(len(p)<=128 for p in iface['defaultPrompt'])
assert len(iface['shortDescription'])<=30
for k in ['websiteURL','supportURL','privacyPolicyURL','termsOfServiceURL']:
 assert iface[k].startswith('https://tekrislabs.com/') or (k=='websiteURL' and iface[k]=='https://tekrislabs.com/')
for k in ['logo','composerIcon']:
 assert (root/iface[k]).is_file()
refpattern=re.compile(r'\(\.{2}/\.{2}/references/[^)]+\)|`\.{2}/\.{2}/references/[^`]+`')
skills=list((root/'skills').glob('*/SKILL.md'))
assert len(skills)==19
for file in skills:
 s=file.read_text()
 assert s.startswith('---\n') and re.search(r'^name: [a-z0-9-]+$',s,re.M) and re.search(r'^description: .+',s,re.M)
 for rel in re.findall(r'`(\.\./\.\./references/[^`]+)`',s): assert (file.parent/rel).exists(), f'{file.name} {rel}'
cases=json.loads((root/'benchmarks/cases.json').read_text())['cases'];assert len(cases)==28
assert all(x['runtime_tested'] is False for x in cases)
for x in cases:assert x['expected'] and x['red_flags']
assert len(list((root/'references/original').glob('*.md')))>=10
assert len(list((root/'templates').glob('*.md')))>=10
print('PASS: 19 skills, references, templates, 28 benchmarks, manifest, three prompts, Tekris Labs URLs, and icons')

SHA-256: 9a10e9e6bb630e678682e87f804257e29bc49c4f8352eb22615d50fa37caea1d