Skip to content

docs(project-context): say "pitfall" instead of "pitfall line" - #2709

Merged
alexeyv merged 1 commit into
mainfrom
fix/project-context-pitfall
Aug 10, 2026
Merged

docs(project-context): say "pitfall" instead of "pitfall line"#2709
alexeyv merged 1 commit into
mainfrom
fix/project-context-pitfall

Conversation

@alexeyv

@alexeyv alexeyv commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

What

Replaces the coined term "pitfall line" with plain "pitfall" throughout the bmad-project-context skill — four sentences in SKILL.md (description, close step, record intent, audit rule) and the matching retention rule in references/best-practices.md.

Why

"Pitfall" is ordinary English; compounding it into "pitfall line" made it a term of art the reader has to track without adding meaning. Grammar adjusted where needed; no behavioral change.

Drop the coined compound in favor of the plain word; adjust the five
sentences in SKILL.md and best-practices.md that used it.
@greptile-apps

greptile-apps Bot commented Aug 10, 2026

Copy link
Copy Markdown

Greptile Summary

The PR replaces the coined phrase “pitfall line” with “pitfall” in the project-context skill and its best-practices reference.

  • Updates four instructions in SKILL.md.
  • Updates the matching retention rule in references/best-practices.md.
  • Two related project-context documents still retain the old phrase.

Confidence Score: 4/5

The PR appears safe to merge, with a non-blocking documentation consistency issue in two related project-context pages.

The changed wording preserves the skill's behavior and meaning, but the partial rename leaves two user-facing documents using the retired term.

Files Needing Attention: src/bmm-skills/plan/bmad-project-context/SKILL.md and the related docs/how-to/project-context.md and docs/explanation/project-context-theory.md pages

Important Files Changed

Filename Overview
src/bmm-skills/plan/bmad-project-context/SKILL.md Renames four uses of “pitfall line” consistently within the skill, but related documentation still uses the old phrase.
src/bmm-skills/plan/bmad-project-context/references/best-practices.md Applies the same terminology simplification to the matching retention rule without changing its meaning.
Prompt To Fix All With AI
### Issue 1
src/bmm-skills/plan/bmad-project-context/SKILL.md:3
**Terminology rename remains incomplete**

The skill now uses “pitfall,” but `docs/how-to/project-context.md:58` and `docs/explanation/project-context-theory.md:76` retain “pitfall line,” leaving readers with two names for the same concept.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Reviews (1): Last reviewed commit: "docs(project-context): say "pitfall" ins..." | Re-trigger Greptile

---
name: bmad-project-context
description: 'Set up, refresh, or audit a repository''s agent instructions (the AGENTS.md block) so AI agents work well in that repo. Also records observed agent mistakes as pitfall lines. Must be invoked by name.'
description: 'Set up, refresh, or audit a repository''s agent instructions (the AGENTS.md block) so AI agents work well in that repo. Also records observed agent mistakes as pitfalls. Must be invoked by name.'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Terminology rename remains incomplete

The skill now uses “pitfall,” but docs/how-to/project-context.md:58 and docs/explanation/project-context-theory.md:76 retain “pitfall line,” leaving readers with two names for the same concept.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/bmm-skills/plan/bmad-project-context/SKILL.md
Line: 3

Comment:
**Terminology rename remains incomplete**

The skill now uses “pitfall,” but `docs/how-to/project-context.md:58` and `docs/explanation/project-context-theory.md:76` retain “pitfall line,” leaving readers with two names for the same concept.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The project context skill and its best-practices reference now use “pitfall” terminology consistently instead of “pitfall line.”

Changes

Project context terminology

Layer / File(s) Summary
Simplify pitfall terminology
src/bmm-skills/plan/bmad-project-context/SKILL.md, src/bmm-skills/plan/bmad-project-context/references/best-practices.md
The workflow and retirement guidance remove the redundant “line” qualifier from pitfall references.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Suggested reviewers: bmadcode

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main terminology change from "pitfall line" to "pitfall".
Description check ✅ Passed The description directly explains the terminology change, affected files, rationale, and absence of behavioral changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/project-context-pitfall

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/bmm-skills/plan/bmad-project-context/SKILL.md`:
- Line 3: Update the documentation references associated with the
project-context instructions to use the singular term “pitfall” instead of
“pitfall line” in both the how-to and theory documents. Preserve the surrounding
documentation and formatting.
🪄 Autofix

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 Plus

Run ID: e1b0139b-9d0b-4108-90bc-ffffe869b5bd

📥 Commits

Reviewing files that changed from the base of the PR and between eeb6ad9 and 211a9d1.

📒 Files selected for processing (2)
  • src/bmm-skills/plan/bmad-project-context/SKILL.md
  • src/bmm-skills/plan/bmad-project-context/references/best-practices.md

---
name: bmad-project-context
description: 'Set up, refresh, or audit a repository''s agent instructions (the AGENTS.md block) so AI agents work well in that repo. Also records observed agent mistakes as pitfall lines. Must be invoked by name.'
description: 'Set up, refresh, or audit a repository''s agent instructions (the AGENTS.md block) so AI agents work well in that repo. Also records observed agent mistakes as pitfalls. Must be invoked by name.'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

matches="$(rg -n -i '\bpitfall[[:space:]]+line\b' \
  src/bmm-skills/plan/bmad-project-context docs 2>/dev/null || true)"

if [ -n "$matches" ]; then
  printf '%s\n' "$matches"
  exit 1
fi

Repository: bmad-code-org/BMAD-METHOD

Length of output: 660


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- changed-file context ---'
sed -n '1,115p' src/bmm-skills/plan/bmad-project-context/SKILL.md

printf '%s\n' '--- matching documentation context ---'
sed -n '48,66p' docs/how-to/project-context.md
sed -n '68,82p' docs/explanation/project-context-theory.md

printf '%s\n' '--- all related terminology ---'
rg -n -i '\bpitfall([[:space:]]+line|[[:space:]]+lines?)\b|\bpolicy([[:space:]]+line|[[:space:]]+lines?)\b' \
  src/bmm-skills/plan/bmad-project-context docs || true

Repository: bmad-code-org/BMAD-METHOD

Length of output: 11507


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- working-tree diff for the skill and documentation ---'
git diff -- src/bmm-skills/plan/bmad-project-context/SKILL.md docs

printf '%s\n' '--- remaining singular and plural terminology ---'
rg -n -i '\bpitfall(s)?\b' \
  src/bmm-skills/plan/bmad-project-context docs || true

Repository: bmad-code-org/BMAD-METHOD

Length of output: 3959


Update stale documentation to use pitfall.

Replace pitfall line in docs/how-to/project-context.md:58 and docs/explanation/project-context-theory.md:76 with pitfall.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/bmm-skills/plan/bmad-project-context/SKILL.md` at line 3, Update the
documentation references associated with the project-context instructions to use
the singular term “pitfall” instead of “pitfall line” in both the how-to and
theory documents. Preserve the surrounding documentation and formatting.

Source: Path instructions

@alexeyv
alexeyv merged commit 15f5375 into main Aug 10, 2026
8 checks passed
@alexeyv
alexeyv deleted the fix/project-context-pitfall branch August 10, 2026 22:32
alexeyv added a commit that referenced this pull request Aug 10, 2026
…l" (#2710)

Aligns the how-to and theory docs with the skill terminology change
from #2709.
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