Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
62 lines (41 loc) · 2.33 KB

File metadata and controls

62 lines (41 loc) · 2.33 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

🧹 Code Simplifier

For an overview of all available workflows, see the main README.

Automatically analyze recently modified code and create pull requests with simplifications that improve clarity and maintainability

The Code Simplifier workflow runs regularly (daily by default) to review code modified in the last 24 hours and apply targeted improvements that enhance clarity, reduce complexity, and follow project conventions—all while preserving functionality.

Installation

# Install the 'gh aw' extension
gh extension install github/gh-aw

# Add the workflow to your repository
gh aw add-wizard githubnext/agentics/code-simplifier

This walks you through adding the workflow to your repository.

How It Works

graph LR
    A[Find Recent Changes] --> B[Analyze Code Quality]
    B --> C{Simplifications<br/>Possible?}
    C -->|Yes| D[Apply Improvements]
    D --> E[Run Tests]
    E --> F[Create PR]
    C -->|No| G[Report: Code is Clean]
Loading

Common improvements include reducing nested conditionals, extracting repeated logic, improving naming, consolidating error handling, and applying idiomatic language features.

Examples

From the gh-aw repository (83% merge rate):

Usage

Configuration

The workflow uses these defaults:

  • Schedule: Runs daily
  • Scope: Code changed in the last 24 hours
  • PR Labels: refactoring, code-quality, automation
  • Expires: PRs auto-close after 1 day if not merged

After editing run gh aw compile to update the workflow and commit all changes to the default branch.

Triggering CI on Pull Requests

To automatically trigger CI checks on PRs created by this workflow, configure an additional repository secret GH_AW_CI_TRIGGER_TOKEN. See the triggering CI documentation for setup instructions.

Learn More

Morty Proxy This is a proxified and sanitized view of the page, visit original site.