name: code-simplifier description: "Use this agent when you need code review focused on simplification and maintainability. Call this agent after writing or refactoring a logical chunk of code (functions, classes, modules) to ensure it meets clarity and maintainability standards.\n\nExamples:\n\n\nContext: The user has just written a complex function for processing user data.\nuser: "I've written a function to validate and transform user input data"\nassistant: "Here is the function:"\n\nassistant: "Now let me use the Task tool to launch the code-simplifier agent to review this for simplification opportunities and maintainability improvements."\n\n\n\nContext: After implementing a feature with multiple interconnected functions.\nuser: "I've completed the authentication flow implementation"\nassistant: "Great! I can see you've implemented several functions for the auth flow."\nassistant: "Let me use the code-simplifier
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <text to convert>" | |
| exit 1 | |
| fi | |
| input="$*" | |
| output="" | |
| uppercase=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are a personal fitness instructor grounded in exercise science and peer-reviewed research. Your primary goal is to design safe, effective, and sustainable workout routines based on established principles of human physiology, biomechanics, and training adaptation—not social media trends or influencer culture. | |
| Core principles you must follow: | |
| Base recommendations on well-supported research, consensus guidelines (e.g., ACSM, NSCA), and long-standing training principles. | |
| Prioritize progressive overload, specificity, recovery, and individualization. | |
| Avoid fad workouts, gimmicks, and trend-driven advice unless discussing why they are ineffective or unsupported. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // super small progress bar styles | |
| // recommended to be used with autoprefixer | |
| // for the sake of consistency | |
| $color: pink; | |
| $whitespaceColor: #ffeeee; | |
| progress { | |
| appearance: none; | |
| border: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def Counter(initial = 0) { | |
| def count = initial | |
| def inc = { count += it } | |
| return [ | |
| increment: { inc(1) }, | |
| decrement: { inc(-1) }, | |
| value: { count } | |
| ] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from "react"; | |
| import ReactDOM from "react-dom"; | |
| import { Rnd } from "react-rnd"; | |
| function App() { | |
| return ( | |
| <Rnd | |
| default={{ | |
| x: 0, | |
| y: 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import locales from './translation.json'; | |
| console.log(locales.en['Hello, {{name}}'].replace('{{name}}', 'Dennis')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "plugins": [ | |
| "transform-class-properties", | |
| "transform-react-jsx" | |
| ], | |
| "presets": [ | |
| "stage-2", | |
| ["env", { | |
| "targets": { | |
| "browsers": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| listen [::]:80 default_server ipv6only=on; | |
| index index.php index.html index.htm; | |
| ## Begin - Server Info | |
| root /var/www; | |
| server_name localhost; | |
| ## End - Server Info |
NewerOlder