/edit-dags
Edit airflow DAGs for CLD, Spines, or Consumer Engineering. Routes to the correct sub-skill based on what you want to change.
Usage
/edit-dags [cld|spines] <describe what you want to change>
Specify the domain and describe the edit. If the request maps to a known sub-skill, it will be invoked automatically. Otherwise, the skill falls back to a manual edit using codebase layout references.
What It Does
Branch creation
Before making any edits, the skill creates a new branch in the airflow_dags submodule. The branching strategy depends on the domain:
CLD edits are version-based. You must specify the CLD version (e.g. v2.4.3). If you don't, the skill will ask. It either branches off an existing version branch or creates a new one from develop:
- Version branch:
cld-v2.4.3 - Feature branch:
cld-v2.4.3/add-codes-asc-hcpcs,cld-v2.4.3/chunkify-benchmarks, etc.
Spines and Consumer edits branch directly off develop with descriptive names like add-infusion-center-spine or update-pricing-service-rates.
Important: The main branch for airflow_dags is develop, NOT main.
Edit routing
The skill classifies your request and routes to the appropriate sub-skill:
| Edit type | Sub-skill | Required input |
|---|---|---|
| Add billing codes to codesets | /add-codes | Path to spec xlsx |
| Add payer networks | /add-network | Path to spec xlsx |
| Add a new provider type | /add-provider-type | Provider type name |
| Chunkify a task | /chunkify-task | Module name and function name |
| Create a new spine DAG | /create-new-spine | Snake-case spine name |
If the request doesn't match any sub-skill, the skill provides codebase layout references for CLD, Spines, and Consumer Engineering to guide a manual edit.
Commit, push, and PR
After the edit is complete, the skill:
- Stages and commits all changed files in
airflow_dags - Pushes the branch to origin
- Creates a PR against
developusinggh pr create. The PR title follows this naming convention:- CLD edits:
[CLD-<version>] <description>(e.g.[CLD-v2.4.3] Add ASC HCPCS codes) - Spines edits:
[spines] <description> - Consumer edits:
[consumer] <description>
- CLD edits:
- Returns the PR URL
Files Modified
Depends on which sub-skill is invoked. See individual skill docs for details.