Agent skill
libanalysis
libanalysis - Code analysis and formatting utilities. formatForAnalysis function prepares markdown documents with Prettier formatting and line numbers for LLM code review tasks. Use for document preparation, code analysis, and creating numbered reference documents for AI processing.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/libanalysis
SKILL.md
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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?