xiaohongshu
xiaohongshu
md-doc-improver
Technical documentation improvement skill that provides purpose-oriented, multi-perspective review and iterative enhancement of markdown documents. Use when you need to improve the quality, completeness, and usability of technical documentation such as API docs, README files, guides, or tutorials...
Full skill instructions
The MD Document Improver skill systematically enhances technical markdown documentation through multi-perspective analysis and iterative improvement loops. It evaluates documents from technical accuracy, user experience, and educational effectiveness viewpoints, providing comprehensive quality assessment and actionable enhancement recommendations.
# Improve a markdown document with default settings
python md-doc-improver/scripts/improve_document.py README.md
# Custom settings
python md-doc-improver/scripts/improve_document.py docs/api.md \
--max-iterations 3 \
--threshold 0.85 \
--output-dir ./reviews
# Validate document quality
python md-doc-improver/scripts/document_validator.py README.md
# Export validation results
python md-doc-improver/scripts/document_validator.py README.md \
--export-json validation_results.json \
--severity error,warning
The skill evaluates documents from three complementary perspectives:
| Priority Level | Impact | Effort | Focus Areas |
|---|---|---|---|
| Critical | High | Low | Missing required sections, code errors |
| High | High | Medium | Example quality, error coverage |
| Medium | Medium | Low | Structure improvements, language clarity |
| Low | Low | Any | Minor formatting, cosmetic improvements |
Iteration N:
1. Document Analysis → DocumentAnalysis
2. Multi-Perspective Review → List[ReviewResult]
3. Score Calculation → Overall Quality Score
4. Improvement Planning → ImprovementPlan
5. Plan Execution → Enhanced Document
6. Convergence Check → Continue or Exit
When to use: Creating or significantly revising technical documentation
Workflow:
document_validator.py for baseline qualityimprove_document.py for systematic enhancementdocument_validator.py for quality verificationExample:
# Step 1: Assess current quality
python md-doc-improver/scripts/document_validator.py new_api_docs.md
# Step 2: Run improvement process
python md-doc-improver/scripts/improve_document.py new_api_docs.md \
--max-iterations 4 \
--threshold 0.85
# Step 3: Final validation
python md-doc-improver/scripts/document_validator.py new_api_docs.md \
--export-json final_validation.json
When to use: Periodic quality checks for existing documentation
Workflow:
Example:
# Validate all documentation in a directory
for file in docs/*.md; do
python md-doc-improver/scripts/document_validator.py "$file" \
--export-json "validation_$(basename "$file" .md).json"
done
# Identify documents needing improvement
grep -l '"overall_score": [0-7]\.' validation_*.json
When to use: Automated quality checks in CI/CD pipelines
Workflow:
Example (CI/CD integration):
# GitHub Actions example
- name: Validate Documentation Quality
run: |
python md-doc-improver/scripts/document_validator.py docs/*.md \
--severity error,warning \
--format json \
--export-json validation_report.json
# Fail build if quality is too low
score=$(jq '.overall_score' validation_report.json)
if (( $(echo "$score < 0.7" | bc -l) )); then
echo "Documentation quality too low: $score"
exit 1
fi
Overall Score = (
Accuracy × 0.30 +
Completeness × 0.30 +
Clarity × 0.25 +
Usability × 0.15
)
# Production documentation (high standards)
python md-doc-improver/scripts/document_validator.py docs/api.md \
--threshold 0.90
# Internal documentation (moderate standards)
python md-doc-improver/scripts/document_validator.py internal/guide.md \
--threshold 0.75
# Draft documentation (minimum standards)
python md-doc-improver/scripts/document_validator.py draft/tutorial.md \
--threshold 0.60
The skill automatically adapts its evaluation criteria based on document content:
api_weights = {
'technical': 0.6, # Higher emphasis on accuracy
'ux': 0.2, # Lower emphasis on educational aspects
'educational': 0.2 # Lower emphasis on learning progression
}
tutorial_weights = {
'technical': 0.2, # Lower emphasis on deep technical accuracy
'ux': 0.3, # Higher emphasis on user experience
'educational': 0.5 # Highest emphasis on learning effectiveness
}
# Export detailed analysis for custom processing
python md-doc-improver/scripts/improve_document.py README.md \
--export-json improvement_analysis.json
# Integration with external tools
python md-doc-improver/scripts/document_validator.py README.md \
--format json | jq '.issues[] | select(.severity == "error")'
Core automation scripts for document improvement and validation.
improve_document.pyMain improvement engine that implements the iterative enhancement loop. Performs multi-perspective analysis, generates improvement plans, and applies systematic enhancements through configurable iterations.
document_validator.pyComprehensive validation tool that assesses document quality across multiple dimensions. Provides detailed scoring, issue identification, and actionable recommendations for improvement.
Detailed documentation and framework specifications.
improvement_framework.mdComprehensive guide to the improvement methodology, including multi-perspective review system, quality metrics, and implementation details. Essential for understanding how the skill makes improvement decisions.
quality_standards.mdComplete specification of quality criteria, scoring rubrics, and evaluation standards. Defines what constitutes high-quality technical documentation and how it's measured.
The MD Document Improver skill provides a systematic, evidence-based approach to enhancing technical documentation quality through multi-perspective analysis and iterative improvement.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience