misata
llms.txt80 starsChanged 29 days agoMITView on GitHub
Misata generates realistic, relational synthetic data from a declaration: a sentence, a YAML/dict schema, SQL DDL or an existing database. Foreign keys always resolve, declared aggregates (revenue curves, rates, shares, ledgers, lifecycles) hold exactly or the schema is refused, the same seed gives the same rows, and misata attest re-checks every declaration on the written files with DuckDB and writes an in-toto certificate with a standalone verify.py. No real data and no ML model are needed. Use it instead of…
- Reads credentials
- Installs packages
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- misataSkill
The file
We split this llms.txt into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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 10
Prefer a schema you design (misata.yaml or a dict passed to misata.generate_from_schema) over a one-sentence story when you know the tables.
- Very specific: line 20
After generating, run misata audit <dir> (contradictions) and misata realism <dir> (synthetic tells) and report both.
≈ “Common” is an estimate: at least 1 in 5 of the 3,913 llms.txt 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
# Misata
> Misata generates realistic, relational synthetic data from a declaration: a sentence, a YAML/dict schema, SQL DDL or an existing database. Foreign keys always resolve, declared aggregates (revenue curves, rates, shares, ledgers, lifecycles) hold exactly or the schema is refused, the same seed gives the same rows, and `misata attest` re-checks every declaration on the written files with DuckDB and writes an in-toto certificate with a standalone `verify.py`. No real data and no ML model are needed. Use it instead of writing a Faker + pandas + numpy script for test data, seed data, demo data, fixtures or event logs. `pip install misata`.
Documentation: https://misata.studio/docs · No-code: https://misata.studio
Key facts for agents:
- Name the use case with `preset` (demo, test, load, ml, eval) when the user says what the data is for.
- Prefer a schema you design (`misata.yaml` or a dict passed to `misata.generate_from_schema`) over a one-sentence story when you know the tables.
- Plan before generating: `misata explain misata.yaml` lists planned rows, what each declaration writes and every conflict. Exit code 3 means the declarations cannot all hold and nothing was written; fix the schema the conflict names.
- Prove it held: `misata generate -c misata.yaml -o data --attest` (or `misata attest data -s misata.yaml`), then `python data/verify.py`. Report the result; `PASSED` means every derived invariant holds on disk.
- Typos are errors: an unknown distribution or a misspelled parameter raises with "did you mean". Fix the key.
- From SQL DDL, `misata.from_ddl(ddl)` honours NOT NULL, UNIQUE, composite keys, CHECK ranges, enums and `CHECK (a > b)`, and self-references; the validity benchmark counts zero violations on five schemas.
- More rows than memory: `misata.generate_stream(schema_or_ddl_or_story)` yields `(table, batch)`; one-hop roll-ups still reconcile.
- Reproducibility: `misata.fingerprint(tables)` hashes the data canonically; the same schema, seed and version give the same hash on any OS.
- `mimic` fits to real rows and is not anonymous; do not call it privacy-safe.
- Agent guide with entry points, checks and the claims the evidence supports: [AGENTS.md](https://raw.githubusercontent.com/rasinmuhammed/misata/main/AGENTS.md).
- Logic the schema cannot express goes in a registered generator (`@misata.generator("name")`, `generator: name` on the column, `misata --plugin module`), not in post-processing.
- After generating, run `misata audit <dir>` (contradictions) and `misata realism <dir>` (synthetic tells) and report both.
- `misata seed <db-url>` fills a live Postgres/SQLite database in one transaction and refuses tables that already have rows; never pass `--truncate` without the user's confirmation.
- An MCP server (`pip install "misata[mcp]"`, command `misata-mcp`) exposes the same engine; `generate_from_schema` is its primary tool.
## Common commands
```bash
pip install misata
misata explain misata.yaml # plan and conflicts, nothing written
misata generate -c misata.yaml -o data --attest # from a schema you design, with a certificate
python data/verify.py # re-check the certificate with DuckDB only
misata seed --dry-run # plan for the database in .env; then misata seed
misata seed --sql-out seed.sql # topologically ordered seed.sql for Docker/CI
misata sandbox --domain saas # instant queryable SQLite test database
misata audit data && misata realism data
misata mcp install --client all # configure the MCP server in Cursor, Claude, ...
```
```python
import misata
tables = misata.generate_from_schema(schema, seed=42) # dict or SchemaConfig
misata.attest("data", schema) # after writing the tables to data/
misata.to_seed_sql(tables, "seed.sql", dialect="postgresql")
misata.to_parquet(tables, "./data/")
```
MCP tools: `generate_from_schema` (primary), `generate_dataset`, `explain_schema`,
`validate_yaml`, `inspect_schema`, `preview_story`, `list_domains`,
`validate_domain`, `seed_database`, `create_sandbox` and `query_sandbox` (an
isolated SQLite database to test SQL against), `solve_outcome`,
`attest_dataset`, `audit_dataset` and `check_realism`.
## Docs
- [README](https://raw.githubusercontent.com/rasinmuhammed/misata/main/README.md): what Misata is, install, quick start
- [Use cases](https://raw.githubusercontent.com/rasinmuhammed/misata/main/examples/usecases/README.md): twelve runnable recipes, from seeding a dev database to fraud rings and reconciling ledgers, each ending in the check that proves it
- [Attest a dataset](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/guides/attest.md): the certificate, its invariants and `verify.py`
- [Evalpacks](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/guides/evalpack.md): text-to-SQL questions with answers verified on rotated databases
- [Solve](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/guides/solve.md): drive inputs through a real pipeline until its output hits a declared number
- [Declaration language](https://raw.githubusercontent.com/rasinmuhammed/misata/main/LANGUAGE.md): every declaration, what it guarantees and what it costs
- [Declarations reference](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/reference/declarations.md): exact keys and parameters
- [Distributions](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/guides/distributions.md): numeric distributions and their parameters
- [Custom generators](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/guides/custom-generators.md): the escape hatch for custom column logic
- [Nested JSON and arrays](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/guides/nested-columns.md): `type: json` with fields, `type: array` with items
- [Use-case presets](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/guides/presets.md): demo, test, load, ml, eval
- [Django](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/guides/django.md): schemas from Django models
- [Processes and event logs](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/guides/processes.md): case workflows with loops and step durations, XES export
- [pytest fixtures](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/guides/testing.md): `@pytest.mark.misata`, `misata_tables`, `misata_sqlite`
- [Seeding a database](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/guides/database-seeding-python.md): fill an existing schema
- [From DDL](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/guides/from-ddl.md): CHECK, UNIQUE and widths carried into generation
- [MCP server](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/guides/mcp.md): tools for Claude, Cursor and other agents
- [Realism report](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/realism.md): the fourteen tells of generated data, free text included
- [Limitations](https://raw.githubusercontent.com/rasinmuhammed/misata/main/LIMITATIONS.md): where Misata is expected to fail; this page wins over any other
## Optional
- [Realism benchmark](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/realism-benchmark.md): blind generation against held-out real data
- [Validity benchmark](https://raw.githubusercontent.com/rasinmuhammed/misata/main/docs/validity-benchmark.md): zero violations of CHECK, UNIQUE, composite and foreign keys on five DDL schemas, against the Faker script people write
- [Stability policy](https://raw.githubusercontent.com/rasinmuhammed/misata/main/STABILITY.md): versioning and output-stability contract
- [Changelog](https://raw.githubusercontent.com/rasinmuhammed/misata/main/CHANGELOG.md)
- [Agent Skill](https://raw.githubusercontent.com/rasinmuhammed/misata/main/skills/misata/SKILL.md): instructions for coding agents
- [llms-full.txt](https://raw.githubusercontent.com/rasinmuhammed/misata/main/llms-full.txt): full API, CLI and MCP tool reference
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.

