Skip to content

Commit a81ddb5

Browse files
marcel-rbroclaude
andauthored
docs: Improve instructions for sentence cases (#2247)
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Low Risk** > Documentation-only changes that adjust guidance/checklists without affecting product code or runtime behavior. > > **Overview** > Clarifies sentence-case heading guidance by adding an expanded **"Common mistakes"** table (proper nouns, acronyms, and capitalization after colons) to `content-standards.md` and reinforcing the same rules in `writing-style.md`, including additional no-gerund heading examples. > > Adds a new `quality-standards.md` section requiring line-by-line verification of any regex/find-and-replace or other automated mass edits before committing, highlighting common breakage areas (headings, code, links, and terminology). > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit aa12068. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 6a1b33b commit a81ddb5

3 files changed

Lines changed: 68 additions & 6 deletions

File tree

.claude/rules/content-standards.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,28 @@ slug: /academy/tutorials/web-scraper
6262

6363
**Sentence case only.** Capitalize only the first word and proper nouns.
6464

65-
| Avoid | Prefer |
66-
|-------|--------|
67-
| Store And Manage Data | Store and manage data |
68-
| Getting Started With Actors | Get started with Actors |
65+
#### Common mistakes
66+
67+
| Avoid (Title Case) | Prefer (Sentence case) | Rule |
68+
|-------------------|------------------------|------|
69+
| Store And Manage Data | Store and manage data | Lowercase articles, conjunctions, prepositions |
70+
| Getting Started With Actors | Get started with Actors | "Actors" stays capitalized (Apify product name) |
71+
| Use The Apify SDK | Use the Apify SDK | "SDK" stays capitalized (acronym) |
72+
| Advanced Web Scraping Techniques | Advanced web scraping techniques | Lowercase generic terms |
73+
| Configure GitHub Actions | Configure GitHub Actions | Preserve proper noun capitalization |
74+
| Connect To Google Sheets | Connect to Google Sheets | Lowercase prepositions ("to") |
75+
| Set Up Your Environment | Set up your environment | Lowercase articles ("your") |
76+
| API Reference Documentation | API reference documentation | Keep acronyms capitalized, rest lowercase |
77+
| Working With Docker Containers | Work with Docker containers | "Docker" stays capitalized (product name) |
78+
| Extend The Base Image | Extend the base image | Lowercase "the" mid-sentence |
79+
| How Do I Start? | How do I start? | Capitalize "I" in questions |
80+
| Understanding Request Queues | Understand request queues | Lowercase feature names |
81+
| Enable Standby Mode | Enable standby mode | Lowercase mode names |
82+
| Access The Apify Console | Access the Apify Console | "Apify Console" stays capitalized (product) |
83+
| Run Your First Actor | Run your first Actor | "Actor" capitalized, "your" lowercase |
84+
| Manage Node Modules | Manage node modules | Lowercase generic terms |
85+
| Step 1: install the dependencies | Step 1: Install the dependencies | Capitalize after colon (starts new clause) |
86+
| Option 2: use the alternative approach | Option 2: Use the alternative approach | Capitalize after colon (starts new clause) |
6987

7088
### Form
7189

.claude/rules/quality-standards.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,30 @@ alwaysApply: true
88

99
Comprehensive quality checklist for all Apify documentation. Use this before submitting any content for review.
1010

11+
## Automated changes verification
12+
13+
:::danger Critical requirement for AI assistants
14+
15+
**When using regex, find-and-replace, or any automated command to perform mass changes across files, you MUST verify every single change individually before committing.**
16+
17+
Automated replacements are error-prone and can break:
18+
- **Headings:** Proper nouns (GitHub, Docker), Apify products (Actors, Console), acronyms (API, SDK), capitalization after colons
19+
- **Code examples:** Variable names, API endpoints, function calls, configuration values
20+
- **Links:** URL paths, anchor references, file paths
21+
- **Terminology:** Product names, feature names, technical terms with specific capitalization
22+
- **Context-specific formatting:** Bold UI elements vs regular text, inline code vs prose
23+
24+
**Required process:**
25+
1. Run the automated replacement command
26+
1. Review the complete `git diff` output
27+
1. Check every single changed line individually
28+
1. Manually correct any broken proper nouns, acronyms, or context-dependent cases
29+
1. Only commit after verifying all changes line-by-line
30+
31+
Never commit automated changes without verifying each one. Use diff tools to catch errors before committing.
32+
33+
:::
34+
1135
## Complete quality checklist
1236

1337
Before submitting documentation, verify:

.claude/rules/writing-style.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,24 @@ Use active voice. Avoid gendered terms. Don't use directional language ("left/ri
7676

7777
**Sentence case only.** No title case.
7878

79-
| Avoid | Prefer |
80-
| --------------------- | --------------------- |
79+
Common mistakes: Capitalizing articles (the, a, an), prepositions (to, with, from), and conjunctions (and, or, but).
80+
81+
| Avoid (Title Case) | Prefer (Sentence case) |
82+
| ------------------ | ---------------------- |
8183
| Store And Manage Data | Store and manage data |
84+
| Use The Apify SDK | Use the Apify SDK |
85+
| Connect To Google Sheets | Connect to Google Sheets |
86+
| Configure GitHub Actions | Configure GitHub Actions |
87+
| How Do I Start? | How do I start? |
88+
89+
**Preserve proper nouns and acronyms:** Apify products (Actors, Console, Proxy), external tools (GitHub, Docker, Playwright), and acronyms (API, SDK, CLI) stay capitalized.
90+
91+
**Capitalize after colons:** When a colon introduces a complete clause or instruction, capitalize the first word after it.
92+
93+
| Avoid | Prefer |
94+
| ----- | ------ |
95+
| Step 1: install the dependencies | Step 1: Install the dependencies |
96+
| Option 2: use the alternative | Option 2: Use the alternative |
8297

8398
**No gerunds (-ing forms).** Use noun phrases or imperatives.
8499

@@ -87,6 +102,11 @@ Use active voice. Avoid gendered terms. Don't use directional language ("left/ri
87102
| Finding available tags | Available tags |
88103
| Getting started with Actors | Get started with Actors |
89104
| Understanding the API | API overview |
105+
| Setting up your environment | Set up your environment |
106+
| Using Docker containers | Use Docker containers |
107+
| Building your first Actor | Build your first Actor |
108+
| Running the scraper | Run the scraper |
109+
| Extending the base image | Extend the base image |
90110

91111
Rationale: Noun-phrase headings are more scannable and search-friendly (Microsoft style guide).
92112

0 commit comments

Comments
 (0)