document-update
Document Development Update
Section titled “Document Development Update”Create chronological documentation for significant project changes in the development journey guides.
When to Use This Skill
Section titled “When to Use This Skill”Use this skill whenever:
- New packages or dependencies are added
- Major features are implemented
- Architectural decisions are made
- Development tools or workflows are introduced
- Infrastructure changes occur
- Any change that future developers or AI assistants should understand
Process
Section titled “Process”Step 1: Identify Next Guide Number
Section titled “Step 1: Identify Next Guide Number”Check existing guides to determine the next sequential number:
ls apps/docs/src/content/docs/guides/Guides use format: NN-descriptive-name.md (e.g., 05-convex-backend.md)
Step 2: Read the Template
Section titled “Step 2: Read the Template”Read the guide template for structure:
cat apps/docs/src/content/docs/guides/_template.mdStep 3: Gather Context
Section titled “Step 3: Gather Context”Before writing, gather all relevant information:
- Read relevant
package.jsonfiles to understand what was added - Check recent git commits:
git log --oneline -10 - Review configuration files if applicable
- Understand the “why” behind the change, not just the “what”
Step 4: Create the Guide
Section titled “Step 4: Create the Guide”Create a new guide file following this structure:
Frontmatter:
---title: Descriptive Titledescription: Brief description of what this update covers.---Required Sections:
- What We Did - Clear, concise summary of the changes
- Why [Technology/Change] - Explain the reasoning and benefits
- What Was Added/Created - Detailed breakdown of files, packages, configurations
- Integration Points - How this connects with existing code
- Commands/Usage - How to use the new feature (if applicable)
- References - Links to documentation, related guides, or external resources
Best Practices:
- Explain the “why” extensively - code shows “what”, docs explain “why”
- Include actual code snippets where helpful
- Link to official documentation
- Note any important gotchas or considerations
- Keep future developers and AI assistants in mind as the audience
Step 5: Update Navigation (Two Files)
Section titled “Step 5: Update Navigation (Two Files)”IMPORTANT: Both files must be updated for the guide to appear properly.
5a. Update Overview Timeline
Section titled “5a. Update Overview Timeline”Add the new guide to apps/docs/src/content/docs/guides/00-overview.md:
## Development Timeline
1. [Initial Turborepo Setup](./01-initial-turborepo-setup) - Creating the TurboRepo foundation ... NN. [New Guide Title](./NN-guide-name) - Brief description of what was done5b. Update Astro Sidebar
Section titled “5b. Update Astro Sidebar”Add the new guide to apps/docs/astro.config.mjs in the sidebar items:
{ label: 'Development Journey', items: [ // ... existing items { label: 'New Guide Title', slug: 'guides/NN-guide-name', }, ],},Maintain chronological order in both files.
Step 6: Verify
Section titled “Step 6: Verify”- Check that frontmatter is valid YAML
- Ensure markdown formatting is correct
- Verify the guide appears in the docs sidebar
- Run the docs dev server if needed:
turbo dev --filter=docs
Example: Documenting a New Package
Section titled “Example: Documenting a New Package”Scenario: Added Convex for backend
Guide structure:
---title: Convex Backenddescription: Adding Convex as the real-time backend database.---
## What We Did
Added Convex to `packages/backend` as the application's backend-as-a-service solution.
## Why Convex
[Explain benefits: real-time, serverless, TypeScript-first, etc.]
## What Was Added
**Package:** `packages/backend`
- Added `convex` dependency (^1.31.6)- Created backend package structure
**Configuration:**[Details about setup]
## Integration Points
[How it connects to the web app, etc.]
## Usage
[Basic examples of how to use Convex]
## References
- [Convex Documentation](https://docs.convex.dev)File Naming Convention
Section titled “File Naming Convention”Use descriptive, kebab-case names:
05-convex-backend.md✓06-authentication-system.md✓07-ui-component-library.md✓
NOT:
update.md✗new-feature.md✗05.md✗
Template Reference
Section titled “Template Reference”Always refer to apps/docs/src/content/docs/guides/_template.md for the canonical structure.
Common Mistakes to Avoid
Section titled “Common Mistakes to Avoid”- Don’t skip the “why” - This is the most valuable part
- Don’t just list what changed - Explain the reasoning and context
- Don’t forget to update BOTH navigation files - Update
00-overview.mdANDastro.config.mjs - Don’t use generic titles - Be specific about what this guide covers
- Don’t forget code examples - Show how things work in practice
Output
Section titled “Output”After creating the guide:
- Confirm the file was created at the correct path
- Confirm
00-overview.mdwas updated with the new guide in the timeline - Confirm
astro.config.mjswas updated with the new guide in the sidebar - Provide a brief summary of what was documented
- Note the guide number for reference
This ensures the development journey remains comprehensive and valuable for future developers and AI assistants.