Markdown Converter
Agent skill for markdown-converter
PostWriter is a production-ready, secure Facebook marketing analysis platform that extracts, analyzes, and generates marketing content based on successful post patterns. This document defines the complete development workflow, security practices, and deployment procedures.
Sign in to like and favorite skills
PostWriter is a production-ready, secure Facebook marketing analysis platform that extracts, analyzes, and generates marketing content based on successful post patterns. This document defines the complete development workflow, security practices, and deployment procedures.
# Encrypt existing session data python3 postwriter.py browser encrypt-session --file ./data/browser_profile/session.json # Check security status python3 postwriter.py browser status
# Start secure Chrome proxy python3 postwriter.py chrome-proxy start # Test secure connection python3 postwriter.py chrome-proxy test
# Install dependencies pip install -r requirements.txt # Validate configuration python3 postwriter.py validate # Check security status python3 postwriter.py browser status python3 postwriter.py chrome-proxy status
# Run security audit python3 -c "from secure_logging import audit_log_security; audit_log_security('.')" # Check for plaintext sessions python3 postwriter.py browser status # Validate rate limiting configuration python3 -c "from rate_limiter import get_rate_limiter; print(get_rate_limiter().get_statistics())"
# Configuration Management python3 postwriter.py validate # Validate all configurations python3 postwriter.py secure status # Check secure storage # Browser Security python3 postwriter.py browser encrypt-session # Encrypt sessions python3 postwriter.py browser extract-chrome # Extract & encrypt from Chrome python3 postwriter.py chrome-proxy start # Secure debug connection # Data Operations (Rate Limited) python3 postwriter.py sync # Scrape with rate limiting python3 postwriter.py analyze # Generate templates python3 postwriter.py export # Export for content generation
# Security Testing python3 secure_logging.py # Test secure logging python3 rate_limiter.py # Test rate limiting python3 secure_chrome_proxy.py # Test Chrome security # Functional Testing python3 postwriter.py chrome-proxy test # Test secure Chrome connection python3 postwriter.py browser load-session # Test encrypted session loading
# config.yaml - Security Settings security: encrypt_sessions: true rate_limiting_enabled: true secure_chrome_proxy: true max_requests_per_minute: 20 max_requests_per_hour: 300 facebook: cookies_path: "./data/cookies.json" # Legacy - will be encrypted scraping: retry_attempts: 3 scroll_delay: 3.0 pre_scrape_delay: 5 use_secure_storage: true
# Development export POSTWRITER_ENV=development export CHROME_DEBUG_PORT=9222 export SECURE_PROXY_PORT=9223 # Production export POSTWRITER_ENV=production export RATE_LIMIT_STRICT=true export SECURITY_AUDIT_ENABLED=true
# Get security statistics from secure_logging import get_secure_logger from rate_limiter import get_rate_limiter logger = get_secure_logger() rate_limiter = get_rate_limiter() # Security incidents incidents = logger.get_security_incidents() # Rate limiting stats stats = rate_limiter.get_statistics()
PostWriter Development Stack: āāā Python 3.8+ runtime āāā Chrome with debug port (secured) āāā Local SQLite database āāā Encrypted session storage āāā Rate limiting enabled
PostWriter Production Stack: āāā Containerized Python application āāā Secure Chrome proxy (authenticated) āāā PostgreSQL database (encrypted) āāā Redis for rate limiting āāā Centralized logging (filtered) āāā Backup & monitoring
PostWriter/ āāā CLAUDE.md # This documentation āāā secure_logging.py # Security-aware logging āāā rate_limiter.py # Facebook rate limiting āāā secure_browser_storage.py # Encrypted session storage āāā secure_chrome_proxy.py # Chrome debug security āāā config_validator.py # Configuration validation āāā exceptions.py # Security exception handling āāā postwriter.py # Main CLI with security āāā data/ # Encrypted data storage āāā browser_profile/ # Encrypted sessions only āāā logs/ # Filtered security logs
# Security-first development git checkout -b security/feature-name # ... implement with security considerations python3 postwriter.py validate # Security validation git commit -m "feat: implement X with security hardening" git push origin security/feature-name
# Solution: Encrypt immediately python3 postwriter.py browser encrypt-session --file <path>
# Check status python3 -c "from rate_limiter import get_rate_limiter; print(get_rate_limiter().get_statistics())" # Reset if needed (manual intervention) python3 -c "from rate_limiter import get_rate_limiter; get_rate_limiter().reset_backoff()"
# Start secure proxy python3 postwriter.py chrome-proxy start # Test security python3 postwriter.py chrome-proxy test
PostWriter Security Transformation:
Key Security Improvements:
Result: Marketing teams can confidently deploy PostWriter knowing their Facebook accounts and data are comprehensively protected.
Generated: July 1, 2025
Security Status: PRODUCTION READY ā
Trust Level: ENTERPRISE GRADE š