agents-md
Creates and maintains concise AGENTS.md and CLAUDE.md project instruction files. Use when asked to create AGENTS.md, update AGENTS.md, maintain agent docs, set…
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
$ npx -y skills add getsentry/skills --skill code-simplifier --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/code-simplifierContext preview
The summary Claude sees to decide when to auto-load this skill.
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
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.
<!-- Based on Anthropic's code-simplifier agent: https://github.com/anthropics/claude-plugins-official/blob/main/plugins/code-simplifier/agents/code-simplifier.md -->
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.
Never change what the code does - only how it does it. All original features, outputs, and behaviors must remain intact.
Follow the established coding standards from CLAUDE.md including:
Simplify code structure by:
Avoid over-simplification that could:
Only refine code that has been recently modified or touched in the current session, unless explicitly instructed to review a broader scope.
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
const status = isLoading ? 'loading' : hasError ? 'error' : isComplete ? 'complete' : 'idle';
function getStatus(isLoading: boolean, hasError: boolean, isComplete: boolean): string {
if (isLoading) return 'loading';
if (hasError) return 'error';
if (isComplete) return 'complete';
return 'idle';
}const result = arr.filter(x => x > 0).map(x => x * 2).reduce((a, b) => a + b, 0);
const positiveNumbers = arr.filter(x => x > 0); const doubled = positiveNumbers.map(x => x * 2); const sum = doubled.reduce((a, b) => a + b, 0);
function isNotEmpty(arr: unknown[]): boolean {
return arr.length > 0;
}
if (isNotEmpty(items)) {
// ...
}if (items.length > 0) {
// ...
}For skills to help set up Sentry in your project or debug production issues, see Agent skills for Sentry employees, following the Agent Skills open format.
Repo: getsentry/skills
Creates and maintains concise AGENTS.md and CLAUDE.md project instruction files. Use when asked to create AGENTS.md, update AGENTS.md, maintain agent docs, set…
Write, review, and improve blog posts for the Sentry engineering blog following Sentry's specific writing standards, voice, and quality bar. Use this skill…
Write copy following Sentry brand guidelines. Use when writing UI text, error messages, empty states, onboarding flows, 404 pages, documentation, marketing…
Analyze a repository to generate recommended Claude Code settings.json permissions. Use when setting up a new project, auditing existing settings, or…
Perform code reviews following Sentry engineering practices. Use when reviewing pull requests, examining code changes, or providing feedback on code quality.…
Use for every request to commit changes or draft a commit message. Creates Sentry-style conventional commits with issue references.