collect_code
Aggregate code from a directory or specific files into a single markdown document, streamlining code documentation and review processes.
Instructions
Collect all code from a directory into a single markdown file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
ignorePatterns | No | Patterns to ignore (similar to .gitignore) | |
input | Yes | ||
outputPath | Yes | Path where to save the output markdown file |
Input Schema (JSON Schema)
{
"properties": {
"ignorePatterns": {
"description": "Patterns to ignore (similar to .gitignore)",
"items": {
"type": "string"
},
"optional": true,
"type": "array"
},
"input": {
"oneOf": [
{
"description": "Path to directory or file to collect code from",
"type": "string"
},
{
"description": "List of file paths to collect code from",
"items": {
"type": "string"
},
"type": "array"
}
]
},
"outputPath": {
"description": "Path where to save the output markdown file",
"examples": [
"/path/to/project/src/FULL_CODE_SRC_2024-12-20.md"
],
"pattern": "^/.*",
"type": "string"
}
},
"required": [
"input",
"outputPath"
],
"type": "object"
}