
bl1nk-architect-v2
Complete reference for Bl1nk Architect v2.0 - Full-stack GitHub repository analyzer with notificatio
by billlzzz10|Open Source
๐๏ธ Bl1nk Architect v2.0
Enterprise-grade GitHub repository analyzer with intelligent notifications, beautiful reporting, and skill system
โจ Features
Core Analysis
- ๐ 8-step repository analysis workflow
- ๐ Dependency detection (Python, TypeScript, Node.js)
- ๐ Code duplication detection
- ๐ค AI-powered insights (Gemini Deep Research)
Notifications (v2.0)
- ๐ฑ Slack webhooks - Real-time channel updates
- ๐ฃ Linear API - Automatic issue creation
- โ ClickUp API - Task management integration
Widgets (v2.0)
- ๐ Analysis cards - Metric visualization
- ๐ Progress bars - Visual indicators
- ๐ Metrics tables - Organized data
- ๐ฏ Dashboard panels - Complete analysis view
Skill System (NEW)
- ๐ง Agent Skills - Load and execute skills
- ๐ค Dynamic bots - Create per-skill Poe bots
- ๐ Plugin system - Extensible architecture
- ๐ก HTTP API - Rest endpoints
Development Tools
- ๐ฅ Health check system - 6 comprehensive checks
- ๐จ Streamlit dashboard - Real-time monitoring
- ๐ณ Docker setup - Containerized deployment
- ๐งช DevContainer - Local development
๐ Quick Start
Option 1: DevContainer (Recommended)
# Open in VS Code
# Install "Dev Containers" extension
# Click "Reopen in Container"
Or from terminal:
code --remote-env .devcontainer .
Option 2: Local Setup
# 1. Clone repository
git clone https://github.com/yourusername/bl1nk-architect.git
cd bl1nk-architect
# 2. Check dependencies
python check_dependencies.py
# 3. Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# 4. Install dependencies
pip install -e ".[dev]"
# 5. Configure environment
cp .env.example .env
# Edit .env with your credentials
# 6. Run health check
python health_check.py
# 7. Start application
python modal_app.py
Option 3: Docker
# Build and run with Docker Compose
docker-compose up -d
# Access services:
# - App: http://localhost:8000
# - Monitor: http://localhost:8501
๐ Commands
Development
# Check dependencies
python check_dependencies.py
# Run health checks
python health_check.py # All checks
python health_check.py lint # Specific check
python health_check.py --json # JSON output
# Start application
python modal_app.py # Local development
# Run dashboard
streamlit run dashboard.py # Monitoring
# Run tests
pytest tests/
# Format code
black src/ utils/
# Lint
pylint src/
Docker
# Build images
docker-compose build
# Run services
docker-compose up -d
# View logs
docker-compose logs -f app
docker-compose logs -f monitor
# Stop services
docker-compose down
# Health check from container
docker-compose exec app python health_check.py
Health Endpoints
# Basic health
curl http://localhost:8000/health
# Full report
curl http://localhost:8000/health/full
# Specific check
curl http://localhost:8000/health/lint
curl http://localhost:8000/health/skills
curl http://localhost:8000/health/webhooks
# HTTP from dashboard
# Open http://localhost:8501
๐ Project Structure
See STRUCTURE.md for detailed breakdown
bl1nk-architect/
โโโ .devcontainer/ # DevContainer config
โ โโโ devcontainer.json
โ โโโ setup.sh
โโโ src/ # Source code
โ โโโ bot.py # Original Poe bot
โ โโโ bot_with_skills.py # Enhanced bot with skills
โ โโโ orchestrator_v2.py # Enhanced workflow
โ โโโ health_check.py # Health checks
โ โโโ health_check_api.py # Health endpoints
โ โโโ skill_loader.py # Skill system
โ โโโ poe_plugin_manager.py # Poe integration
โ โโโ notifications/ # Notification system
โ โ โโโ notification_manager.py
โ โ โโโ slack_notifier.py
โ โ โโโ linear_notifier.py
โ โ โโโ clickup_notifier.py
โ โโโ widgets/ # Widget system
โ โ โโโ components.py
โ โโโ ...
โโโ example-skills/ # Example skills
โโโ docker-compose.yml # Docker compose
โโโ Dockerfile # Main app container
โโโ Dockerfile.dashboard # Dashboard container
โโโ dashboard.py # Streamlit dashboard
โโโ health_check.py # CLI health tool
โโโ check_dependencies.py # Dependency checker
โโโ modal_app.py # Modal serverless
โโโ pyproject.toml # Dependencies
โโโ .env.example # Environment template
โโโ README.md # This file
๐ง Configuration
Environment Variables (.env)
# Core (Required)
POE_ACCESS_KEY=pk_...
GITHUB_APP_ID=123456
GITHUB_PRIVATE_KEY=-----BEGIN PRIVATE KEY-----\n...
GOOGLE_API_KEY=AIza...
# Notifications (Optional)
SLACK_WEBHOOK_URL=https://hooks.slack.com/...
LINEAR_API_KEY=lin_...
CLICKUP_API_KEY=pk_...
Dependency Check
python check_dependencies.py
# Checks:
# โ Python 3.11+
# โ Virtual environment
# โ All packages
# โ .env file
# โ Environment variables
# โ Required directories
๐ฅ Health Checks
6 comprehensive checks available:
- Health Check - Service & packages
- Lint Check - Code quality
- Skill Check - Skills system
- Webhook Check - Slack/Linear/ClickUp
- GitHub Check - GitHub App config
- Deep Research - Gemini API
Run Checks
# All checks
python health_check.py
# Specific
python health_check.py webhooks
# JSON
python health_check.py --json
# HTTP
curl http://localhost:8000/health/full
See HEALTH_CHECK_GUIDE.md for details.
๐ Dashboard Monitor
Real-time system monitoring with Streamlit:
# Start dashboard
streamlit run dashboard.py
# Access
# http://localhost:8501
# Features:
# โ Overall status
# โ Individual check details
# โ Auto-refresh capability
# โ JSON raw data view
See HEALTH_CHECK_GUIDE.md for details.
๐ณ Docker Deployment
Two containerized services:
Service 1: Main Application
docker-compose up app
# Runs on port 8000
# Health check: http://localhost:8000/health
Service 2: Dashboard Monitor
docker-compose up monitor
# Runs on port 8501
# Access: http://localhost:8501
Both Services
docker-compose up
# Access:
# - App: http://localhost:8000
# - Monitor: http://localhost:8501
See Dockerfile and Dockerfile.dashboard
๐ Documentation
| Document | Purpose |
|---|---|
| COMPLETE_DOCUMENTATION.md | Everything (2,001 lines) |
| STRUCTURE.md | Project structure |
| HEALTH_CHECK_GUIDE.md | Health system |
| SKILL_SYSTEM_GUIDE.md | Skill system |
| SKILL_SYSTEM_API.md | Skill API reference |
| SKILL.md | Agent Skill wrapper |
๐ Integrations
Poe Chat Bot
from src.bot_with_skills import create_app_with_skills
app = create_app_with_skills()
Slack
from src.notifications import get_notification_manager
nm = get_notification_manager()
nm.register_slack(user_id, webhook_url)
Linear
nm.register_linear(user_id, api_key, team_id, project_id)
ClickUp
nm.register_clickup(user_id, api_key, project_id)
See COMPLETE_DOCUMENTATION.md for full API.
๐ข Deployment
Modal Cloud
modal secret create bl1nk-secrets \
POE_ACCESS_KEY="..." \
GITHUB_APP_ID="..." \
...
modal deploy modal_app.py
Docker
docker-compose up -d
Local
python modal_app.py
๐งช Testing
# Run all tests
pytest tests/
# With coverage
pytest --cov=src tests/
# Specific test
pytest tests/test_bot.py
๐ Development
Adding Skills
- Create
/home/user/skills/my-skill/SKILL.md - Add YAML frontmatter
- Add scripts in
scripts/folder - Bot auto-discovers
Adding Notifications
- Create notifier in
src/notifications/ - Implement
send_notification()method - Register in
NotificationManager - Update documentation
๐ค Contributing
- Fork repository
- Create feature branch
- Make changes
- Run:
python check_dependencies.py - Run:
python health_check.py - Submit pull request
๐ License
MIT License - See LICENSE.txt
๐ Support
Quick Help
- Setup issues? โ Run
python check_dependencies.py - Configuration? โ Check
.env.example - Errors? โ See HEALTH_CHECK_GUIDE.md
- API questions? โ See COMPLETE_DOCUMENTATION.md
Resources
- ๐ Documentation - See docs folder
- ๐ Issues - GitHub issues
- ๐ฌ Discussions - GitHub discussions
๐ฏ Next Steps
- โ Run dependency check
- โ Configure .env
- โ Run health check
- โ Start local development
- โ Monitor dashboard
- โ Deploy
Ready to ship! ๐
Bl1nk Architect - Enterprise Repository Analysis Platform