Advertisement
Guest User

Untitled

a guest
Jan 16th, 2025
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.24 KB | None | 0 0
  1. ## 1. Context Awareness
  2.  
  3. - Always prioritize the `.context` folder for understanding project details.
  4. - At the start of every session, load and analyze the latest files from the `.context` directory:
  5. - Review `current_state.md` for the most recent project status, including completed tasks, ongoing efforts, and known challenges.
  6. - Review `roadmap.md` to understand future milestones, overall goals, and planned steps for the project.
  7. - If the `.context` folder does not exist or is empty, create it and use the developer's initial prompt to generate `current_state.md` and `roadmap.md`. Ensure these files include:
  8. - A summary of the project’s purpose and scope.
  9. - A clear outline of the current state, such as what has been done and what remains.
  10. - An overview of goals and milestones to serve as a roadmap for the AI.
  11. ---
  12. ## 2. File Management
  13. - Proactively update `.context` files when tasks are completed, milestones are achieved, or decisions are made.
  14. - Use clear and descriptive language when adding updates to ensure the AI comprehends the project's progress and changes.
  15. ---
  16. ## 3. Task Workflow
  17. - Break tasks into smaller, actionable steps with clear objectives and expectations. This improves AI processing and reduces errors.
  18. - Explicitly tie each task to its related milestone or project goal to maintain alignment with the roadmap.
  19. ---
  20. ## 4. Roadmap and Current State
  21. - If the developer says "pause here," update `current_state.md` to include the most recent progress, any challenges encountered, and issues currently being addressed. Ensure this update provides enough detail for resuming the task seamlessly later.
  22. - When the developer provides positive feedback, such as "awesome" or "great work," interpret it as an instruction to update `current_state.md` with the latest progress or completion of a task. Ensure this update:
  23. - Reflects the developer's intent accurately.
  24. - Aligns with the overall project state and roadmap.
  25. - Keep `current_state.md` concise but detailed, highlighting significant progress, challenges, and outcomes.
  26. - Update `roadmap.md` when substantial changes in goals, priorities, or timelines occur to maintain a clear direction.
  27. ---
  28. ## 5. Consistency and Communication
  29. - Use precise and unambiguous language when updating `.context` files to prevent misinterpretation.
  30. - If clarification or additional context is requested by the developer, refer explicitly to relevant `.context` files to maintain coherence.
  31. - Recommend practices for maintaining `.context` files if gaps or inconsistencies are identified, such as periodic reviews or standardizing update protocols.
  32. ---
  33. ## 6. Security Best Practices
  34. - Whenever prompted to make changes to databases, always ask the user if they'd like to create a backup first. This ensures the safety and recoverability of data in case of errors or unintended changes.
  35. - When working with WordPress databases, never include plain text passwords using `-p xyz`. Always utilize the WordPress CLI for such tasks to ensure security and best practices.
  36. - When working with Python, if integrating a new library or repository, always ask for explicit permission first. Provide detailed information, including the repository URL, its purpose, and how it will benefit the project, to allow for informed decision-making.
  37. ---
  38. ## 7. Tool-Specific Guidelines
  39. - Provide clear instructions for using language-specific tools, frameworks, or libraries as required by the project.
  40. ---
  41. ## 8. Error Logging and Troubleshooting
  42. - Maintain an `error_log.md` file within the `.context` folder to document recurring issues, resolutions, and patterns observed during development.
  43. - Suggest debugging strategies or tools when errors are detected, and update the log with insights to streamline future troubleshooting.
  44. ---
  45. ## 9. Version Control Integration
  46. - Ensure `.context` file updates are committed to version control with descriptive commit messages to maintain a clear history of changes.
  47. - Use branching strategies for collaborative workflows, and recommend merging updates into the main branch only after thorough review.
  48. ---
  49. ## 10. Developer Feedback Loop
  50. - Explicitly check for user satisfaction or unresolved issues after completing tasks. Ask questions such as "Is this what you expected?" or "Do you need adjustments?" to ensure alignment.
  51. ---
  52. ## 11. Scenarios for Automatic Reminders
  53. - Prompt the developer for crucial actions at appropriate times, such as:
  54. - Backing up before critical updates.
  55. - Reviewing large code changes before deployment.
  56. - Refreshing the `.context` folder at the start of a new phase.
  57. ---
  58. ## 12. Integration and Testing
  59. - Recommend verifying compatibility in a test environment before integrating new libraries or tools into production.
  60. - Suggest unit tests for Python integrations and staging environments for WordPress changes to ensure reliability.
  61. ---
  62. ## 13. AI Behavior with Limited Context
  63. - If `.context` files are incomplete or missing, prompt the developer for immediate input to proceed effectively.
  64. - Provide clear fallback suggestions to generate or recover the missing context, ensuring progress isn't hindered.
  65. ---
  66. ## 14. AI Knowledge Updates
  67. - When global or project-specific rules are updated, confirm the changes with the developer and adjust AI outputs accordingly.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement