library/specializations/cli-mcp-development/skills/line-ending-normalizer/SKILL.md
Normalize line endings for cross-platform file handling with CRLF/LF conversion and git configuration.
npx skillsauth add a5c-ai/babysitter line-ending-normalizerInstall 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.
Normalize line endings for cross-platform compatibility.
export type LineEnding = 'lf' | 'crlf' | 'mixed';
export function detectLineEnding(content: string): LineEnding {
const crlf = (content.match(/\r\n/g) || []).length;
const lf = (content.match(/(?<!\r)\n/g) || []).length;
if (crlf > 0 && lf > 0) return 'mixed';
if (crlf > 0) return 'crlf';
return 'lf';
}
export function normalizeLineEndings(content: string, target: 'lf' | 'crlf' = 'lf'): string {
const normalized = content.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
return target === 'crlf' ? normalized.replace(/\n/g, '\r\n') : normalized;
}
// .gitattributes content
export const gitattributes = `
* text=auto eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
*.sh text eol=lf
`;
development
Model documentation skill for generating model cards following Google's model card framework.
development
MLflow integration skill for experiment tracking, model registry, and artifact management. Enables LLMs to log experiments, compare runs, manage model lifecycle, and retrieve artifacts through the MLflow API.
data-ai
LIME-based local explanation skill for individual predictions across tabular, text, and image data.
devops
Kubeflow Pipelines skill for ML workflow orchestration, component management, and Kubernetes-native ML.