返回 Skill 列表
extension
分类: 开发与工程无需 API Key

experiment-scaffold

创建一个新的实验工作区目录:初始化git,编写AGENTS.md目标文档,并创建references/文件夹包含index.md以及notes/links的markdown文件,同时在references/repos下克隆GitHub仓库(这些仓库会被添加到.gitignore中)。当用户要求建立一个草稿/研究/实验文件夹,并提供了需要收集的仓库、链接和/或笔记时使用。

person作者: jakexiaohubgithub

Experiment Scaffold

Gather inputs

  • Experiment directory name (a single path segment; no /)
  • Goal (1–3 sentences: what you’re trying to learn/build/test)
  • GitHub repos (repeatable; owner/repo or URL)
  • Reference URLs (repeatable; blogs/docs/API pages)
  • Notes (repeatable; bullets)
  • Optional root directory to create the experiment in (default: current directory)

Run the scaffold script

The helper script is scripts/create_experiment.py (next to this SKILL.md). Run it with the extracted inputs.

Example:

python3 scripts/create_experiment.py \
  --root ~/experiments \
  --name vector-search \
  --goal "Evaluate hybrid search with embeddings vs BM25." \
  --repo openai/openai-python \
  --repo facebookresearch/faiss \
  --url https://platform.openai.com/docs/ \
  --note "Measure latency/recall across configs"

What it creates

  • <root>/<name>/.gitignore (ignores references/repos/)
  • <root>/<name>/AGENTS.md (goal + pointer to references/index.md)
  • <root>/<name>/references/index.md (inventory + clone status)
  • <root>/<name>/references/notes.md
  • <root>/<name>/references/links.md
  • <root>/<name>/references/repos/<owner>/<repo> (cloned; gitignored)

Cloning notes (gh, multiple accounts, SSH)

  • The script tries gh repo clone first and prefers SSH; it falls back if SSH/auth fails.
  • If a repo fails to clone and you have multiple GitHub accounts, check gh auth status and switch with gh auth switch -u <user>.
  • To default gh to SSH cloning, set gh config set git_protocol ssh.

Useful flags

  • --depth 0 for a full clone (default is shallow)
  • --no-clone to generate structure without cloning
  • --strict to stop on the first clone failure (otherwise record failures in references/index.md)