Run3 Data Processing and JSON Serialization
Used to transform raw GitHub CLI output into the required reporting structure, ensuring data integrity and correct typing.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run3_Data-Processing-and-JSON-SerializationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.0 KB, 217 tokens by cl100k_base, as published. Nobody here has run it
When processing the data, implement the following logic:
- Time-to-Merge Calculation:
- Filter for items where
mergedAtis not null. - Use
jqto compute the difference betweencreatedAtandmergedAtin seconds, divide by86400, and calculate the average. - Apply
roundormapto ensure the float has one decimal place.
- Filter for items where
- Bug Report Filtering:
- Use
anyorcontainswithinjqto filter labels:any(.labels[]; .name | contains("bug")).
- Use
- Empty State Handling:
- Use the
//coalesce operator injqto default empty values to0ornullto ensure thereport.jsonstructure remains strictly valid even if no data exists for a category.
- Use the
- Validation:
- Pipe the final result through
jq '.'to verify that the generated JSON matches the required schema before writing to/app/report.json.
- Pipe the final result through
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.