当前位置: 首页 > Skill >

Hermes超级开发专家技能

Hermes超级开发专家技能

1.0.0 2026.11.12 浏览:895
获取Skill文件查看使用说明
作者:许舟许可证:
本文目录展开

Hermes Dev Engineer

The complete engineering system for Hermes Agent: scaffold large projects, orchestrate parallel subagents, enforce quality gates, and evolve skills through every build.

Core Philosophy

Engineer smart, learn continuously. Every project built with this skill becomes a learning signal. After complex builds (5+ tool calls), Hermes auto-generates derived skills capturing the architecture patterns, pitfalls, and workflow refinements discovered. The more you build, the smarter the agent becomes.

Key principles:

  • Fresh context per task: delegate independent work to isolated subagents
  • Architecture-first: define interfaces and contracts before implementation
  • Quality gates: no code lands without review, tests, and verification
  • Progressive complexity: spike first, then build with confidence
  • Memory-driven: project knowledge persists across sessions via MEMORY.md/USER.md

Quick Reference

Pattern Command/Trigger Tool
Initialize project "Scaffold a Python microservice" execute_code + templates
Parallel module build Delegate tasks via subagents delegate_task
Quality gate "Review before commit" requesting-code-review skill
TDD cycle "Write tests first" test-driven-development skill
Architecture decision "Design the data flow" spike skill + subagent
Learn from build Auto-triggered after 5+ tool calls skill_manage

When to Use

Activate this skill when:

  • Building any software project with 3+ files or services
  • Starting new repositories or microservices from scratch
  • Refactoring existing codebases with cross-file dependencies
  • Creating full-stack apps (frontend + backend + database)
  • Engineering tasks requiring parallel workstreams
  • User mentions "build", "create", "scaffold", "engineer", "develop"
  • Tasks expected to exceed 5 tool calls or require quality enforcement

Skip when: One-off scripts (< 50 lines), documentation-only changes, or trivial file edits.

Workflow: Large Project Engineering

Phase 1 — Discovery & Planning (Parent Agent)

Goal: Understand requirements and produce a written implementation plan.

  1. Gather context — Read existing project files, understand constraints
  2. Run spike if uncertain — Use spike skill for throwaway experiments when architecture is unclear
  3. Write plan — Use writing-plans skill to create .hermes/plans/<plan-name>.md:
    • Task breakdown (bite-sized, independently delegable)
    • File/module map
    • Interface contracts (APIs, data models, function signatures)
    • Dependency graph between tasks
    • Verification criteria per task

Rule: No implementation starts without a written plan. Plans prevent scope creep and enable parallel execution.

Phase 2 — Scaffold & Foundation (Parent Agent)

Goal: Create project skeleton and shared infrastructure.

  1. Run init script — Execute scripts/init_project.py with project type and name:
    python3 scripts/init_project.py --type python-service --name my-service --path ./
    
    Supported types: python-service, react-frontend, fullstack-app, microservice, cli-tool, python-lib
  2. Set up shared code — Core models, utilities, configuration
  3. Create directory structure — Follow templates in references/project-templates.md
  4. Initialize version control — git init, .gitignore, initial commit
  5. Install dependencies — Based on project type requirements

Rule: The scaffold must compile/run before any feature implementation begins.

Phase 3 — Parallel Implementation (Subagent Orchestration)

Goal: Execute independent tasks in parallel using delegate_task.

When to delegate vs. direct execution:

Scenario Approach Why
Independent modules delegate_task parallel batch Fresh context, no interference
Sequential dependencies Direct execution or chained subagents Order matters
Mechanical batch ops execute_code Cheaper, no reasoning needed
Complex reasoning per task delegate_task with full context Fresh perspective finds bugs

Parallel delegation pattern:

delegate_task(tasks=[
    {
        "goal": "Implement API routes: users, auth, billing",
        "context": "Project at {project_path}. FastAPI app in src/api/. "
                   "Use pydantic models from src/models/. "
                   "Follow patterns in references/architecture-patterns.md",
        "toolsets": ["terminal", "file"]
    },
    {
        "goal": "Implement database layer: models, migrations, CRUD",
        "context": "Project at {project_path}. SQLAlchemy in src/db/. "
                   "Schema defined in plan. Alembic for migrations.",
        "toolsets": ["terminal", "file"]
    },
    {
        "goal": "Implement frontend components: login, dashboard, settings",
        "context": "Project at {project_path}. React app in frontend/src/. "
                   "Use shadcn/ui components. API client in frontend/src/api/.",
        "toolsets": ["terminal", "file"]
    }
])

Subagent context packing — critical: Every subagent starts with ZERO context. Pack everything it needs:

  • File paths for all relevant code
  • Interface contracts and type definitions
  • Error messages (if fixing bugs)
  • Testing commands to run after changes
  • Constraints: "Do NOT modify X", "Use Y pattern"

Max concurrency: Default 3 parallel subagents. Raise via config.yaml for large projects:

delegation:
  max_concurrent_children: 5

Phase 4 — Integration & Quality Gates (Parent Agent)

Goal: Merge subagent outputs, verify integration, enforce quality.

  1. Merge code — Review all files modified by subagents
  2. Run integration tests — Verify modules work together
  3. Apply quality gates — Trigger requesting-code-review skill:
    • Security scan (check for secrets, injection risks)
    • Static analysis (lint, type check)
    • Code review via subagent (fresh context reviewer)
    • Auto-fix loop for found issues
  4. Fix integration issues — Delegate fixes if complex, direct edit if simple
  5. Update documentation — README, API docs, architecture decisions

Quality gate checklist:

  • All tests pass (pytest, npm test, etc.)
  • Lint/type check passes (ruff, mypy, tsc --noEmit)
  • Security scan clean (no secrets, no SQL injection, no XSS)
  • Code review passed (independent subagent review)
  • Integration verified (end-to-end smoke test)

Phase 5 — Learning & Evolution (Auto-Triggered)

Goal: Capture learnings and evolve skills for future builds.

After complex builds (5+ tool calls), Hermes automatically triggers the learning loop:

  1. Analyze build patterns — What worked? What failed? What was novel?
  2. Extract reusable patterns — Architecture decisions, design patterns, workflow optimizations
  3. Auto-generate skill — Hermes writes derived skill to ~/.hermes/skills/ via skill_manage:
    skill_manage(
        action="create",
        name="<project-type>-pattern",
        instructions="...captured workflow..."
    )
    
  4. Update MEMORY.md — Project context persists across sessions:
    # Project: <name>
    - Type: <type>
    - Stack: <tech stack>
    - Patterns: <key architectural decisions>
    - Pitfalls: <issues encountered and solutions>
    
  5. Update USER.md — Developer preferences learned:
    # Preferences
    - Prefers <testing framework> for <language>
    - Default architecture: <pattern>
    - Quality gates: <enforced checks>
    

Manual learning triggers:

  • "Save this pattern for next time"
  • "Remember this architecture decision"
  • "Turn this workflow into a reusable skill"
  • "Learn from this build"

Architecture Patterns

Load references/architecture-patterns.md when making architectural decisions. Key patterns:

  • Layered Architecture — Presentation / Business / Data layers
  • Microservices — Independent deployable services with API contracts
  • Modular Monolith — Internal modules with clear boundaries, single deploy
  • Event-Driven — Async communication via message queue
  • CQRS — Separate read/write models for complex domains
  • Ports & Adapters — Domain logic isolated from external concerns

Project Templates

Load references/project-templates.md for directory structures, config files, and boilerplate per project type. Templates include:

  • Python service (FastAPI + SQLAlchemy + Alembic + pytest)
  • React frontend (Vite + TypeScript + shadcn/ui + React Query)
  • Full-stack app (combined Python backend + React frontend)
  • Microservice (gRPC/HTTP + Docker + k8s manifests)
  • CLI tool (Click/Typer + config management + logging)
  • Python library (src layout + poetry + pytest + docs)

Tool Integration Matrix

Task Primary Tool Supporting Tools
Project init execute_code (init script) file (write configs)
Code generation delegate_task (subagents) execute_code (scaffold)
Testing terminal (pytest/npm test) delegate_task (parallel test suites)
Code review delegate_task (reviewer subagent) terminal (lint, security scan)
Documentation file (write docs) web_search (lookup APIs)
Dependency mgmt terminal (pip/npm/poetry) execute_code (parse lockfiles)
Deployment terminal (docker/kubectl) file (write manifests)
Quality gates requesting-code-review skill test-driven-development skill

Subagent Orchestration Best Practices

Context Isolation Is a Feature

Subagents know NOTHING of the parent. Use this deliberately:

  • Reviewer subagent — Fresh eyes catch bugs the author missed
  • Research subagent — Unbiased exploration without parent hypothesis bias
  • Implementation subagent — Clean slate, no confusion from prior attempts

Context Packing Checklist

Before delegating, verify the context includes:

  • Project root path
  • Relevant file paths (read/write targets)
  • Interface contracts (types, schemas, APIs)
  • Error context (for debugging tasks)
  • Success criteria (how to verify completion)
  • Constraints (what NOT to do)
  • Test command (how to validate)

Anti-Patterns to Avoid

  • The leaking abstraction — Don't delegate tasks that need continuous user clarification
  • The chatty parent — Don't micro-manage subagents; give complete context upfront
  • The merge conflict — Never have two subagents edit the same file simultaneously
  • The infinite loop — Set max_iterations for subagents; default 50, lower for simple tasks
  • The orphaned work — Subagents are synchronous; if parent is interrupted, children die

Continuous Evolution Setup

Auto-Evolution Configuration

Add to ~/.hermes/config.yaml to optimize learning:

# Learning loop optimization
skills:
  auto_create: true              # Auto-generate skills after complex tasks
  min_tool_calls: 5              # Threshold for auto-skill creation

# Delegation tuning for large projects
delegation:
  max_concurrent_children: 5     # Raise for more parallelism
  max_spawn_depth: 2             # Enable orchestrator subagents
  model: "google/gemini-flash-2.0"  # Cheaper model for subagents

# Prompt cache preservation (keep system prompt stable)
# Avoid changing model mid-session
# Use /compress before hitting context limits

Project Memory Persistence

After each build, update MEMORY.md with:

  • Architecture decisions and rationale
  • Technology choices and versions
  • Known issues and workarounds
  • Performance characteristics
  • Security considerations

This enables cross-session continuity: "Add a feature to the project we built last week" — Hermes recalls the context from MEMORY.md and continues seamlessly.

Pitfalls

  • Scope creep: Without a written plan, projects grow indefinitely. Always use writing-plans first.
  • Merge conflicts: Parallel subagents editing the same file corrupt code. Partition work by file/module.
  • Context overflow: Long-running parent sessions hit token limits. Use /compress periodically.
  • Cache invalidation: Changing model or system prompt mid-session breaks prompt cache and increases cost.
  • Subagent starvation: Under-specified context leads to poor subagent output. Pack context completely.
  • Missing quality gates: Skipping review leads to bugs in production. Always run quality gates.
  • No test coverage: Code without tests rots. Enforce TDD via test-driven-development skill.

Verification

After each build phase, verify:

  • Project scaffold compiles/runs without errors
  • All delegated tasks completed with summaries
  • Quality gates passed (tests, lint, security, review)
  • Integration smoke test succeeds
  • Documentation reflects current state
  • New patterns captured in skills or memory

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,031
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,029
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,017
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,014
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,011
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,011
Skill 文件
  • SKILL.md
    • Hermes Dev Engineer
    • Core Philosophy
    • Quick Reference
    • When to Use
    • Workflow: Large Project Engineering
      • Phase 1 — Discovery & Planning (Parent Agent)
      • Phase 2 — Scaffold & Foundation (Parent Agent)
      • Phase 3 — Parallel Implementation (Subagent Orchestration)
      • Phase 4 — Integration & Quality Gates (Parent Agent)
      • Phase 5 — Learning & Evolution (Auto-Triggered)
    • Architecture Patterns
    • Project Templates
    • Tool Integration Matrix
    • Subagent Orchestration Best Practices
      • Context Isolation Is a Feature
      • Context Packing Checklist
      • Anti-Patterns to Avoid
    • Continuous Evolution Setup
      • Auto-Evolution Configuration
      • Project Memory Persistence
    • Pitfalls
    • Verification
  • 项目或源文件

相关 Skill

更多
Hermes Deployer Hermes Deployer 在 Linux 服务器上安装、配置、部署和运维 Hermes Agent(Nous Research 出品的自我改进 AI Agent),触发词:hermes、hermes agent、部署 hermes、安装 hermes、hermes gateway、hermes 运维、hermes 排障、hermes 配置。
Hermes Feishu Guide Hermes Feishu Guide Hermes Agent 飞书 Bot 本地部署指南(WebSocket 模式)。包含 Kimi API 配置、WebSocket vs Webhook 对比、环境变量配置等完整步骤。适合本地机器部署,不需要公网域名。
Deepin 侧边栏 SMB 共享书签 Deepin 侧边栏 SMB 共享书签 Deepin 侧边栏 SMB 共享书签 Deepin/UOS 文件管理器一键添加 Windows SMB 共享文件夹侧边栏书签 —— 开机自动重连,无需每次手动挂载。 解决什么问题 你在 Deepin 文件管理器里每次访问 Windows 共享文件夹都要: - 地址栏敲 smb://192.168.x.x/xxx? - 或者每次开机都要 sudo mount -a 手动挂载? 这个 skill 让 Hermes Agent 一步步引导你走完整个配置流程(Windows 端 + Linux 端),最终在文件管理器侧边栏生成一个永久书签。Windows 关机再开机后,点一下侧边栏自动重连,全程零命令行操作。 核心特点 - 交互式引导:加载 skill 后 Hermes Agent 会先问你 Windows 端是否已配好共享,然后收集 IP/用户名/密码,自动完成 Linux 端全部配置 - 开机自动挂载:基于 systemd.automount,访问时按需挂载
Hermes Self Audit Hermes Self Audit 定期审计 Hermes Agent 的自改进行为 - skill 变更、curator 状态、记忆库健康度。防止 Agent 在用户不知情的情况下悄悄进化。建议配合 cronjob 每周运行一次。
Openclaw Migration Openclaw Migration 将用户的 OpenClaw 自定义配置迁移到 Hermes Agent。导入兼容 Hermes 的记忆、SOUL.md、命令白名单、用户技能以及...