38 lines
1.4 KiB
Python
38 lines
1.4 KiB
Python
import unittest
|
|
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
CURATION = ROOT / "skills" / "thirdparty" / "thirdparty-skills.yml"
|
|
|
|
|
|
def read_text(path: Path) -> str:
|
|
return path.read_text(encoding="utf-8")
|
|
|
|
|
|
class ThirdpartySkillCurationTests(unittest.TestCase):
|
|
def test_architecture_skills_are_recorded_for_sync(self):
|
|
text = read_text(CURATION)
|
|
self.assertIn("id: brooks-lint", text)
|
|
self.assertIn("upstream_repo: https://github.com/hyhmrright/brooks-lint", text)
|
|
self.assertIn("architecture audit", text)
|
|
self.assertIn("sync: enabled", text)
|
|
|
|
self.assertIn("id: codebase-recon", text)
|
|
self.assertIn("upstream_repo: https://github.com/outfitter-dev/agents", text)
|
|
self.assertIn("upstream_paths:", text)
|
|
self.assertIn("plugins/outfitter/skills/codebase-recon", text)
|
|
self.assertIn("plugins/outfitter/skills/pathfinding", text)
|
|
self.assertIn("upstream_layout: multi_skill_subset", text)
|
|
self.assertIn("pathfinding/references/confidence.md", text)
|
|
self.assertIn("risk scan", text)
|
|
|
|
self.assertIn("id: codebase-migrate", text)
|
|
self.assertIn("upstream_repo: https://github.com/ComposioHQ/awesome-codex-skills", text)
|
|
self.assertIn("upstream_path: codebase-migrate", text)
|
|
self.assertIn("large codebase migrations", text)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|