| briefings | ||
| config | ||
| cron | ||
| docs | ||
| memories | ||
| memory | ||
| reports | ||
| scripts | ||
| sessions | ||
| skills | ||
| soul | ||
| .env | ||
| .messaging-gateway.conf | ||
| BACKUP_MANIFEST_20260503_173459.md | ||
| BACKUP_MANIFEST_20260509_034154.md | ||
| BACKUP_MANIFEST_20260509_042714.md | ||
| BACKUP_MANIFEST_20260509_074903.md | ||
| BACKUP_MANIFEST_20260509_094700.md | ||
| BACKUP_MANIFEST_20260509_094753.md | ||
| BACKUP_MANIFEST_20260614_190224.md | ||
| BACKUP_SUMMARY.md | ||
| BACKUP_SUMMARY_20260422_0905.md | ||
| channel_directory.json | ||
| config.yaml | ||
| FORGEJO_UPDATE_VERIFIED_20260422_0906.md | ||
| GATEWAY_AUTOSTART_LOG_ANALYSIS.md | ||
| GATEWAY_AUTOSTART_ROOT_CAUSE.md | ||
| GATEWAY_AUTOSTART_SETUP.md | ||
| GATEWAY_AUTOSTART_SUMMARY.md | ||
| GATEWAY_AUTOSTART_VERIFIED.md | ||
| GATEWAY_MONITORING_SETUP.md | ||
| GATEWAY_PERSISTENT_AUTOSTART_COMPLETE.md | ||
| GATEWAY_STATUS_REPORT.md | ||
| README.md | ||
| SOUL.md | ||
| TELEGRAM_GATEWAY_SETUP.md | ||
Hermes Agent Knowledgebase - Dr. Somchai Raksakit
Backup Date: 2026-05-03 17:34 ICT
Agent: Somchai_Raksakit (Dr. Somchai Raksakit)
Role: Expert in Thai Law, Finance, Business, Computer & Data Laws
Repository: https://forgejo.srv1557308.hstgr.cloud/Somchai_Raksakit/KnowledgeBaseSR
Latest Commit: 86e8da3 (2026-05-03)
🆕 Latest Updates (2026-05-03)
Comprehensive Backup Complete
Commit: 86e8da3 | Files: 77 changed | Size: 6.4 GB total
New Research: Thailand S26T Submarine Program ⭐
Location: reports/
Complete deep-dive analysis of Thailand's submarine procurement program:
- Technical Analysis Report (26 KB MD + 51 KB PDF)
- Hull design: 77m length, 3,000 tonnes displacement
- Propulsion: 4× Chinese CHD620 diesel engines (German MTU substitution)
- Combat systems: Type 600 sonar suite, fire control
- Armament: 6×533mm tubes, C-802Y anti-ship missiles
- Stealth analysis, lifecycle costs ($10-15M/year)
- Progress Status Report (13 KB MD + 47 KB PDF)
- Timeline: 2017 order → 2020 engine crisis → 2025 resolution
- Current status: 80-90% complete, first delivery late 2026-early 2027
- 3-4 years behind original 2023 schedule
- Deep Dive Report (comprehensive analysis)
New Skills Added
- markdown-to-pdf-conversion - ReportLab-based PDF generation with Unicode support
- markdown-to-pdf-and-forgejo - PDF generation + automated Forgejo upload
- military-equipment-technical-analysis - Updated with submarine analysis workflow
New Automation Scripts
comprehensive-forgejo-backup.sh- Full knowledgebase backup automationforgejo-upload-submarine-reports.sh- Research report upload utilitymd2pdf_reportlab.py- Unicode-capable PDF conversion
Repository Contents
📁 Directory Structure
KnowledgeBaseSR/
├── memory/
│ ├── USER.md # User profile (Dr. Somchai Raksakit)
│ └── MEMORY.md # System memory & configurations
├── skills/
│ ├── research/
│ │ ├── thai-digital-law/ # Thai Computer Crime Act, PDPA, ETA
│ │ ├── legal-compliance-skill-creation/
│ │ ├── thai-self-defense-law/
│ │ ├── thai-estate-planning-documents/
│ │ ├── eastern-seaboard-briefing/
│ │ ├── military-equipment-technical-analysis/ ⭐ UPDATED
│ │ └── thailand-property-research/
│ ├── productivity/
│ │ ├── markdown-to-pdf-conversion/ ⭐ NEW
│ │ ├── markdown-to-pdf-and-forgejo/ ⭐ NEW
│ │ ├── morning-briefing-cronjob/
│ │ ├── thailand-morning-briefing/
│ │ ├── google-workspace/
│ │ ├── notion/
│ │ └── powerpoint/
│ ├── devops/
│ │ ├── forgejo-backup-policy/
│ │ ├── forgejo-knowledgebase-backup/
│ │ ├── telegram-gateway-setup/
│ │ └── webhook-subscriptions/
│ ├── autonomous-ai-agents/ # Multi-agent orchestration
│ ├── creative/ # ASCII art, diagrams, video pipelines
│ ├── data-science/ # Jupyter live kernels
│ ├── github/ # PR workflow, code review, issues
│ ├── mcp/ # Model Context Protocol
│ ├── media/ # YouTube, GIFs, music generation
│ ├── mlops/ # ML operations (25+ skills)
│ ├── software-development/ # TDD, debugging, planning
│ ├── email/ # Himalaya CLI email
│ ├── note-taking/ # Obsidian integration
│ ├── smart-home/ # Philips Hue control
│ └── social-media/ # X/Twitter CLI
├── soul/
│ └── SOUL.md # Core agent identity
├── reports/
│ ├── thailand-s26t-technical-analysis-2026-05-03.md ⭐ NEW
│ ├── thailand-s26t-technical-analysis-2026-05-03.pdf ⭐ NEW
│ ├── thailand-submarine-progress-status-2026-05-03.md ⭐ NEW
│ ├── thailand-submarine-progress-status-2026-05-03.pdf ⭐ NEW
│ ├── thailand-submarine-deep-dive-2026-05-03.md ⭐ NEW
│ ├── condominium research reports/
│ └── legal compliance reports/
├── scripts/
│ ├── comprehensive-forgejo-backup.sh ⭐ NEW
│ ├── forgejo-backup.sh
│ ├── md2pdf_reportlab.py ⭐ NEW
│ ├── md_to_docx.py
│ └── gateway monitoring scripts/
├── cron/
│ └── jobs.json # Scheduled job configurations
├── sessions/
│ └── *.json # Conversation transcripts (4038 files)
├── briefings/
│ └── eastern-seaboard-briefing/
├── checkpoints/
│ └── system state snapshots/
├── docs/
│ └── legal guides & references/
├── config.yaml # Hermes configuration
├── channel_directory.json # Messaging channel mappings
├── .env # Environment variables
└── BACKUP_MANIFEST_*.md # Backup inventory manifests
📊 Statistics (2026-05-03)
| Category | Size | Files |
|---|---|---|
| Skills | ~15 MB | 427 files |
| Sessions | 6.3 GB | 4,038 files |
| Reports | ~2 MB | 13 files |
| Scripts | ~100 KB | 11 files |
| Memory | ~10 KB | 2 files |
| Soul | ~10 KB | 4 files (SOUL.md, config.yaml, .env, channels) |
| Cron | ~10 KB | 1 file |
| Briefings | ~50 KB | 1 file |
| Checkpoints | ~50 MB | 3,238 files |
| Total | 6.4 GB | 7,745+ files |
Note: Repository size is dominated by session history (4,038 transcripts). Critical knowledge (skills, memory, configs) is under 100 MB.
📚 Skill Categories (27 total)
- research (12 skills) ⭐ - Thai Digital Law, Legal Compliance Creation, Military Equipment Analysis, Thailand Property, Eastern Seaboard Briefing, arXiv, blogwatcher, polymarket
- productivity (10 skills) ⭐ - Markdown-to-PDF, Morning Briefing, Google Workspace, Notion, PowerPoint, OCR & Documents
- devops (4 skills) ⭐ - Forgejo Backup Policy, Telegram Gateway Setup, Webhook Subscriptions
- autonomous-ai-agents (4 skills) - Claude Code, Codex, Hermes Agent, OpenCode
- creative (8 skills) - ASCII art, architecture diagrams, video pipelines, p5js, manim
- mlops (25+ skills) - Training (Axolotl, Unsloth, TRL), Inference (vLLM, llama.cpp, GGUF), Models (CLIP, Whisper, Stable Diffusion)
- github (6 skills) - PR workflow, code review, issues, repo management
- media (4 skills) - YouTube transcripts, GIF search, music generation
- software-development (6 skills) - Planning, TDD, systematic debugging, code review
- gaming (2 skills) - Minecraft modpack servers, Pokemon player
- mcp (2 skills) - Native MCP client, mcporter bridge
- email (1 skill) - Himalaya CLI email management
- note-taking (1 skill) - Obsidian vault integration
- smart-home (1 skill) - OpenHue Philips Hue control
- social-media (1 skill) - X/Twitter CLI (xitter)
- data-science (1 skill) - Jupyter live kernel
- red-teaming (1 skill) - G0DM0D3 jailbreak techniques
- leisure (1 skill) - Find nearby places
- diagramming - Architecture diagrams
- dogfood - QA testing workflows
- domain - Domain management
- feeds - RSS/Atom feed monitoring
- gifs - GIF search and download
- inference-sh - Inference shell tools
- mlops/cloud - Modal serverless GPU
- mlops/evaluation - LM evaluation harness, Weights & Biases
- mlops/inference - GGUF, vLLM, llama.cpp, outlines, guidance
Memory Entries (Current)
- Forgejo Policy - ADDITIVE ONLY: Never delete files, preserve all historical data, use git merge/rebase
- Forgejo Cronjob - Daily 02:00 ICT backup with environment variable configuration
- Skills Created - thai-digital-law, legal-compliance-skill-creation, telegram-gateway-setup (all backed up)
- Legal Compliance Skill - Meta-skill for jurisdiction-specific legal/compliance skills
- Configuration - Ollama (qwen3.5:397b-cloud) as only LLM source, daily backup schedule
- Forgejo Credentials - Verified 2026-05-03, last push commit
6379745→86e8da3
Automated Backups
Daily Knowledgebase Backup
Cron Job: forgejo-knowledgebase-update
Schedule: Daily at 02:00 ICT (19:00 UTC)
Status: ✅ Active
Skills Loaded: hermes-agent, thai-digital-law, forgejo-backup-policy
Backup Includes:
- All skills (427 files across 27 categories)
- Memory updates (USER.md, MEMORY.md)
- Soul configuration (SOUL.md, config.yaml)
- Session transcripts (rolling 50 most recent)
- Agent configuration
Comprehensive Backup Script
Location: /opt/data/scripts/comprehensive-forgejo-backup.sh
Manual full backup script created 2026-05-03:
- Backs up all directories (skills, memory, soul, reports, scripts, cron, sessions, docs)
- Creates backup manifest with file counts
- Follows ADDITIVE ONLY policy
- Can be scheduled via cron for weekly full backups
Forgejo Instance Details
- URL: https://forgejo.srv1557308.hstgr.cloud
- Username: Somchai_Raksakit
- Email: somchai.raksakit@proton.me
- Repository: KnowledgeBaseSR (Private)
- Authentication: API Token (write:repository scope)
- Token: c8d6bf1f964ae2130328a3e9c91294517e3379ab
- Last Sync: 2026-05-03 17:34 ICT
- Latest Commit:
86e8da3 - Total Commits: 10+
Legal Expertise Areas
Thai Law Specializations
- ✅ Computer Crime Act B.E. 2550 (2007) - All sections, amendments, compliance
- ✅ Personal Data Protection Act (PDPA) B.E. 2562 (2019) - Full framework, templates
- ✅ Electronic Transactions Act B.E. 2544 (2001) - Digital signatures, e-commerce
- ✅ Emergency Decree on Electronic Meetings B.E. 2563 (2020)
- ✅ Court procedures and evidence requirements
- ✅ Regulatory compliance (ETDA, PDPC, MDES, NBTC)
- ✅ Thai self-defense law and citizen's arrest
- ✅ Thai estate planning documents (wills, medical emergencies)
Business & Finance
- Corporate law and business regulations
- Finance and banking law
- E-commerce legal requirements
- Digital economy regulations
- Property and condominium research
Technology & Data
- Cybersecurity regulations
- Data protection and privacy
- Digital signatures and authentication
- Cloud computing compliance
- Military equipment technical analysis
Usage Instructions
Clone Repository
git clone https://c8d6bf1f964ae2130328a3e9c91294517e3379ab:@forgejo.srv1557308.hstgr.cloud/Somchai_Raksakit/KnowledgeBaseSR.git
cd KnowledgeBaseSR
Browse Skills
# List all skills by category
ls -la skills/
# View Thai Digital Law skill
cat skills/research/thai-digital-law/SKILL.md
# View military equipment analysis skill
cat skills/research/military-equipment-technical-analysis/SKILL.md
# View PDF conversion skill
cat skills/productivity/markdown-to-pdf-conversion/SKILL.md
View Reports
# Thailand submarine research
ls -la reports/thailand-s26t-*
# View technical analysis
cat reports/thailand-s26t-technical-analysis-2026-05-03.md
# View PDF (requires PDF viewer)
evince reports/thailand-s26t-technical-analysis-2026-05-03.pdf
Run Legal Crawler
cd skills/research/thai-digital-law/
python3 scripts/crawl_thai_legal.py --all --output-dir ./legal_docs/
Generate PDF from Markdown
cd /opt/data/scripts/
python3 md2pdf_reportlab.py input.md output.pdf
Manual Full Backup
bash /opt/data/scripts/comprehensive-forgejo-backup.sh
Contact & Support
Dr. Somchai Raksakit
- Email: somchai.raksakit@proton.me
- Forgejo: https://forgejo.srv1557308.hstgr.cloud/Somchai_Raksakit
- Telegram: Connected ✓ (Home channel: 8403993926)
Legal Assistance Contacts:
- ETDA Legal Helpdesk: 02-123-1234
- PDPC Complaint Center: 1212
- MDES: 02-142-1000
Version History
| Date | Version | Changes |
|---|---|---|
| 2026-05-03 | 3.0 | Comprehensive backup (77 files, 6.4 GB), Thailand S26T submarine research, PDF conversion skills, automation scripts |
| 2026-04-19 | 2.0 | Added Thai Digital Law skill (5 files, 58KB) |
| 2026-04-19 | 1.0 | Initial knowledgebase backup (18MB, 415 files) |
Current Version: 3.0
Last Updated: 2026-05-03 17:34 ICT
Total Commits: 10+
Backup Policy: ADDITIVE ONLY - No deletions, preserve all history
Quick Reference
Key Files
memory/USER.md- User profile and preferencesmemory/MEMORY.md- System configurations and policiessoul/SOUL.md- Agent identity and personaconfig.yaml- Hermes configurationcron/jobs.json- Scheduled automation jobsBACKUP_MANIFEST_*.md- Backup inventory manifests
Important Directories
skills/- All skill definitions (427 files)reports/- Research reports (Markdown + PDF)sessions/- Conversation transcripts (audit trail)scripts/- Automation and utility scripts
Backup Policy
ADDITIVE ONLY - This is the core principle:
- ✅ ADD new files
- ✅ MERGE/UPDATE existing files
- ✅ Preserve all historical data
- ❌ NEVER delete files
- ❌ NEVER force push
- ✅ Use git merge/rebase for updates
Automated backup by Hermes Agent Forgejo Knowledgebase Update Cron Job
Powered by Forgejo - Beyond coding. We Forge.
Last comprehensive backup: 2026-05-03 17:34 ICT (Commit 86e8da3)