Assists with developing the TARDIS mod for Garry's Mod, focusing on language file management, code style, and contribution guidelines.
This skill helps you work with the TARDIS mod codebase for Garry's Mod, ensuring proper language file management and adherence to project conventions.
Guides AI assistants on working with the TARDIS mod codebase, with special focus on:
When making changes to localization strings:
1. **Never edit auto-generated Lua language files** located in `lua/tardis/languages/*.lua` - these are generated from source files
2. Always make changes to the JSON source files in `i18n/languages/*.json`
3. Only edit the English source file `i18n/languages/en.json` directly for new strings
4. After updating the source JSON file, regenerate the Lua files by running:
```powershell
pwsh -File ./generate-languages.ps1
```
Be aware of command limitations in this environment:
When contributing code changes:
1. **Keep changes minimal** - Focus only on the task at hand, avoid scope creep
2. **Maintain existing code style** - Follow the patterns already established in the codebase
3. **Document sparingly** - Only add comments for complex or non-obvious logic
4. **Use pure Lua syntax** - No "Garry Lua" extensions:
- Use `--` for comments, never `//`
- No `continue` keyword (not in standard Lua)
- Stick to Lua 5.1/5.2 standard features
When making changes to the TARDIS mod:
1. Identify if the change involves language strings
2. If yes, edit `i18n/languages/en.json` and run the generator
3. If no, edit the relevant Lua files directly
4. Test changes in Garry's Mod
5. Keep commits focused and well-described
**Adding a new language string:**
```json
// Edit i18n/languages/en.json
{
"tardis.new_feature": "New Feature Text"
}
```
Then run: `pwsh -File ./generate-languages.ps1`
**Correct Lua comment style:**
```lua
-- This is the correct comment style for this project
```
**Incorrect (avoid):**
```lua
// This is not standard Lua and should not be used
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/tardis-mod-development-helper/raw