From bd000fd9dec39fdb17da42e7dc78379029f17b94 Mon Sep 17 00:00:00 2001 From: BekahHW Date: Tue, 9 Sep 2025 18:10:41 -0400 Subject: [PATCH] Fix formatting --- docs/guides/posthog-session-analysis.mdx | 73 ++++++++++++++---------- 1 file changed, 43 insertions(+), 30 deletions(-) diff --git a/docs/guides/posthog-session-analysis.mdx b/docs/guides/posthog-session-analysis.mdx index 4d96c7286..3572cf38c 100644 --- a/docs/guides/posthog-session-analysis.mdx +++ b/docs/guides/posthog-session-analysis.mdx @@ -416,7 +416,11 @@ jobs: run: ./daily-analysis.sh ``` -**Required GitHub Secrets:** - `POSTHOG_API_KEY`: Your PostHog Personal API Key - `POSTHOG_PROJECT_ID`: Your PostHog Project ID - `GH_PAT`: Your GitHub Personal Access Token +**Required GitHub Secrets:** + + - `POSTHOG_API_KEY`: Your PostHog Personal API Key + - `POSTHOG_PROJECT_ID`: Your PostHog Project ID + - `GH_PAT`: Your GitHub Personal Access Token Add these in: Repository Settings → Secrets and variables → Actions @@ -425,33 +429,34 @@ jobs: For running on your own server or VPS: - ```bash - # Add to crontab (run 'crontab -e') - 0 6 * * * cd /path/to/your/project && ./daily-analysis.sh >> ~/logs/analysis.log 2>&1 - ``` + ```bash + # Add to crontab (run 'crontab -e') + 0 6 * * * cd /path/to/your/project && ./daily-analysis.sh >> ~/logs/analysis.log 2>&1 + ``` - **Benefits:** - - Full control over execution environment - - No GitHub Actions usage limits - - Can run more frequently if needed + **Benefits:** + - Full control over execution environment + - No GitHub Actions usage limits + - Can run more frequently if needed + + - - For testing and development: - ```bash - # Run manually - ./daily-analysis.sh - - # Or set up a simple loop for testing - while true; do + ```bash + # Run manually ./daily-analysis.sh - sleep 3600 # Run every hour - done - ``` - + # Or set up a simple loop for testing + while true; do + ./daily-analysis.sh + sleep 3600 # Run every hour + done + ``` + + + ## Step 6: Testing Your Workflow @@ -484,10 +489,12 @@ jobs: - **Success Indicators:** - PostHog API returns session data (not empty) - - Continue CLI generates analysis with identified issues - GitHub issues are - created with proper labels and formatting - No error messages in the console - output + **Success Indicators:** + - PostHog API returns session data (not empty) + - Continue CLI generates analysis with identified issues + - GitHub issues are created with proper labels and formatting + - No error messages in the console output + ## What You've Built @@ -500,7 +507,7 @@ After completing this guide, you have a complete **Continuous AI system** that: ✅ **Runs autonomously** - Operates daily without manual intervention ✅ **Scales with your team** - Handles growing amounts of session data automatically - + Your system now operates at **Level 2 Continuous AI** - AI handles routine analysis tasks with human oversight through GitHub issue review and prioritization. @@ -509,10 +516,16 @@ After completing this guide, you have a complete **Continuous AI system** that: ## Security Best Practices - **Protect Your API Keys:** - Never commit `.env` files or secrets to version - control - Use GitHub Secrets for automation workflows - Limit token scopes to - minimum required permissions - Rotate API keys regularly (every 90 days - recommended) - Monitor token usage for unusual activity + **Protect Your API Keys:** + - Never commit `.env` files or secrets to version + control + - Use GitHub Secrets for automation workflows + - Limit token scopes to + minimum required permissions + - Rotate API keys regularly (every 90 days + recommended) + - Monitor token usage for unusual activity + ## Advanced Extensions