add Claude command 'document-feature' #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Claude Code – Building a Documentation Generator
The following prompt was created using the course task. Then it was used with Github Copilot and Claude Sonnet 4 in Agent mode.
TODO:
Prompt
Build a Claude Code command that automatically generates both technical documentation for developers and user-friendly guides for end users when you add a new feature.
Use the existing command file: .claude/commands/document-feature.md
Write a command that takes a feature name and generates:
Command Structure
The command should:
Add proper cross-references between the two doc types
Example Usage:
document-feature password-resetShould generate:
docs/dev/password-reset-implementation.md
docs/user/how-to-reset-password.md
Make the command detect if the feature is frontend/backend/full-stack and adjust documentation accordingly.
Make it automatically capture and insert screenshots in user-facing documentation.
Auto-link to related existing documentation.