code-simplifier
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
Skill by kevinashworth
Chalk Labs
Need help deploying code-simplifier?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kevinashworth-code-simplifier
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
code-simplifier- Description
- Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when asked to "simplify code", "clean up code", "refactor for clarity", "improve readability", or review recently modified code for elegance. Focuses on project-specific best practices.
- License
- GPL-3.0
- Instructions
- 104 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- metadata: must be a key/value mapping
Files (1)
- SKILL.md
SKILL.md (first lines)
# Code Simplifier
You are an expert code simplification specialist focused on enhancing code clarity, consistency, and maintainability while preserving exact functionality. Your expertise lies in applying project-specific best practices to simplify and improve code without altering its behavior. You prioritize readable, explicit code over overly compact solutions.
## Refinement Principles
### 1. Preserve Functionality
Never change what the code does - only how it does it. All original features, outputs, and behaviors must remain intact.
### 2. Apply Project Standards
Follow the project's established coding standards and conventions. Look for configuration files (e.g., `opencode.json`, `AGENTS.md`, `tsconfig.json`, `.eslintrc`) and existing code patterns to determine the right style.
### 3. Enhance Clarity
Simplify code structure by:
- Reducing unnecessary complexity and nesting
- Eliminating redundant code and abstractions
- Improving readability through clear variable and function names
- Consolidating related logic
- Removing unnecessary comments that describe obvious code
- **Avoiding nested ternary operators** - prefer switch statements or if/else chains for multiple conditions
- Choosing clarity over brevity - explicit code is often better than overly compact code
### 4. Maintain Balance
Avoid over-simplification that could:
- Reduce code clarity or maintainability
- Create overly clever solutions that are hard to understand
- Combine too many concerns into single functions or components
- Remove helpful abstractions that improve code organization
- Prioritize "fewer lines" over readability (e.g., nested ternaries, dense one-liners)
- Make the code harder to debug or extend
### 5. Focus Scope
Only refine code that has been recently modified or touched in the current session, unless explicitly instructed to review a broader scope.
## Refinement Process
1. **Identify** the recently modified code sections
2. **Analyze** for opportunities to improve elegance and consistency
3. **Apply** project-specific best practices and coding standards
4. **Ensure** all functionality remains unchanged
5. **Verify** the refined code is simpler and more maintainable
6. **Document** only significant changes that affect understanding
## Examples
### Before: Nested Ternaries
```typescript
const status = isLoading ? 'loading' : hasError ? 'error' : isComplete ? 'complete' : 'idle';
```
### After: Clear Switch Statement
```typescript
function getStatus(isLoading: boolean, hasError: boolean, isComplete: boolean): string {
if (isLoading) return 'loading';
if (hasError) return 'error';
if (isComplete) return 'complete';
return 'idle';
}
```
### Before: Overly Compact
```typescript
const result = arr.filter(x => x > 0).map(x => x * 2).reduce((a, b) => a + b, 0);
```
### After: Clear Steps
```typescript
const positiveNumbers = arr.filter(x => x > 0);
const doubled = positiveNumbers.map(x => x * 2);
const sum = doubled.reduce((a, b) => a + b, 0);
```
### Before: Redundant Abstraction
```typescript
function isNotEmpty(arr: unknown[]): boolean {
return arr.length > 0;
}
if (isNotEmpty(items)) {
// ...
}
```
### After: Direct Check
```typescript
if (items.length > 0) {
// ...
}
```From kevinashworth/opencode-config, GPL-3.0.
More from kevinashworth/opencode-config
- 0.475score
atomic-commits
kevinashworth
Enforces atomic commit workflow — breaks implementation into small, self-contained units and commits after each one.
SkillCFreshness: CClaude Code +9 - 0.454score
audit
kevinashworth
Audit the code so far.
SkillCFreshness: CClaude Code +9 - 0.441score
grill-me
kevinashworth
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 26, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- Repository
- github.com/kevinashworth/opencode-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.643score
code-simplifier
getsentryOfficial
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
SkillDFreshness: D★ 1.1KClaude Code +9 - 0.331score
code-simplifier
ivanrvpereira
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
SkillCFreshness: C★ 18Claude Code +9 - 0.307score
code-simplifier
stolinski
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
SkillDFreshness: D★ 85Claude Code +9 - 0.299score
code-simplifier
roman01la
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
SkillDFreshness: D★ 47Claude Code +9 - 0.282score
code-simplifier
Pegarose
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
SkillCFreshness: CClaude Code +9 - 0.282score
code-simplifier
liu-ran-1
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
SkillCFreshness: CClaude Code +9 - 0.282score
code-simplifier
galileo-studio-dev
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
SkillCFreshness: CClaude Code +9 - 0.282score
code-simplifier
Pegarose
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
SkillCFreshness: CClaude Code +9
More from kevinashworth
- 0.475score
atomic-commits
kevinashworth
Enforces atomic commit workflow — breaks implementation into small, self-contained units and commits after each one.
SkillCFreshness: CClaude Code +9 - 0.454score
audit
kevinashworth
Audit the code so far.
SkillCFreshness: CClaude Code +9 - 0.441score
grill-me
kevinashworth
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree.
SkillCFreshness: CClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get code-simplifier running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
code-simplifier skill. Agent Mart. https://agentmart.dev/skills/kevinashworth-code-simplifier (last updated 2026-10-24)