Formatting markdown with line numbers for reference
Creating numbered documents for analysis tasks
Pre-processing content before sending to AI
Key Concepts
formatForAnalysis: Formats markdown content using Prettier and prepends line
numbers, making it easy for LLMs to reference specific lines in their responses.
Usage Patterns
Pattern 1: Format document for analysis
import { formatForAnalysis } from "@copilot-ld/libanalysis";
const document = `# README
This is a code sample.`;
const formatted = await formatForAnalysis(document);
// Returns:
// 1: # README
// 2: This is a code sample.
Integration
Standalone utility used in analysis scripts and evaluation pipelines.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: copilot-ld-copilot-ld-libanalysis3description: libanalysis Skill4---56# libanalysis Skill78## When to Use910- Preparing documents for LLM-based code review11- Formatting markdown with line numbers for reference12- Creating numbered documents for analysis tasks13- Pre-processing content before sending to AI1415## Key Concepts1617**formatForAnalysis**: Formats markdown content using Prettier and prepends line18numbers, making it easy for LLMs to reference specific lines in their responses.1920## Usage Patterns2122### Pattern 1: Format document for analysis2324```javascript25import { formatForAnalysis } from "@copilot-ld/libanalysis";2627const document = `# README28This is a code sample.`;2930const formatted = await formatForAnalysis(document);31// Returns:32// 1: # README33// 2: This is a code sample.34```3536## Integration3738Standalone utility used in analysis scripts and evaluation pipelines.3940---41> Converted and distributed by [TomeVault](https://tomevault.io/claim/copilot-ld) — claim your Tome and manage your conversions.42<!-- tomevault:4.0:skill_md:2026-04-13 -->
Run npx skillmds@latest add tomevault-io/copilot-ld-copilot-ld-libanalysis in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
libanalysis Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.