development
Repairs, implements, tests, and validates automovie source, tests, workflows, and package wiring. Use before editing any of them; checklist answers belong to contracts and visual verification to visual-debugging.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 15
- Forks
- 3
01 前言 Front Matter
- name
- development
- description
- Repairs, implements, tests, and validates automovie source, tests, workflows, and package wiring. Use before editing any of them; checklist answers belong to contracts and visual verification to visual-debugging.
02 资源文件 3
- 参考文档repair.md725 B
- 参考文档testing.md697 B
- 参考文档validation.md2.8 KB
03 SKILL.md 正文
Development
The rules on this page hold for every change to source, tests, workflows and package wiring. Each task adds its guide:
| Task | Read |
|---|---|
| Changing existing behavior | Repair |
| Adding or changing tests | Testing |
| Running checks or finishing a change | Validation |
Contracts
Every maintained declaration answers, in its doc comment, the checklists its package selects, always including common.md; the contracts table says which declaration answers which.
human selects none until its rebuild declares completion, then its production checklists at once.
Types and files
Annotate the type of every variable and parameter and the return type of every function. Leave a type to inference only where TypeScript takes no annotation, such as a for...of or catch binding.
A source file has fewer than 500 lines and exports one symbol named after it, barrels excepted.
Comments and layout
Write code for the agent who changes it next. Give every declaration a JSDoc comment written to the contracts Meaningful documentation question, including in a package that selects no checklist.
Inside a body, separate the logical steps with blank lines so each step reads as one paragraph of code. Open each step whose purpose the code does not make obvious with a comment saying what it does and why.
A comment gives the intent, premise, or reason the code cannot show, not a paraphrase of the code. Precede every comment inside a block with a blank line unless it opens the block, so a comment never sits directly under code.
Packages
Respect the package boundaries; review reads every new import and dependency against them. A public producer lands with its consumer, because test-only reach is not wiring.
interface is pure types with no runtime dependency. It uses plain string and number without wrapper aliases or typia tags, states units and ranges in JSDoc for engine validators to enforce, and constrains structure only through closed AutoMovie* unions.
Specification
Tests, CI, wiring, dependencies, interface core types, and the range-of-motion and constraint tables are specification. Change them only on request or for a product reason, and say so.
Scripts and shared checkouts
Tracked code
Write every helper script in TypeScript as a tracked file and run it with ttsx. A build configuration that must start without compiling the project, such as the test package's esbuild configuration, is a tracked .mts file run by Node itself. Keep all program code, tests and tools in tracked paths and use gitignored paths for captured evidence and data, because an ignored file escapes review and cannot be recovered.
Run an experiment as a tracked test, through a package's tracked debug tool, or as a type check.
Processes
End every process you start for one result once that result is read. A shared server or type-check watch keeps running for every agent.
A package's viewer runs as one server that every agent shares. Request one frame at a time, and restart the server only when its status shows an empty queue, because a restart drops every frame in flight and a second server competes for the same memory and CPU.
Several agents in one checkout
Give each agent its own scratch directory, delete only inside its own directory, and commit with git add then git commit --only <paths>. A shared index lets one commit sweep another agent's files, and a recursive delete can wipe every agent's scratch.
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.