Skip to content

feat(quick-dev): add planning artifact awareness for context-informed specs#2185

Merged
alexeyv merged 2 commits intomainfrom
fix/quick-dev-context-awareness
Apr 3, 2026
Merged

feat(quick-dev): add planning artifact awareness for context-informed specs#2185
alexeyv merged 2 commits intomainfrom
fix/quick-dev-context-awareness

Conversation

@alexeyv
Copy link
Copy Markdown
Collaborator

@alexeyv alexeyv commented Apr 2, 2026

Summary

  • Teach quick-dev step-01 what BMAD phase 1-3 planning artifacts are (PRD, architecture, UX, epics, product brief) so it can selectively load relevant docs instead of guessing from code alone
  • Remove hard cap of 3 on spec context: field, replacing with judgment guidance
  • Instruct step-03 to explicitly pass context files to the implementation sub-agent

Test plan

  • npm run quality passes (all linters, tests, skill validation)
  • Run quick-dev on a project with planning artifacts — verify step-01 identifies and selectively loads relevant docs
  • Create a spec with context files listed — verify step-03 instructs the sub-agent to load them

… specs

Teach quick-dev step-01 what BMAD phase 1-3 planning artifacts are (PRD,
architecture, UX, epics, product brief) so it can selectively load relevant
docs instead of guessing from code alone. Remove hard cap of 3 on spec
context field, replacing with judgment guidance. Instruct step-03 to
explicitly pass context files to the implementation sub-agent.
@augmentcode
Copy link
Copy Markdown

augmentcode bot commented Apr 2, 2026

🤖 Augment PR Summary

Summary: Improves the bmad-quick-dev workflow’s ability to use BMAD planning artifacts and explicit spec context to drive more accurate implementations.

Changes:

  • Step 01 now recognizes common phase 1–3 planning artifacts (PRD/architecture/UX/epics/brief) and selectively loads relevant docs.
  • Spec template guidance removes the “max 3” context cap and reframes context: as a short list of key standards/docs.
  • Step 03 now instructs loading context: files before implementation and passing them into any implementation sub-agent.

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestion posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 2, 2026

📝 Walkthrough

Walkthrough

Updated BMAD quick-dev workflow documentation to clarify context-loading behavior across multiple steps. Modified spec-template guidance for the context field, enhanced step-01 to describe scanning for planning artifacts, and added step-03 requirements to load and propagate context files to sub-agents.

Changes

Cohort / File(s) Summary
Quick-Dev Workflow Context & Template Updates
src/bmm-skills/4-implementation/bmad-quick-dev/spec-template.md, step-01-clarify-and-route.md, step-03-implement.md
Updated context field guidance in spec template; enhanced step-01 "Load context" with patterns for BMAD planning artifacts (PRD, Architecture, UX/Design, Epics, Product Brief); added step-03 pre-implementation requirement to load and pass referenced context files to sub-agents.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related issues

  • Issue #2167: Adds related context-file loading and template guidance similar to the AC-coverage checks and template hints in that issue.

Possibly related PRs

  • PR #2105: Modifies step-01 artifact-scanning and routing behavior for context/spec discovery.
  • PR #2121: Edits spec-template.md and step-01-clarify-and-route.md to change spec frontmatter and workflow routing details.
  • PR #2007: Modifies workflow docs to require loading referenced "context" documents and passing them to subagents.

Suggested reviewers

  • bmadcode
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: adding planning artifact awareness to the quick-dev skill for context-informed specifications.
Description check ✅ Passed The description is directly related to the changeset, detailing three key modifications (step-01 artifact recognition, context field guidance, step-03 sub-agent instruction) and providing a test plan.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/quick-dev-context-awareness

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/bmm-skills/4-implementation/bmad-quick-dev/step-01-clarify-and-route.md (1)

45-51: Clarify the relationship between loaded artifacts and the spec's context: field.

Step-01 loads planning artifacts "to form your understanding of the intent" (line 44) and instructs selective loading (line 51), but doesn't explicitly state whether/how these loaded artifacts should populate the context: field in the spec created later in step-02. The spec-template guidance (line 6 of spec-template.md) expects context: to list "project-wide standards/docs the implementation agent should load."

The current flow appears to be: step-01 loads for clarification → step-02 decides what goes into the spec's context: field → step-03 loads those context files again. If this judgment-based hand-off is intentional, consider a brief clarifying note to reinforce that step-01 loading informs but doesn't dictate the spec's context: field.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/bmm-skills/4-implementation/bmad-quick-dev/step-01-clarify-and-route.md`
around lines 45 - 51, The documentation is unclear about whether artifacts
loaded in step-01 ("step-01-clarify-and-route.md") should populate the spec's
context: field used in step-02 and later loaded again in step-03; add a short
clarifying sentence in step-01 (near "load them selectively" / the paragraph
referencing "form your understanding of the intent") stating that artifacts
loaded in step-01 are for internal clarification only and do not automatically
become entries in the spec's context: field — instead, step-02 (the spec
creation step) must explicitly decide which project-wide standards/docs to list
under context: as described in spec-template.md; reference "step-01", "step-02",
"spec-template.md", and the spec field "context:" so readers know the intended
hand-off and that step-03 will re-load only those files explicitly included in
the spec.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/bmm-skills/4-implementation/bmad-quick-dev/step-03-implement.md`:
- Around line 27-28: Clarify that when `{spec_file}` frontmatter contains a
non-empty `context:` list you must load those context files both for sub-agent
handoffs and for direct implementation; specifically, when no sub-agents are
available, include the loaded context content in the direct implementation
prompt/working memory (i.e., prepend or attach the context snippets to the
implementation instruction given to the agent handling `implement`), and
reference the `context:` entries by filename/identifier and their contents so
the implementing code path (direct implement function/step) has access to the
same contextual information as the sub-agent path.

---

Nitpick comments:
In `@src/bmm-skills/4-implementation/bmad-quick-dev/step-01-clarify-and-route.md`:
- Around line 45-51: The documentation is unclear about whether artifacts loaded
in step-01 ("step-01-clarify-and-route.md") should populate the spec's context:
field used in step-02 and later loaded again in step-03; add a short clarifying
sentence in step-01 (near "load them selectively" / the paragraph referencing
"form your understanding of the intent") stating that artifacts loaded in
step-01 are for internal clarification only and do not automatically become
entries in the spec's context: field — instead, step-02 (the spec creation step)
must explicitly decide which project-wide standards/docs to list under context:
as described in spec-template.md; reference "step-01", "step-02",
"spec-template.md", and the spec field "context:" so readers know the intended
hand-off and that step-03 will re-load only those files explicitly included in
the spec.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9249ff96-3bad-4aed-a46d-a5e30e166796

📥 Commits

Reviewing files that changed from the base of the PR and between 48c2324 and 6039e75.

📒 Files selected for processing (3)
  • src/bmm-skills/4-implementation/bmad-quick-dev/spec-template.md
  • src/bmm-skills/4-implementation/bmad-quick-dev/step-01-clarify-and-route.md
  • src/bmm-skills/4-implementation/bmad-quick-dev/step-03-implement.md

@alexeyv alexeyv merged commit e9a6bfa into main Apr 3, 2026
5 checks passed
@alexeyv
Copy link
Copy Markdown
Collaborator Author

alexeyv commented Apr 3, 2026

Triage Summary

2 findings — FIX: 1, DISMISS: 1

# Severity Title Decision
F1 MEDIUM Context path resolution ambiguity in context: list FIX — #2200
F2 MINOR Direct implementation context handling unclear DISMISS — duplicate of F1, already resolved by same fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant