libanalysis

Format Markdown with Prettier and prepend line numbers for analysis.

1|1|Updated Aug 7, 2025
One-click install
npx skills add https://github.com/copilot-ld/copilot-ld --skill libanalysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: libanalysis
Source: https://github.com/copilot-ld/copilot-ld/tree/main/packages/libanalysis
Command: npx skills add https://github.com/copilot-ld/copilot-ld --skill libanalysis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The libanalysis skill provides a dedicated utility to format Markdown content for AI-assisted review by applying consistent Prettier formatting and adding line numbers for easy reference.

Core Features & Use Cases

  • FormatForAnalysis: Formats Markdown with Prettier and prefixes each line with a numbered reference to streamline code reviews and document analysis.
  • Use Case: Prepare policy docs, README files, or code samples for LLM-based analysis and evaluation pipelines.
  • Integration: Acts as a standalone utility or as a library function exported by the package for integration into analysis scripts.

Quick Start

Run formatForAnalysis on a Markdown document to produce line-numbered, Prettier-formatted output ready for AI review.

Frequently Asked Questions about libanalysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I format Markdown with line numbers for AI code review?

You can use the formatForAnalysis utility to format Markdown for AI review, which applies Prettier styling to standardize the document and prepends line numbers for easy reference during LLM analysis and document evaluation.

What is the best way to prepare Markdown documents for LLM-based analysis?

The best way to prepare Markdown documents for LLM-based analysis is to standardize formatting with Prettier and prepend line numbers, ensuring consistent structure for AI models to evaluate policy docs, README files, or code samples.

Does this Markdown formatting utility work in Node.js environments?

Yes, this Markdown formatting utility works in Node.js environments by exporting a formatForAnalysis function. It acts as a standalone utility or a library function for integration into scripts that prepare documents for AI review.

How do I use Prettier to add line numbers to a Markdown file?

To use Prettier to add line numbers to a Markdown file, the formatForAnalysis utility applies Prettier styling to standardize the content, then prefixes each line with a numbered reference to produce output ready for AI review.

Can I integrate line-numbered Markdown formatting into my existing analysis scripts?

Yes, you can integrate line-numbered Markdown formatting into existing analysis scripts by importing the exported formatForAnalysis function. It is compatible with Node.js environments and designed for documentation preparation and evaluation pipelines.