agentleFS
garthcodesgarthcodes/claude-skills/skills/improve/SKILL.md

improve

Skill2 starsChanged 35 days agoMITView on GitHub

Analyze exploration and planning documents to identify potential improvements and suggest better solutions

66 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use deploy-platform, setup-platform and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • agno-agiSkill

    deploy-platform

    Deploy this AgentOS using its own provider instructions, configure JWT verification, and verify the public service. Use for first deployment, redeployment, or production configuration changes.

    Also in 4 projects that use this

  • agno-agiSkill

    setup-platform

    Set up this AgentOS from a fresh clone — confirm Docker, configure .env, boot the containers, prove the MCP endpoint live, connect the AgentOS UI, then build the user's first agent. Use when the user asks to set up the platform, get started, or bring this repo up on a new machine.

    Also in 4 projects that use this

  • MicrosoftSkill

    create-agent

    Create a new MCS2 Copilot Studio agent and PAC-connected local workspace with `pac copilot init`, then optionally add modern instructions, skills, tools, knowledge, and settings before synchronizing it. Use when the user asks to create, scaffold, initialize, or build a Copilot Studio agent.

    Also in 5 projects that use this

  • HeshamFSSkill

    loop

    Run a command or check on a recurring interval

    Also in 5 projects that use this

  • admin-remixSkill

    workspace

    Google Workspace administration - manage users, groups, email, Drive, calendars, and devices through natural conversation. Triggers on: Google Workspace, G Suite, user management, group management, admin tasks, offboarding, onboarding, email forwarding, Drive permissions, suspended users, organizational units, ChromeOS devices, audit logs, admin reports.

    Also in 3 projects that use this

  • AmirofcodesSkill

    goal

    Use when the user starts, manages, or asks about an OpenClaw goal mode with /goal. Enforces a bounded goal contract, visible progress blocks, proof requirements, stop conditions, and honest limitation language when no runtime goal-loop plugin is active.

    Also in 4 projects that use this

  • +3 more from agno-agi

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 64 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Implementation: Add appropriate includes() to ActiveRecord queries

    line 360
  2. Distinctive:

    Suggested Improvement: Add controller-level parameter validation

    line 365
  3. Distinctive:

    Implementation: Use strong parameters with custom validation methods

    line 368

“Common” is measured: kept by at least 6 in 10 of the 64 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Improvement Analysis for Exploration and Planning Documents

Analyzing existing exploration reports and implementation plans for "${1:comprehensive improvements}" to identify optimization opportunities and suggest better solutions

Phase 1: Document Discovery and Analysis

Execute document analysis agents to examine existing plans and explorations:

  1. Document Inventory Agent:
    • Task: "Search .claude/ directory for exploration reports (exploration-report-.md) and implementation plans (implementation-plan-.md). Read and catalog all existing documents. Identify the most recent and relevant documents for improvement analysis. Document their scope, conclusions, and proposed solutions."
    • Focus: Understanding existing analysis and planning work
  2. Pattern Analysis Agent:
    • Task: "Analyze the architectural patterns, technical decisions, and implementation approaches documented in exploration and planning files. Identify recurring themes, technology choices, design patterns, and architectural decisions. Document the current state of system understanding."
    • Focus: Extracting patterns and approaches from existing analysis
  3. Gap Identification Agent:
    • Task: "Compare exploration findings with implementation plans to identify inconsistencies, missing elements, or areas where exploration didn't fully inform planning. Look for gaps in security analysis, performance considerations, scalability planning, or maintainability factors."
    • Focus: Finding disconnects between exploration and planning

Phase 2: Technical Improvement Analysis

Analyze technical aspects for optimization opportunities:

  1. Architecture Improvement Agent:
    • Task: "Review documented architectural decisions and patterns. Use mcp__context7__resolve-library-id and mcp__context7__get-library-docs to get current best practices for Rails 8, modern Ruby patterns, and identified frameworks. Compare current approaches against latest documentation and industry best practices. Identify architectural anti-patterns, coupling issues, or scalability concerns."
    • Focus: Architecture optimization and modern pattern adoption
  2. Performance Analysis Agent:
    • Task: "Examine planned database designs, query patterns, caching strategies, and background job implementations. Identify potential N+1 queries, missing indexes, inefficient algorithms, or suboptimal caching approaches. Consider Rails 8 performance improvements and modern database optimization techniques."
    • Focus: Performance optimization opportunities
  3. Security Enhancement Agent:
    • Task: "Review authentication, authorization, and data security approaches in the documented plans. Check against OWASP guidelines, Rails security best practices, and modern security patterns. Use mcp__context7 to get current Devise, Pundit, and security library documentation. Identify potential vulnerabilities or security improvements."
    • Focus: Security posture improvements

Phase 3: Implementation Quality Analysis

Evaluate implementation approaches for quality improvements:

  1. Code Quality Agent:
    • Task: "Analyze planned code organization, service object patterns, component design, and testing strategies. Identify opportunities for better separation of concerns, improved naming conventions, enhanced error handling, or more robust testing approaches. Consider Rails 8 conventions and modern Ruby patterns."
    • Focus: Code quality and maintainability improvements
  2. Testing Strategy Agent:
    • Task: "Review planned testing approaches including unit tests, integration tests, and system tests. Identify testing gaps, missing edge cases, inadequate coverage areas, or opportunities for better test organization. Use mcp__context7 to get current RSpec and testing best practices."
    • Focus: Testing coverage and strategy improvements
  3. User Experience Agent:
    • Task: "Examine planned user interfaces, component designs, and user workflows. Identify opportunities for better accessibility, improved user experience, more consistent design patterns, or enhanced usability. Consider Hotwire best practices and modern UX patterns."
    • Focus: User experience and interface improvements

Phase 4: Alternative Solution Research

Research alternative approaches and technologies:

  1. Technology Alternatives Agent:
    • Task: "Research alternative technologies, libraries, or approaches that could provide better solutions than those documented in the plans. Use mcp__context7 to investigate modern alternatives to planned dependencies. Consider emerging patterns in Rails ecosystem, better performing libraries, or more maintainable solutions."
    • Focus: Technology choice optimization
  2. Implementation Strategy Agent:
    • Task: "Analyze planned implementation sequences and dependencies. Identify opportunities for better task organization, parallel execution, reduced complexity, or improved rollback strategies. Consider alternative approaches that might be more efficient or lower risk."
    • Focus: Implementation approach optimization

Phase 5: Improvement Report Generation

Generate comprehensive improvement recommendations:

Generate a detailed improvement analysis document at .claude/improvement-analysis-$(date +%Y%m%d-%H%M).md with the following structure:

# Improvement Analysis Report: ${1}

*Generated on: [timestamp]*
*Focus Area: ${1}*
*Source Documents: [List of analyzed exploration and planning documents]*

## Executive Summary
### Key Findings
- [Major improvement opportunities identified]
### Impact Assessment
- [Potential benefits and risk reductions]
### Priority Recommendations
- [Top 3-5 most impactful improvements]
### Implementation Effort
- [High-level effort estimation for improvements]

## Document Analysis Summary
### Exploration Reports Analyzed
- [List of exploration documents with key findings]
### Implementation Plans Reviewed
- [List of planning documents with proposed approaches]
### Coverage Assessment
- [Areas well-covered vs. areas needing more analysis]

## Improvement Categories

### Architecture & Design Improvements
#### Current Approach
- [Documented architectural decisions and patterns]
#### Identified Issues
- [Architectural problems or anti-patterns found]
#### Suggested Improvements
- [Specific architectural enhancements with reasoning]
#### Expected Benefits
- [Improved maintainability, scalability, flexibility]
#### Implementation Complexity
- [Effort level and risk assessment]

### Performance Optimization Opportunities
#### Current Performance Strategy
- [Documented performance approaches]
#### Performance Gaps
- [Missing optimizations or inefficient patterns]
#### Recommended Optimizations
- [Specific performance improvements with metrics]
#### Expected Impact
- [Performance gains and resource savings]
#### Implementation Priority
- [High/medium/low based on impact vs. effort]

### Security Enhancement Recommendations
#### Current Security Posture
- [Documented security measures and approaches]
#### Security Gaps
- [Missing security considerations or vulnerabilities]
#### Security Improvements
- [Specific security enhancements with OWASP alignment]
#### Risk Mitigation
- [Reduced attack vectors and improved compliance]
#### Implementation Requirements
- [Security testing and validation needs]

### Code Quality & Maintainability
#### Current Code Organization
- [Documented code structure and patterns]
#### Quality Issues
- [Code smells, violations of SOLID principles, etc.]
#### Quality Improvements
- [Refactoring opportunities and pattern improvements]
#### Maintainability Benefits
- [Easier debugging, testing, and feature development]
#### Technical Debt Reduction
- [Areas where debt can be reduced]

### Testing Strategy Enhancements
#### Current Testing Approach
- [Documented testing plans and coverage]
#### Testing Gaps
- [Missing test scenarios or inadequate coverage]
#### Testing Improvements
- [Enhanced test strategies and additional scenarios]
#### Quality Assurance Benefits
- [Reduced bugs, better regression protection]
#### Testing Infrastructure
- [Required testing tools or framework improvements]

### User Experience Optimizations
#### Current UX Strategy
- [Documented user interface and experience plans]
#### UX Issues
- [Usability problems or accessibility gaps]
#### UX Improvements
- [Enhanced user workflows and interface improvements]
#### User Benefits
- [Improved usability, accessibility, satisfaction]
#### Design Consistency
- [Better component reuse and design system adherence]

## Alternative Solutions Analysis

### Technology Alternatives
#### Current Technology Choices
- [Libraries, frameworks, and tools documented in plans]
#### Alternative Options
- [Better alternatives with pros/cons analysis]
#### Migration Considerations
- [Effort and risk of adopting alternatives]
#### Recommendation
- [Keep current vs. adopt alternative with reasoning]

### Implementation Strategy Alternatives
#### Current Implementation Approach
- [Documented implementation sequence and strategy]
#### Alternative Strategies
- [Different approaches that might be more effective]
#### Risk-Benefit Analysis
- [Comparison of strategies with risk assessment]
#### Recommended Approach
- [Best strategy with implementation guidance]

## Specific Improvement Recommendations

### High Priority Improvements
1. **[Improvement Title]**
   - **Current State**: [What exists now]
   - **Proposed Enhancement**: [Specific improvement]
   - **Reasoning**: [Why this improvement is valuable]
   - **Implementation**: [High-level implementation steps]
   - **Impact**: [Expected benefits and metrics]
   - **Effort**: [Time and resource estimation]
   - **Dependencies**: [Prerequisites or blocking factors]

2. **[Additional High Priority Items...]**

### Medium Priority Improvements
[Similar format for medium priority items]

### Low Priority Improvements
[Similar format for future consideration items]

## Implementation Roadmap

### Phase 1: Critical Improvements (Immediate)
- [High-impact, low-effort improvements]
- [Timeline: X weeks]

### Phase 2: Strategic Enhancements (Short-term)
- [Important improvements requiring moderate effort]
- [Timeline: X months]

### Phase 3: Architectural Evolution (Long-term)
- [Major architectural improvements]
- [Timeline: X quarters]

## Risk Assessment

### Implementation Risks
- [Risks associated with implementing improvements]
### Mitigation Strategies
- [How to reduce implementation risks]
### Backward Compatibility
- [Ensuring existing functionality remains intact]
### Rollback Plans
- [How to revert changes if needed]

## Quality Gates and Success Metrics

### Improvement Validation
- [How to measure improvement success]
### Testing Requirements
- [Additional testing needed for improvements]
### Performance Benchmarks
- [Metrics to track performance improvements]
### Security Validation
- [Security testing for security improvements]

## Context for Future Planning

### Lessons Learned
- [Insights from the improvement analysis process]
### Process Improvements
- [How to enhance future exploration and planning]
### Documentation Enhancements
- [Better documentation practices identified]
### Agent Coordination
- [Improved agent workflow recommendations]

## Appendix

### Best Practices References
- [Links to current documentation and best practices]
### Tool Recommendations
- [Additional tools that could improve development]
### Learning Resources
- [Documentation, tutorials, or training recommendations]

Document Storage: Save the improvement analysis to .claude/improvement-analysis-$(date +%Y%m%d-%H%M).md for reference and implementation planning.

Important Instructions:

  • Always start in plan mode - this is analysis, not implementation
  • Launch improvement agents in parallel for comprehensive coverage
  • Focus on actionable improvements with clear implementation paths
  • Prioritize by impact vs. effort to guide implementation decisions
  • Consider system-wide effects of proposed improvements
  • Validate suggestions against current best practices using Context7 MCP
  • Provide specific, measurable recommendations rather than generic advice

Context7 Usage for Validation:

  1. Research current best practices for identified technologies and patterns
  2. Compare documented approaches against official recommendations
  3. Identify outdated patterns that should be modernized
  4. Suggest current alternatives for deprecated or suboptimal approaches
  5. Validate security recommendations against current security guidelines

Begin Phase 1 by launching the document analysis agents concurrently to examine existing exploration reports and implementation plans.

Analysis Criteria

The improvement analysis evaluates:

Architecture & Design

  • Service decomposition appropriateness
  • Database design efficiency
  • Component coupling and cohesion
  • Scalability considerations
  • SOLID principles adherence

Performance

  • Query optimization opportunities
  • Caching strategies
  • Background job efficiency
  • Memory usage patterns
  • Response time improvements

Security

  • Authentication/authorization gaps
  • Data validation completeness
  • OWASP compliance
  • Sensitive data handling
  • API security measures

Maintainability

  • Code organization clarity
  • Testing coverage adequacy
  • Documentation completeness
  • Error handling robustness
  • Debugging capabilities

Technology Choices

  • Framework/library suitability
  • Tool selection rationale
  • Integration complexity
  • Long-term maintenance burden
  • Community support availability

Output Format

For each improvement suggestion:

  • Area: The specific domain being improved
  • Current Approach: Summary of existing/planned solution
  • Suggested Improvement: Detailed alternative or enhancement
  • Reasoning: Why this improvement is beneficial
  • Impact: Expected benefits and trade-offs
  • Implementation: High-level steps to apply the improvement

Examples

Architecture Improvement

Area: Service Layer Organization Current Approach: Single large service handling multiple responsibilities Suggested Improvement: Split into focused single-responsibility services Reasoning: Better separation of concerns, easier testing, improved maintainability Impact: Reduced complexity, enhanced testability, clearer interfaces Implementation: Extract distinct operations into separate service classes

Performance Improvement

Area: Database Queries Current Approach: N+1 query pattern in data retrieval Suggested Improvement: Implement eager loading with includes/joins Reasoning: Reduces database round trips, improves response times Impact: 50-80% reduction in query count, faster page loads Implementation: Add appropriate includes() to ActiveRecord queries

Security Improvement

Area: Input Validation Current Approach: Basic ActiveRecord validations only Suggested Improvement: Add controller-level parameter validation Reasoning: Defense in depth, early rejection of invalid data Impact: Enhanced security posture, better error messages Implementation: Use strong parameters with custom validation methods

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.