Civ6 official xml query
Skill YUehai231/Civ6ModAgent/.agents/skills/civ6_official_xml_query
A test project aiming to enable AI Agents to generate all code files for a Civ 6 mod. ModBuddy & game knowledge still required. Special thanks to Hemmelfort.
npx -y skills add YUehai231/Civ6ModAgent --skill civ6_official_xml_queryAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Access official Civilization VI base game and DLC XML gameplay and config files for read-only queries (cannot modify or write).
SKILL.md
2.7 KB, as published. Nobody here has run it
Civ 6 Official XML Query Skill
Use this skill when you need to inspect or search Civilization VI official XML files (from base game assets and DLCs) for gameplay tables, schema definitions, defaults, or modifiers.
[!IMPORTANT] This skill is strictly READ-ONLY. Under no circumstances should you attempt to modify or write to the official XML gameplay files.
Query Helper Script Location
- Python Query Helper:
d:\Civilization_VI_mod\Civ-6-Documentation-main\.agents\skills\civ6_official_xml_query\scripts\query_official_xml.py - Python Interpreter:
D:\anaconda\python.exe
Instructions
When you need to look up official definitions, statistics, XML layouts, or structure of the base game or DLC files:
1. Keyword Regex Search (Grep mode)
Search across all XML gameplay and configuration files:
& "D:\anaconda\python.exe" "d:\Civilization_VI_mod\Civ-6-Documentation-main\.agents\skills\civ6_official_xml_query\scripts\query_official_xml.py" -s "MODIFIER_PLAYER_CITIES_ADJUST_RESOURCE_HARVEST_YIELD"
To limit searching to specific files (e.g., only files containing Units in their name):
& "D:\anaconda\python.exe" "d:\Civilization_VI_mod\Civ-6-Documentation-main\.agents\skills\civ6_official_xml_query\scripts\query_official_xml.py" -s "UNIT_SETTLER" -f "*Units*"
2. XPath Element Query
Query structural elements using XPath. ElementTree supports a subset of XPath including tags, attributes, and wildcard child searches:
Find a specific UnitType Row in the XMLs:
& "D:\anaconda\python.exe" "d:\Civilization_VI_mod\Civ-6-Documentation-main\.agents\skills\civ6_official_xml_query\scripts\query_official_xml.py" -x ".//Row[@UnitType='UNIT_SETTLER']"
Find all Rows under a specific table:
& "D:\anaconda\python.exe" "d:\Civilization_VI_mod\Civ-6-Documentation-main\.agents\skills\civ6_official_xml_query\scripts\query_official_xml.py" -x "Types/Row" -f "*Units.xml"
3. List Scanned Official XML Files
Show a list of all official XML gameplay data and configuration files scanned by this tool:
& "D:\anaconda\python.exe" "d:\Civilization_VI_mod\Civ-6-Documentation-main\.agents\skills\civ6_official_xml_query\scripts\query_official_xml.py" -l
4. Output JSON for Agent Parsing
Use the -j or --json flag to return structured JSON results instead of text:
& "D:\anaconda\python.exe" "d:\Civilization_VI_mod\Civ-6-Documentation-main\.agents\skills\civ6_official_xml_query\scripts\query_official_xml.py" -x ".//Row[@UnitType='UNIT_SETTLER']" -j