Legal knowledge base, documents, and session context memory for Dr. Somchai Raksakit
Find a file
2026-09-13 19:00:26 +00:00
briefings Add insurance quote request template for balanced health+accident coverage (10KB) 2026-09-09 05:56:37 +00:00
config Complete knowledgebase sync - 2026-04-19 2026-04-19 13:03:29 +00:00
cron Comprehensive Hermes Backup 20260509_034154 - ADDITIVE ONLY POLICY 2026-05-09 03:41:55 +00:00
docs Add Thai self-defense law guide - comprehensive legal reference 2026-04-26 15:16:25 +00:00
memories Hermes knowledgebase backup 2026-08-31_19:01:10 2026-08-31 19:01:10 +00:00
memory Comprehensive Hermes Backup 20260509_074903 - ADDITIVE ONLY POLICY 2026-05-09 07:49:04 +00:00
reports Add Thailand AI & HPC Executive Summary 2026 (2026-06-17) - Leadership briefing document with key metrics, investment overview, and strategic recommendations 2026-06-17 14:49:13 +00:00
scripts Comprehensive Hermes Backup 2026-05-03 17:34 - ADDITIVE ONLY POLICY 2026-05-03 17:38:53 +00:00
sessions Comprehensive Hermes Backup 20260509_094753 - ADDITIVE ONLY POLICY 2026-05-09 09:47:54 +00:00
skills Hermes knowledgebase backup 2026-09-13_19:00:26 2026-09-13 19:00:26 +00:00
soul Additive backup 2026-04-22: Memory, Soul, Sessions, Gateway docs 2026-04-22 09:06:41 +00:00
.env Hermes knowledgebase backup 2026-04-28_19:15:44 2026-04-28 19:15:45 +00:00
.messaging-gateway.conf Add Telegram gateway configuration files 2026-04-19 12:57:00 +00:00
BACKUP_MANIFEST_20260503_173459.md Comprehensive Hermes Backup 2026-05-03 17:34 - ADDITIVE ONLY POLICY 2026-05-03 17:38:53 +00:00
BACKUP_MANIFEST_20260509_034154.md Comprehensive Hermes Backup 20260509_034154 - ADDITIVE ONLY POLICY 2026-05-09 03:41:55 +00:00
BACKUP_MANIFEST_20260509_042714.md Comprehensive Hermes Backup 20260509_042714 - ADDITIVE ONLY POLICY 2026-05-09 04:27:15 +00:00
BACKUP_MANIFEST_20260509_074903.md Comprehensive Hermes Backup 20260509_074903 - ADDITIVE ONLY POLICY 2026-05-09 07:49:04 +00:00
BACKUP_MANIFEST_20260509_094700.md Comprehensive Hermes Backup 20260509_094700 - ADDITIVE ONLY POLICY 2026-05-09 09:47:01 +00:00
BACKUP_MANIFEST_20260509_094753.md Comprehensive Hermes Backup 20260509_094753 - ADDITIVE ONLY POLICY 2026-05-09 09:47:54 +00:00
BACKUP_MANIFEST_20260614_190224.md Add backup manifest 20260614_190224 2026-06-14 19:02:24 +00:00
BACKUP_SUMMARY.md Add comprehensive backup summary document 2026-04-19 13:04:17 +00:00
BACKUP_SUMMARY_20260422_0905.md Additive backup 2026-04-22: Memory, Soul, Sessions, Gateway docs 2026-04-22 09:06:41 +00:00
channel_directory.json Comprehensive Hermes Backup 20260509_094753 - ADDITIVE ONLY POLICY 2026-05-09 09:47:54 +00:00
config.yaml Additive backup 2026-04-22: Memory, Soul, Sessions, Gateway docs 2026-04-22 09:06:41 +00:00
FORGEJO_UPDATE_VERIFIED_20260422_0906.md Additive backup 2026-04-27: Memory, Soul, Sessions, Skills, Reports 2026-04-27 19:07:57 +00:00
GATEWAY_AUTOSTART_LOG_ANALYSIS.md Additive backup 2026-04-22: Memory, Soul, Sessions, Gateway docs 2026-04-22 09:06:41 +00:00
GATEWAY_AUTOSTART_ROOT_CAUSE.md Additive backup 2026-04-22: Memory, Soul, Sessions, Gateway docs 2026-04-22 09:06:41 +00:00
GATEWAY_AUTOSTART_SETUP.md Additive backup 2026-04-22: Memory, Soul, Sessions, Gateway docs 2026-04-22 09:06:41 +00:00
GATEWAY_AUTOSTART_SUMMARY.md Additive backup 2026-04-22: Memory, Soul, Sessions, Gateway docs 2026-04-22 09:06:41 +00:00
GATEWAY_AUTOSTART_VERIFIED.md Additive backup 2026-04-22: Memory, Soul, Sessions, Gateway docs 2026-04-22 09:06:41 +00:00
GATEWAY_MONITORING_SETUP.md Additive backup 2026-04-22: Memory, Soul, Sessions, Gateway docs 2026-04-22 09:06:41 +00:00
GATEWAY_PERSISTENT_AUTOSTART_COMPLETE.md Additive backup 2026-04-27: Memory, Soul, Sessions, Skills, Reports 2026-04-27 19:07:57 +00:00
GATEWAY_STATUS_REPORT.md Additive backup 2026-04-22: Memory, Soul, Sessions, Gateway docs 2026-04-22 09:06:41 +00:00
README.md Update README.md to version 3.0 - Comprehensive May 2026 backup 2026-05-03 17:43:50 +00:00
SOUL.md Additive backup 2026-04-27: Memory, Soul, Sessions, Skills, Reports 2026-04-27 19:07:57 +00:00
TELEGRAM_GATEWAY_SETUP.md Setup Telegram as primary communication channel 2026-04-19 12:56:53 +00:00

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 automation
  • forgejo-upload-submarine-reports.sh - Research report upload utility
  • md2pdf_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)

  1. research (12 skills) ⭐ - Thai Digital Law, Legal Compliance Creation, Military Equipment Analysis, Thailand Property, Eastern Seaboard Briefing, arXiv, blogwatcher, polymarket
  2. productivity (10 skills) ⭐ - Markdown-to-PDF, Morning Briefing, Google Workspace, Notion, PowerPoint, OCR & Documents
  3. devops (4 skills) ⭐ - Forgejo Backup Policy, Telegram Gateway Setup, Webhook Subscriptions
  4. autonomous-ai-agents (4 skills) - Claude Code, Codex, Hermes Agent, OpenCode
  5. creative (8 skills) - ASCII art, architecture diagrams, video pipelines, p5js, manim
  6. mlops (25+ skills) - Training (Axolotl, Unsloth, TRL), Inference (vLLM, llama.cpp, GGUF), Models (CLIP, Whisper, Stable Diffusion)
  7. github (6 skills) - PR workflow, code review, issues, repo management
  8. media (4 skills) - YouTube transcripts, GIF search, music generation
  9. software-development (6 skills) - Planning, TDD, systematic debugging, code review
  10. gaming (2 skills) - Minecraft modpack servers, Pokemon player
  11. mcp (2 skills) - Native MCP client, mcporter bridge
  12. email (1 skill) - Himalaya CLI email management
  13. note-taking (1 skill) - Obsidian vault integration
  14. smart-home (1 skill) - OpenHue Philips Hue control
  15. social-media (1 skill) - X/Twitter CLI (xitter)
  16. data-science (1 skill) - Jupyter live kernel
  17. red-teaming (1 skill) - G0DM0D3 jailbreak techniques
  18. leisure (1 skill) - Find nearby places
  19. diagramming - Architecture diagrams
  20. dogfood - QA testing workflows
  21. domain - Domain management
  22. feeds - RSS/Atom feed monitoring
  23. gifs - GIF search and download
  24. inference-sh - Inference shell tools
  25. mlops/cloud - Modal serverless GPU
  26. mlops/evaluation - LM evaluation harness, Weights & Biases
  27. mlops/inference - GGUF, vLLM, llama.cpp, outlines, guidance

Memory Entries (Current)

  1. Forgejo Policy - ADDITIVE ONLY: Never delete files, preserve all historical data, use git merge/rebase
  2. Forgejo Cronjob - Daily 02:00 ICT backup with environment variable configuration
  3. Skills Created - thai-digital-law, legal-compliance-skill-creation, telegram-gateway-setup (all backed up)
  4. Legal Compliance Skill - Meta-skill for jurisdiction-specific legal/compliance skills
  5. Configuration - Ollama (qwen3.5:397b-cloud) as only LLM source, daily backup schedule
  6. 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


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
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

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 preferences
  • memory/MEMORY.md - System configurations and policies
  • soul/SOUL.md - Agent identity and persona
  • config.yaml - Hermes configuration
  • cron/jobs.json - Scheduled automation jobs
  • BACKUP_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)