-
Notifications
You must be signed in to change notification settings - Fork 0
How to Create a Mod
This guide explains how to create a mod in the Patch Maker.
Open the app first: https://crodox-app.com/home
A mod is a single modification rule inside a condition. A condition decides when the mod is used. The mod defines what content should be written and where it should be applied.
Pick the extracted object in the editor, then open the Patch Maker.

In this example, the selected condition is title==="component".
In Condition Details, set a clear condition name.

Example condition:
title==="component"
Use one condition per object type when possible. It keeps mods easier to maintain.
Add one or more mods under MODIFICATIONS.

Example mods:
-
RouteList->src/app/sidebar/sidebar.component.ts -
routModule->src/app/app.routing.ts
Tip:
- Keep mod names short and specific
- Group mods by target file
Inside the mod content, use placeholders from the selected object.

Example snippet:
routeList: string[][] = [
[ '<-name.0->' ]
];name.0 means first item in the name array from the object context.
Check the extracted object values in the object panel before finalizing your placeholder.

If the object shows:
name[0] = "DashboardComponent"name[1] = "OnInit"
then name.0 resolves to DashboardComponent.
After adding mods:
- Open preview or diff view
- Check file paths and generated content
- Validate that placeholders resolve correctly
- Run with a small selection first
Then scale to more components.
- Verify the object really contains that field (
name,title, etc.) - Check index usage (
name.0,name.1)
- Recheck target file path
- Ensure the right condition is selected
- Compare condition text with actual object values
- Test with one simple condition first
For stable mod setup:
- One condition per object type
- One mod per target responsibility
- Reuse placeholders from the object panel only
- Test with one component, then expand
- Getting Started
- Sign-Up
- Home Screen
- Creating Your First Template
- Template Editor
- Application Navigation
- Syntax Overview
- Workflow: End-to-End
- Workflow: Test with simpleDemo
- Workflow: Build Template from angularTemp
- Demo Repositories
- How to Create a Mod
- Template
- Workbench
- GitHub Integration
- GitHub App Installation
- GitHub Repository Setup
- GitHub Re-linking
- Settings
- Overview
- Declarations
- Types
- Scoping