Copilot Ld Copilot Ld Libanalysis

libanalysis Skill

tomevault-io Updated

File contents

libanalysis Skill

When to Use

  • Preparing documents for LLM-based code review
  • 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.

tomevault-io/skills-registry/tree/main/copilot-ld--copilot-ld--libanalysis commit a22c9e1e4b

Frequently asked questions

npx skillmds@latest add tomevault-io/copilot-ld-copilot-ld-libanalysis