Skip to content

Commit 4a40ea2

Browse files
committed
Edits
1 parent e3495a7 commit 4a40ea2

File tree

4 files changed

+232
-93
lines changed

4 files changed

+232
-93
lines changed

.cursor/README.md

Lines changed: 43 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This directory contains Cursor-specific prompts and configurations for AI agents working with the W&B documentation repository. These prompts are optimized for use with Cursor while maintaining human readability.
44

5+
> **Note**: The format used here (Markdown with XML-like tags) is based on community best practices. Cursor has not published an official specification for `.cursor/` directory contents at the time of writing.
6+
57
## Directory structure
68

79
### Core configuration files
@@ -38,14 +40,38 @@ Task-specific prompts for complex operations:
3840
## How to use these prompts
3941

4042
### For Cursor users
41-
1. Cursor automatically detects and loads these configuration files
42-
2. The AI assistant follows the rules and guidelines defined here
43-
3. No manual configuration needed - just start working
43+
1. Cursor detects that `.cursor/` files exist but does NOT automatically load their contents.
44+
2. You still need to prompt the agent to read these files.
45+
3. Use the example prompts below to direct your agent to these guidelines.
4446

4547
### For other AI tools
46-
1. Provide relevant files as context when starting a session
47-
2. Reference specific sections when needed
48-
3. The structured format with XML-like tags aids parsing
48+
1. Provide relevant files as context when starting a session.
49+
2. Reference specific sections when needed.
50+
3. The structured format with XML-like tags aids parsing.
51+
52+
### Example prompts to direct your agent
53+
54+
Since agents don't automatically load file contents (even in Cursor), use these prompts to ensure they follow the guidelines:
55+
56+
**Before starting work:**
57+
```
58+
Please read .cursor/rules.md and .cursor/style.md to understand the project conventions, then help me with my task.
59+
```
60+
61+
**When reviewing changes:**
62+
```
63+
Review your proposed changes against .cursor/style.md and make any necessary adjustments to match the style guidelines.
64+
```
65+
66+
**For specific tasks:**
67+
```
68+
Check .cursor/runbooks/ for any relevant runbooks before proceeding with [task description].
69+
```
70+
71+
**To ensure consistency:**
72+
```
73+
Before editing [filename], use grep to check how similar concepts are documented in this directory, then match that style.
74+
```
4975

5076
## Key differences from `.ai/` directory
5177

@@ -65,16 +91,16 @@ Task-specific prompts for complex operations:
6591
- When new runbooks are needed
6692

6793
### How to update
68-
1. Maintain the structured format with clear sections
69-
2. Keep XML-like tags for major sections
70-
3. Ensure human readability alongside AI optimization
71-
4. Test changes with actual documentation tasks
94+
1. Maintain the structured format with clear sections.
95+
2. Keep XML-like tags for major sections.
96+
3. Ensure human readability alongside AI optimization.
97+
4. Test changes with actual documentation tasks.
7298

7399
### Creating new runbooks
74100
1. Copy the template from `runbooks/TEMPLATE.md`
75-
2. Fill in all sections with specific details
76-
3. Include all gotchas and edge cases discovered
77-
4. Test with an AI agent before finalizing
101+
2. Fill in all sections with specific details.
102+
3. Include all gotchas and edge cases discovered.
103+
4. Test with an AI agent before finalizing.
78104

79105
## Security notes
80106

@@ -91,7 +117,7 @@ Task-specific prompts for complex operations:
91117
## Contributing
92118

93119
When updating these configurations:
94-
1. Ensure consistency with existing patterns
95-
2. Test changes with real documentation tasks
96-
3. Keep both human and AI usability in mind
97-
4. Update both `.cursor/` and `.ai/` directories if applicable
120+
1. Ensure consistency with existing patterns.
121+
2. Test changes with real documentation tasks.
122+
3. Keep both human and AI usability in mind.
123+
4. Update both `.cursor/` and `.ai/` directories if applicable.

.cursor/docs.md

Lines changed: 46 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@
22

33
This file contains specific guidelines for working with the W&B documentation repository.
44

5+
> **Tip**: To help save context tokens, agents do not automatically load prompts like these documentation guidelines. To ask your agent to load and use these guidelines, prompt it with: "Read .cursor/docs.md for documentation-specific patterns and guidelines."
6+
57
## Your role as a documentation contributor
68

79
<role_definition>
810
You are a member of the W&B (Weights & Biases) documentation team, helping to create and maintain clear, accurate, and accessible documentation for W&B users across all experience levels—from ML beginners to advanced practitioners.
911

1012
As a W&B docs team member, you:
11-
- Write and edit documentation that helps users successfully use W&B products
12-
- Ensure technical accuracy while maintaining clarity and accessibility
13-
- Follow established patterns and conventions to maintain consistency
14-
- Help both human users and AI agents understand W&B's capabilities
13+
- Write and edit documentation that helps users successfully use W&B products.
14+
- Ensure technical accuracy while maintaining clarity and accessibility.
15+
- Follow established patterns and conventions to maintain consistency.
16+
- Help both human users and AI agents understand W&B's capabilities.
17+
1518
</role_definition>
1619

1720
## Documentation philosophy
@@ -29,7 +32,8 @@ As a W&B docs team member, you:
2932
- **Scannable Structure**: Users can quickly find what they need
3033
- **Complete Examples**: Code that users can copy and run
3134
- **Troubleshooting Help**: Common issues and their solutions
32-
- **Next Steps**: Guide users to related topics
35+
- **Next Steps**: Guide users to related topics.
36+
3337
</philosophy>
3438

3539
## Content organization
@@ -38,29 +42,30 @@ As a W&B docs team member, you:
3842
### Page types
3943

4044
#### Quickstart guides
41-
- Goal: Get users running in under 5 minutes
42-
- Structure: Prerequisites → Installation → First Success → Next Steps
43-
- Keep it minimal - link to detailed guides for more
45+
- Goal: Get users running in under 5 minutes.
46+
- Structure: Prerequisites → Installation → First Success → Next Steps.
47+
- Keep it minimal - link to detailed guides for more.
4448

4549
#### How-to guides
46-
- Goal: Help users complete specific tasks
47-
- Structure: Prerequisites → Steps → Verification → Troubleshooting
48-
- Focus on one task per guide
50+
- Goal: Help users complete specific tasks.
51+
- Structure: Prerequisites → Steps → Verification → Troubleshooting.
52+
- Focus on one task per guide.
4953

5054
#### Conceptual docs
51-
- Goal: Explain how W&B works and why
52-
- Structure: Overview → Key Concepts → Architecture → Examples
53-
- Use diagrams when helpful
55+
- Goal: Explain how W&B works and why.
56+
- Structure: Overview → Key Concepts → Architecture → Examples.
57+
- Use diagrams when helpful.
5458

5559
#### Reference docs
56-
- Goal: Provide complete API/configuration details
57-
- Structure: Summary → Parameters → Returns → Examples → Related
58-
- Be exhaustive but organized
60+
- Goal: Provide complete API/configuration details.
61+
- Structure: Summary → Parameters → Returns → Examples → Related.
62+
- Be exhaustive but organized.
5963

6064
#### Tutorials
61-
- Goal: Teach through building something real
62-
- Structure: What to Build → Prerequisites → Steps → Final Code → Extensions
63-
- Make it engaging and practical
65+
- Goal: Teach through building something real.
66+
- Structure: What to Build → Prerequisites → Steps → Final Code → Extensions.
67+
- Make it engaging and practical.
68+
6469
</content_structure>
6570

6671
## Writing patterns
@@ -149,6 +154,7 @@ print("✅ Metrics logged to W&B!")
149154

150155
View your results at: [wandb.ai](https://wandb.ai)
151156
```
157+
152158
</writing_patterns>
153159
154160
## Technical accuracy
@@ -196,6 +202,7 @@ try:
196202
except wandb.Error as e:
197203
print(f"W&B error: {e}")
198204
```
205+
199206
</accuracy_guidelines>
200207

201208
## Common documentation tasks
@@ -273,6 +280,7 @@ Structure problems consistently:
273280

274281
**Prevention**: How to avoid this issue
275282
```
283+
276284
</common_tasks>
277285

278286
## Quality checklist
@@ -307,34 +315,36 @@ Before submitting documentation:
307315
- [ ] Includes error handling where appropriate
308316
- [ ] Performance implications noted
309317
- [ ] Platform differences mentioned
318+
310319
</quality_checklist>
311320

312321
## Special considerations
313322

314323
<special_considerations>
315324
### Multi-language support
316325

317-
- Repository supports English (en), Japanese (ja), and Korean (ko)
318-
- Focus on English docs first
319-
- Keep sentences simple for easier translation
320-
- Avoid idioms and cultural references
321-
- Use consistent terminology
326+
- Repository supports English (en), Japanese (ja), and Korean (ko).
327+
- Focus on English docs first.
328+
- Keep sentences simple for easier translation.
329+
- Avoid idioms and cultural references.
330+
- Use consistent terminology.
322331

323332
### SEO and discoverability
324333

325-
- Use descriptive page titles
326-
- Include relevant keywords naturally
327-
- Write clear meta descriptions
328-
- Use semantic HTML structure
329-
- Create descriptive headings
334+
- Use descriptive page titles.
335+
- Include relevant keywords naturally.
336+
- Write clear meta descriptions.
337+
- Use semantic HTML structure.
338+
- Create descriptive headings.
330339

331340
### Maintenance
332341

333-
- Date-stamp time-sensitive content
334-
- Note version requirements
335-
- Plan for API deprecations
336-
- Keep examples current
337-
- Monitor user feedback
342+
- Date-stamp time-sensitive content.
343+
- Note version requirements.
344+
- Plan for API deprecations.
345+
- Keep examples current.
346+
- Monitor user feedback.
347+
338348
</special_considerations>
339349

340350
## Getting help
@@ -349,4 +359,5 @@ When working on documentation:
349359
5. **Get review** from team members for major changes
350360

351361
Remember: Documentation is a team effort. When in doubt, ask for guidance rather than guessing.
362+
352363
</getting_help>

0 commit comments

Comments
 (0)