تخطَّ إلى المحتوى
أمرمستورد

generate-linear-worklog

Generate a technical work log comment for a Linear issue from recent git commits

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

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

التنزيل

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

نزّل ملف ZIP

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

التثبيت

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

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

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

    mkdir -p .claude/commands && unzip ~/Downloads/generate-linear-worklog.zip -d .claude/commands

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

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

    mkdir -p ~/.claude/commands && unzip ~/Downloads/generate-linear-worklog.zip -d ~/.claude/commands

التعليمات

Generate Linear Work Log

You are tasked with generating a technical work log comment for a Linear issue based on recent git commits.

Instructions

  1. Check Linear MCP Availability

    • Verify that Linear MCP tools are available (mcp__linear__* functions)
    • If Linear MCP is not installed, inform the user to install it and provide installation instructions
    • Do not proceed with work log generation if Linear MCP is unavailable
  2. Check for Existing Work Log

    • Use Linear MCP to get existing comments on the issue
    • Look for comments with today's date in the format "## Work Completed [TODAY'S DATE]"
    • If found, note the existing content to append/update rather than duplicate
  3. Extract Git Information

    • Get the current branch name
    • Get recent commits on the current branch (last 10 commits)
    • Get commits that are on the current branch but not on main branch
    • For each relevant commit, get detailed information including file changes and line counts
    • Focus on commits since the last work log update (if any exists)
  4. Generate Work Log Content

    • Use dry, technical language without adjectives or emojis
    • Focus on factual implementation details
    • Structure the log with date, branch, and commit information
    • Include quantitative metrics (file counts, line counts) where relevant
    • Avoid subjective commentary or promotional language
  5. Handle Existing Work Log

    • If no work log exists for today: Create new comment
    • If work log exists for today: Replace the existing comment with updated content including all today's work
    • Ensure chronological order of commits
    • Include both previous and new work completed today
  6. Format Structure

    ## Work Completed [TODAY'S DATE]
    
    ### Branch: [current-branch-name]
    
    **Commit [short-hash]: [Commit Title]**
    - [Technical detail 1]
    - [Technical detail 2]
    - [Line count] lines of code across [file count] files
    
    [Additional commits in chronological order]
    
    ### [Status Section]
    - [Current infrastructure/testing status]
    - [What is now available/ready]
    
  7. Post to Linear

    • Use the Linear MCP integration to create or update the comment
    • Post the formatted work log to the specified Linear issue
    • If updating, replace the entire existing work log comment
    • Confirm successful posting

Git Commands to Use

  • git branch --show-current - Get current branch
  • git log --oneline -10 - Get recent commits
  • git log main..HEAD --oneline - Get branch-specific commits
  • git show --stat [commit-hash] - Get detailed commit info
  • git log --since="[today's date]" --pretty=format:"%h %ad %s" --date=short - Get today's commits

Content Guidelines

  • Include commit hashes and descriptive titles
  • Provide specific technical implementations
  • Include file counts and line counts for significant changes
  • Maintain consistent formatting
  • Focus on technical accomplishments
  • Include current status summary
  • No emojis or special characters

Error Handling

  • Check if Linear MCP client is available before proceeding
  • If Linear MCP is not available, display installation instructions:
    Linear MCP client is not installed. To install it:
    
    1. Install the Linear MCP server:
       npm install -g @modelcontextprotocol/server-linear
    
    2. Add Linear MCP to your Claude configuration:
       Add the following to your Claude MCP settings:
       {
         "mcpServers": {
           "linear": {
             "command": "npx",
             "args": ["@modelcontextprotocol/server-linear"],
             "env": {
               "LINEAR_API_KEY": "your_linear_api_key_here"
             }
           }
         }
       }
    
    3. Restart Claude Code
    4. Get your Linear API key from: https://linear.app/settings/api
    
  • Validate that the Linear ticket ID exists
  • Handle cases where no recent commits are found
  • Provide clear error messages for git operation failures
  • Confirm successful comment posting

Example Usage

When invoked with /generate-linear-worklog BLA2-2, the command should:

  1. Analyze git commits on the current branch
  2. Generate a structured work log
  3. Post the comment to Linear issue BLA2-2
  4. Confirm successful posting

الملفات

  • LICENSE1 ك.ب
  • generate-linear-worklog.md4.2 ك.ب

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

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

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

أبلغ

عناصر مشابهة

  • أمرمستورد

    architecture-review

    Comprehensive architecture review with design patterns analysis and improvement recommendations

    MITالملفات: 1

  • أمرمستورد

    architecture-scenario-explorer

    Explore architectural decisions through systematic scenario analysis with trade-off evaluation and future-proofing assessment.

    MITالملفات: 1

  • أمرمستورد

    block-no-verify

    Set up PreToolUse hook to block --no-verify and other git bypass flags in Claude Code projects

    MITالملفات: 1

  • أمرمستورد

    c4-architecture

    Generate comprehensive C4 architecture documentation (Context, Container, Component, Code) for a codebase using bottom-up analysis and four coordinated C4 agents.

    MITالملفات: 1

  • أمرمستورد

    clean_gone

    Cleans up all git branches marked as [gone] (branches that have been deleted on the remote but still exist locally), including removing associated worktrees.

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

  • أمرمستورد

    clean-branches

    Clean up merged and stale git branches

    MITالملفات: 1