-
AI Skill
- Access Fingerprinter
- Accessibility Design
- Ad Campaign Optimization
- Advisor Action Framework
- AEO RECOMMENDATION TOOL - SYSTEM PROMPT
- Agentic Task Execution
- AI Candor Probe
- AI Citation Tracking
- AI Content Authenticity Detection
- AI Coworker Trust Protocol
- AI Inference Boundary Review
- AI Journalism
- AI Project Showcase Skill
- AI Self-Report Calibration
- AI Vision Diagnosis
- Antigravity Browser QA
- Antigravity Parallel Debug
- Antigravity Test Orchestration
- Apache HTTPD Configuration
- API Design
- Apple Human Interface Design System
- AppSec Engineer — API Security Specialist
- AppSec Engineer — Cloud & Container Security Specialist
- AppSec Engineer — DevSecOps Specialist
- AppSec Engineer — IAM Security Specialist
- AppSec Engineer — Security Testing & Incident Response Specialist
- Arborist / Tree Care Specialist
- Atlanta Gardening
- Atlanta Guide
- B2B Media Consulting
- Botanical Garden Taxonomist
- Botanist / Plant Scientist
- Brand Voice Development
- Business Proposal Evaluation
- Career Assessment
- Celery Task Management
- Chapter 22: Safety & Guardrails
- Chapter 26: Security Standards
- Chapter 28: Cursor Skills
- Children's Garden Educator
- Civic Tech Privacy Architecture
- Claims Integrity Audit
- CloudKit + Tauri Debugging
- Code Review
- Community Engagement Features
- Community Engagement Manager
- Competitive Analysis
- Conservation Biologist
- Content Gap Analysis
- Content Strategy
- Contract Analysis
- Conversational UI Design
- Cooking Technique Tutorial
- Copywriting
- Culinary Knowledge Lookup
- Curator of Living Collections
- Customer Journey Methodology
- Customer Support
- Data Interpretation
- Democratic Health Monitoring
- Dependency Hygiene
- Design Systems
- Dify Knowledge Base Management
- Director of Education
- Director of Horticulture
- Director of Science & Research
- Dive Conditions Forecasting
- Dive Planning
- Dive Site Data Ingestion
- Diversity, Equity & Inclusion (DEI) Coordinator
- Docker Compose Management
- Education Curator
- Education Program Coordinator
- Email Campaign Automation
- Email Parsing — Travel Bookings
- Estate Accounting
- Estate and Trust Management
- Estate Document Extraction
- Estate Jurisdiction Engine
- Estate Manager — Build Plan
- Estate Manager — Updated Product Roadmap
- Estate Professional — CPA / Accountant
- Estate Professional — Elder Law Attorney
- Estate Professional — Enrolled Agent
- Estate Professional — Estate Planning Attorney
- Estate Professional — Financial Advisor
- Estate Professional — Insurance Agent
- Estate Professional — Probate Attorney
- Estate Professional — Probate Litigation Attorney
- Estate Professional — Real Estate Agent
- Estate Professional — Real Estate Appraiser
- Estate Professional — Real Estate Attorney
- Estate Professional — Tax Attorney
- Estate Professional — Title Company
- Estate Task Automation
- EventKit Calendar Sync
- Executive Advisor Board — Build Plan
- Executive Board Advisor
- Executive CCO (Chief Customer Success Officer)
- Executive CEO
- Executive CFO
- Executive CHRO
- Executive CMO
- Executive COO
- Executive CPO (Chief Product Officer)
- Executive CRO (Chief Revenue Officer)
- Executive CTO
- Executive General Counsel
- Expat Planning
- Expat Tax Compliance
- Fact-Checking
- Family Gamification Design
- FastAPI Development
- Federal Register API Integration
- FIFA 2026 World Cup Travel Advisory
- Financial Analysis
- Flask Application Development
- FLUX Image Generation
- FLUX Operations
- Garden Technician
- Gardener / Groundskeeper
- Generative Engine Optimization
- GIS / Mapping Specialist
- Grateful Dead Historian
- Greenhouse Manager
- Greenhouse Technician
- Guided Content Journeys
- Head Gardener / Garden Manager
- Herbarium Curator
- Horticulturist
- Image Generation Service Operations
- Influencer Marketing
- Infrastructure Operations
- Infrastructure Upgrades
- Integrated Pest Management (IPM) Specialist
- Interaction Design
- Internship Program Coordinator
- Interview Coaching Design
- Irrigation Specialist
- ITI Audience Development
- ITI Consulting Intake
- ITI Content Strategy
- ITI Financial Modeling
- ITI MD to Wordpress HTML Converter
- ITI Quality Assurance
- ITI Report Synthesis
- ITI Strategic Planning
- ITI Technology Strategy
- ITI Token Compression Skill
- Java Development
- Journey Mapping
- Landing Page Optimization
- Lead Qualification
- Local SEO Optimization
- Marine Life Identification
- Market Research
- MCP Client for Tauri
- MCP Server Development
- Meal Planning
- Meeting Management
- Mental Load Equity Design
- Multi-Agent Deliberation Design
- Multilingual Content Management
- Music Discovery
- n8n + Dify Testing
- n8n Debugging
- n8n Workflow Development
- News Credibility Scoring
- Nginx Reverse Proxy
- Objection Handling
- Onboarding Design
- Pinecone Embedding Management
- Podcast Production
- Political Speech Analyzer
- PostgreSQL Administration
- Presentation Design
- Press Release Writing
- PRISM ZIP Code → Zone Lookup
- Privacy Compliance
- Product Design
- Product Roadmap Update Prompt
- Professional Selection
- Project Management
- Prompt Auditor
- Proposal Evaluation
- Public Relations Manager
- RabbitMQ Messaging
- Recipe Formatting
- Redis Operations
- Release Management
- Requirements Writing
- Research Associate / Lab Technician
- Retirement Calculator Engine
- Roadmap Build Planning
- Safety Guardrails
- Salary Negotiation Frameworks
- Schema Markup Generation
- School Programs Specialist
- Scope Control
- Scouting Trip Planning
- Screenshot Capture Guide
- Seed Bank Curator
- SEO & AEO Optimization
- Session Context Protocol
- Skills Index
- Social Media Content Calendar
- Stable Diffusion Image Generation
- Tauri Desktop Development
- Tavily & Pinecone Integrations
- Tavily API Quick Reference - Factchecker Plugin
- Tech Debt Analysis
- Technical Writing
- Test Plan Writing
- Therapeutic Horticulture Program Manager
- Travel Planning
- TSP Route Optimization
- UI Design
- UX Research
- Vibe Coding Guardrails
- Video Scripting
- Visual Brand Design
- Volunteer Coordinator
- Weather-Disease Modeling
- Wildlife Habitat Certification Guide
- WordPress SEO Plugin Integration
- Workflow Adapter Integration
- Show Remaining Articles (211) Collapse Articles
-
Product Showcase
- AEO Optimizer Product Showcase
- AI News Cafe Product Showcase
- AI Project Showcase: Journey Mapper (Customer Journey Mapper)
- AI Project Showcase: SEO Assistant with LLM
- Estate Manager Product Showcase
- Executive Advisor Board Product Showcase
- Expat Advisor Showcase
- Factchecker Product Showcase
- Farmers Bounty Product Showcase
- Gardener's Bounty AI Assistant Product Showcase
- GD Claude Chatbot Product Showcase
- IT Influentials Agent POC Product Showcase
- IT Influentials Agent Product Showcase
- IT Influentials Express Agents Product Showcase
- My TravelPlanner Product Showcase
- Patriot Agent Product Showcase
- Patriot University Showcase
- ScubaGPT — Product Showcase
- ScubaGPT Showcase
- WordPress Plugin Clone Safety Checker Showcase
- Show Remaining Articles (5) Collapse Articles
-
ITI Knowledge System
- Chapter 1: Introduction
- Chapter 10: n8n — Debugging & Operations
- Chapter 11: Dify — Knowledge Bases & RAG
- Chapter 12: The ITI Workflow Adapter
- Chapter 13: The ITI Shared Library
- Chapter 14: WordPress Plugin Development
- Chapter 15: Desktop Apps with Tauri 2
- Chapter 16: Python Services
- Chapter 17: iOS & macOS with Swift
- Chapter 18: Claude & the Anthropic API
- Chapter 19: Prompt Engineering
- Chapter 2: Workspace Overview
- Chapter 20: Agents, Skills & Pipelines
- Chapter 21: Knowledge Bases
- Chapter 22: Safety & Guardrails
- Chapter 23: Build Session Protocol
- Chapter 24: Required Product Artifacts
- Chapter 25: Testing
- Chapter 26: Security Standards
- Chapter 27: Deployment
- Chapter 28: Cursor Skills
- Chapter 29: Cursor Rules
- Chapter 3: The Docker Stack
- Chapter 30: MCP Integrations
- Chapter 31: Builder and Agent Roles
- Chapter 32: Builder's Portfolio
- Chapter 33: Claims Integrity & Content Governance
- Chapter 4: Daily Operations
- Chapter 5: Infrastructure Upgrades
- Chapter 6: PostgreSQL & pgvector
- Chapter 7: Redis
- Chapter 8: Nginx Reverse Proxy
- Chapter 9: n8n — Workflow Development
- Show Remaining Articles (18) Collapse Articles
-
AI Agent
-
User Guide
- ADMIN-SHORTCODES.html Update Summary
- Factchecker Plugin - Installation Guide
- Factchecker Plugin - Troubleshooting Guide
- Farmers Bounty - Quick Start Guide
- Farmers Bounty - Troubleshooting Guide
- Farmers Bounty - User Guide
- Farmers Bounty Chatbot - Complete Documentation
- Farmers Bounty Desktop User Guide
- Farmers Bounty Plugin - Gardener's Review Guide
- Farmers Bounty Plugin v6.6.0 - Release Notes
- Farmers Bounty v2.0 - Complete User Guide
- Farmers Bounty v5.3.0 - Complete User Guide
- SEO Assistant with LLM
- 🌱 Farmers Bounty Homepage Shortcode - Quick Start
- 🌱 Farmers Bounty Shortcodes
- 🌹 Grateful Dead Chatbot - Quickstart Guide ⚡
- Show Remaining Articles (1) Collapse Articles
-
Requirements
-
ScubaGPT
-
Grateful Dead Chatbot
-
Farmers Bounty
- 01 current state analysis
- 02 architecture overview
- 03 data sources
- 05 cost analysis
- 06 database schema
- 08 ui ux changes
- 09 ai context optimization
- 10 testing validation
- 11 risk mitigation
- 12 implementation checklist
- ADMIN-SHORTCODES.html Update Summary
- Atlanta Gardening
- Beneficial Insects Guide for Georgia Gardens
- Botanical Garden Taxonomist
- Children's Garden Educator
- Farmers Bounty - Quick Start Guide
- Farmers Bounty - Troubleshooting Guide
- Farmers Bounty - User Guide
- Farmers Bounty Chatbot - Complete Documentation
- Farmers Bounty Desktop User Guide
- Farmers Bounty Plugin - Gardener's Review Guide
- Farmers Bounty Plugin v6.6.0 - Release Notes
- Farmers Bounty v2.0 - Complete User Guide
- Farmers Bounty v5.3.0 - Complete User Guide
- Glossary
- Integrated Pest Management (IPM) Specialist
- PRISM ZIP Code → Zone Lookup
- Public Relations Manager
- Recipe Formatting
- Research Associate / Lab Technician
- School Programs Specialist
- Seed Bank Curator
- Volunteer Coordinator
- Weather-Disease Modeling
- Wildlife Habitat Certification Guide
- 🌱 Farmers Bounty Homepage Shortcode - Quick Start
- 🌱 Farmers Bounty Shortcodes
- Show Remaining Articles (22) Collapse Articles
-
Technical Document
- Accessibility Design
- Agentic Task Execution
- AI Candor Probe
- AI Coworker Trust Protocol
- AI Inference Boundary Review
- AI Vision Diagnosis
- Antigravity Browser QA
- Antigravity Parallel Debug
- Antigravity Test Orchestration
- AppSec Engineer — IAM Security Specialist
- Chapter 22: Safety & Guardrails
- Chapter 26: Security Standards
- Civic Tech Privacy Architecture
- ClaimReview Schema Integration
- Claims Evidence Registry
- Code Review
- IT Influentials Express Agents Product Showcase
- Java Development
- MCP Client for Tauri
- MCP Server Development
- Nginx Reverse Proxy
- Pinecone Embedding Management
- PostgreSQL Administration
- Product Roadmap Update Prompt
- Prompt Auditor
- RabbitMQ Messaging
- Redis Operations
- Release Management
- Retirement Calculator Engine
- Roadmap Build Planning
- Schema Markup Generation
- ScubaGPT — Architecture
- ScubaGPT Safety Guardrails - Quick Reference
- Session Context Protocol
- Stable Diffusion Image Generation
- Tauri Desktop Development
- Tavily & Pinecone Integrations
- Tavily API Quick Reference - Factchecker Plugin
- Tech Debt Analysis
- Test Plan Writing
- Travel Planner — n8n + Dify Integration Guide
- UI Design
- UX Research
- Vibe Coding Guardrails
- WordPress Plugin Clone Safety Checker Showcase
- Workflow Adapter Integration
- Show Remaining Articles (31) Collapse Articles
-
Answer Engine Optimizer
-
SEO Optimizer
-
Travel Planner
-
Fact Checker
-
Estate Manager
-
ITI Operations
- Access Fingerprinter
- Accessibility Design
- Advisor Action Framework
- Agentic Task Execution
- AI Candor Probe
- AI Content Authenticity Detection
- AI Coworker Trust Protocol
- AI Inference Boundary Review
- AI Project Showcase Skill
- AI Self-Report Calibration
- Antigravity Browser QA
- Antigravity Parallel Debug
- Antigravity Test Orchestration
- Apple Human Interface Design System
- AppSec Engineer — API Security Specialist
- AppSec Engineer — DevSecOps Specialist
- Chapter 32: Builder's Portfolio
- CloudKit + Tauri Debugging
- Code Review
- Content Strategy
- Customer Journey Methodology
- Customer Support
- Data Interpretation
- Dependency Hygiene
- End-User Documentation Requirements Document
- Farmers Bounty Plugin - Gardener's Review Guide
- Generative Engine Optimization
- Guided Content Journeys
- Influencer Marketing
- Infrastructure Upgrades
- Interaction Design
- IT Influentials Agent POC Product Showcase
- IT Influentials Agent Product Showcase
- IT Influentials Express Agents Product Showcase
- ITI Audience Development
- ITI Consulting Intake
- ITI Financial Modeling
- ITI Quality Assurance
- ITI Report Synthesis
- ITI Strategic Planning
- ITI Token Compression Skill
- Market Research
- MCP Server Development
- Multi-Agent Deliberation Design
- Multilingual Content Management
- n8n Debugging
- n8n Workflow Development
- Pinecone Embedding Management
- Privacy Compliance
- Product Roadmap Update Prompt
- Project Management
- Prompt Auditor
- Proposal Evaluation
- Redis Operations
- Release Management
- Requirements Writing
- Roadmap Build Planning
- Safety Guardrails
- Scope Control
- Screenshot Capture Guide
- Stable Diffusion Image Generation
- Tavily & Pinecone Integrations
- Technical Writing
- Test Plan Writing
- UI Design
- UX Research
- Vibe Coding Guardrails
- Wordpress Plugin Install Safety Features
- Show Remaining Articles (53) Collapse Articles
-
ITI Marketing
- Articles coming soon
-
Patriot University
-
Personal Assistant
FLUX Operations
name: flux-operations
description: Deploy, configure, and manage FLUX image generation backends (local Klein 4B and BFL cloud API) within the ITI multi-backend image generation service. Covers backend switching, API credential management, model downloads, health monitoring, Docker and native deployment, and troubleshooting. Use when configuring FLUX backends, managing BFL API credentials, switching between local and cloud FLUX, or troubleshooting FLUX-specific issues.
FLUX Operations
Instructions
Manage FLUX backends within the ITI image generation service at ITI/infrastructure/stable-diffusion/. The service supports three backends: sd (legacy Stable Diffusion), flux-local (FLUX.2 Klein 4B), and flux-api (BFL cloud API).
Setting the default backend:
# In .env (native mode) or docker-compose.yml
SD_DEFAULT_BACKEND=flux-api # BFL cloud (recommended default)
SD_DEFAULT_BACKEND=flux-local # Local Klein 4B
SD_DEFAULT_BACKEND=sd # Legacy Stable Diffusion
Per-request override: include "backend": "flux-api" or "flux-local" in the JSON body.
Starting the service (native — M3 Max with MPS):
cd ITI/infrastructure/stable-diffusion
source .venv/bin/activate
SD_DEVICE=auto SD_OUTPUT_DIR=./outputs SD_MODEL_DIR=./models \
SD_DEFAULT_BACKEND=flux-api \
SD_BFL_API_KEY=<your-key> \
SD_BFL_DEFAULT_MODEL=flux-2-pro-preview \
uvicorn app.main:app --host 0.0.0.0 --port 7860
Starting the service (Docker):
cd ITI/infrastructure/n8n-dify
docker compose --profile sd up -d stable-diffusion
Ensure the docker-compose.yml stable-diffusion service has these environment variables:
environment:
SD_DEFAULT_BACKEND: ${SD_DEFAULT_BACKEND:-flux-api}
SD_BFL_API_KEY: ${SD_BFL_API_KEY}
SD_BFL_DEFAULT_MODEL: ${SD_BFL_DEFAULT_MODEL:-flux-2-pro-preview}
SD_FLUX_MODEL_ID: ${SD_FLUX_MODEL_ID:-black-forest-labs/FLUX.2-klein-4B}
BFL API credential management:
- Obtain an API key at https://api.bfl.ai/
- Store in
.envasSD_BFL_API_KEY=bfl_...— NEVER commit this value - The
.gitignoreatITI/infrastructure/stable-diffusion/.gitignoreexcludes.envfiles - For Docker, set
SD_BFL_API_KEYinITI/infrastructure/n8n-dify/.env
Health check and backend status:
# Full health (reports all backends)
curl -s http://localhost:7860/health | python3 -m json.tool
# Quick backend availability
curl -s http://localhost:7860/api/backends | python3 -m json.tool
# Available models
curl -s http://localhost:7860/api/models | python3 -m json.tool
FLUX Klein local model management:
The Klein 4B model downloads from Hugging Face on first use (~8 GB). Cache location:
| Mode | Cache Path |
|---|---|
| Native | ./models/ |
| Docker | sd_models volume |
Pre-download to avoid first-request delay:
python3 -c "
from diffusers import Flux2KleinPipeline
Flux2KleinPipeline.from_pretrained(
'black-forest-labs/FLUX.2-klein-4B',
cache_dir='./models'
)
print('FLUX Klein 4B downloaded successfully')
"
Requirements: diffusers>=0.37.0, transformers>=4.45.0, sentencepiece.
BFL API model configuration:
| Environment Variable | Default | Purpose |
|---|---|---|
SD_BFL_API_KEY |
(required) | BFL authentication |
SD_BFL_API_BASE |
https://api.bfl.ai/v1 |
API endpoint |
SD_BFL_DEFAULT_MODEL |
flux-2-pro-preview |
Default FLUX model |
SD_BFL_POLL_INTERVAL |
1.0 |
Seconds between status polls |
SD_BFL_POLL_TIMEOUT |
120.0 |
Max seconds to wait for result |
Available BFL models:
| Model ID | Quality | Speed | Price/MP |
|---|---|---|---|
flux-2-pro-preview |
Highest (latest) | ~5s | $0.03 |
flux-2-pro |
High (fixed snapshot) | ~5s | $0.03 |
flux-2-max |
Ultra (grounding search) | ~8s | $0.07 |
flux-2-flex |
High (typography) | ~6s | $0.06 |
flux-2-klein-4b |
Good (fast) | <1s | $0.014 |
flux-2-klein-9b-preview |
Better (balanced) | ~1s | $0.015 |
FLUX Klein local parameter configuration:
| Environment Variable | Default | Purpose |
|---|---|---|
SD_FLUX_MODEL_ID |
black-forest-labs/FLUX.2-klein-4B |
Hugging Face model ID |
SD_FLUX_DEFAULT_STEPS |
4 |
Inference steps (distilled) |
SD_FLUX_DEFAULT_GUIDANCE_SCALE |
4.0 |
Guidance scale |
SD_FLUX_MAX_IMAGE_SIZE |
2048 |
Max dimension in pixels |
Troubleshooting:
| Symptom | Diagnosis | Fix | |
|---|---|---|---|
| 402 Payment Required from BFL | Insufficient API credits | Add credits at https://api.bfl.ai/ | |
| 401 Unauthorized from BFL | Invalid API key | Verify SD_BFL_API_KEY value |
|
| Timeout on BFL generation | Network or model load time | Increase SD_BFL_POLL_TIMEOUT; check BFL status |
|
| OOM with FLUX Klein local | Model requires ~13 GB | Use MPS (Apple Silicon) or enable CPU offload | |
| FLUX Klein slow on CPU | GPU required for reasonable speed | Set SD_DEVICE=auto for MPS; use flux-api otherwise |
|
| Model download fails | Hugging Face access or network | Set SD_HUGGINGFACE_TOKEN; check connectivity |
|
| Port 7860 in use | Previous instance not terminated | `lsof -ti:7860 | xargs kill -9` then restart |
Flux2KleinPipeline not found |
diffusers too old |
Upgrade: pip install 'diffusers>=0.37.0' |
Disk management:
# Check FLUX model cache
du -sh ./models/models--black-forest-labs--FLUX.2-klein-4B/ 2>/dev/null
# Check outputs
du -sh ./outputs/
# Prune old outputs (keep last 7 days)
find ./outputs -name "*.png" -mtime +7 -delete
n8n integration from Docker network:
| Service Mode | n8n URL |
|---|---|
| Docker (same network) | http://stable-diffusion:7860/api/txt2img |
| Native (outside Docker) | http://host.docker.internal:7860/api/txt2img |
Cost monitoring for BFL API:
Track spend by counting API calls in outputs directory or server logs. Budget estimation:
| Volume | Estimated Monthly (Pro) | Estimated Monthly (Klein API) |
|---|---|---|
| 100 images/month | $3.00 | $1.40 |
| 1,000 images/month | $30.00 | $14.00 |
| 10,000 images/month | $300.00 | $140.00 |
Key file paths:
| Path | Contents |
|---|---|
ITI/infrastructure/stable-diffusion/app/config.py |
Backend enum, all settings |
ITI/infrastructure/stable-diffusion/app/pipeline.py |
Multi-backend dispatch logic |
ITI/infrastructure/stable-diffusion/app/main.py |
FastAPI endpoints |
ITI/infrastructure/stable-diffusion/.env.example |
Configuration template |
ITI/infrastructure/stable-diffusion/.env |
Local credentials (gitignored) |
ITI/infrastructure/n8n-dify/docker-compose.yml |
Docker service definition |
