rewrite-rustdoc

Rewrite Rust documentation comments to ensure all documentation and comments are in English, following rustdoc guidelines. Use when the user wants to clean up Rust documentation, translate Chinese comments to English, fix missing documentation, or ensure rustdoc compliance in a Rust codebase.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "rewrite-rustdoc" with this command: npx skills add jim60105/copilot-prompt/jim60105-copilot-prompt-rewrite-rustdoc

Rewrite Rustdoc

Ensure all Rust documentation and comments are exclusively written in English, following rustdoc guidelines.

Steps

  1. Determine which files to process:

    • If the user provides a method to find files, use that method.
    • Otherwise, assume files are in the src/ directory.
    • Proceed immediately to the next steps after acquiring file information.
  2. Conduct a comprehensive review to ensure all documentation and comments are in English.

    • Any Chinese text in documentation or code comments must be identified and corrected.
    • Chinese characters in test case strings are permissible and do not require modification.
    • Chinese report files should not be modified — focus on Rust source code files only.
  3. Search for Chinese characters in the source code:

    rg -n "[\u4e00-\u9fff]" src/
    

    Check for missing documentation:

    cd src/ && cargo clippy -- -W missing_docs
    

    Replace src/ with the user-specified location if provided.

  4. Refer to ./docs/rustdoc-guidelines.md for documentation structure and style standards.

  5. Ensure all corrections adhere strictly to the documentation guidelines.

  6. Repeat the search and revision process iteratively until no further occurrences require modification.

    • Do not prompt for confirmation before proceeding to the next item.
    • Complete all necessary changes before reporting back.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

update-github-actions-version

No summary provided by upstream source.

Repository SourceNeeds Review
General

create-blog-post

No summary provided by upstream source.

Repository SourceNeeds Review
General

docx

No summary provided by upstream source.

Repository SourceNeeds Review