No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Maximilian Jugl da73438042
All checks were successful
Build and create release / release (push) Successful in 37s
fix(ci): goreleaser for forgejo compatibility (#2)
Reviewed-on: #2
2026-09-03 19:13:14 +02:00
.forgejo/workflows fix(ci): goreleaser for forgejo compatibility (#2) 2026-09-03 19:13:14 +02:00
.gitignore feat: initial release 2026-09-02 20:10:01 +02:00
.goreleaser.yaml fix(ci): goreleaser for forgejo compatibility (#2) 2026-09-03 19:13:14 +02:00
go.mod feat: initial release 2026-09-02 20:10:01 +02:00
LICENSE feat: initial release 2026-09-02 20:10:01 +02:00
main.go feat: add version flag (#1) 2026-09-03 19:04:06 +02:00
README.md feat: initial release 2026-09-02 20:10:01 +02:00

mtg-cr-tool

A simple Go application that converts the Magic: The Gathering comprehensive rules into Markdown files ready for Retrieval Augmented Generation (RAG).

Usage

mtg-cr-tool requires the current ruleset in plain text. An up-to-date link can be found on the official Magic: The Gathering rules website.

# Fetch comprehensive rules (this URL may be out of date)
curl --fail -o rules.txt https://media.wizards.com/2026/downloads/MagicCompRules%2020260819.txt

Pass the downloaded file to the application along with an output directory. If the directory doesn't exist, it will be created.

go run . -cr rules.txt -o ./output

License

Apache 2.0