agentleFS
XucroYuriXucroYuri/how-to-make-script/AGENTS.md

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.

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
  1. Very specific:

    Use references/router-matrix.json for bundle lookup

    line 39
  2. Distinctive:

    Only load knowledge atoms the request requires — do not load all 189 files

    line 40
  3. Very specific:

    When user pushes back, improve assets in knowledge/ not the generated artifact

    line 42
  4. Distinctive:

    No external Python packages required for core functionality

    line 58

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

FileRole
SKILL.mdRoot orchestration — entrypoint for all agent invocations
pyproject.tomlPython project metadata, dependencies, test config
references/router-matrix.jsonClassification map: intent x medium x stage -> knowledge atoms
references/routing-policy.mdDecision rules for routing and bundle loading
references/supported-outputs.md30 output types with schemas
examples/agent/fixtures.json119 route fixtures for testing

Subdirectories

DirectoryPurpose
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

  1. Entry point is SKILL.md — classify request by intent, medium, stage, output
  2. Load references/routing-policy.md for routing rules
  3. Use references/router-matrix.json for bundle lookup
  4. Only load knowledge atoms the request requires — do not load all 189 files
  5. Self-check output against rubric atoms in knowledge/60-rubrics/
  6. When user pushes back, improve assets in knowledge/ not the generated artifact

Testing

python -m pytest tests/ -v
python scripts/validate_links.py

Patterns

  • Each skill in skills/ has its own SKILL.md with 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)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.