billlzzz10 avatar

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

Status Python License


โœจ 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:

  1. Health Check - Service & packages
  2. Lint Check - Code quality
  3. Skill Check - Skills system
  4. Webhook Check - Slack/Linear/ClickUp
  5. GitHub Check - GitHub App config
  6. 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

DocumentPurpose
COMPLETE_DOCUMENTATION.mdEverything (2,001 lines)
STRUCTURE.mdProject structure
HEALTH_CHECK_GUIDE.mdHealth system
SKILL_SYSTEM_GUIDE.mdSkill system
SKILL_SYSTEM_API.mdSkill API reference
SKILL.mdAgent 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

  1. Create /home/user/skills/my-skill/SKILL.md
  2. Add YAML frontmatter
  3. Add scripts in scripts/ folder
  4. Bot auto-discovers

Adding Notifications

  1. Create notifier in src/notifications/
  2. Implement send_notification() method
  3. Register in NotificationManager
  4. Update documentation

๐Ÿค Contributing

  1. Fork repository
  2. Create feature branch
  3. Make changes
  4. Run: python check_dependencies.py
  5. Run: python health_check.py
  6. Submit pull request

๐Ÿ“„ License

MIT License - See LICENSE.txt


๐Ÿ†˜ Support

Quick Help

Resources

  • ๐Ÿ“– Documentation - See docs folder
  • ๐Ÿ› Issues - GitHub issues
  • ๐Ÿ’ฌ Discussions - GitHub discussions

๐ŸŽฏ Next Steps

  1. โœ… Run dependency check
  2. โœ… Configure .env
  3. โœ… Run health check
  4. โœ… Start local development
  5. โœ… Monitor dashboard
  6. โœ… Deploy

Ready to ship! ๐Ÿš€

Bl1nk Architect - Enterprise Repository Analysis Platform

bl1nk-architect-v2 - AI Agent Skill for Claude Code & Cursor | Agent Skills