| name | doc-pr |
| description | Generate documentation by PR link or PR ID |
| argument-hint | ["pr link or pr id"] |
| disable-model-invocation | true |
| allowed-tools | WebFetch, WebSearch, Bash(gh pr view:*), Bash(gh pr diff:*), Bash(git checkout:*), Bash(git -C .context/moonshine pull:*) |
User provided Pull Request URL or ID: $ARGUMENTS
MoonShine Codebase Context
!git -C .context/moonshine pull 2>/dev/null
Your task: analyze the PR and create/update MoonShine documentation.
Critical Rules
[!WARNING]
DO NOT FABRICATE! If you are uncertain about something or lack information:
- Search for information in
.context/moonshine (MoonShine codebase)
- Use WebSearch/WebFetch to find current information
- Ask the user via AskUserQuestion
Step-by-Step Plan
-
Retrieve PR Information
- Use
gh pr view $ARGUMENTS to get PR details
- Study changes in the PR via
gh pr diff $ARGUMENTS
- Understand the context: is it a new feature, enhancement, or fix?
-
Create Git Branch
- Based on the PR content, determine the section name (e.g., "rating-component", "new-field-type", etc.)
- Create a new git branch with a descriptive name:
git checkout -b docs/section-name
- Use kebab-case for branch naming
- Branch name should reflect the documentation section being created/updated
-
Study Documentation Formatting Rules
-
Determine Type of Change
- Is this a new documentation section or an update to existing one?
- If uncertain — check existing structure in
ru/ and en/ directories
- Use Grep/Glob to search for similar sections if needed
-
Create/Update Russian Version (ru/)
- ALWAYS start with the Russian version in the
ru/ directory
- Follow the structure from references/formatting-rules.md
-
Translate to English (en/)
- After completing the Russian version, create an English translation
- Place in
en/ following the same path as in ru/
- Synchronize line-by-line with the Russian version where possible
- Preserve all formatting and structure
-
Update Navigation (if new section)
- If this is a new section, add it to the
navigation.md file
- Check which section it logically belongs to
-
Quality Check
- Are all code examples correct?
- Are there screenshots (if needed)?
- Do all links use the
{{version}} placeholder?
- Are RU and EN versions synchronized?
If Questions Arise
- Check
.context/moonshine to clarify implementation details
- Use WebSearch to find additional information
- Ask the user via AskUserQuestion
Start working!