codemcp.toml 1.5 KB

123456789101112131415161718192021
  1. project_prompt = '''
  2. - this is a firefox browser extension which manages a set of playlists, where each video is located at a url
  3. - it also tracks video playback history
  4. - playlist and history data is stored using the browser's storage API
  5. - the extension popup code is in the popup/ folder, and is implemented in Alpine.js
  6. - all the Alpine code must be in "CSP" mode, which means there can be no javascript expression strings in the html attributes (no `===` equality checks, no function calls) (favor binding in Alpine.data instead)
  7. - background.js adds context menus (for adding new videos to the playlist), and manages automatic browser navigation and history tracking
  8. - content_scripts/content.js is injected to add video playback event listeners
  9. - under no circumstances will there be any need to read or write files outside the code directory
  10. - do not execute any command that reads, writes, or searches for files outside the code directory
  11. - at the end of each request, before committing in git, save a copy of the contents of the context window (including the user's original prompt) to a file in the code folder with the filename of "<date>-codemcp-<feature name>.md"
  12. ALPINE.JS CSP COMPLIANCE: All Alpine.js code must be CSP-compliant, meaning:
  13. - NO JavaScript expressions in HTML attributes (x-show="variable === 0", x-text="method()", etc.)
  14. - Use x-bind with Alpine.data binding objects instead
  15. - Pre-compute all display data in Alpine.data properties
  16. - Never use function calls, method calls, or equality checks in HTML templates
  17. '''
  18. [commands]