f3cd56b78e
Use ~/.pouch, the pouch CLI, and .pouch.yaml as the SSOT container. Keep the inner skills/ packages, and store ACK project state in .pouch/ack instead of docs/ack.
30 lines
792 B
Python
30 lines
792 B
Python
from __future__ import annotations
|
|
|
|
import unittest
|
|
from pathlib import Path
|
|
|
|
|
|
REPO_ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
class ProjectSkillContentTests(unittest.TestCase):
|
|
def test_pouch_skill_documents_project_usage_and_feedback_loop(self) -> None:
|
|
content = (REPO_ROOT / "skills" / "pouch" / "SKILL.md").read_text(encoding="utf-8")
|
|
|
|
for expected in (
|
|
"pouch add <name>",
|
|
"问题或优化回流",
|
|
"实际结果",
|
|
"期望结果",
|
|
"pouch check <name>",
|
|
"~/.pouch/skills/<name>/",
|
|
"第三方 skill",
|
|
"pouch init ack",
|
|
"显式调用全局 `/ack` skill",
|
|
):
|
|
self.assertIn(expected, content)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|