L

Log Auto

A command template for orchestration workflows. Streamlines development with pre-configured patterns and best practices.

CommandClipticsorchestrationv1.0.0MIT
0 views0 copies

Log Auto

Automatically log completed work from orchestrated tasks to external project management tools like Linear, Jira, GitHub Issues, or Obsidian.

When to Use This Command

Run this command when...

  • You have finished a task and want to automatically push completion data to your project management tool
  • You need to synchronize work done in Claude with external tracking systems without manual copy-paste
  • A sprint is ending and you want to batch-log multiple completed tasks to your team tracking board
  • You want to maintain an audit trail of what was built, when, and how long it took
  • You need standup-ready work logs generated from actual task completion data

Quick Start

# .claude/commands/log-auto.md --- name: Log Auto description: Auto-log work to external project management tools command: true --- Log work for: $ARGUMENTS Detect connected PM tools and push task completion data including: - Task description and status - Files modified and lines changed - Time spent and completion timestamp - Related commits and branches
# Invoke the command claude "/log-auto TASK-017 to Linear" # Expected output # > Detecting connected tools... Found: Linear (API key configured) # > Gathering task data for TASK-017... # > Status: completed # > Files: 4 modified, 1 created # > Commits: 3 (abc1234, def5678, ghi9012) # > Duration: ~45 minutes # > Logging to Linear issue FE-234... # > Successfully updated Linear with completion data

Core Concepts

ConceptDescription
Tool DetectionAutomatically discovers configured PM tools via API keys and config files
Task Data CollectionGathers completion metrics from git history, file diffs, and orchestration state
Format AdaptationTransforms log data into the format expected by each target tool
Bidirectional LinkingCreates cross-references between Claude tasks and external issue IDs
Batch LoggingSupports logging multiple tasks in a single invocation for sprint boundaries
Log Auto Data Flow
===================

  Task Completion
       |
       v
  +------------+     +-------------+     +-----------+
  | Collect    | --> | Transform   | --> | Push      |
  | Metrics    |     | Format      |     | To Tool   |
  +------------+     +-------------+     +-----------+
       |                   |                   |
  Git commits         Tool-specific       Linear API
  File changes        formatting          Jira API
  Time tracking       Field mapping       GitHub API
  Status data         Template apply      Obsidian md

Configuration

ParameterDescriptionDefaultExampleRequired
$ARGUMENTSTask ID and optional target toolcurrent task"TASK-017 to Linear"No
target_toolProject management tool to log toauto-detect"linear", "jira", "github"No
include_diffAttach code diff summary to the log entryfalsetrueNo
log_formatTemplate for the log entry contenttool default"standup", "detailed"No
batchLog all completed tasks since last syncfalsetrueNo

Best Practices

  1. Configure API keys in environment -- Set LINEAR_API_KEY, JIRA_TOKEN, or GITHUB_TOKEN in your shell environment or .env file so auto-detection works seamlessly.

  2. Use task IDs consistently -- Reference the same task identifiers across Claude orchestration and your PM tool to enable bidirectional linking and accurate status sync.

  3. Log at natural boundaries -- Invoke after completing a feature, fixing a bug, or finishing a sprint rather than after every small change to keep logs meaningful.

  4. Review before batch logging -- When using batch: true, preview the collected data first with --dry-run to ensure no draft or incomplete tasks get pushed to your PM tool.

  5. Customize log templates per team -- Create team-specific log formats that include the fields your standup or retrospective process requires.

Common Issues

API authentication failures: Token expiration or incorrect scopes cause push failures. Verify your API key has write permissions and has not expired. For Linear, ensure the key has "Issues: Write" scope.

Task ID mismatch: If Claude internal task ID does not map to an external issue, the log cannot be linked. Use explicit mapping: "/log-auto TASK-017 as LINEAR-FE-234" to create the association.

Duplicate log entries: Running log-auto multiple times for the same task creates duplicate entries in some tools. Check for existing entries before logging, or use --update mode to upsert instead of insert.

Community

Reviews

Write a review

No reviews yet. Be the first to review this template!

Similar Templates