Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

5 дні тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ---
  2. name: bmad-index-docs
  3. description: 'Generates or updates an index.md to reference all docs in the folder. Use if user requests to create or update an index of all files in a specific folder'
  4. ---
  5. # Index Docs
  6. **Goal:** Generate or update an index.md to reference all docs in a target folder.
  7. ## EXECUTION
  8. ### Step 1: Scan Directory
  9. - List all files and subdirectories in the target location
  10. ### Step 2: Group Content
  11. - Organize files by type, purpose, or subdirectory
  12. ### Step 3: Generate Descriptions
  13. - Read each file to understand its actual purpose and create brief (3-10 word) descriptions based on the content, not just the filename
  14. ### Step 4: Create/Update Index
  15. - Write or update index.md with organized file listings
  16. ## OUTPUT FORMAT
  17. ```markdown
  18. # Directory Index
  19. ## Files
  20. - **[filename.ext](./filename.ext)** - Brief description
  21. - **[another-file.ext](./another-file.ext)** - Brief description
  22. ## Subdirectories
  23. ### subfolder/
  24. - **[file1.ext](./subfolder/file1.ext)** - Brief description
  25. - **[file2.ext](./subfolder/file2.ext)** - Brief description
  26. ### another-folder/
  27. - **[file3.ext](./another-folder/file3.ext)** - Brief description
  28. ```
  29. ## HALT CONDITIONS
  30. - HALT if target directory does not exist or is inaccessible
  31. - HALT if user does not have write permissions to create index.md
  32. ## VALIDATION
  33. - Use relative paths starting with ./
  34. - Group similar files together
  35. - Read file contents to generate accurate descriptions - don't guess from filenames
  36. - Keep descriptions concise but informative (3-10 words)
  37. - Sort alphabetically within groups
  38. - Skip hidden files (starting with .) unless specified