#!/usr/bin/env python3
"""Create the synthetic repository: python3 seed.py PROJECT_DIRECTORY.
Then add it to each fresh server with t3 project add PROJECT_DIRECTORY --title 'Skill ranking'.
"""
import pathlib, subprocess, sys
root=pathlib.Path(sys.argv[1]); root.mkdir(parents=True,exist_ok=True)
for name,description in [('lint','Run lint before review'),('ship','Open a pull request after review'),('review','Review the current diff')]:
    skill=root/'.agents'/'skills'/name
    skill.mkdir(parents=True,exist_ok=True)
    (skill/'SKILL.md').write_text(f'---\nname: {name}\ndescription: {description}\n---\n\n{description}.\n')
subprocess.run(['git','init','-q',str(root)],check=True)
