scaffold
Maintains the generated-project scaffold under packages/template and routes production-content work to each production's own instructions. Use before editing packages/template, and before reading, authoring, or reviewing production content anywhere, repository fixtures and sandboxes included.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 15
- Forks
- 3
01 前言 Front Matter
- name
- scaffold
- description
- Maintains the generated-project scaffold under packages/template and routes production-content work to each production's own instructions. Use before editing packages/template, and before reading, authoring, or reviewing production content anywhere, repository fixtures and sandboxes included.
03 SKILL.md 正文
Scaffold
A production's own AGENTS.md, README.md, and source own its meaning; read them and the installed package APIs before interpreting, authoring, or reviewing it. Repository instructions never override them.
Scaffold prompting owns the design of shipped task skills, contracts and routers, with the product principles they serve. This skill owns their distribution and production ownership boundaries; development owns implementation changes to the checker and to createAutoMovieScaffold, the template function that turns the scaffold into a project's files.
What the scaffold owns
The scaffold owns its production skills, directly linked resources and contracts, apart from the shared repository items below. Its own skills describe making a production, not developing this repository.
Read its production skill for the commissioned outputs, project context and handoff, and story before changing narrative authoring. The production's motion skill owns programmatic choreography, constraints, scene time and engine feedback, and 3D modeling owns its asset representations.
Installed package APIs own API documentation, and the scaffold does not duplicate them. @automovie/evidence owns reusable evidence defaults and native graph composition; the scaffold keeps one options object evaluated by native pnpm evidence.
Source layout
The production's source layout is its backbone. A folder change moves the layout table, the development stages of @automovie/evidence and the contract respondents together, or they disagree about where code belongs. The scaffold lint.config.ts stays generic and names no folder.
Outputs and routes
The product contract defines the commissions and the two story routes. The primary output is the whole deterministic motion-video hint, and stills or pilot clips do not complete it.
Keep the separately commissioned outputs distinct: a screenplay, a whole motion hint, a finished direct 3D film and a finished post-diffusion film. Direct 3D needs no diffusion, and a motion hint needs no finished diffusion film.
Long-form work keeps its four story layers, settings → treatments → scripts → screenplay, with construction, evidence, current independent review and whole-work completion, and asset-only work has no narrative. Compact items within those responsibilities rather than removing the architecture.
Default lint and evidence configurations serve ordinary TypeScript development; narrative work opts into its additional workflow while retaining engineering checks.
Shared items
An empty $<name> file under the scaffold's .agents/skills ships the repository item <name> at the same place under .agents/skills: $documentation the whole folder, development/$repair.md the single file. A skill whose production stance differs keeps its own SKILL.md beside file placeholders, as 3d-modeling and motion do. The prepare script copies those items into the package's ignored, published generated/skills on prepare and build, and createAutoMovieScaffold ships them in the placeholders' place.
Share a repository skill this way instead of keeping a second copy, and edit it at its repository source under the shared skill rule. Root and scaffold says which rules belong on which side.
Layers
The scaffold has three layers:
| Layer | Ships at |
|---|---|
instructions |
A single production's root, and a workspace root |
production |
A single production's root, and each workspace movies/shorts/<name> or movies/series/<name> |
workspace |
A workspace root only |
Instruction files take no token and stay layout-neutral: a project path they name is the production's, never a link out of .agents, and the production layer reaches the shared skills through {{skills}}.
Files that differ between a single production and a workspace are generated rather than shipped: pnpm-workspace.yaml, whose catalogs every catalog: dependency of the layers' package.json files resolves through, and evidence.config.ts, which reads the workspace root's skills inside a workspace.
Untracked files under scaffold still ship, so remove stale copies from a checkout before packaging.
What a production owns
The generated project-root PROJECT.md owns adopted production scope, delivery and setup decisions, and docs/instructions owns creative instructions.
Runtime README and .env.example own nonsecret operational setup and variable names, and ignored .env holds actual secrets. src/integrations can hold adopted provider or local-tool code, and the scaffold's Node tooling ships under src/executable beside the commands that run it.
Updating productions
Package upgrades and scaffold edits reach only new installations. An authorized update to an existing production is a deliberate project change: compare the scaffold with the actual local files, preserve project choices and custom contracts, align changed addresses, selected respondents and consumers together, and follow that production's repair rules for affected answers and reviews. Do not infer renewed approval from new wording or overwrite a repaired body with an old edition.
For changed installation behavior, observe a generated project's installed entry point and its lint, evidence, and test commands.
04 同仓库更多 Skills
story-workflow
Chooses the story route and who writes the screenplay, and routes to each route's steps and to completion. Use when starting, resuming or completing narrative work.
story-correction
Inspects a narrative body and repairs it by cause, at its earliest owner and within closed boundaries. Use before evidence, after review findings, or when requirements or scope change.
development
Implements and tests production source, integrations, dependencies and commands, reusing installed packages before writing a capability. Use for code or host changes and behavioral tests; documentation owns technical writing and story owns creative bodies.
pull-request
Branches, commits, pushes, opens, updates, and merges automovie pull requests. Use only when the user asks for one of those actions or a mandate names delivery.
issue-campaign
Runs automovie's issue campaign, repeating full discovery rounds until one finds nothing new, publishing the issues, and landing them in one pull request per cycle. Use for a broad audit or repeated issue-to-pull-request work, not for one defined issue.
documentation
Owns how any document is written, with its sentences, terms, paragraphs and lists, and what a README holds. Use before writing or changing a technical document, README or doc comment; instructions for an agent add the prompting skill's rules.