hephaestus/mise-tasks/ai-docs
2026-05-31 06:13:36 -07:00

21 lines
696 B
Bash
Executable file

#!/usr/bin/env bash
#MISE description="Prime AI context with key project documentation"
set -euo pipefail
DOCS_DIR="$(cd "$(dirname "$0")/.." && pwd)/docs"
# Key files for AI context priming, in order of importance
FILES=(
"$DOCS_DIR/tutorials/ai-assistance-guide.md"
"$DOCS_DIR/how-to/agent-change-process.md"
"$DOCS_DIR/index.md"
"$DOCS_DIR/reference/reference.md"
"$DOCS_DIR/how-to/how-to.md"
"$DOCS_DIR/explanation/explanation.md"
"$DOCS_DIR/tutorials/tutorials.md"
)
# Concatenate files with headers showing paths
# Defaults are tuned for AI consumption (plain text, file headers only)
bat --style=header --color=never --decorations=always "$@" "${FILES[@]}"