name: doc-clarity-opportunity description: Looks for opportunities to improve documentation and code clarity by spawning specialized subagents for JSDoc, inline comments, and README updates, then synthesizing their findings for user review and approval.
Doc Clarity Opportunity Skill
When identifying opportunities to improve codebase documentation and clarity, follow this workflow:
1. Identify Target Scope
Determine which files or changes to analyze (e.g., current workspace changes, specific files, or a git diff). If the scope is ambiguous, ask the user for clarification.
2. Spawn Specialized Subagents
Invoke the following specialized review agents concurrently via the invoke_subagent tool to analyze the target scope:
doc_clarity_jsdoc_reviewerdoc_clarity_inline_comment_reviewerdoc_clarity_readme_reviewer
Pass each agent the relevant code context or diff.
3. Aggregate Findings
Wait for all subagents to complete their analysis. Gather and synthesize all suggested opportunities for:
- Adding or updating JSDoc comments.
- Adding inline comments for complex logic.
- Updating or creating README files in relevant directories.
4. Present Suggestions & Await Approval
Present the aggregated, non-prescriptive list of documentation and clarity improvements to the user. CRITICAL: Do NOT apply any changes directly. State your plan based on these suggestions and await the user's explicit approval before proceeding with any implementation.