skills/46ki75/markdown/SKILL.md
Markdown linting and automated fixing using markdownlint-cli2. Use when Claude needs to: (1) Check markdown files for style issues, (2) Fix markdown formatting problems, (3) Ensure markdown follows best practices, (4) Validate markdown documents, or (5) Apply consistent markdown styling
npx skillsauth add aiskillstore/marketplace markdownInstall 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.
Automated markdown validation and fixing using markdownlint-cli2.
1. Run auto-fix → markdownlint-cli2 --fix <file>
2. Check remaining → markdownlint-cli2 <file>
3. Fix manually → str_replace for structural issues
4. Verify → markdownlint-cli2 <file> (should show 0 errors)
Expected results: Auto-fix resolves 70-90% of issues. Remaining 3-5 issues require manual correction.
# Auto-fix single file
markdownlint-cli2 --fix document.md
# Check file
markdownlint-cli2 document.md
# Multiple files
markdownlint-cli2 --fix file1.md file2.md
# All markdown in directory
markdownlint-cli2 --fix "**/*.md"
# With custom config
markdownlint-cli2 --config .markdownlint.json document.md
# Uploaded files
markdownlint-cli2 --fix /mnt/user-data/uploads/document.md
# Working directory
markdownlint-cli2 --fix /home/claude/document.md
# Output to user
cp /path/to/fixed.md /mnt/user-data/outputs/
Auto-fix cannot resolve these issues - they need Claude's judgment:
Why: Requires understanding document hierarchy
Fix: Convert extra H1s to appropriate level
# Main Title
# Second Title → Change to: ## Second Title
Why: Requires determining author intent
Fix: Replace bold/italic with proper header
**Section Title** → Change to: ## Section Title
Why: Requires deciding where to break content
Fix: Wrap at natural points (spaces, punctuation)
This is a very long line exceeding 80 characters that needs wrapping.
↓
This is a very long line exceeding 80 characters that needs
wrapping.
Exception: URLs typically exempt
Why: Requires structural decision
Fix: Add H1 at start or restructure
# 1. Auto-fix
markdownlint-cli2 --fix /mnt/user-data/uploads/document.md
# 2. Check remaining
markdownlint-cli2 /mnt/user-data/uploads/document.md
# Output: "Summary: 3 error(s)"
# Lists specific errors like "MD025/single-title Multiple top-level headings"
# 3. Manual fixes (example)
str_replace "# Extra Title" → "## Extra Title"
# 4. Verify
markdownlint-cli2 /mnt/user-data/uploads/document.md
# Output: "Summary: 0 error(s)"
# 5. Output
cp /mnt/user-data/uploads/document.md /mnt/user-data/outputs/
create_file /home/claude/doc.md "content..."
markdownlint-cli2 --fix /home/claude/doc.md
markdownlint-cli2 /home/claude/doc.md
# Fix remaining issues if any
cp /home/claude/doc.md /mnt/user-data/outputs/
Create .markdownlint.json to customize rules:
{
"default": true,
"MD013": { "line_length": 120 },
"MD033": false
}
Common adjustments:
"MD013": false - Disable line length checking"MD013": { "line_length": 120 } - Increase limit to 120"MD013": { "code_blocks": false } - Exclude code blocks"MD033": false - Allow HTML"MD041": false - Don't require first line headerConfig file search order:
.markdownlint-cli2.jsonc.markdownlint-cli2.yaml.markdownlint.jsonc / .markdownlint.json.markdownlint.yaml / .markdownlint.ymlProvide clear summary of fixes:
✅ Markdown linting complete!
Initial: 18 errors
After auto-fix: 4 errors
Manual fixes:
• MD025: Converted 2 H1 headers to H2
• MD036: Replaced bold with proper header
• MD013: Wrapped long line
Final: 0 errors
Before auto-fix:
After auto-fix:
# Multiple H1s - analyze structure first
# If sections: convert to H2
str_replace "# Introduction" → "## Introduction"
# If subsections: convert to H3
str_replace "# Details" → "### Details"
# Emphasis as headers - determine appropriate level
str_replace "**Important**" → "## Important"
str_replace "_Note_" → "### Note"
# Long lines - break at natural points
# After conjunctions: and, but, or
# After punctuation: , . ;
# Preserve URLs on single line
Auto-fix not working:
# Check file exists
view /path/to/file.md
# Verify permissions
ls -l /path/to/file.md
# Use absolute path
markdownlint-cli2 --fix /full/path/to/file.md
Too many errors after auto-fix:
# Create relaxed config
echo '{"MD013": false, "MD041": false}' > .markdownlint.json
markdownlint-cli2 --config .markdownlint.json --fix file.md
Specific rule causing issues:
"MD013": false"MD013": { "line_length": 120 }Skip linting when:
Use custom config to disable problematic rules.
Most common rules Claude will encounter:
Full rule documentation: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.