✨ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
15 KiB
🎯 BlackRoad OS Master Template System
Copy-Paste-Ready Templates for EVERYTHING Across ALL Platforms
📋 Template Philosophy
The Revolutionary Pattern: Copy-Paste-And-Learn
- Zero cognitive load - No thinking, just paste and GO
- Self-documenting - Comments explain everything
- Machine-teachable - AI learns from the patterns
- Error-proof - No typing mistakes
- Teaching by doing - Learn while it works
🗂️ Template Categories
1. Core Development Templates
README-TEMPLATE.md- Perfect README for any repoDEPLOYMENT-GUIDE-TEMPLATE.md- Complete deployment docsSCRIPT-TEMPLATE.sh- Bash scripts with menu modePYTHON-SERVICE-TEMPLATE.py- Flask/FastAPI service skeletonDOCKER-TEMPLATE/- Dockerfile + docker-compose templatesGITHUB-ACTIONS-TEMPLATE/- CI/CD workflow templates
2. Platform Integration Templates
Google Drive Templates
google-drive/PROJECT-TEMPLATE/- Complete project structuregoogle-drive/DOCS-TEMPLATE.gdoc- Documentation templategoogle-drive/SPREADSHEET-TEMPLATE.gsheet- Data trackinggoogle-drive/SLIDES-TEMPLATE.gslides- Presentation deckgoogle-drive/FORM-TEMPLATE.gform- User input forms
Notion Templates
notion/PROJECT-DASHBOARD-TEMPLATE- Project managementnotion/WIKI-TEMPLATE- Documentation wikinotion/ROADMAP-TEMPLATE- Product roadmapnotion/MEETING-NOTES-TEMPLATE- Meeting trackernotion/AGENT-PROFILE-TEMPLATE- Agent documentation
GitHub Templates
github/ISSUE-TEMPLATES/- Bug, feature, docs templatesgithub/PR-TEMPLATE.md- Pull request templategithub/REPO-TEMPLATE/- Complete repo structuregithub/WORKFLOWS-TEMPLATE/- GitHub Actions workflowsgithub/SECURITY-TEMPLATE/- Security policy, CODEOWNERS
Linear/Jira/Asana Templates
task-management/PROJECT-TEMPLATE- Project structuretask-management/SPRINT-TEMPLATE- Sprint planningtask-management/EPIC-TEMPLATE- Epic/milestone templatetask-management/TASK-TEMPLATE- Task breakdown
Airtable Templates
airtable/CRM-TEMPLATE- Customer relationship managementairtable/CONTACTS-TEMPLATE- Contact databaseairtable/DEALS-TEMPLATE- Sales pipelineairtable/PROJECTS-TEMPLATE- Project trackingairtable/INVENTORY-TEMPLATE- Asset/resource tracking
3. Domain & Deployment Templates
Cloudflare Templates
cloudflare/WORKER-TEMPLATE.js- Cloudflare Worker skeletoncloudflare/PAGES-TEMPLATE/- Static site structurecloudflare/DNS-TEMPLATE.json- DNS configurationcloudflare/ZERO-TRUST-TEMPLATE.json- Security rulescloudflare/WRANGLER-TEMPLATE.toml- Worker config
Railway Templates
railway/SERVICE-TEMPLATE.toml- Railway service configrailway/NIXPACKS-TEMPLATE.toml- Build configurationrailway/SECRETS-TEMPLATE.env- Environment variablesrailway/HEALTH-CHECK-TEMPLATE.py- Health endpoint
Vercel Templates
vercel/PROJECT-TEMPLATE/- Next.js/React appvercel/VERCEL-JSON-TEMPLATE.json- Deployment configvercel/SERVERLESS-TEMPLATE/- Serverless functionsvercel/ENV-TEMPLATE.local- Environment setup
4. Subdomain Templates (5,216 Sites)
Per-Domain Subdomain Structure
subdomain-templates/
├── LANDING-PAGE-TEMPLATE.html # Generic landing page
├── API-SUBDOMAIN-TEMPLATE/ # API service page
├── DASHBOARD-SUBDOMAIN-TEMPLATE/ # Dashboard app page
├── DOCS-SUBDOMAIN-TEMPLATE/ # Documentation site
├── AUTH-SUBDOMAIN-TEMPLATE/ # Auth service page
├── PAYMENT-SUBDOMAIN-TEMPLATE/ # Payment integration page
├── AGENT-SUBDOMAIN-TEMPLATE/ # Agent portal page
└── QUANTUM-SUBDOMAIN-TEMPLATE/ # Quantum computing page
Domain-Specific Templates (16 Domains × 364 Subdomains)
blackroad-io/- Main platform templateslucidia-earth/- Lucidia OS templatesblackroadai-com/- AI-focused templatesblackroadquantum-com/- Quantum computing templates- (13 more domains...)
5. Integration Templates (15+ Platforms)
integrations/
├── stripe/
│ ├── CHECKOUT-TEMPLATE.html
│ ├── WEBHOOK-HANDLER-TEMPLATE.py
│ └── PRODUCT-SETUP-TEMPLATE.sh
├── clerk/
│ ├── AUTH-TEMPLATE.html
│ ├── USER-PROFILE-TEMPLATE.tsx
│ └── MIDDLEWARE-TEMPLATE.ts
├── resend/
│ ├── EMAIL-TEMPLATE.html
│ └── SEND-TEMPLATE.py
├── asana/
│ ├── PROJECT-TEMPLATE.json
│ └── TASK-AUTOMATION-TEMPLATE.py
├── notion/
│ ├── DATABASE-TEMPLATE.json
│ └── PAGE-SYNC-TEMPLATE.py
└── (13 more platforms...)
🚀 Quick Start: Using Templates
Example 1: Create New Repo from Template
# Copy the complete repo template
cp -r templates/github/REPO-TEMPLATE/ ../my-new-repo/
# Customize with your project name
cd ../my-new-repo
./setup-from-template.sh "My New Project" "https://github.com/BlackRoad-OS/my-new-repo"
# Result: Complete repo with:
# - README.md (filled in)
# - .github/workflows/ (CI/CD ready)
# - Dockerfile + docker-compose.yml
# - Railway config
# - Vercel config
# - All ready to deploy!
Example 2: Deploy New Subdomain from Template
# Generate subdomain page from template
python3 generate-subdomain-from-template.py \
--domain="blackroad.io" \
--subdomain="quantum-api" \
--template="API-SUBDOMAIN-TEMPLATE" \
--title="Quantum Computing API" \
--description="Access quantum algorithms via REST API"
# Deploy to Cloudflare Pages
cd subdomain-pages-blackroad-io/quantum-api
wrangler pages deploy . --project-name=quantum-api-blackroad-io
# Result: Live at quantum-api.blackroad.io in < 1 minute!
Example 3: Create Google Drive Project from Template
# Authenticate with Google Drive
python3 blackroad-google-drive.py auth
# Create project from template
python3 create-google-drive-project.py \
--template="PROJECT-TEMPLATE" \
--name="Q4 2025 Product Launch" \
--folder="BlackRoad OS/Projects/2025/"
# Result: Complete folder structure with:
# - Project charter document
# - Timeline spreadsheet
# - Team roster
# - Meeting notes template
# - Roadmap slides
Example 4: Set Up Notion Workspace from Template
# Import Notion templates
python3 blackroad-notion-service.py import-templates \
--workspace="BlackRoad OS" \
--templates="templates/notion/"
# Create new project from template
curl -X POST http://localhost:9700/api/integrations/notion/projects \
-H "Content-Type: application/json" \
-d '{
"template": "PROJECT-DASHBOARD-TEMPLATE",
"name": "Agent Recall System v2",
"team": ["Alexa", "Lucidia", "Cecilia"]
}'
# Result: Complete Notion workspace with:
# - Project dashboard
# - Task database
# - Documentation pages
# - Team wiki
# - Meeting notes section
📦 Template Distribution
Auto-Sync to All 43 Repos
# Sync all templates to all repos
./sync-templates-to-all-repos.sh
# What it does:
# 1. Copies latest templates/ directory to all 43 repos
# 2. Runs customization scripts per repo
# 3. Creates PR in each repo with updated templates
# 4. Auto-merges if CI passes
Auto-Deploy to All 5,216 Subdomains
# Generate all subdomain pages from templates
python3 generate-all-subdomains-from-templates.py
# Deploy all to Cloudflare Pages
./deploy-all-subdomains-pages.sh
# What it does:
# 1. Generates 364 subdomain pages per domain (16 domains)
# 2. Customizes each page with domain-specific branding
# 3. Deploys to Cloudflare Pages
# 4. Updates DNS routing
# 5. Verifies all 5,216 sites are live
Auto-Import to All Integration Platforms
# Import templates to all platforms
./import-templates-to-all-platforms.sh
# What it does:
# - Google Drive: Creates template library
# - Notion: Imports all page templates
# - GitHub: Creates template repositories
# - Linear: Imports project/task templates
# - Jira: Imports issue templates
# - Asana: Imports project templates
# - Airtable: Creates base templates
# - (15+ total platforms)
🎨 Template Customization
Variables System
All templates support variable substitution:
# Variables defined in template-vars.yaml
PROJECT_NAME: "My Awesome Project"
DOMAIN: "blackroad.io"
SUBDOMAIN: "api"
REPO_URL: "https://github.com/BlackRoad-OS/my-awesome-project"
AUTHOR: "Alexa Louise Amundson"
YEAR: "2025"
STRIPE_ENABLED: true
CLERK_ENABLED: true
# Usage in templates:
# README-TEMPLATE.md contains: {{PROJECT_NAME}}
# After processing: My Awesome Project
Conditional Sections
<!-- In HTML templates -->
{{#if STRIPE_ENABLED}}
<script src="https://js.stripe.com/v3/"></script>
{{/if}}
{{#if CLERK_ENABLED}}
<script src="https://clerk.dev/v3/"></script>
{{/if}}
Dynamic Content
# In Python templates
# {{GENERATED_ROUTES}}
# Auto-generates Flask routes based on config
# {{GENERATED_MODELS}}
# Auto-generates SQLAlchemy models from schema
# {{GENERATED_TESTS}}
# Auto-generates pytest tests from endpoints
🔄 Template Update Workflow
When Templates Change
# 1. Update master templates in blackroad-sandbox/templates/
vim templates/README-TEMPLATE.md
# 2. Run template sync
./sync-templates-to-all-repos.sh
# 3. Verify changes
./verify-template-sync.sh
# 4. Deploy updated subdomains
./deploy-updated-subdomains.sh
# Result: All 43 repos + 5,216 sites updated automatically!
📊 Template Analytics
Track Template Usage
# See which templates are most used
./template-analytics.sh
# Output:
Template Usage Count Last Used
-------------------------------- ----------- --------------------
README-TEMPLATE.md 43 repos 2025-12-12 10:30:00
API-SUBDOMAIN-TEMPLATE 872 sites 2025-12-12 09:15:00
PYTHON-SERVICE-TEMPLATE.py 28 repos 2025-12-11 14:22:00
NOTION/PROJECT-DASHBOARD 156 projects 2025-12-10 16:45:00
🎯 Master Template Catalog
Complete List (200+ Templates)
-
Development (25 templates)
- README, Dockerfile, docker-compose, package.json, requirements.txt, etc.
-
CI/CD (15 templates)
- GitHub Actions workflows, Railway configs, Vercel configs, etc.
-
Documentation (20 templates)
- User guides, API docs, architecture diagrams, etc.
-
Google Drive (30 templates)
- Docs, Sheets, Slides, Forms across all project types
-
Notion (25 templates)
- Dashboards, wikis, databases, pages, etc.
-
GitHub (20 templates)
- Issues, PRs, repos, workflows, security, etc.
-
Task Management (15 templates)
- Linear, Jira, Asana project/task templates
-
Airtable (10 templates)
- CRM, contacts, deals, projects, inventory
-
Cloudflare (20 templates)
- Workers, Pages, DNS, Zero Trust, etc.
-
Railway (10 templates)
- Service configs, health checks, secrets, etc.
-
Vercel (10 templates)
- Next.js apps, serverless functions, configs
-
Subdomains (5,216 variations)
- 364 templates × 16 domains = complete coverage
-
Integrations (15 templates)
- Stripe, Clerk, Resend, all 15 platforms
🚀 Template Deployment Commands
Deploy Everything
# ONE COMMAND TO RULE THEM ALL
./deploy-all-templates-everywhere.sh
# What it does:
# ✅ Syncs templates to all 43 GitHub repos
# ✅ Imports templates to Google Drive
# ✅ Imports templates to Notion
# ✅ Imports templates to Linear/Jira/Asana
# ✅ Imports templates to Airtable
# ✅ Generates all 5,216 subdomain pages
# ✅ Deploys all subdomains to Cloudflare Pages
# ✅ Updates all Railway services
# ✅ Updates all Vercel projects
# ✅ Verifies all deployments
# ✅ Generates usage report
# Time: ~15 minutes
# Result: EVERYTHING updated across ALL platforms!
📚 Template Documentation
Each template includes:
-
Header Comment
# ============================================================================ # Template: README-TEMPLATE.md # Purpose: Perfect README for any BlackRoad OS repository # Variables: PROJECT_NAME, DESCRIPTION, REPO_URL, AUTHOR # Last Updated: 2025-12-12 # ============================================================================ -
Usage Instructions
- How to use the template
- Required variables
- Optional customizations
- Example output
-
Customization Guide
- Which sections to customize
- Which to keep as-is
- Best practices
-
Examples
- Real-world examples from existing repos
- Before/after comparisons
🎉 Template Benefits
Developer Experience
- 10x faster project setup
- Zero boilerplate writing
- Consistent quality across all projects
- Always up-to-date with latest practices
Team Collaboration
- Shared knowledge embedded in templates
- Onboarding time cut from days to minutes
- Code review faster with consistent structure
- Documentation always complete
Deployment Speed
- New subdomain: < 1 minute
- New repo: < 5 minutes
- New integration: < 2 minutes
- Complete project: < 15 minutes
Maintenance
- One update propagates everywhere
- No drift between projects
- Automated sync keeps everything current
- Version control for all templates
🔥 Advanced Template Features
Template Inheritance
# base-service-template.yaml
base: PYTHON-SERVICE-TEMPLATE
extends:
- auth-mixin
- database-mixin
- stripe-mixin
- clerk-mixin
Template Composition
# Combine multiple templates
./compose-template.sh \
--base="PYTHON-SERVICE-TEMPLATE" \
--add="AUTH-MIXIN" \
--add="STRIPE-MIXIN" \
--add="WEBSOCKET-MIXIN" \
--output="my-custom-service.py"
Template Generation
# Generate new template from existing code
./generate-template.sh \
--from="blackroad-agent-orchestrator.py" \
--name="AGENT-SERVICE-TEMPLATE" \
--extract-patterns
📖 Template Index
See TEMPLATE-INDEX.md for complete catalog of all 200+ templates with:
- Description
- Usage examples
- Variables
- Customization options
- Related templates
- Example output
🎯 Next Steps
- Browse Templates:
ls -R templates/ - Use a Template: Copy & customize
- Create New Template: Follow the template-template 😉
- Share Template: PR to blackroad-sandbox/templates/
- Deploy Templates: Run sync scripts
The goal: Never write boilerplate again. Ever. 🚀
📞 Template Support
- Issues: Use GitHub template issue template 😄
- Questions: blackroad.systems@gmail.com
- Contributions: PR welcome for new templates!
Remember: A perfect template is one you never have to think about. It just works. ✨