Skip to content

document-update

Create chronological documentation for significant project changes in the development journey guides.

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

Check existing guides to determine the next sequential number:

Terminal window
ls apps/docs/src/content/docs/guides/

Guides use format: NN-descriptive-name.md (e.g., 05-convex-backend.md)

Read the guide template for structure:

Terminal window
cat apps/docs/src/content/docs/guides/_template.md

Before writing, gather all relevant information:

  • Read relevant package.json files 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”

Create a new guide file following this structure:

Frontmatter:

---
title: Descriptive Title
description: Brief description of what this update covers.
---

Required Sections:

  1. What We Did - Clear, concise summary of the changes
  2. Why [Technology/Change] - Explain the reasoning and benefits
  3. What Was Added/Created - Detailed breakdown of files, packages, configurations
  4. Integration Points - How this connects with existing code
  5. Commands/Usage - How to use the new feature (if applicable)
  6. 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

IMPORTANT: Both files must be updated for the guide to appear properly.

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 done

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.

  1. Check that frontmatter is valid YAML
  2. Ensure markdown formatting is correct
  3. Verify the guide appears in the docs sidebar
  4. Run the docs dev server if needed: turbo dev --filter=docs

Scenario: Added Convex for backend

Guide structure:

---
title: Convex Backend
description: 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)

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

Always refer to apps/docs/src/content/docs/guides/_template.md for the canonical structure.

  1. Don’t skip the “why” - This is the most valuable part
  2. Don’t just list what changed - Explain the reasoning and context
  3. Don’t forget to update BOTH navigation files - Update 00-overview.md AND astro.config.mjs
  4. Don’t use generic titles - Be specific about what this guide covers
  5. Don’t forget code examples - Show how things work in practice

After creating the guide:

  1. Confirm the file was created at the correct path
  2. Confirm 00-overview.md was updated with the new guide in the timeline
  3. Confirm astro.config.mjs was updated with the new guide in the sidebar
  4. Provide a brief summary of what was documented
  5. Note the guide number for reference

This ensures the development journey remains comprehensive and valuable for future developers and AI assistants.