Skip to content

docs: add tutorial guide for the Bug Fix workflow#77

Merged
jwm4 merged 6 commits intoambient-code:mainfrom
jwm4:docs/bugfix-tutorial
Mar 19, 2026
Merged

docs: add tutorial guide for the Bug Fix workflow#77
jwm4 merged 6 commits intoambient-code:mainfrom
jwm4:docs/bugfix-tutorial

Conversation

@jwm4
Copy link
Copy Markdown
Contributor

@jwm4 jwm4 commented Mar 19, 2026

Summary

  • Adds a user-facing tutorial guide at docs/bugfix-tutorial.md for the Bug Fix workflow
  • Covers getting started (login, model selection, adding repo context), all three ways to start a session (issue link, speedrun, or free-form description), each workflow phase and its purpose, speedrun mode and why it is not the default, and a note on automation
  • Written for end users of the platform, not workflow developers; does not expose internal implementation details (controller, skill wrappers, etc.)

Test plan

Made with Cursor

User-facing tutorial covering how to start a bugfix session,
choose a model, walk through each workflow phase, and use
speedrun mode. Written for end users, not workflow developers.

Made-with: Cursor
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 19, 2026

Walkthrough

Adds a new docs/bugfix-tutorial.md tutorial for the Ambient Code Platform Bug Fix workflow and updates workflows/bugfix/README.md to introduce an initial /assess phase (renumbering subsequent phases) and new artifacts (artifacts/bugfix/reports/assessment.md, artifacts/bugfix/review/verdict.md).

Changes

Cohort / File(s) Summary
Bug Fix Workflow Tutorial
docs/bugfix-tutorial.md
New end-to-end tutorial covering session initiation (issue link, /assess prefix, /speedrun, free-form description), phased lifecycle and phase commands, Speedrun semantics and interrupt/resume behavior, artifact locations under artifacts/bugfix/..., viewing reports during sessions, HTTP POST automation example (bearer token, initialPrompt, activeWorkflow, repos, llmSettings.model, timeout), curl examples, and a GitHub Action sample.
Bug Fix Workflow README update
workflows/bugfix/README.md
Introduces an initial Assess (/assess) phase and artifacts/bugfix/reports/assessment.md; shifts subsequent phase numbering (Diagnose → Phase 3, Fix → 4, Test → 5, Review → 6, Document → 7, PR → 8); changes Review output to artifacts/bugfix/review/verdict.md; updates quick-start to begin with /assess.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the primary change: adding a tutorial guide for the Bug Fix workflow, which is the main purpose of the PR.
Description check ✅ Passed The description clearly relates to the changeset, detailing what the tutorial covers and how it serves end users, with a defined test plan for verification.
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
📝 Coding Plan
  • Generate coding plan for human review comments

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.

jwm4 added 3 commits March 19, 2026 10:47
Cover GitHub Action, acpctl CLI, MCP server, and SDKs with
examples specific to the Bug Fix workflow.

Made-with: Cursor
Lead with the raw curl example showing the actual backend API call,
explain each field (especially activeWorkflow which loads the workflow),
keep GitHub Action as a convenience wrapper, and demote unverified
tools to brief pointers.

Made-with: Cursor
@jwm4 jwm4 marked this pull request as ready for review March 19, 2026 19:01
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: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/bugfix-tutorial.md`:
- Around line 78-85: The "Workflow Phases" section currently describes 8 phases
but the startup greeting shows 6; either update this section to match the
canonical 6-phase model shown at startup (rename and reorder phases to match the
startup prompt) or explicitly call out that the Review/PR steps are "extended
phases beyond the 6-phase startup experience" by adding a short clarifying note
under the header and labeling the extra steps (e.g., "Review/PR — extended
phase"). Ensure the wording references the startup prompt terminology so readers
see the alignment.
- Around line 161-175: The Review section (header "Review" with the "Command:
/review" snippet) is missing the artifact output path; add a short "Outputs:" or
"Artifacts:" line mirroring other phase sections that specifies the Review
report file path (e.g., "review-report.md" or the project's canonical review
artifact name) so readers can find the generated Review report; keep wording and
formatting consistent with other phases' "Outputs" lines and place it directly
under the existing Review description or verdict list.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: f153eeac-7738-4bf9-b637-464d8a647840

📥 Commits

Reviewing files that changed from the base of the PR and between 2e5a054 and 9091c48.

📒 Files selected for processing (1)
  • docs/bugfix-tutorial.md

- Note that 8 phases include Review and PR beyond the 6-phase greeting
- Add Review artifact path (artifacts/bugfix/review/verdict.md)
- Explain how to interrupt speedrun and what causes it to stop
- Mark Automation section as for advanced users

Made-with: Cursor
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: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/bugfix-tutorial.md`:
- Line 186: Remove the incorrect artifact reference
"artifacts/bugfix/review/verdict.md" from the tutorial's Report line in
docs/bugfix-tutorial.md; ensure the Review phase text matches the workflow spec
by deleting that Report entry so the tutorial aligns with the workflow/bugfix
README statement "Review findings reported inline to the user (not a file)".
- Around line 84-89: The tutorial's phase count and Review artifact claim are
inconsistent with the canonical workflow docs: update bugfix-tutorial.md to
match the actual workflow by including the Assess phase (so both documents
describe eight phases consistently) and remove or correct the incorrect Review
artifact reference to "artifacts/bugfix/review/verdict.md"; instead state the
Review output is reported inline per the bugfix README and CLAUDE.md. Locate the
phase list and the Review description in bugfix-tutorial.md, add Assess to the
numbered phases where missing, and change the artifact path line to reflect
inline reporting (or point to the correct artifact location if README/CLAUDE.md
indicate a different file).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 1441d68d-0cb6-42b2-8c59-a735669e4a66

📥 Commits

Reviewing files that changed from the base of the PR and between 9091c48 and 9ae2107.

📒 Files selected for processing (1)
  • docs/bugfix-tutorial.md

- Add Phase 1: Assess to bugfix README (was missing)
- Renumber all phases (now 1-8)
- Fix Review output path in README (now artifacts/bugfix/review/verdict.md)
- Update Quick Start to reference /assess instead of /reproduce
- Minor copy fixes in tutorial

Made-with: Cursor
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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
workflows/bugfix/README.md (3)

23-37: ⚠️ Potential issue | 🟠 Major

Directory structure is missing the new Assess command/skill entries.

The tree still omits .claude/commands/assess.md and .claude/skills/assess/SKILL.md, which now makes the structure section inaccurate after introducing Phase 1 Assess.

Suggested doc patch
 │   ├── commands/             # Slash commands (thin wrappers → skills)
+│   │   ├── assess.md
 │   │   ├── reproduce.md
 │   │   ├── diagnose.md
@@
 │   └── skills/               # Detailed process definitions
+│       ├── assess/SKILL.md
 │       ├── reproduce/SKILL.md
 │       ├── diagnose/SKILL.md

As per coding guidelines, "Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity."

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

In `@workflows/bugfix/README.md` around lines 23 - 37, The README tree is missing
the newly added Assess phase entries; update the directory structure section to
include .claude/commands/assess.md under the commands list and
.claude/skills/assess/SKILL.md under the skills list so the document matches the
Phase 1 Assess changes—locate the commands block that lists reproduce.md..pr.md
and insert assess.md in the appropriate order, and similarly add assess/SKILL.md
to the skills block that lists reproduce/SKILL.md..pr/SKILL.md.

180-196: ⚠️ Potential issue | 🟠 Major

Quick Start and Scenario 1 conflict on the first phase.

Line 180 says to start with /assess, but Scenario 1 still states “Starts with /reproduce.” This creates contradictory onboarding guidance in the same document.

Suggested doc patch
-Workflow: Starts with /reproduce to confirm the bug
+Workflow: Starts with /assess to analyze the report and plan reproduction
+→ /reproduce to confirm the bug
 → /diagnose to find root cause

As per coding guidelines, "Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity."

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

In `@workflows/bugfix/README.md` around lines 180 - 196, The Quick Start and
Scenario 1 conflict: Quick Start instructs to begin with the /assess command but
Scenario 1 still shows “Starts with /reproduce”; update the document so both
places use the same first phase (pick one — e.g., change Scenario 1’s “Starts
with /reproduce” to “Starts with /assess” or change the Quick Start to
/reproduce) and ensure any subsequent phase sequence (the → /diagnose → /fix ...
list) remains consistent with the chosen starting command; update occurrences of
the commands /assess and /reproduce in the README to match.

245-264: ⚠️ Potential issue | 🟠 Major

Artifacts index is stale relative to the phase outputs.

The artifact tree does not include artifacts/bugfix/reports/assessment.md or artifacts/bugfix/review/verdict.md, even though they are now documented as phase outputs. This hurts artifact discoverability.

Suggested doc patch
 artifacts/bugfix/
 ├── reports/                  # Bug reproduction reports
+│   ├── assessment.md
 │   └── reproduction.md
 ├── analysis/                 # Root cause analysis
 │   └── root-cause.md
@@
+├── review/                   # Review verdict and findings
+│   └── verdict.md
 ├── docs/                     # Documentation and release notes

As per coding guidelines, "Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity."

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

In `@workflows/bugfix/README.md` around lines 245 - 264, The artifacts index in
the README’s artifact tree is missing two phase outputs; update the listing
under artifacts/bugfix/ to include the missing entries
artifacts/bugfix/reports/assessment.md and artifacts/bugfix/review/verdict.md so
the tree reflects current phase outputs (add a reports/assessment.md entry under
the reports node and add a review/ directory with verdict.md under the top-level
artifacts/bugfix/ tree) to restore discoverability.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@workflows/bugfix/README.md`:
- Around line 23-37: The README tree is missing the newly added Assess phase
entries; update the directory structure section to include
.claude/commands/assess.md under the commands list and
.claude/skills/assess/SKILL.md under the skills list so the document matches the
Phase 1 Assess changes—locate the commands block that lists reproduce.md..pr.md
and insert assess.md in the appropriate order, and similarly add assess/SKILL.md
to the skills block that lists reproduce/SKILL.md..pr/SKILL.md.
- Around line 180-196: The Quick Start and Scenario 1 conflict: Quick Start
instructs to begin with the /assess command but Scenario 1 still shows “Starts
with /reproduce”; update the document so both places use the same first phase
(pick one — e.g., change Scenario 1’s “Starts with /reproduce” to “Starts with
/assess” or change the Quick Start to /reproduce) and ensure any subsequent
phase sequence (the → /diagnose → /fix ... list) remains consistent with the
chosen starting command; update occurrences of the commands /assess and
/reproduce in the README to match.
- Around line 245-264: The artifacts index in the README’s artifact tree is
missing two phase outputs; update the listing under artifacts/bugfix/ to include
the missing entries artifacts/bugfix/reports/assessment.md and
artifacts/bugfix/review/verdict.md so the tree reflects current phase outputs
(add a reports/assessment.md entry under the reports node and add a review/
directory with verdict.md under the top-level artifacts/bugfix/ tree) to restore
discoverability.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: c1f14b00-9a66-43a7-8f65-780f0e089ebe

📥 Commits

Reviewing files that changed from the base of the PR and between 9ae2107 and 2b9b629.

📒 Files selected for processing (2)
  • docs/bugfix-tutorial.md
  • workflows/bugfix/README.md

@jwm4 jwm4 merged commit 40ca47f into ambient-code:main Mar 19, 2026
2 checks passed
@jwm4 jwm4 deleted the docs/bugfix-tutorial branch March 19, 2026 20:07
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.

3 participants