agentleFS
skyllwtskyllwt/AutoSci/runtime/CLAUDE.md

AutoSci / runtime

CLAUDE.md1.7k starsChanged 2 months agoMITView on GitHub

Single source of truth for what is structurally legal in the wiki. YAML in schema/ and policy/ is the contract; loader.py is the Python access API consumed by tools/lint.py and tools/research_wiki.py. No codegen step — edit YAML, restart the tool. Every change below is YAML-only, zero Python change. Edit, save, done. - New entity type — add a top-level block (<kind>: with dir, fields, optional lifecycle, optional terminal: true) and create templates/<kind>.md.tmpl with the body section skeleton. - New field…

Trending

Quiet since June.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 4 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the skyllwt/AutoSci repository that our weekly crawl found: only 5 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

The file

We split this CLAUDE.md into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every change below is YAML-only, zero Python change.

    line 21
  2. Distinctive:

    Only when extending the schema language itself, not when adding more data:

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
CLAUDE.md

runtime/ — Wiki Runtime Contract

Single source of truth for what is structurally legal in the wiki. YAML in schema/ and policy/ is the contract; loader.py is the Python access API consumed by tools/lint.py and tools/research_wiki.py. No codegen step — edit YAML, restart the tool.

Folder layout

runtime/
├── __init__.py     marks runtime/ as a Python package
├── loader.py       schema access API (imported by tools/lint.py + research_wiki.py)
├── schema/         data-shape contract (4 YAMLs)
├── policy/         access control (writers.yaml)
└── templates/      per-entity body skeletons used by /init and /ingest

How to add things

Every change below is YAML-only, zero Python change. Edit, save, done.

Entity-related (schema/entities.yaml + templates/)

  • New entity type — add a top-level block (<kind>: with dir, fields, optional lifecycle, optional terminal: true) and create templates/<kind>.md.tmpl with the body section skeleton.
  • New field on an entity — add it under that entity's fields: block with type + optional required / default / range / values / to.
  • New conditional-required rule — set required_when: { other_field: value } on the field. lint auto-validates.
  • New lifecycle state or transition — edit the entity's lifecycle.transitions: map. research_wiki.py transition auto-validates.

Edge-related (schema/edges.yaml)

  • New edge type — add a top-level block with endpoints, direction (directed | symmetric), workflow, attributes.
  • New attribute on an edge — add it under that edge's attributes: block with type + optional required / values. add-edge collects it, lint validates it.
  • Different storage location — list it under conventions.yaml::edge_storage::exceptions (default is wiki/graph/edges.jsonl).

Cross-reference (schema/xref.yaml)

  • New forward → reverse rule — append to rules: with a forward block (kind + one of frontmatter_field / body_section / edge_type, plus target) and a reverse block (kind + frontmatter_field or body_section, plus action: append_slug | append_record). lint auto-checks.

Access control (policy/writers.yaml)

  • Restrict who writes a field — add <kind>.<field>: { writers: [skill1, skill2] } under fields:. Add frozen_after_first_write: true if it should not be modified after creation.
  • Restrict who writes an edge type — add <edge_type>: [skill1, skill2] under edges:.

Conventions (schema/conventions.yaml)

  • Change slug rule, log grammar, ownership zones — edit the corresponding top-level key.

When Python changes ARE needed

Only when extending the schema language itself, not when adding more data:

  • New field type (e.g. list_date, tuple_str) — extend loader.py::_valid_values_for
  • New xref action (e.g. replace_slug vs append_slug) — extend lint.py::_has_reverse
  • New cross-cutting helper (e.g. edge_supports_evidence_search) — add to loader.py

Out of scope

  • Skill prompts and workflow logic — .claude/skills/<skill>/
  • Lint severity / auto-fix policy — derived from required / default in schema
  • Migration history — git log + one-shot scripts; no migrations/ folder

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.