.github/skills/document/SKILL.md
Create documentation including inline comments, JSDoc, and README files
npx skillsauth add washingtonguilhardes/example.hr-module documentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Persona: Execute this task as the @developer subagent.
Load the persona characteristics from .rulesync/subagents/developer.md before proceeding.
Create documentation: inline comments, JSDoc, README files.
Discovery: - Ask: "What to document? (file/folder/feature)" - Examine: purpose, functionality, relationships
Documentation type: - Ask: type (inline/jsdoc/readme/all), specific sections, update existing or create new
Analyze: - Read target files - Understand purpose, functionality - Identify key functions/classes/components - Note dependencies, integrations - Check existing docs - Identify architectural decisions/patterns
Write docs: - Inline: Explain "why" not "what", comment edge cases/assumptions - JSDoc: All exported functions with @param, @returns, @throws, @example - README: Read template .rulesync/templates/readme-template.md, follow structure exactly
Verify quality: - Valid TypeScript examples - Correct links/references - Test documented commands - Check completeness
Summary: - Files created/modified - What was documented - Gaps/areas needing more docs - Related READMEs to update - Recommendations for clarity
/document app/api/trpc/routers/channels.ts --type jsdoc - Adds JSDoc blocks to all exported procedures with @param, @returns, @throws, and @example tags./document app/lib/auth --type all - Adds inline comments explaining "why" for complex logic, JSDoc on exports, and creates/updates the module README from template./document prisma/schema.prisma --type inline - Adds comments to models and fields explaining relationships, constraints, and business rules.@param, @returns, @throws, and @example tags for every exported function.rulesync/templates/readme-template.md exactly@example tags are valid TypeScript that would compile/explain - Understand code thoroughly before documenting it/review - Documentation quality is checked during code reviewtesting
Analyze distributed traces to find blocking queries, N+1 patterns, and missing tRPC encapsulation, then produce prioritized fixes
testing
required reading for all test/spec files or test related queries.
testing
Transform Product Brief into Technical Specification
development
Detect drift between code implementations and specification documents