Skip to content

Conversation

@dcramer
Copy link
Member

@dcramer dcramer commented Jan 14, 2026

Replaces the deslop skill with a more comprehensive code-simplifier skill to improve code readability and simplify complex logic.

The code-simplifier skill expands upon the deslop skill's functionality by not only removing AI-generated patterns but also providing guidelines for simplifying nested conditionals, complex boolean expressions, and unnecessary abstractions, ensuring a more robust approach to code quality.


Slack Thread

Open in Cursor Open in Web

- Add new code-simplifier skill with comprehensive simplification guidelines
- Remove old deslop skill directory
- Update README.md to reference code-simplifier instead of deslop
- Update .claude/settings.json with code-simplifier permission
- Update claude-settings-audit skill to include code-simplifier in recommendations

The code-simplifier skill is based on Anthropic's approach and provides more comprehensive code simplification beyond just removing slop, including simplifying complex logic, removing unnecessary abstractions, and improving code readability while maintaining functionality.

Co-authored-by: david <[email protected]>
@cursor
Copy link

cursor bot commented Jan 14, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 4 commits January 14, 2026 17:58
- Create agents/ directory for subagents
- Add code-simplifier.md subagent using Anthropic's official version
- Remove code-simplifier from skills directory
- Update README.md to document subagents separately from skills
- Update .claude/settings.json to remove code-simplifier skill permission (subagents don't require permissions)
- Update claude-settings-audit to not recommend code-simplifier skill
- Update repository structure documentation

The code-simplifier is now a proper subagent following Anthropic's official implementation from claude-plugins-official repo.

Co-authored-by: david <[email protected]>
- Add source attribution comment to code-simplifier.md pointing to Anthropic's official repo
- Create agents/README.md to document subagents and their sources
- Ensures proper credit and traceability for externally sourced subagents

Co-authored-by: david <[email protected]>
- Changed attribution from license reference to prior art acknowledgment
- Verified that anthropics/claude-plugins-official has no license file
- Updated both code-simplifier.md and agents/README.md accordingly
- Clarifies we're noting this as prior art from Anthropic rather than claiming any specific license

Co-authored-by: david <[email protected]>
- Remove license commentary from code-simplifier.md
- Remove license mention from agents/README.md
- Keep clean attribution showing it's based on Anthropic's subagent

Co-authored-by: david <[email protected]>
@dcramer dcramer marked this pull request as ready for review January 14, 2026 18:08
Comment on lines +18 to +26
2. **Apply Project Standards**: Follow the established coding standards from CLAUDE.md including:

- Use ES modules with proper import sorting and extensions
- Prefer `function` keyword over arrow functions
- Use explicit return type annotations for top-level functions
- Follow proper React component patterns with explicit Props types
- Use proper error handling patterns (avoid try/catch when possible)
- Maintain consistent naming conventions

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The code-simplifier agent's instructions contain hardcoded JavaScript/TypeScript standards that will be incorrectly applied to code of any language, as the reference to CLAUDE.md is misleading.
Severity: HIGH

Suggested Fix

Update the code-simplifier.md instructions. Either make the coding standards generic, add language detection to apply them conditionally only to JS/TS files, or remove the misleading reference to CLAUDE.md and the language-specific rules.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: plugins/sentry-skills/agents/code-simplifier.md#L18-L26

Potential issue: The `code-simplifier.md` instructs an autonomous agent to apply coding
standards supposedly from `CLAUDE.md`. However, these standards (e.g., ES modules, React
patterns) are not in `CLAUDE.md` and are specific to JavaScript/TypeScript. The agent
will fall back to applying these hardcoded rules to any modified code file, regardless
of its language. This will cause incorrect refactoring suggestions on non-JS/TS code,
such as Python or Go, in Sentry's multi-language projects.

Did we get this right? 👍 / 👎 to inform future reviews.

@dcramer dcramer merged commit c4fb3e7 into main Jan 14, 2026
3 checks passed
@dcramer dcramer deleted the cursor/deslop-simplifier-swap-0994 branch January 14, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants