Skip to content

Instantly share code, notes, and snippets.

@zbeyens
Last active October 11, 2024 02:20
Show Gist options
  • Save zbeyens/7c6ae2fc70c82a39cb5098c633b299f9 to your computer and use it in GitHub Desktop.
Save zbeyens/7c6ae2fc70c82a39cb5098c633b299f9 to your computer and use it in GitHub Desktop.
Store these in your project .ai folder

End Session Instructions

  1. Create a new file: .ai/status/YYYY-MM-DD.md

  2. Structure the update with sections:

    • Development Steps
    • Key Decisions
    • Next Steps
  3. For each section:

    • Use bullet points
    • Be specific and use technical terms
    • Keep content concise
  4. Development Steps:

    • List modified files in dependency order
    • Number each step
    • Briefly describe changes and purpose for each file
    • Use past tense
  5. Key Decisions:

    • List important decisions, their reasoning, and trade-offs
    • Use past tense
  6. Next Steps:

    • List 3-5 prioritized tasks/features to work on next
    • Specify affected components/code areas
    • Highlight blockers or challenges
    • Use future tense
    • We don't care about performance and optimization for now. We need to get the core functionality working for MVP.
  7. For code blocks, prepend triple quotes with a space

  8. End with a brief summary of overall progress and next session's focus

Example:

Session Update: 2023-04-15

Development Steps

  1. app/styles/globals.css: Updated color scheme and typography
    • Defined new color variables and font styles
  2. app/utils/api.ts: Created new API utility functions
    • Implemented functions for fetching user data and posts
  3. app/components/Header.tsx: Added responsive navigation menu
    • Created mobile-friendly dropdown menu using new styles
  4. app/pages/index.tsx: Implemented hero section with CTA
    • Utilized new API functions to display dynamic content

Key Decisions

  • Chose Tailwind CSS for styling to improve development speed
  • Implemented server-side rendering for better SEO performance

Next Steps

  1. Implement user authentication system
  2. Create dashboard page for logged-in users
  3. Optimize image loading and caching

Progress: Completed main layout and homepage. Next session will focus on user authentication and dashboard implementation.

Start Session Instructions

  1. Locate and analyze the most recent status update file in the .ai/status/ directory (format: YYYY-MM-DD.md).

  2. Understand the current project state, recent decisions, and prepare to assist with outlined next steps.

  3. If no specific task is requested:

    • List all next steps from the latest session.
    • Suggest which step to take first, providing a brief rationale.
    • Be ready to address any challenges or blockers mentioned.
  4. Provide context-aware assistance throughout the session, referencing the status update when discussing project status or next steps.

  5. Be prepared to help implement tasks and features listed in the Next Steps section, recalling relevant details for specific components or code areas.

  6. At the end of the session, create a new status update using the guidelines in end-session.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment