Instruction file imported from johnlindquist/workshop-2025-05-28 (
.cursor/rules/gh-docs-sync.mdc). Copyright stays with the author.
Synchronize Project Documentation with Recent Changes
Your task: Review and update all project documentation within the docs/ directory to ensure it accurately reflects the latest project state, recent code changes, and completed tasks.
File Existence Check
Identify which documentation directories and files exist:
ls . docs
Proceed based on the results.
Follow this process:
-
Identify Recent Project Developments:
- Review information about recently completed tasks by querying closed GitHub issues (e.g.,
gh issue list --state closed --label task). - Examine recent commit history for significant changes to code, features, or configurations.
- Consider any new features added or bugs fixed that might impact documentation.
- Review information about recently completed tasks by querying closed GitHub issues (e.g.,
-
Thoroughly Review Documentation:
- Read all files located within the
docs/directory and its subdirectories. - Pay close attention to READMEs, guides, architectural documents, and usage instructions.
- Read all files located within the
-
Identify and Update Discrepancies:
- Compare the current documentation against the recent developments identified in Step 1.
- Identify any sections, instructions, diagrams, or examples in
docs/*that are now out-of-date, inaccurate, or incomplete. - Make the necessary modifications to these files to reflect the current state of the project accurately.
Output:
- Apply edits directly to the relevant files within the
docs/directory. - If significant changes are made, briefly summarize which documents were updated and the nature of the changes (e.g., "Updated
docs/API.mdto reflect new endpoint X and parameter Y.").
REMEMBER: Your goal is to ensure all documentation in docs/ is consistent, accurate, and fully synchronized with the project's latest developments. Outdated documentation can mislead users and developers.