对齐参考仓库移除临时技能

This commit is contained in:
wxm
2026-05-19 00:35:54 +08:00
parent 06799561ab
commit 8cd173889c
11 changed files with 32 additions and 82 deletions

View File

@@ -12,10 +12,8 @@ from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
FORBIDDEN_NAMES = {".DS_Store", ".env", "plan.md"}
FORBIDDEN_PARTS = {".git", "__pycache__"}
REQUIRED_SKILLS = {
EXPECTED_SKILLS = {
"brainstorm",
"setup-runtime",
"using-codex-game-studios",
}
REQUIRED_RUNTIME_AGENTS = {
"art-director.toml",
@@ -78,6 +76,20 @@ def assert_skill(skill_name: str) -> None:
fail(f"Missing skill description in {skill_path.relative_to(ROOT)}")
def assert_skill_set() -> None:
present = {
path.parent.name
for path in (ROOT / "skills").glob("*/SKILL.md")
}
if present != EXPECTED_SKILLS:
fail(
"Skill set mismatch. Expected exactly: "
+ ", ".join(sorted(EXPECTED_SKILLS))
+ "; found: "
+ ", ".join(sorted(present))
)
def assert_runtime_agents() -> None:
agent_dir = ROOT / "runtime" / "agents"
if not agent_dir.is_dir():
@@ -113,7 +125,8 @@ def assert_package_hygiene() -> None:
def main() -> int:
assert_manifest()
for skill_name in sorted(REQUIRED_SKILLS):
assert_skill_set()
for skill_name in sorted(EXPECTED_SKILLS):
assert_skill(skill_name)
assert_runtime_agents()
assert_package_hygiene()