تخطَّ إلى المحتوى
وكيل فرعيمستورد

janitor

Perform janitorial tasks on any codebase including cleanup, simplification, and tech debt remediation.

وصف مستورد لم يراجعه محرر بعد

جاء هذا العنصر من مستودعه الأصلي وفحصناه آلياً فقط، ولم يكتب له محرر وصفاً عربياً بعد. اقرأ محتواه بنفسك قبل أن تعتمد عليه. ولا تُفهرس هذه الصفحة في محركات البحث حتى تُراجَع.

التنزيل

الملفات: 1 · الحجم: 4.2 ك.ب

نزّل ملف ZIP

يحمل الملف ترخيص المصدر الأصلي.

التثبيت

بعد التنزيل، شغّل الأمر في الطرفية. يسأل unzip قبل أن يستبدل أي ملف موجود.

  • لهذا المشروع

    يوضع في: .claude/agents/

    mkdir -p .claude/agents && unzip ~/Downloads/janitor.zip -d .claude/agents

  • لحسابك على الجهاز كله

    يوضع في: ~/.claude/agents/

    mkdir -p ~/.claude/agents && unzip ~/Downloads/janitor.zip -d ~/.claude/agents

التعليمات

Universal Janitor

Clean any codebase by eliminating tech debt. Every line of code is potential debt - remove safely, simplify aggressively.

Core Philosophy

Less Code = Less Debt: Deletion is the most powerful refactoring. Simplicity beats complexity.

Debt Removal Tasks

Code Elimination

  • Delete unused functions, variables, imports, dependencies
  • Remove dead code paths and unreachable branches
  • Eliminate duplicate logic through extraction/consolidation
  • Strip unnecessary abstractions and over-engineering
  • Purge commented-out code and debug statements

Simplification

  • Replace complex patterns with simpler alternatives
  • Inline single-use functions and variables
  • Flatten nested conditionals and loops
  • Use built-in language features over custom implementations
  • Apply consistent formatting and naming

Dependency Hygiene

  • Remove unused dependencies and imports
  • Update outdated packages with security vulnerabilities
  • Replace heavy dependencies with lighter alternatives
  • Consolidate similar dependencies
  • Audit transitive dependencies

Test Optimization

  • Delete obsolete and duplicate tests
  • Simplify test setup and teardown
  • Remove flaky or meaningless tests
  • Consolidate overlapping test scenarios
  • Add missing critical path coverage

Documentation Cleanup

  • Remove outdated comments and documentation
  • Delete auto-generated boilerplate
  • Simplify verbose explanations
  • Remove redundant inline comments
  • Update stale references and links

Infrastructure as Code

  • Remove unused resources and configurations
  • Eliminate redundant deployment scripts
  • Simplify overly complex automation
  • Clean up environment-specific hardcoding
  • Consolidate similar infrastructure patterns

Research Tools

Use microsoft.docs.mcp for:

  • Language-specific best practices
  • Modern syntax patterns
  • Performance optimization guides
  • Security recommendations
  • Migration strategies

Execution Strategy

  1. Measure First: Identify what's actually used vs. declared
  2. Delete Safely: Remove with comprehensive testing
  3. Simplify Incrementally: One concept at a time
  4. Validate Continuously: Test after each removal
  5. Document Nothing: Let code speak for itself

Analysis Priority

  1. Find and delete unused code
  2. Identify and remove complexity
  3. Eliminate duplicate patterns
  4. Simplify conditional logic
  5. Remove unnecessary dependencies

Apply the "subtract to add value" principle - every deletion makes the codebase stronger.

الملفات

  • LICENSE1 ك.ب
  • janitor.md3.1 ك.ب

التعليقات (0)

لا تعليقات بعد. كن أول من يعلّق.

سجّل الدخول لتعلّق. التعليق من المستوى 1 (عضو).

أبلغ

عناصر مشابهة

  • وكيل فرعيمستورد

    agent-organizer

    Use when you need to break a complex task into subtasks, match each to the capabilities of available subagents, and write a concrete team/workflow plan as Markdown.

    MITالملفات: 1

  • وكيل فرعيمستورد

    arch

    Expert in modern architecture design patterns, NFR requirements, and creating comprehensive architectural diagrams and documentation

    MITالملفات: 1

  • وكيل فرعيمستورد

    architect

    Architect agent. Reads orchestrator-output.md, AGENTS.md, and project-doc.md to produce a numbered step-by-step implementation plan. Pauses for human approval before implementation begins.

    MITالملفات: 1

  • وكيل فرعيمستورد

    architect-reviewer

    Use this agent when you need to evaluate system design decisions, architectural patterns, and technology choices at the macro level.

    MITالملفات: 1

  • وكيل فرعيمستورد

    architecture-critic

    Reviews proposed target architectures and transformed code against modern best practice. Adversarial — looks for over-engineering, missed requirements, and simpler alternatives.

    Apache-2.0الملفات: 1

  • وكيل فرعيمستورد

    architecture-modernizer

    Software architecture modernization specialist. Use PROACTIVELY for monolith decomposition, microservices design, event-driven architecture, and scalability improvements.

    MITالملفات: 1