This repository contains documentation, scripts, and configurations for server setup and management, including AI agent memories, rules, dotfiles, and various configuration files. The document library has been consolidated under the new docs/ directory for easier navigation.
- docs - Consolidated documentation library organized by topic (setup, architecture, agents, projects, resumes, metadata)
- documentation - Existing documentation system with guides, examples, and research (being consolidated into
docs/) - master_documents - Legacy setup bundles, reports, and configuration archives
- scripts - Organized collection of utility scripts
- agents - AI agent definitions and supporting material
- ai_agents - CrewAI configurations, rules, memories, and workflows
- dotfiles - Shell configuration files, functions, and aliases
- mcp_servers - Model Context Protocol server configs
- docker_configs - Docker Compose and container configs
- Start with the consolidated index at docs/README.md to see how files are grouped.
- Use docs/overview/README.md for navigation tips and recommended entry points.
- The legacy TABLE_OF_CONTENTS.md remains at the repository root with links updated to the new paths.
- Supporting metadata for generated indexes now lives in docs/metadata/.
The master_documents directory contains:
- install_scripts - Installation scripts and documentation
- configuration_files - Configuration files used in the setup
- reports - System reports and analysis tools
- logs - Log management and centralization
- ai_services - AI services setup and configuration
The repository includes automated workflows and tools for managing AI configurations:
- memories - Store and retrieve AI agent memories
- rules - Define and manage AI agent rules
- crews - CrewAI crew configurations
- mcp_servers - Model Context Protocol server configs
- docker_configs - Docker Compose and container configs
Use these workflows to save configurations:
save-ai-memory.yml- Save AI agent memoriessave-ai-rule.yml- Save AI agent rulessave-dotfile.yml- Save shell dotfilessave-docker-config.yml- Save Docker configurationssave-mcp-server.yml- Save MCP server configssave-crew-config.yml- Save CrewAI crew configs
This repository uses automated secret scanning to prevent accidental commits of sensitive information:
secret-scanning.yml- Automatically scans all commits and pull requests for secrets using Gitleaks- Runs on every push and pull request to any branch
- Blocks commits and PRs that contain secrets (API keys, passwords, tokens, etc.)
- To enable protection, configure branch protection rules in repository settings to require this check to pass
Important: Always review your code before committing to ensure no sensitive data is included. The secret scanner helps catch common mistakes but should not be your only line of defense.
Use the kb_manager.sh script for quick access:
# Save a memory
./scripts/utilities/kb_manager.sh memory "topic_name" "content here"
# Save a rule
./scripts/utilities/kb_manager.sh rule "rule_name" "rule content"
# Search content
./scripts/utilities/kb_manager.sh search "docker"
# List items
./scripts/utilities/kb_manager.sh list memories
# Recall content
./scripts/utilities/kb_manager.sh recall ai_agents/memories/file.mdThe scripts directory contains organized scripts by category:
- AI Monitoring - Scripts for AI monitoring and related tools
- Database - Scripts for database management and configuration
- Deployment - Scripts for system deployment and setup
- Documentation - Documentation management and knowledge base scripts
- Networking - Scripts for networking configuration
- Storage - Scripts for storage management
- Utilities - Various utility scripts including kb_manager.sh
The documentation directory contains a comprehensive documentation management system with extensive examples and guides:
documentation/
├── examples/ # Production-ready code examples
│ ├── shell-scripts/ # Shell scripting best practices
│ └── python/ # Python examples (API, AI, automation)
├── how-to-guides/ # Step-by-step tutorials
├── troubleshooting-guide.md # Comprehensive troubleshooting
└── README.md
Shell Scripts (examples/shell-scripts)
- Production-ready database backup script
- Best practices and patterns
- Error handling and logging
- Complete with documentation
Python Examples (examples/python)
- AI Integration: OpenAI, Anthropic, Ollama, LangChain
- REST APIs: Complete FastAPI application with auth
- Automation: System monitoring, file processing
- Production-ready patterns and best practices
Available Stacks (docker_configs/compose)
- PostgreSQL: Full setup with pgAdmin, backups, monitoring
- Redis: Cache setup with Redis Commander
- Nginx: Reverse proxy with SSL, load balancing
- MongoDB: Database with Mongo Express interface
Each includes:
- docker-compose.yml configuration
- Environment variable templates
- Comprehensive README with usage examples
- Production best practices
- Troubleshooting guides
Available Guides (documentation/how-to-guides)
Each guide includes:
- Step-by-step instructions
- Code examples and configurations
- Verification steps
- Troubleshooting section
- Production checklist
See the Troubleshooting Guide for:
- Common Docker issues
- Database connection problems
- API and networking issues
- Performance optimization
- Debug commands and tools
- Production-Ready Examples: All code is tested and follows best practices
- Comprehensive Documentation: Each example includes full documentation
- Real-World Patterns: Error handling, logging, monitoring, security
- Multiple Languages: Shell, Python, YAML, SQL examples
- Copy-Paste Ready: Examples can be used directly in your projects
# Use PostgreSQL stack
cd docker_configs/compose/postgresql
cp .env.example .env
docker-compose up -d
# Try Python LLM integration
cd documentation/examples/python/ai-integration
python llm-examples.py
# Run system monitoring
cd documentation/examples/python/automation
python system-monitoring.pySee documentation/README.md for detailed information about the documentation management system.
- Review the documentation in master_documents
- Use the report scripts in master_documents/reports to gather system information
- Set up log centralization using the scripts in master_documents/logs
- Install AI services using the configurations in master_documents/ai_services
Feel free to contribute by adding new scripts, updating documentation, or improving existing tools.