@@ -16,8 +16,9 @@ Before beginning the documentation process, first ask the author which documenta
16161 . Author fresh APIs / fresh API changes to beta
17172 . Promote APIs from beta to v1.0
18183 . Document deprecated APIs
19+ 4 . Other documentation tasks (cleanup, backfilling, maintenance, etc.)
1920
20- ** Please respond with 1, 2, or 3 to proceed.**
21+ ** Please respond with 1, 2, 3, or 4 to proceed.**
2122
2223Once the author responds, follow the appropriate workflow below.
2324
@@ -1614,6 +1615,125 @@ Before completing any authoring task, verify:
16141615
16151616---
16161617
1618+ ## Scenario 4: Other documentation tasks
1619+
1620+ This scenario covers any documentation maintenance, cleanup, or custom authoring needs that don't fit into the standard workflows (fresh APIs, promotions, or deprecations).
1621+
1622+ ### Overview
1623+
1624+ Microsoft Graph documentation requires ongoing maintenance beyond documenting new APIs and changes. Authors may need assistance with:
1625+ - **Cleanup tasks:** Fixing inconsistencies, formatting issues, broken links, or outdated content
1626+ - **Backfilling:** Adding missing documentation for existing APIs that were never fully documented
1627+ - **Content improvements:** Enhancing descriptions, examples, or clarifying existing documentation
1628+ - **Bulk updates:** Applying consistent changes across multiple files
1629+ - **Special projects:** Custom documentation needs that require adherence to Microsoft Graph standards
1630+
1631+ ### How to use this scenario
1632+
1633+ Since this scenario is flexible and task-driven, the typical inputs (doc stubs, API.md files, changelog) may not be applicable or provided. Instead:
1634+
1635+ **Provide a detailed task description:**
1636+ - Clearly describe what you want to accomplish
1637+ - Include specific files, resources, or APIs involved (if known)
1638+ - Explain the desired outcome or acceptance criteria
1639+ - Share any relevant context, constraints, or requirements
1640+
1641+ **Example task prompts:**
1642+ - "Review all files in api-reference/beta/resources/ that reference the 'user' resource and ensure the links are formatted correctly"
1643+ - "The 'application' resource is missing examples in the GET operation. Add comprehensive examples based on the beta version"
1644+ - "Clean up all deprecated properties in identity-related resources to ensure they follow the deprecation table format"
1645+ - "I need to backfill documentation for the 'servicePrincipal' PATCH operation that was never completed"
1646+ - "Update all changelog entries in Microsoft.AAD.LCM.json to ensure descriptions follow the required format"
1647+
1648+ ### Guidelines and standards to follow
1649+
1650+ When working on Scenario 4 tasks, you MUST adhere to all Microsoft Graph API documentation standards and guidelines. Reference these sources:
1651+
1652+ **Primary documentation standards:**
1653+ 1 . **author-api-docs.prompt.md (this file):** Reference sections include:
1654+ - [Reference Standards: Namespace Qualification](#reference-standards-namespace-qualification)
1655+ - [Reference Standards: General Formatting Rules](#reference-standards-general-formatting-rules)
1656+ - All quality checklists from Scenarios 1, 2, and 3
1657+ - Common processes (changelog, What's new, TOC updates)
1658+
1659+ 2 . **review-api-docs.prompt.md:** Microsoft Graph REST API Documentation Review Guidelines covering:
1660+ - API Reference Topics requirements
1661+ - Resource Topics requirements
1662+ - Changelog Files requirements
1663+ - Common issues to avoid
1664+ - Version-specific guidelines (beta vs v1.0)
1665+
1666+ 3 . **copilot-instructions.md:** Additional review guidelines and file type classifications
1667+
1668+ **Key principles to remember:**
1669+ - All filenames must be lowercase
1670+ - Properties and relationships must be in alphabetical order
1671+ - Follow namespace qualification rules for types in subnamespaces
1672+ - Use appropriate deprecation patterns when updating deprecated content
1673+ - Maintain consistent formatting (headings, tables, links)
1674+ - Follow beta disclaimer requirements for beta documentation
1675+ - Ensure examples use pseudo-values, not data types
1676+ - Respect version-specific link formatting (preserve-view for beta, none for v1.0)
1677+
1678+ ### Workflow for Scenario 4
1679+
1680+ 1 . **Understand the task:**
1681+ - Read the author's detailed task description
1682+ - Ask clarifying questions if the requirements are unclear
1683+ - Identify which guidelines and standards apply to this specific task
1684+
1685+ 2 . **Gather context:**
1686+ - Read relevant files mentioned in the task
1687+ - Search for related documentation to understand patterns and existing implementations
1688+ - Review guidelines from author-api-docs.prompt.md, review-api-docs.prompt.md, and copilot-instructions.md that apply to the task
1689+
1690+ 3 . **Plan the approach:**
1691+ - Break down complex tasks into manageable steps
1692+ - Identify all files that need to be created, modified, or reviewed
1693+ - Determine the order of operations to ensure consistency
1694+
1695+ 4 . **Execute the work:**
1696+ - Make changes following Microsoft Graph documentation standards
1697+ - Apply quality checks as you work (alphabetical order, formatting, links, etc.)
1698+ - Test or validate changes where applicable (e.g., check for markdown lint errors)
1699+
1700+ 5 . **Provide a summary:**
1701+ - List all files created or modified
1702+ - Highlight any issues found and resolved
1703+ - Note any items that require author review or decision
1704+ - Suggest next steps if applicable
1705+
1706+ ### When to update changelog and What's new
1707+
1708+ **Update changelog and What's new ONLY when:**
1709+ - The task explicitly involves documenting API changes that should be announced
1710+ - You're backfilling documentation for recently added APIs that haven't been logged yet
1711+ - You're documenting deprecations that need to be communicated
1712+
1713+ **Do NOT update changelog and What's new when:**
1714+ - Fixing typos, formatting issues, or broken links
1715+ - Improving descriptions or examples for existing, stable APIs
1716+ - Reorganizing content without changing API functionality
1717+ - Cleaning up documentation debt
1718+
1719+ If unsure whether to update changelog/What's new, ask the author for clarification.
1720+
1721+ ### Quality assurance
1722+
1723+ Before completing Scenario 4 tasks, verify:
1724+ - [ ] Task requirements fully understood and addressed
1725+ - [ ] All relevant guidelines from author-api-docs.prompt.md, review-api-docs.prompt.md, and copilot-instructions.md have been followed
1726+ - [ ] Files are properly formatted (lowercase names, alphabetical order, correct headings)
1727+ - [ ] Links are functional and follow version-specific formatting rules
1728+ - [ ] Namespace qualification applied correctly for subnamespace types
1729+ - [ ] Beta disclaimers present where required
1730+ - [ ] Examples use pseudo-values, not data types
1731+ - [ ] No markdown lint errors
1732+ - [ ] Changelog and What's new updated only if appropriate
1733+ - [ ] Summary of changes provided to author
1734+
1735+ ---
1736+
16171737## Doc Stubs Cleanup
16181738
16191739After completing the documentation work and providing the final summary to the author, help them clean up the temporary files:
0 commit comments