|
| 1 | +# Cursor configuration for W&B documentation |
| 2 | + |
| 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 | + |
| 5 | +## Directory structure |
| 6 | + |
| 7 | +### Core configuration files |
| 8 | + |
| 9 | +#### `rules.md` |
| 10 | +Core project rules and conventions that apply to all work in this repository. Includes: |
| 11 | +- Mandatory rules (what to always/never do) |
| 12 | +- Repository structure overview |
| 13 | +- Security and collaboration guidelines |
| 14 | +- General project context |
| 15 | + |
| 16 | +#### `style.md` |
| 17 | +Comprehensive style guide for W&B documentation covering: |
| 18 | +- Detailed writing style rules |
| 19 | +- Product naming conventions |
| 20 | +- Accessibility guidelines |
| 21 | +- Code example patterns |
| 22 | +- Punctuation and formatting standards |
| 23 | + |
| 24 | +#### `docs.md` |
| 25 | +Documentation-specific guidelines including: |
| 26 | +- Role definition for documentation contributors |
| 27 | +- Documentation philosophy and values |
| 28 | +- Content organization patterns |
| 29 | +- Writing patterns and templates |
| 30 | +- Quality checklists |
| 31 | + |
| 32 | +### `runbooks/` |
| 33 | +Task-specific prompts for complex operations: |
| 34 | +- Step-by-step instructions for recurring tasks |
| 35 | +- Formatted for optimal AI agent consumption |
| 36 | +- Includes context, prerequisites, and troubleshooting |
| 37 | + |
| 38 | +## How to use these prompts |
| 39 | + |
| 40 | +### 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 |
| 44 | + |
| 45 | +### 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 |
| 49 | + |
| 50 | +## Key differences from `.ai/` directory |
| 51 | + |
| 52 | +| Aspect | `.ai/` Directory | `.cursor/` Directory | |
| 53 | +|--------|-----------------|-------------------| |
| 54 | +| Format | Natural language prose | Structured with XML-like tags | |
| 55 | +| Target | Human-readable first | AI-optimized, human-readable | |
| 56 | +| Organization | Topic-based files | Role-based separation | |
| 57 | +| Usage | Manual context provision | Automatic loading in Cursor | |
| 58 | + |
| 59 | +## Maintenance guidelines |
| 60 | + |
| 61 | +### When to update these files |
| 62 | +- When documentation standards change |
| 63 | +- When new patterns emerge |
| 64 | +- When common issues need addressing |
| 65 | +- When new runbooks are needed |
| 66 | + |
| 67 | +### 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 |
| 72 | + |
| 73 | +### Creating new runbooks |
| 74 | +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 |
| 78 | + |
| 79 | +## Security notes |
| 80 | + |
| 81 | +- Some runbooks require W&B employee access (clearly marked) |
| 82 | +- Never include sensitive information (API keys, passwords, internal URLs) |
| 83 | +- These files are in a public repository |
| 84 | + |
| 85 | +## Related resources |
| 86 | + |
| 87 | +- `.ai/` directory - Natural language versions of these prompts |
| 88 | +- Main repository README - Overall repository documentation |
| 89 | +- [W&B Documentation Site](https://docs.wandb.ai) - The live documentation |
| 90 | + |
| 91 | +## Contributing |
| 92 | + |
| 93 | +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 |
0 commit comments