-
Notifications
You must be signed in to change notification settings - Fork 212
Closed as not planned
Closed as not planned
Copy link
Labels
cookieIssue Monster Loves Cookies!Issue Monster Loves Cookies!documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
Description
Workflow to Update
Workflow File: .github/workflows/duplicate-code-detector.md
Issue: This workflow detects code duplication and creates reports, but doesn't include markdown style guidelines.
Required Changes
Update the workflow prompt to include these formatting guidelines:
1. Header Levels
Add instruction: "Use h3 (###) or lower for all headers in your report to maintain proper document hierarchy."
Example:
### Code Duplication Analysis
#### High-Priority Duplicates2. Progressive Disclosure
Add instruction: "Wrap detailed code snippets and file comparisons in <details><summary><b>Section Name</b></summary> tags to improve readability."
Example:
<details>
<summary><b>Full Duplicate Code Blocks</b></summary>
[Complete duplicate code snippets and locations...]
</details>3. Report Structure
Suggest a structure like:
- Summary (always visible): Duplication percentage, number of instances
- Critical Duplicates (always visible): Large or complex duplicate blocks
- Detailed Analysis (in
<details>tags): All duplicates with code snippets, file locations - Refactoring Recommendations (always visible): Suggested consolidation approaches
Design Principles (Airbnb-Inspired)
The updated workflow should create reports that:
- Build trust through clarity: Duplication metrics immediately visible
- Exceed expectations: Add helpful context like impact on maintainability, refactoring patterns
- Create delight: Use progressive disclosure to hide verbose code blocks
- Maintain consistency: Follow the same patterns as other code analysis workflows
Example Reference
See workflows like audit-workflows that import shared/reporting.md for good examples of structured reporting.
Agent Task
- Update
.github/workflows/duplicate-code-detector.mdto include an import:- shared/reporting.mdin the frontmatter imports section - Reference the style guidelines in the workflow instructions
- Test the updated workflow to ensure it produces well-formatted duplication reports
AI generated by Workflow Normalizer
- expires on Feb 11, 2026, 3:23 AM UTC
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
cookieIssue Monster Loves Cookies!Issue Monster Loves Cookies!documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request