You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursor/README.md
+43-17Lines changed: 43 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
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.
4
4
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
+
5
7
## Directory structure
6
8
7
9
### Core configuration files
@@ -38,14 +40,38 @@ Task-specific prompts for complex operations:
38
40
## How to use these prompts
39
41
40
42
### 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.
44
46
45
47
### 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
+
```
49
75
50
76
## Key differences from `.ai/` directory
51
77
@@ -65,16 +91,16 @@ Task-specific prompts for complex operations:
65
91
- When new runbooks are needed
66
92
67
93
### 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.
72
98
73
99
### Creating new runbooks
74
100
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.
78
104
79
105
## Security notes
80
106
@@ -91,7 +117,7 @@ Task-specific prompts for complex operations:
91
117
## Contributing
92
118
93
119
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.
Copy file name to clipboardExpand all lines: .cursor/docs.md
+46-35Lines changed: 46 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,19 @@
2
2
3
3
This file contains specific guidelines for working with the W&B documentation repository.
4
4
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
+
5
7
## Your role as a documentation contributor
6
8
7
9
<role_definition>
8
10
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.
9
11
10
12
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
+
15
18
</role_definition>
16
19
17
20
## Documentation philosophy
@@ -29,7 +32,8 @@ As a W&B docs team member, you:
29
32
-**Scannable Structure**: Users can quickly find what they need
30
33
-**Complete Examples**: Code that users can copy and run
31
34
-**Troubleshooting Help**: Common issues and their solutions
32
-
-**Next Steps**: Guide users to related topics
35
+
-**Next Steps**: Guide users to related topics.
36
+
33
37
</philosophy>
34
38
35
39
## Content organization
@@ -38,29 +42,30 @@ As a W&B docs team member, you:
38
42
### Page types
39
43
40
44
#### 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.
0 commit comments