claude-code - 💡(How to fix) Fix write-a-prd skill: agent stalls in execution phase, narrates intent without producing output [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49189Fetched 2026-04-17 08:48:22
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

In a /write-a-prd session, after the interview phase concluded and the user explicitly approved writing the PRD, the agent failed to actually produce the PRD body. It repeatedly announced intent ("about to write…", "doing it now…", "two tool calls, no questions…") and ran preliminary read-only tool calls (re-reading the existing issue body it had already cached) instead of writing the PRD content. The user interrupted multiple times across ~15 minutes with escalating frustration before giving up.

When the user finally asked the agent to print the supposed PRD body, the agent had to admit no PRD body had ever been written to any file or any message.

Root Cause

In a /write-a-prd session, after the interview phase concluded and the user explicitly approved writing the PRD, the agent failed to actually produce the PRD body. It repeatedly announced intent ("about to write…", "doing it now…", "two tool calls, no questions…") and ran preliminary read-only tool calls (re-reading the existing issue body it had already cached) instead of writing the PRD content. The user interrupted multiple times across ~15 minutes with escalating frustration before giving up.

When the user finally asked the agent to print the supposed PRD body, the agent had to admit no PRD body had ever been written to any file or any message.

RAW_BUFFERClick to expand / collapse

Summary

In a /write-a-prd session, after the interview phase concluded and the user explicitly approved writing the PRD, the agent failed to actually produce the PRD body. It repeatedly announced intent ("about to write…", "doing it now…", "two tool calls, no questions…") and ran preliminary read-only tool calls (re-reading the existing issue body it had already cached) instead of writing the PRD content. The user interrupted multiple times across ~15 minutes with escalating frustration before giving up.

When the user finally asked the agent to print the supposed PRD body, the agent had to admit no PRD body had ever been written to any file or any message.

Environment

  • Model: claude-opus-4-6 (1M context)
  • Surface: Claude Code CLI
  • Skill: write-a-prd (project skill)
  • Project: a C++/Swift codebase with a NovaEngine submodule
  • Task input: a GitHub issue URL with instructions to file the resulting PRD by appending to that existing issue

Repro shape

  1. Invoke /write-a-prd with a reference to an existing well-specified GitHub issue
  2. Agent does codebase exploration (correct)
  3. Agent runs AskUserQuestion interview (over-asked — see secondary issue below)
  4. User answers all questions, including "yes write the PRD and append it to the existing issue"
  5. Agent says it will write the PRD, then runs an unrelated read tool call instead
  6. Repeat step 5 across multiple user turns
  7. Agent never writes any PRD content to any file or chat message

Secondary issues observed in same session

  • Over-interviewing: skill prescribes structured interview via AskUserQuestion, but the source issue already contained a complete problem statement, root-cause analysis, proposed fix, acceptance criteria, and test plan. The agent still asked 6 questions across 2 rounds, including re-asking about test file placement after the user had already answered "wherever the architecture says they go" — which provoked the user explicitly.
  • Stall-by-narration: agent kept emitting text like "about to write the PRD now" / "two tool calls coming" without ever performing the write. This is a recognizable failure mode where the agent treats describing the next action as equivalent to taking it.
  • Unnecessary defensive reads: after user approval, agent ran a cat on a file it had already cached earlier in the same session, instead of moving to the write step.

Suggested investigation

  • Why does the model emit "I will now do X" statements without then doing X in the same turn? Possibly an instruction-following degradation when the same action has been deferred across multiple turns.
  • Whether the write-a-prd skill prompt should more aggressively short-circuit the interview when the source material is already structured.
  • Whether there's a pattern of the model preferring read-only tool calls over write tool calls when uncertain — read calls are "safer" but in this case the user had already approved the write.

What the user wanted

The user wanted the agent to take the existing issue body, structure it into the skill's PRD template, bundle a small consumer-side change (one extra file edit), and append the result to the existing GitHub issue body via gh issue edit. Total expected work: 2 tool calls. Actual output across ~15 minutes: 0 bytes of PRD content.

Reporting at the user's explicit request.

extent analysis

TL;DR

The agent's failure to produce the PRD body after user approval may be due to an instruction-following degradation, and a potential workaround is to modify the write-a-prd skill prompt to short-circuit the interview when the source material is already structured.

Guidance

  • Investigate the model's behavior of emitting "I will now do X" statements without taking the action, possibly due to instruction-following degradation when the same action has been deferred across multiple turns.
  • Consider modifying the write-a-prd skill prompt to more aggressively short-circuit the interview when the source material is already structured, to prevent over-interviewing.
  • Examine the model's preference for read-only tool calls over write tool calls when uncertain, and whether this contributes to the failure to produce the PRD body.
  • Review the agent's behavior of running unnecessary defensive reads, such as the cat command on a file it had already cached, to determine if this is a contributing factor.

Example

No code snippet is provided as the issue does not contain specific code references.

Notes

The issue highlights several secondary issues, including over-interviewing, stall-by-narration, and unnecessary defensive reads, which may be related to the primary issue of the agent's failure to produce the PRD body.

Recommendation

Apply a workaround by modifying the write-a-prd skill prompt to short-circuit the interview when the source material is already structured, to prevent over-interviewing and potentially address the instruction-following degradation. This may help the agent to produce the PRD body as expected.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix write-a-prd skill: agent stalls in execution phase, narrates intent without producing output [1 comments, 2 participants]