how-to-make-script
AGENTS.md17 starsChanged 8 months agoMITView on GitHub
Agent skill monorepo providing durable, composable screenwriting knowledge infrastructure. Routes agent requests through intent/medium/stage/output classification into bounded knowledge bundles (protocol + rubric + reference atoms), generates structured artifacts, and self-checks before delivery.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository31 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- how-to-make-scriptSkill
- audience-insightSkill
- boundary-mappingSkill
- character-worldSkill
- commercial-scriptSkill
- context-governorSkill
- development-strategySkill
- dialogue-subtextSkill
- expert-subagent-castingSkill
- genre-adaptationSkill
- idea-discoverySkill
- interactive-branchingSkill
- logline-premiseSkill
- path-explorationSkill
- pattern-referenceSkill
- project-surface-designSkill
- quality-gatingSkill
- research-backgroundSkill
- rewrite-doctorSkill
- scene-writingSkill
- scope-correctionSkill
- screen-to-video-bridgeSkill
- story-memory-checkpointSkill
- structure-beatSkill
- subagent-dispatch-designSkill
- team-orchestrationSkill
- team-workflow-designSkill
- visual-languageSkill
- voice-style-calibrationSkill
- writer-developmentSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
Use references/router-matrix.json for bundle lookup
- Distinctive: line 40
Only load knowledge atoms the request requires — do not load all 189 files
- Very specific: line 42
When user pushes back, improve assets in knowledge/ not the generated artifact
- Distinctive: line 58
No external Python packages required for core functionality
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — How to Make Script
<!-- MANUAL: true --><!-- Parent: (root) -->Purpose
Agent skill monorepo providing durable, composable screenwriting knowledge infrastructure. Routes agent requests through intent/medium/stage/output classification into bounded knowledge bundles (protocol + rubric + reference atoms), generates structured artifacts, and self-checks before delivery.
Key Files
| File | Role |
SKILL.md | Root orchestration — entrypoint for all agent invocations |
pyproject.toml | Python project metadata, dependencies, test config |
references/router-matrix.json | Classification map: intent x medium x stage -> knowledge atoms |
references/routing-policy.md | Decision rules for routing and bundle loading |
references/supported-outputs.md | 30 output types with schemas |
examples/agent/fixtures.json | 119 route fixtures for testing |
Subdirectories
| Directory | Purpose |
skills/ | 29 composable sub-skills with individual SKILL.md files |
knowledge/ | 7-layer knowledge tree: 00-ontology, 10-foundations, 20-workflows, 30-craft, 40-media, 50-genre, 60-rubrics |
references/ | Router matrix, routing policy, output definitions, content model |
schemas/ | Machine-readable JSON schema definitions |
tests/ | 19 test modules for routing, schema, and contract validation |
scripts/ | 19 validation/consistency scripts |
examples/ | 10 golden flows + reference packs + quickstart fixtures |
docs/ | 17 pairs of bilingual (EN/ZH) documentation |
For AI Agents
Working Instructions
- Entry point is
SKILL.md— classify request by intent, medium, stage, output - Load
references/routing-policy.mdfor routing rules - Use
references/router-matrix.jsonfor bundle lookup - Only load knowledge atoms the request requires — do not load all 189 files
- Self-check output against rubric atoms in
knowledge/60-rubrics/ - When user pushes back, improve assets in
knowledge/not the generated artifact
Testing
python -m pytest tests/ -v
python scripts/validate_links.pyPatterns
- Each skill in
skills/has its ownSKILL.mdwith trigger conditions - Knowledge atoms are pure Markdown, routable by JSON matrix
- Golden examples in
examples/golden/show complete request->artifact flows - Python scripts validate structure, not writing quality
Dependencies
- Python >= 3.9 (validation and scripting)
- No external Python packages required for core functionality
- Tests use
unittest(stdlib)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

