linear-continue-debugging

linear-continue-debugging is a command for Claude Code from greyhaven-ai/sygaldry. It costs 0 tokens per session (795 once invoked), scanned A, original, MIT.

A structured debugging command for continuing work on a Linear issue, where Linear is a tool for tracking software tasks and bugs.

In plain words
What is it for?
Use it to investigate bugs, create small reproductions, add diagnostic logging, and isolate failures across environments.
Why use it?
It reduces guesswork by exploring possible causes, checking library behavior, and testing each explanation with evidence.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/greyhaven-ai/sygaldry/linear-continue-debugging
Clone the repo
git clone --depth 1 https://github.com/greyhaven-ai/sygaldry

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for linear-continue-debugging

README.md
[![agentmods](https://agentmods.dev/badge/commands/greyhaven-ai/sygaldry/linear-continue-debugging.svg)](https://agentmods.dev/commands/greyhaven-ai/sygaldry/linear-continue-debugging)
Your own site
<a href="https://agentmods.dev/commands/greyhaven-ai/sygaldry/linear-continue-debugging"><img src="https://agentmods.dev/badge/commands/greyhaven-ai/sygaldry/linear-continue-debugging.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 795 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00795
Opus 5 $0.00000 $0.00398
Sonnet 5 $0.00000 $0.00159
Haiku 4.5 $0.00000 $0.00080

Measured 4d ago against content hash 615db57af5e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

linear-continue-debugging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/linear-continue-debugging.md · 92 lines

What it actually says

Continue debugging Linear issue: $ARGUMENTS

  1. Use mcp__sequential-thinking__sequentialthinking for systematic analysis:

    • Start with thought: "What are all possible causes of this bug?"
    • Generate multiple hypotheses ranked by likelihood
    • Consider edge cases and race conditions
    • Think through implementation details step-by-step
    • Question assumptions and revise thinking as needed
    • Use branch_from_thought for exploring alternative theories
  2. Leverage mcp__deepwiki for deep understanding:

    • If bug involves external library: mcp__deepwiki__ask_question(repoName="org/repo", question="How does X handle Y?")
    • Get implementation details: mcp__deepwiki__read_wiki_contents(repoName="org/repo")
    • Understand design decisions that might affect the bug
    • Check for known issues or gotchas in the library
  3. Apply scientific debugging:

    • Design specific tests for each hypothesis
    • Add strategic logging with context:
      logger.debug(f"[BUG-{issue_id}] State before: {state}, Inputs: {inputs}, Stack: {inspect.stack()[1].function}")
      
    • Use binary search to isolate problem area
    • Create minimal reproduction case
    • Test in different environments/configurations
  4. Advanced debugging techniques:

    • Use debugger with conditional breakpoints
    • Memory profiling if suspecting leaks
    • Performance profiling for timing issues
    • Network inspection for API/communication bugs
    • Database query analysis for data issues
  5. Root cause analysis:

    • Use mcp__sequential-thinking to validate findings
    • Distinguish between symptoms and root cause
    • Understand why the bug wasn't caught earlier
    • Identify related code that might have same issue
  6. Document and fix:

    • Write failing test that reproduces the bug
    • Implement minimal fix addressing root cause
    • Add defensive coding to prevent recurrence
    • Update Linear with detailed findings:
      mcp__linear__create_comment(issueId, body="""
      ## Root Cause Analysis
      - Hypothesis tested: ...
      - Root cause: ...
      - Why it happened: ...
      - Fix approach: ...
      """)
      
  7. Knowledge capture:

    • Create .claude/debugging/[bug-pattern].md with learnings
    • Update documentation if user-facing issue
    • Add code comments explaining non-obvious fixes
    • Consider if architectural change needed to prevent class of bugs

Debugging is detective work. Use all tools available - systematic thinking for hypotheses, deepwiki for understanding, and scientific method for proof.

Take a deep breath in, count 1... 2... 3... and breathe out. You are now centered. Don't hold back. Give it your all.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 92 lines · 0 tokens per session scan A 615db57af5e7

Subscribe to this mod's changes

linear-continue-debugging is a command published in the GitHub repository greyhaven-ai/sygaldry (11 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 795 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.