No description
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Build and create release / release (push) Successful in 37s
Reviewed-on: #2 |
||
| .forgejo/workflows | ||
| .gitignore | ||
| .goreleaser.yaml | ||
| go.mod | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
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