fd-add
File a deliverable (film, figure, paper, deck, dataset, doc, page, model, any output someone will use) into this project's governed artifacts/ folder with its provenance. Use it every time you have produced a finished output, before you report it; never write, copy or move files into artifacts/ by hand.
- License 许可
- MIT
- 最近更新
- 2026-10-07
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- fd-add
- description
- File a deliverable (film, figure, paper, deck, dataset, doc, page, model, any output someone will use) into this project's governed artifacts/ folder with its provenance. Use it every time you have produced a finished output, before you report it; never write, copy or move files into artifacts/ by hand.
02 资源文件 1
- 脚本scripts/fd-add.sh304 B
03 SKILL.md 正文
fd-add: file an output into artifacts/
artifacts/ is governed: every file there is named in artifacts.yaml, laid out artifacts/<id>/<id>-v<N>.<ext>,
never overwritten, only superseded by the next version, and hashed into artifacts.lock.json. A hook denies
direct writes there. The one door is:
python3 .flightdeck/fd.py add <file> --id <id> --type <type> --title "<title>" --note "<what changed>" \
--prompt "<the human's words>" --ingredient src/<script that made it> [--ingredient <input>]...
<file>: the finished output, wherever you made it (src/out/film.mp4,/tmp/fig.png). It is moved into place (--copykeeps the source).--id: the artifact's stable slug (launch-film,fig-latency). A NEW id needs--typeand--title; an existing id needs only--id(the next version number is chosen for you).--type: one ofapi app dataset deck doc figure film library model notebook package paper post repo service site spec thread.--by,--session,--model: filled in for you in Claude Code and Codex (fd.pyreads your session from the environment and the model from your own transcript; a--modelthat disagrees is overruled). Pass them only whenfd.pycannot see a session:--by claude|codex|nanocodex|hermes|human|ci,--session <harness>:<id>.--prompt: the human's words, quoted, not paraphrased.--ingredient: each input the output was made from; repeat the flag. Generate figures, films, datasets and decks from a script undersrc/(not an inlinepython -cor a file in /tmp) and pass that script as an ingredient:fd.pywarns without one, and--strictrefuses.
add refuses a file that breaks the project's formats: policy in project.yaml (extension, size, codec,
faststart) and says the smallest change that passes; make the file right. If the request itself conflicts with
formats: (a 400px thumbnail where figures must be 1600px), say so and ask the user before substituting. It prepends the version to artifacts.yaml,
refreshes artifacts.lock.json, and prints the new path. Commit artifacts.yaml + artifacts.lock.json
together with the file.
Before you finish a session: python3 .flightdeck/fd.py check --strict . and leave it clean (the Stop hook
runs it too and reports what is wrong).
scripts/fd-add.sh is the same command as a wrapper: .agents/skills/fd-add/scripts/fd-add.sh <file> --id ….