AI Development Context β
This document serves as a reference for AI assistants to understand the project structure, documentation processes, and conventions. It should be reviewed at the start of each session to ensure consistent and efficient development.
Project Structure β
Documentation System β
- Root documentation in
docs/ - Project ideas in
docs/ideas/ - Development guides in
docs/development/ - VitePress configuration in
docs/.vitepress/
VitePress Integration β
- Configuration file:
docs/.vitepress/config.js - Required for:
- Sidebar navigation
- Footer navigation
- Page linking
- Site metadata
Documentation Processes β
Adding New Ideas β
File Creation
- Create new markdown file in
docs/ideas/ - Follow naming convention:
idea-name.md - Include required frontmatter:yaml
--- title: [Page Title] description: [Brief description] prev: [Previous page path] next: [Next page path] ---
- Create new markdown file in
Content Structure
- Follow template from existing ideas (e.g.,
auction.md) - Include sections:
- Overview
- Core Features
- Platform Ecosystem
- Technical Requirements
- Security Considerations
- Future Enhancements
- Implementation Phases
- Success Metrics
- Challenges to Address
- Follow template from existing ideas (e.g.,
Navigation Setup
- Update
docs/.vitepress/config.js:- Add new item to sidebar navigation
- Ensure proper ordering
- Update frontmatter in:
- New idea file
- Previous idea file
- Next idea file (if exists)
- Add link in
docs/ideas.md
- Update
VitePress Requirements β
Sidebar Navigation
- Configure in
config.js - Include all pages
- Maintain logical order
- Use consistent naming
- Configure in
Page Navigation
- Set
prevandnextin frontmatter - Create circular navigation where appropriate
- Update all affected files
- Set
File References
- Use relative paths
- Include
.mdextension in links - Maintain consistent casing
Best Practices β
Documentation β
- Follow established templates
- Maintain consistent formatting
- Use proper heading hierarchy
- Include descriptive link text
- Keep navigation structure clean
VitePress Integration β
- Always check
config.jsfor navigation - Update all navigation-related files
- Maintain proper linking structure
- Follow VitePress conventions
File Management β
- Use consistent naming
- Follow established directory structure
- Maintain proper file organization
- Update all related files
Common Tasks β
Adding New Idea β
- Create idea file in
docs/ideas/ - Add content following template
- Update
ideas.mdwith link - Update
config.jssidebar - Set up navigation links
- Update related files' navigation
Modifying Existing Idea β
- Update content
- Check navigation structure
- Verify sidebar configuration
- Update related links
Adding New Section β
- Follow existing structure
- Update navigation if needed
- Maintain consistent formatting
- Update related documentation
Troubleshooting β
Common Issues β
Missing Navigation
- Check
config.js - Verify frontmatter
- Update all related files
- Check
Broken Links
- Verify file paths
- Check file existence
- Update all references
Inconsistent Structure
- Follow templates
- Check existing files
- Maintain conventions
Session Guidelines β
Initial Setup β
- Review this context document
- Understand project structure
- Check VitePress configuration
- Review existing documentation
- Read Development Context Files
- For API-related tasks: Read
development/api.md - For other specific contexts: Review relevant files in
development/folder - Always check for task-specific context before proceeding
- For API-related tasks: Read
Process Flow β
- Understand user request
- Identify affected files
- Plan necessary changes
- Execute changes
- Verify navigation
- Update all related files
Quality Checks β
- Verify navigation structure
- Check file references
- Validate formatting
- Ensure consistency
- Update all related files
Development Context Files β
Purpose β
Development context files in the development/ directory provide specific guidelines and requirements for different aspects of the project. These files should be reviewed before working on related tasks.
Available Context Files β
api.md: API development guidelines, endpoints, and conventions- Additional context files in
development/folder for specific features or components
Usage Guidelines β
Before Starting a Task
- Identify the relevant context file(s)
- Review the specific guidelines
- Understand the requirements
- Follow the established patterns
For API Development
- Always read
development/api.mdfirst - Follow API conventions
- Use established patterns
- Maintain consistency
- Always read
For Other Features
- Check for relevant context files
- Review existing implementations
- Follow project patterns
- Maintain consistency
Context File Structure β
Each context file should include:
- Purpose and scope
- Specific guidelines
- Implementation patterns
- Best practices
- Common pitfalls
- Examples
Maintaining Context β
- Keep context files up to date
- Add new patterns as discovered
- Document common issues
- Include examples
- Update as needed