code-stitcher

Consolidates project files into a single text file for analysis and search.

3|1|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/relux-works/alexis-agents-infra --skill code-stitcher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-stitcher
Source: https://github.com/relux-works/alexis-agents-infra/tree/main/skills/code-stitcher
Command: npx skills add https://github.com/relux-works/alexis-agents-infra --skill code-stitcher

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires swift, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of analyzing, searching, or loading entire codebases into LLM contexts by consolidating multiple project files into a single, manageable text file.

Core Features & Use Cases

  • Project-wide Search: Enables efficient searching across an entire project using standard tools like grep.
  • LLM Context Loading: Simplifies the process of providing comprehensive project context to Large Language Models.
  • Archiving: Facilitates the serialization of project structures into a readable, flat format.

Quick Start

Use the code-stitcher skill to stitch the contents of the './src' directory into the './output.txt' file.

Frequently Asked Questions about code-stitcher

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

FAQPage Schema
How do I consolidate project files into a single text file for LLM context loading?

To consolidate project files for LLM context loading, you can stitch multiple code and documentation files into one manageable flat text file. This aggregates your codebase while respecting .gitignore rules, simplifying comprehensive context provision to Large Language Models.

Can I search across an entire codebase using standard tools like grep?

Yes, you can search across an entire codebase using grep by first aggregating project files into a single text file. This flat file serialization enables efficient project-wide search and analysis using standard command-line text processing tools.

Does code-stitcher respect gitignore rules when aggregating source files?

Yes, code-stitcher respects .gitignore rules when aggregating source files. It consolidates supported code and documentation extensions into a single text file while automatically excluding ignored paths, ensuring only relevant project structures are read.

Do I need Swift installed to stitch project files into one output file?

Yes, Swift is required as a dependency to stitch project files into one output file. The skill offers both script-based and direct Swift execution methods for reading project structures and writing the aggregated text output.

What is the best way to provide comprehensive project context to a Large Language Model?

The best way to provide comprehensive project context to an LLM is to serialize your project structures into a readable flat format. Stitching supported code and documentation files into a single text file streamlines analysis and context loading.

Are there limitations when stitching project files into a single text file?

When stitching project files into a single text file, aggregation is limited to supported common code and documentation extensions. Files matching .gitignore rules are excluded, meaning unsupported binary or non-text formats will not be included in the output.