"""Synthetic fixtures used for issue 30184. Run with a fresh directory argument.
Start the app in each checkout with T3CODE_DEV_SEED=0 and these two variables:
CLAUDE_CONFIG_DIR=<directory>/claude
CLAUDE_CODE_PLUGIN_DIRS=<directory>/pstack
Configure the isolated Claude settings with your existing provider credentials.
Then use the real T3 CLI (with --base-dir pointing at that checkout's .t3):
  node apps/server/src/bin.ts project add <directory>/skills-demo --title "Skills demo" --base-dir .t3
  node apps/server/src/bin.ts thread start <directory>/skills-demo "Reply only OK" --title "Claude skills visibility" --provider claudeAgent --model claude-haiku-5-5 --base-dir .t3 --wait --json
No database rows or provider responses are fabricated.
"""
import json
import sys
from pathlib import Path
p = Path(sys.argv[1]).resolve()
for relative, description in [
    ("claude/skills/personal-demo", "Demo personal skill"),
    ("pstack/skills/bro", "Demo plugin skill bro"),
    ("pstack/skills/arena", "Demo plugin skill arena"),
]:
    d = p / relative
    d.mkdir(parents=True, exist_ok=True)
    (d / "SKILL.md").write_text(f"---\nname: {d.name}\ndescription: {description}\n---\nReply with hello.\n")
d = p / "pstack/.claude-plugin"
d.mkdir(parents=True, exist_ok=True)
(d / "plugin.json").write_text(json.dumps({"name": "pstack", "version": "1.0.0", "description": "Demo skills plugin"}))
(p / "skills-demo").mkdir(exist_ok=True)
