feat(reference-curator): Add Claude.ai Projects export format

Add claude-project/ folder with skill files formatted for upload to
Claude.ai Projects (web interface):

- reference-curator-complete.md: All 6 skills consolidated
- INDEX.md: Overview and workflow documentation
- Individual skill files (01-06) without YAML frontmatter

Add --claude-ai option to install.sh:
- Lists available files for upload
- Optionally copies to custom destination directory
- Provides upload instructions for Claude.ai

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-29 00:33:06 +07:00
parent 8762f68e6e
commit 243b9d851c
10 changed files with 1987 additions and 0 deletions

View File

@@ -717,6 +717,65 @@ EOF
post_install
}
# ============================================================================
# Export for Claude.ai Projects
# ============================================================================
export_claude_ai() {
print_header
echo -e "${BOLD}Export for Claude.ai Projects${NC}"
echo ""
local project_dir="$SCRIPT_DIR/claude-project"
if [[ ! -d "$project_dir" ]]; then
print_error "claude-project directory not found"
echo "Expected: $project_dir"
exit 1
fi
echo "Available files for Claude.ai Projects:"
echo ""
echo -e " ${CYAN}Consolidated (single file):${NC}"
echo " reference-curator-complete.md - All 6 skills in one file"
echo ""
echo -e " ${CYAN}Individual skills:${NC}"
ls -1 "$project_dir"/*.md 2>/dev/null | while read file; do
local filename=$(basename "$file")
local size=$(du -h "$file" | cut -f1)
if [[ "$filename" != "INDEX.md" && "$filename" != "reference-curator-complete.md" ]]; then
echo " $filename ($size)"
fi
done
echo ""
echo -e "${BOLD}Upload to Claude.ai:${NC}"
echo ""
echo " 1. Go to https://claude.ai"
echo " 2. Create a new Project or open existing one"
echo " 3. Click 'Add to project knowledge'"
echo " 4. Upload files from:"
echo -e " ${CYAN}$project_dir${NC}"
echo ""
echo " Recommended: Upload 'reference-curator-complete.md' for full skill set"
echo ""
if prompt_yes_no "Copy files to a different location?" "n"; then
prompt_with_default "Destination directory" "$HOME/Desktop/reference-curator-claude-ai" "DEST_DIR"
mkdir -p "$DEST_DIR"
cp "$project_dir"/*.md "$DEST_DIR/"
print_success "Files copied to $DEST_DIR"
echo ""
echo "Files ready for upload:"
ls -la "$DEST_DIR"/*.md
fi
echo ""
echo -e "${GREEN}Done!${NC} Upload the files to your Claude.ai Project."
}
# ============================================================================
# Entry Point
# ============================================================================
@@ -731,6 +790,9 @@ case "${1:-}" in
--minimal)
install_minimal
;;
--claude-ai)
export_claude_ai
;;
--help|-h)
echo "Reference Curator - Portable Installation Script"
echo ""
@@ -738,6 +800,7 @@ case "${1:-}" in
echo " ./install.sh Interactive installation"
echo " ./install.sh --check Check installation status"
echo " ./install.sh --minimal Firecrawl-only mode (no MySQL)"
echo " ./install.sh --claude-ai Export skills for Claude.ai Projects"
echo " ./install.sh --uninstall Remove installation"
echo " ./install.sh --help Show this help"
;;