AI Workflow Skills for MDChange
from Midrange Dynamics
for Version 8.6
Published November 10, 2026
Use this guide to install and run the MDChange and MDTest skills from Bob, Cursor, or Visual Studio Code.
The MDChange skills are for developers who already edit IBM i source in a Git repository and want an agent to create the matching MDCMS object requests, add dependencies, and compile the objects into the development library. That work is split across four skills. Configuration is saved once. Object requests, dependencies, and object creation each run as their own skill, and you confirm before the agent continues from one skill to the next.
The MDTest skill generates an RPG unit-test program for an application program, using the MDTest procedures and the shipped RPG example.
The skills are shipped with MDOpen for MDCMS 8.6. The MDChange skills follow your MDCMS authority. A request, lock, or compile that you cannot perform in MDOpen is also refused when a skill calls MDCMS.
The skills
| Skill | What it does |
|---|---|
mdchange-config | Saves the MDCMS connection, application, level, Git repository, and task mapping. Run this before the other MDChange skills. |
mdchange-request | Creates or updates MDCMS object requests for the files you select, and assigns them to one RFP. |
mdchange-include-dependencies | Adds missing impacted objects to that RFP as recompile requests. |
mdchange-create-objects | Creates the objects in the development library, then shows the results, spool files, and proposed source fixes. |
mdtest-gen-pgm | Generates or updates an MDTest program that exercises an application program and logs the results. |
How the MDChange skills run together
Run mdchange-config when initially added to a git repository or when the configuration settings need to change. The other MDChange skills read the settings it saves. When a required setting is missing, they stop and tell you to run mdchange-config.
Run mdchange-request for the source you want in MDCMS. When the object requests finish, it asks whether to run mdchange-include-dependencies.
- Yes runs that skill. When the dependencies are posted, it asks whether to run
mdchange-create-objects. - No asks whether to run
mdchange-create-objectswithout adding dependencies.
No to object creation ends the run. The object requests stay on the RFP.
You can also start mdchange-include-dependencies or mdchange-create-objects on their own. Each one uses the RFP from object-request work already done in the same chat. When that work is not in the chat, the skill asks you for the RFP number.
Run mdtest-gen-pgm when you want a test program written in the repository. It reads mdtest.properties in its own folder.
Before you start
- MDCMS 8.6.22 or later, with the MDCMS REST API server running for your environment.
- MDOpen for MDCMS 8.6 version 0.0.125 or later installed in Bob, Cursor, or VS Code, and a HTTP connection defined for the IBM i environment you will use.
- MDPipeline must be licensed on the same IBM i partitions.
- A valid MDSEC API token that you have registered in the HTTP connection in MDOpen.
- The Git repository registered in MDCMS, with attribute mapping that resolves each file path and file type to an attribute. See Recommended Git Repository Structure.
- A checked-out branch whose name MDCMS can map to a project and task, or an open MDCMS project, task, and subtask you can enter yourself.
- Authority in MDCMS to request objects for the target application and level of the Git repository.
- On Windows, Git for Windows installed in the default location so Git Bash is available at
C:\Program Files\Git\bin\bash.exe. On macOS or Linux,bashmust be available. - For
mdtest-gen-pgm, MDTest installed and the three paths inmdtest.propertiesset for this repository. See Generate an MDTest program.
The skills do not start by themselves. You invoke a skill by name from an Agent chat.
Put the skills in the repository
Open the Git repository in the IDE. In the Explorer, right-click a folder inside that repository, open MDOpen, and choose one of these commands:
| Command | What it does |
|---|---|
| Copy AI Skills to default folder | Copies each skill into the folder this IDE searches for project skills. Use this command. |
| Copy AI Skills to this folder | Copies each skill into the folder you right-clicked. Use this only when you need a location other than the default. The IDE discovers skills from the default folder. |
Copy AI Skills to default folder is available when the folder is inside a Git repository. The destination depends on the IDE:
| IDE | Skills folder |
|---|---|
| Bob | .bob/skills/ |
| Cursor | .cursor/skills/ |
| VS Code | .agents/skills/ |
Each skill is its own folder under that location:
| Folder | Skill |
|---|---|
mdchange-config/ | mdchange-config |
mdchange-request/ | mdchange-request |
mdchange-include-dependencies/ | mdchange-include-dependencies |
mdchange-create-objects/ | mdchange-create-objects |
mdtest-gen-pgm/ | mdtest-gen-pgm |
The copy includes SKILL.md and the shell scripts that skill runs. The MDTest copy also includes mdtest.properties. If any of those files are already present, MDOpen lists them and asks you to confirm before it overwrites them. Confirm when you want to pick up a newer copy of the skills from MDOpen.
mdchange-config creates mdchange.properties in mdchange-config/ the first time it runs. mdchange-request, mdchange-include-dependencies, and mdchange-create-objects all read that file.
Commit the skill folders so the rest of the team uses the same workflow. mdchange.properties stores the connection and the answers from mdchange-config. It does not store the API token. Teams that share one application, level, and repository can commit those values. A developer who uses a different connection can keep a local copy of the properties file. mdtest.properties stores repository paths for the MDTest example, the MDTest copybook, and the folder where generated test programs are written. Commit it when the team uses the same layout.
Start a new Agent chat after the copy so the IDE loads the skills.
Start a skill
Open the repository that contains the skills. For the MDChange request skills, check out the branch the object requests should use.
| IDE | How to start |
|---|---|
| Bob | Switch to Agent mode and tell Bob to use the skill by name, for example mdchange-config or mdtest-gen-pgm. Bob asks before it activates a skill, unless Auto-Approve for Skills is turned on in Bob Settings. You can also activate a skill in Settings/Skills. |
| Cursor | In Agent chat, type / followed by the skill name, for example /mdchange-request. |
| VS Code | In GitHub Copilot agent chat, invoke the skill by name. |
Approve the commands the agent shows. The API token appears as *** in those commands. Leave the token out of the chat.
Configure MDChange
mdchange-config asks these questions only when mdchange.properties does not already contain a valid answer. Later runs of every MDChange skill reuse the saved values.
- MDOpen connection. You pick a connection nickname from the connections saved in the IDE. Cancel stops the run and saves nothing. The skill builds the MDCMS API address from that connection and stores the host, port, HTTPS setting, and environment.
- Application and level. The list contains applications and levels where checkout is allowed. The application is stored in upper case, up to 6 characters. The level is a number of up to 3 digits.
- Git repository. You pick the MDCMS repository id that matches this Git repository. The id is stored in upper case, up to 10 characters.
- Branch mapping. The skill asks Map Repository Branch name to MDCMS Tasks?
- Yes. MDCMS derives the project, task, and subtask from the branch name. You then enter the starting position of the project id in that name, from 1 to 99. Use
1when the project id is at the start of the name. Use a later position when a fixed prefix comes first. A branch that starts withrelease-uses position9. The same rules as Project and Task Assignment for*BRANCHapply. - No. You enter the MDCMS project (upper case, up to 12 characters), task (1 to 7 digits, greater than 0), and subtask (1 to 7 digits, or 0 when there is no subtask). The skill checks that the task exists and is open. A closed task, or a task MDCMS does not accept, returns you to these three fields.
To change a saved answer, edit or delete that line in mdchange-config/mdchange.properties and run mdchange-config again. Deleting a value makes the skill ask for it.
Request objects
Start mdchange-request after mdchange-config has saved the settings.
Either leave the source changes uncommitted, or attach the files to the chat before you start the skill. Attached files are the ones the skill requests. With no attachments, the skill lists the uncommitted changes and asks you which files to include.
| Git status | MDCMS request |
|---|---|
| New or changed file | Modify request. The local file is sent as the source. |
| Deleted file | Delete request. The file is not compiled. |
When an open request for that file and branch already belongs to you, the skill updates the source on that request.
When open requests exist and none of them belong to you, the skill shows the first request and asks you to choose:
| Choice | Result |
|---|---|
| Skip Object | Leave that file unchanged and continue with the next file. |
| Update Request for other User | Update the source on that existing request. |
| Create New Request | Create a separate request for you. |
| Abort | Stop the run. |
A new request is created with the object locked. If another request already locks the object, you can retry, retry without the lock, ignore the file, or abort.
The first request that succeeds supplies the RFP number. Every later file in the same run is assigned to that RFP.
If a request fails for another reason, you can retry, ignore that file, or abort.
When the files have been requested, the skill asks whether to run mdchange-include-dependencies, and then whether to run mdchange-create-objects, as described in How the MDChange skills run together.
Include dependencies
mdchange-include-dependencies adds dependencies for one RFP.
When you continue from mdchange-request in the same chat, the RFP is taken from the first modify request in that chat that succeeded. When you start this skill on its own, or this chat has no such modify request, the skill asks for the RFP number. Leaving that blank stops the run.
Existing dependency requests on the RFP are left in place. A failure at this step stops the run.
When the dependencies are posted, the skill asks whether to run mdchange-create-objects.
Create objects
mdchange-create-objects submits creation for one RFP.
The RFP is taken from object-request work already done in this chat: a modify request that succeeded, or a source update on an existing request that succeeded. When neither is in this chat, the skill asks for the RFP number. Leaving that blank ends the run.
Creation is submitted to batch, starting at the first object that has not been created, and stops when an error occurs. The skill waits until the job finishes and then shows one row per object:
| Column | Meaning |
|---|---|
| Object Name | Object MDCMS created or attempted |
| Attribute | MDCMS attribute |
| Status | Creation result, such as success, error, or ignored |
| Spoolfile | Whether a spool file is available |
| Git Path | Repository folder for the source |
| Git File | Source file, linked so you can open it in the editor |
| Ignore Reason | Why an object was ignored, when MDCMS provides one |
For an object that has a spool file, you can view the spool file, go to the next object, skip ahead to the next object in error, or finish. When the status is an error and the row has a Git path and file, you can also have the agent try to correct that source from the errors in the spool file. Review the proposed change, then run mdchange-request again so the corrected source is sent to MDCMS, and run mdchange-create-objects again to create the objects.
A creation job that ends with a timeout or an abnormal end can be submitted again or cancelled.
Generate an MDTest program
mdtest-gen-pgm writes an RPG test program for one application program. The test calls that program with the options the source allows and with plausible values, and it logs results with the MDTest procedures. Before any call to the application program, the test registers that program for code coverage.
The skill follows the procedures in RPGEXP1.sqlrpgle. The MDTest functions and the RPG example describe those procedures. The generated source is ready to compile once MDTest is on the library list and the program is bound to the MDTest service program, as described in the MDTest manual.
Paths in mdtest.properties
mdtest.properties is in the mdtest-gen-pgm folder. Set these three values to paths inside the Git repository before you run the skill. The copy shipped with MDOpen contains example paths. Change them to match this repository.
| Setting | What it must point to |
|---|---|
MDTEST_EXAMPLES | A repository folder that contains RPGEXP1.sqlrpgle. The skill uses that file as the pattern for MDTest procedure calls. |
MDTEST_PROCS | The repository path of the MDTest procedure copybook. The file name must be MDRTESTP.rpgle, and that file must exist. |
MDTEST_TEST_PROGRAMS | A repository folder that already exists. The skill writes the test program here. |
What the skill asks
- Application program. If you attached a file to the chat, the skill asks whether that file is the program to test. Otherwise you give the repository path of the program source.
- Test program name. You name the test program. The skill writes it, with the file type used for the RPG test, in the folder named by
MDTEST_TEST_PROGRAMS. - Existing file. When that test program is already in the folder, you choose to replace it, update it, or abort.
The skill then reads the application program and creates or updates the test program.
The new source is a file in the repository. Run mdchange-request when that file should be requested and compiled in MDCMS like any other source change.
Saved settings
mdchange.properties
mdchange.properties sits in the mdchange-config folder. The names below are the lines mdchange-config writes. The other MDChange skills read this file and do not change it.
| Setting | Purpose |
|---|---|
MDCMS_API_URL | MDCMS REST API address for the selected connection |
MDCMS_CONNECTION_HOST | Host from the MDOpen connection |
MDCMS_CONNECTION_SECURE | Whether the connection uses HTTPS |
MDCMS_CONNECTION_PORT | REST API port, blank when the connection uses the default port |
MDCMS_CONNECTION_ENVIRONMENT | MDCMS environment suffix, blank for the default instance |
APPLICATION | Application code |
LEVEL | Promotion level |
REPOSITORY_ID | MDCMS Git repository id |
MAP_BRANCH_TO_TASK | true to derive the task from the branch name, false to use the project and task below |
PROJECT_STARTING_POSITION | Character position where the project id starts in the branch name |
MDCMS_PROJECT | Project, used when branch mapping is off |
MDCMS_TASK | Task, used when branch mapping is off |
MDCMS_SUBTASK | Subtask, used when branch mapping is off |
The API token stays in MDOpen. The skills read it for the connection above and do not write it into this file or into the chat.
mdtest.properties
mdtest.properties sits in the mdtest-gen-pgm folder. The three settings are described in Paths in mdtest.properties. This file does not store a connection or an API token.
Troubleshooting
| What you see | What to do |
|---|---|
| The skill is not offered in chat | Confirm the skill folder is under the default skills folder for that IDE, then start a new Agent chat. Invoke the skill by name. |
| Copy to the default folder is cancelled because the IDE is not supported | Bob, Cursor, and VS Code are the supported IDEs. On another editor, use Copy AI Skills to this folder and place the skill folders where that product reads project skills. |
A skill tells you to run mdchange-config | A required line in mdchange-config/mdchange.properties is missing. Run mdchange-config, or add the missing line, then start the skill again. |
| The skill tells you to check the MCP port values | In MDOpen Settings, confirm MDOpen MCP Server Port minimum and maximum. The default range is 37821 through 37830, and the maximum can be at most 10 above the minimum. Restart the IDE window so MDOpen can register the mdopen-86 MCP server again. |
The agent cannot call MDOpen tools, or mdopen-86 does not appear | Confirm the MCP server is running in the IDE you are using. See Viewing/Restarting MCP Servers. |
| The skill tells you to configure the token and user | Sign in to the MDOpen connection. MDOpen stores the API token and user the skill reads. A connection with no stored token cannot be used. |
| Git Bash or a script cannot be started on Windows | Install Git for Windows so bash.exe is at C:\Program Files\Git\bin\bash.exe. |
| The application or level you need is missing | The list includes only levels where checkout is allowed. Confirm your authority and the level settings in MDCMS. |
| The task is closed | Enter an open project, task, and subtask. This applies when branch mapping is off. |
| HTTP status above 200 | MDCMS refused the call. Read the message in the response. Typical causes are authority, a missing attribute mapping for the file path, a repository id that does not match this repo, or the REST API server being unavailable. See MDCMS/MDOPEN Connectivity Troubleshooting. |
| Target object already locked by another request | Retry, retry without locking, ignore that file, or abort. |
| Creation stays pending | The skill polls the batch job until it completes. A jobq-timeout or abnormal-jobend status can be submitted again. |
mdtest-gen-pgm cannot use the example, the copybook, or the test-program folder | Edit mdtest-gen-pgm/mdtest.properties. MDTEST_EXAMPLES must be a repository folder that contains RPGEXP1.sqlrpgle. MDTEST_PROCS must be the path of a file named MDRTESTP.rpgle. MDTEST_TEST_PROGRAMS must be a folder that already exists in the repository. |
Viewing/Restarting MCP Servers
MDOpen registers an MCP server named mdopen-86 when the extension starts. Each IDE window runs its own server, on a port from the range in MDOpen Settings. The MDChange skills call MDCMS through that server. Confirm it is running, then start a new Agent chat.
| IDE | How to |
|---|---|
| Bob | In the Bob chat panel, open the gear icon and select the MCP tab. Use MCP Servers must be checked. mdopen-86 is running when it is listed and shows a connected status. Expand the server to see its tools. Restart the server from that list when the status is not connected. |
| Cursor | Open Customize in the sidebar and find mdopen-86. The server is running when it is enabled and shows a connected status. On an older Cursor release, the same list is under Cursor Settings, Tools & MCP, where a green status means connected. Open the Output panel and select MCP Logs to confirm the server started. A connection error or crash is written there. Toggle the server off and on if it stays disconnected, then start a new Agent chat. |
| VS Code | Open the Command Palette and run MCP: List Servers. mdopen-86 is running when a green indicator is shown next to its name. If the server is stopped, select it and choose Start Server. If the status is an error, select Show Output, then Restart Server after the problem is corrected. In GitHub Copilot agent chat, select Configure Tools and confirm the mdopen-86 tools are listed. |