agentleFS
AstralumeLanAstralumeLan/prophet-toolkit/AGENTS.md

prophet-toolkit

AGENTS.md1 starsChanged 12 days agoMITView on GitHub

Prophet is an offline JSON CLI for cultural research and reproducible rule comparisons. Read cli.py, bin/prophet, core/inputs.py, the affected engine and its register(), tests/selftest.py, relevant docs/, scripts/setup.sh, and THIRD_PARTY_NOTICES.md before changing behavior. Do not commit unless explicitly asked. bash scripts/setup.sh creates .venv using uv or python3 -m venv, installs pinned Python/npm dependencies, fetches pinned vendor sources and optional ephemeris data, builds the local corpus and runs tests. Setup requires network access; runtime must stay offline. Python 3.12 and Node 20…

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. AstralumeLan/Prophet-toolkit★ 1100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 31,774 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 repository5 other files it gives its agents.

The file

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

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Read cli.py, bin/prophet, core/inputs.py, the affected engine and its register(), tests/selftest.py, relevant docs/, scripts/setup.sh, and …

    line 4
  2. Distinctive:

    If networking is unavailable, use the installed environment and report missing dependencies.

    line 15
  3. Very specific:

    Use rules_ext for provenance or school details.

    line 47
  4. Distinctive:

    Test public reference charts or fictional S01–S04, boundaries, missing dependencies, and relevant invariants.

    line 50
  5. Very specific:

    Document flags/defaults in the affected system docs.

    line 52
  6. Very specific:

    Run tests, regenerate .venv/bin/python scripts/gen_llms_full.py after docs changes, and inspect the release file list for private or …

    line 55
  7. Distinctive:

    Never overwrite raw time with a correction.

    line 62
  8. Very specific:

    Read docs/agent-workflows.md and the relevant skills/*/SKILL.md before changing evidence or analysis workflows.

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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

Working on Prophet

Prophet is an offline JSON CLI for cultural research and reproducible rule comparisons. Read cli.py, bin/prophet, core/inputs.py, the affected engine and its register(), tests/selftest.py, relevant docs/, scripts/setup.sh, and THIRD_PARTY_NOTICES.md before changing behavior. Do not commit unless explicitly asked.

Setup and run

bash scripts/setup.sh creates .venv using uv or python3 -m venv, installs pinned Python/npm dependencies, fetches pinned vendor sources and optional ephemeris data, builds the local corpus and runs tests. Setup requires network access; runtime must stay offline. Python 3.12 and Node 20 are the CI baseline. --no-tests skips the final test run; --with-tianji explicitly opts into restricted course material. If networking is unavailable, use the installed environment and report missing dependencies.

bin/prophet bazi chart --person S01 --pretty
bin/prophet tools --pretty
bin/prophet --describe
bin/prophet selftest
bin/prophet selftest -k test_bazi
bin/prophet selftest -k test_mcp

Selftest discovers plain test_* functions and exits nonzero for any failure or no matching tests. Use temporary directories for persistence tests; never rely on existing caches or journals. Run the full selftest and relevant optional dependency checks after changes, including missing-data fallbacks. Shared-library agreement is not independent validation. Document frozen numeric fixtures and provenance.

Layout

  • cli.py, bin/: parser, JSON dispatch and entry points.
  • core/: input precision, coordinates, solar time, draws, cache and tool discovery.
  • eastern/, western/, vedic/: engines; Ziwei uses a local Node JSON bridge.
  • corpus/, validate/: local source normalization/search and scoped comparisons.
  • tests/: offline regression functions and public/fictional fixtures.
  • schemas/, prophet_mcp/: generated output contracts and stdio MCP adapter.
  • docs/, scripts/: system rules, setup and reproducible generators.

Adding an engine

  1. Implement register(subparsers) with argparse types, choices, defaults and help; register the module in cli.MODULES. Return JSON-serializable data.
  2. Include engine with name, version, rules, and explicit warnings. Use rules_ext for provenance or school details. Keep fallback rules explicit.
  3. Resolve inputs through shared helpers. Preserve branches/candidates and invariants for uncertain times; distinguish a calculation sample from a confirmed time.
  4. Test public reference charts or fictional S01–S04, boundaries, missing dependencies, and relevant invariants. Cite numeric provenance, licence and tolerances.
  5. Document flags/defaults in the affected system docs. Add fictional/public sample values to scripts/gen_schemas.py if needed and run .venv/bin/python scripts/gen_schemas.py. The manifest and MCP list automatically discover the argparse tree.
  6. Run tests, regenerate .venv/bin/python scripts/gen_llms_full.py after docs changes, and inspect the release file list for private or generated content.

Invariants and privacy

Runtime never accesses the network. Command handlers emit JSON, including explicit errors and nonzero failure status. Keep output changes backward-compatible and additive. Never overwrite raw time with a correction. Never silently turn approximate ranges into confirmed midpoints. Never redraw a recorded question implicitly; use the ordinary draw policy, preserving reuse and explicit redraw warnings, including through MCP.

Real people belong only in gitignored core/people.json. Examples must be fictional S01–S04 or documented public charts. Never add real birth records, private locations, caches, journals, credentials, or personalized reports. Do not read private files to create fixtures. Use temporary directories for all test persistence.

Preserve third-party LICENSE/NOTICE files and attribution. Never bundle vendor checkouts, generated corpora, node_modules, or Swiss Ephemeris data. Restricted course material is opt-in and retains CC BY-NC-SA 4.0 restrictions; default builds exclude it.

Optional agent layer (v0.2.0)

Read docs/agent-workflows.md and the relevant skills/*/SKILL.md before changing evidence or analysis workflows. Skills remain optional original guidance outside deterministic chart engines. core/evidence.py checks shape and restricted paths, not claim semantics or source authenticity. Keep its schema and rejection behavior aligned. core/cross_check.py runs engines independently and compares candidate fact sets; never describe these as predictive consensus or pair unlike branches. MCP discovers both commands automatically. Retain the current stdio transport; SDK migration is future work. Add tests for paths, invalid evidence, interval branches, skill references and MCP calls. New examples use fictional S01–S04 only.

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.