Capabilities & Infrastructure

Capabilities & Infrastructure

Procedural manuals, distilled heuristics, host-specific reality, and dynamic ops guides.


SKILL ๐ŸŽช Procedural Manual

Actionable API/tool logic utilizing progressive disclosure (reads YAML frontmatter, loads body on-demand).

Skill Anatomy

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
~/.hermes/skills/<category>/<skill-name>/
โ”œโ”€โ”€ SKILL.md              # Full executable workflow (YAML frontmatter + markdown)
โ”œโ”€โ”€ references/           # Supporting docs (API specs, patterns, pitfalls)
โ”‚   โ”œโ”€โ”€ api.md
โ”‚   โ”œโ”€โ”€ patterns.md
โ”‚   โ””โ”€โ”€ pitfalls.md
โ”œโ”€โ”€ templates/            # Reusable templates
โ”‚   โ””โ”€โ”€ config.yaml.tmpl
โ”œโ”€โ”€ scripts/              # Automation scripts
โ”‚   โ””โ”€โ”€ validate.py
โ””โ”€โ”€ assets/               # Static assets
    โ””โ”€โ”€ icon.png

Frontmatter Schema

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
---
name: "skill-name"
version: "1.0.0"
category: "devops|frontend|docs|mlops|..."
description: "One-line purpose"
triggers:
  - "user asks about X"
  - "task involves Y"
toolsets: ["terminal", "file", "web", "browser"]
pitfalls:
  - "Common mistake 1"
  - "Common mistake 2"
verification:
  - "How to confirm success"
---

Progressive Disclosure

Load StageContentToken Cost
Listskills_list() โ€” name + description only~50
Viewskill_view(name) โ€” frontmatter + body~2K
Referenceskill_view(name, file_path='references/x.md')~1K

Skill Lifecycle

1
2
3
4
5
graph LR
    A[Create] --> B[Test]
    B --> C[Patch on issues]
    C --> D[Pin if critical]
    D --> E[Prune if stale]

Current Active Skills (7 with SKILL.md)

SkillCategoryPurpose
hermes-essentialshermes-essentialsCore config, debugging, planning, TDD
superpower-pipelinesuperpower-pipelineResearch + web search pipeline
superpower-researchsuperpower-researchDeep research automation
omp-suiteomp-suiteOMP plugin agent
hugo-llm-wikihugo-llm-wikiHugo docs site patterns (cron-loaded)
thermo-nuclear-code-quality-reviewthermo-nuclear-code-quality-reviewStrict maintainability review
transcript-extracttranscript-extractExtract transcripts from URLs

PROCEDURES ๐Ÿง  Learned Dispositions

Distilled records of effective strategies and heuristic patterns extracted from past experiences.

Format

1
2
3
4
5
6
7
## Procedure: <name>

**Context**: When this applies
**Pattern**: The heuristic (if X, then Y)
**Evidence**: Sessions where this worked
**Confidence**: 0.0-1.0
**Last Validated**: YYYY-MM-DD

Current Procedures

ProcedurePatternConfidence
Skill-firstAlways skill_view before tool use for known domains0.95
Memory-firstCheck session_search before web search for past context0.90
Verify handlesNever trust subagent “success” โ€” fetch URL, stat file, read back1.00
Cron envAlways source ~/.hermes/.env in cron scripts1.00
Fetch timeoutAlways withTimeout() + safety timer for Svelte fetch0.98
Patch skillsUpdate skill immediately when pitfall discovered0.92

Extraction Protocol

  1. Trigger โ€” Repeated success (3+ times) or user correction
  2. Distill โ€” Write as heuristic, not instruction
  3. Validate โ€” Apply next 2 times, confirm
  4. Record โ€” Add to PROCEDURES with confidence score

TOOLS ๐Ÿ”Œ Physical Reality

Host-specific connection strings, local IP addresses, DB paths, and timeout policies.

Connection Registry

ToolConnectionTimeoutNotes
PostgreSQLpostgresql://user:pass@localhost:5432/db30sVia ~/.pgpass
SQLite (kanban)~/.hermes/kanban.db10sOMP Suite
SQLite (state)~/.hermes/state.db10sSession/usage stats
Nginxsystemctl reload nginx10sRequires sudo
Hugohugo --minify60sFrom ~/hugo-llm-wiki/
Discord BotDISCORD_TOKEN from .envโ€”Never in execute_code
OpenRouterOPENROUTER_API_KEY from .env180sGateway timeout

Timeout Policies

1
2
3
4
5
6
7
8
timeouts:
  terminal_foreground: 180s
  terminal_background: 600s
  gateway_request: 1800s
  fetch_with_timeout: 30s
  skill_load: 10s
  memory_inject: 5s
  delegate_task: 300s

Path Mappings

LogicalPhysical
~/.hermes/config.yamlMain config
~/.hermes/.envAPI keys (NOT inherited by crons)
~/.hermes/skills/Installed skills
~/.hermes/cron/Cron job output
~/.hermes/logs/agent.log, errors.log, gateway.log
~/.hermes/dreams/Dream Swarm reports
~/.hermes/plugins/Hermes plugins (OMP Suite)
~/hugo-llm-wiki/LLM Wiki source
~/svelte-flexiboards-dashboard/Svelte 5 dashboard

checklists_dir โœ… Ops Guides

Step-by-step pre-flight and execution guides (checklists/*.md) referenced dynamically.

Structure

1
2
3
4
5
6
7
8
9
checklists/
โ”œโ”€โ”€ pre-flight.md          # Before any major operation
โ”œโ”€โ”€ deploy.md              # Hugo / Svelte / Nginx deploy
โ”œโ”€โ”€ cron-create.md         # New cron job checklist
โ”œโ”€โ”€ skill-create.md        # New skill checklist
โ”œโ”€โ”€ subagent-spawn.md      # delegate_task checklist
โ”œโ”€โ”€ memory-write.md        # memory tool checklist
โ”œโ”€โ”€ model-switch.md        # Config model change
โ””โ”€โ”€ incident.md            # Production incident response

Checklist Format

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# Deploy Checklist

## Pre-Conditions
- [ ] Working directory correct
- [ ] No uncommitted changes (or intentional)
- [ ] Tests pass locally

## Execution
- [ ] `hugo --minify` succeeds
- [ ] `nginx -t` passes
- [ ] `systemctl reload nginx` succeeds

## Verification
- [ ] `curl -s https://llm-wiki.0rk.de | grep -q "LLM Wiki"`
- [ ] JSON feed valid: `curl -s /topics/index.json | python3 -m json.tool`

## Rollback
- [ ] Previous public/ backed up
- [ ] Rollback command documented

Dynamic Reference

Skills and cron jobs reference checklists by name:

1
2
# In skill script
source ~/hugo-llm-wiki/checklists/deploy.md

Cross-References


Capabilities & Infrastructure is the executable layer โ€” it turns architecture into running code.