fix(add-portal): include .agents prefix in generated SKILL.md allowed-tools (#545) (#548)

This commit is contained in:
Oscar Madera authored and GitHub committed 2026-10-15 11:50:57 +02:00
1 parent f375ef7593
commit e475d355ae
3 files changed
+31 -1

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
"""Guards for the /add-portal command spec."""
import unittest
from pathlib import Path
REPO = Path(__file__).resolve().parent.parent
COMMAND = REPO / ".claude" / "commands" / "add-portal.md"
class TestAddPortalCommand(unittest.TestCase):
def test_allowed_tools_specifies_agents_skills_path(self):
content = COMMAND.read_text(encoding="utf-8")
self.assertIn(
"allowed-tools: Bash(bun run .agents/skills/<name>/cli/src/cli.ts *)",
content,
)
self.assertNotIn(
"allowed-tools: Bash(bun run skills/<name>/cli/src/cli.ts *)", content
)
if __name__ == "__main__":
unittest.main()