persona-aware-coding

persona-aware-coding is a skill for Claude Code, Codex from Ow1onp/hermes-agent-skills. It costs 43 tokens per session (1,633 once invoked), scanned A, original, MIT.

A coding workflow that reads an agent's SOUL.md persona file and adapts generated code, comments, documentation, and architecture to it.

In plain words
What is it for?
Use it before code generation when naming, type annotations, error handling, comment tone, testing style, or architecture should follow the defined persona.
Why use it?
It helps generated work match the project's preferred style instead of using generic conventions.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for hermes-agent. Also seen: built for hermes-agent.

Good fit Use it before code generation when naming, type annotations, error handling, comment tone, testing style, or architecture should follow the defined persona.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ow1onp/hermes-agent-skills/persona-aware-coding
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Ow1onp/hermes-agent-skills --skill persona-aware-coding
Clone the repo
git clone --depth 1 https://github.com/Ow1onp/hermes-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for persona-aware-coding

README.md
[![agentmods](https://agentmods.dev/badge/skills/ow1onp/hermes-agent-skills/persona-aware-coding/github.svg)](https://agentmods.dev/skills/ow1onp/hermes-agent-skills/persona-aware-coding)
Your own site
<a href="https://agentmods.dev/skills/ow1onp/hermes-agent-skills/persona-aware-coding"><img src="https://agentmods.dev/badge/skills/ow1onp/hermes-agent-skills/persona-aware-coding/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for persona-aware-coding

Your own site · 80×15
<a href="https://agentmods.dev/skills/ow1onp/hermes-agent-skills/persona-aware-coding"><img src="https://agentmods.dev/badge/skills/ow1onp/hermes-agent-skills/persona-aware-coding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,633 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01633
Opus 5 $0.00022 $0.00816
Sonnet 5 $0.00009 $0.00327
Haiku 4.5 $0.00004 $0.00163

Measured 9d ago against content hash b1f67054a2a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

persona-aware-coding scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/evolve/persona-aware-coding/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

身份感知编码 (Persona-Aware Coding)

1. 概述

同一个功能,由不同风格的工程师实现,会产生截然不同的代码。本技能读取 Hermes Agent 的 SOUL.md 文件(Agent 的人设定义文件),在代码生成的每一个环节动态适配风格、语气和架构决策,使产出的代码真正 "像这个人写的",而非 "像 AI 写的"。

这是 hermes-agent-skills 相对于通用 agent-skills 项目的核心差异化能力——Hermes Agent 有原生的身份系统,本技能将其应用到代码生成全流程。

2. 核心流程

2.1 SOUL.md 解析与映射

# ~/.hermes/SOUL.md 示例
name: "严谨架构师"
traits:
  - 偏好显式优于隐式
  - 重视错误处理
  - 代码即文档
coding_style:
  naming: snake_case
  max_line_length: 100
  prefer: [type_hints, dataclasses, dependency_injection]
  avoid: [magic_numbers, global_state, premature_optimization]
comment_style: "解释为什么,不解释做什么"
test_style: "describe/it 风格"
architecture_preference: "分层架构 + 依赖注入"

2.2 代码生成全流程适配

┌───────────────────────────────────────────────────────┐
│              SOUL.md 驱动的代码生成流水线               │
├───────────────┬───────────────────────────────────────┤
│ 命名风格       │ SOUL.naming → snake_case / camelCase │
│ 类型系统       │ SOUL.type_hints → 是否使用类型标注    │
│ 错误处理       │ SOUL.error_style → try/except / Result│
│ 注释密度       │ SOUL.comment_density → 稀疏 / 详细    │
│ 注释语气       │ SOUL.tone → 正式 / 口语 / 技术极客     │
│ 架构模式       │ SOUL.architecture → 分层 / 六边形 / MVC│
│ 测试风格       │ SOUL.test_style → describe/it / test_ │
│ 提交信息       │ SOUL.commit_style → 规范 / 简洁       │
└───────────────┴───────────────────────────────────────┘

2.3 风格适配示例

场景: 写一个用户认证中间件

维度 "严谨架构师" 风格 "极简黑客" 风格 "教学导师" 风格
命名 authenticate_user() auth() check_if_user_is_logged_in()
类型 完整 type hints 无类型标注 关键处有标注 + 注释
错误 自定义异常类 return None 详细错误消息 + 建议
注释 无(代码自解释) 行内解释设计决策
文档 完整 docstring 教程式文档 + 示例

2.4 Hermes 工具链集成

# 检查 SOUL.md 是否存在
read_file("~/.hermes/SOUL.md")

# 如果不存在,引导用户创建
# 使用 clarify 工具询问人设偏好
clarify(
    question="你希望我以什么风格编写代码?",
    choices=[
        "严谨架构师 — 类型安全、显式错误处理、分层架构",
        "敏捷实干家 — 实用主义、够用就好、快速迭代",
        "极简黑客 — 最少代码、最大效果、不废话",
        "教学导师 — 详细注释、解释设计决策、可读性优先"
    ]
)

# 加载身份感知技能
/skill persona-aware-coding

# 可通过记忆持久化人设偏好
memory(action="add", target="user", content="编码风格偏好: 严谨架构师型")

Read the full file on GitHub · 124 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 124 lines · 43 tokens per session scan A b1f67054a2a6

Subscribe to this mod's changes

persona-aware-coding is a skill published in the GitHub repository Ow1onp/hermes-agent-skills (3 stars, last pushed 2mo ago), licensed MIT. It adds 43 tokens to every session and 1,633 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

openspec-plus-apply

MANDATORY skill that activates whenever the OpenSpec apply phase begins. Triggers: /opsx-apply runs, the openspec-apply-change vanilla skill is referenced or active, openspec instructions apply is invoked, or the user asks to implement, apply, execute, or build out an OpenSpec change ('implement the change', 'apply…

sudokar/openspec-plus · 110 tokens

openspec-plus-design

MANDATORY skill that activates whenever the OpenSpec design phase begins. Triggers: /opsx-new or /opsx-continue runs; openspec-new-change, openspec-continue-change, or openspec-explore is active; openspec instructions design is invoked; or the user wants to create, update, review, refine, or discuss an OpenSpec design…

sudokar/openspec-plus · 82 tokens

openspec-plus-spec

MANDATORY skill that activates whenever the OpenSpec specification phase begins. Triggers: /opsx-new or /opsx-continue runs; openspec-new-change, openspec-continue-change, or openspec-explore is active; openspec instructions spec or openspec instructions specs is invoked; or the user wants to create, update, review…

sudokar/openspec-plus · 88 tokens

openspec-plus-tdd

MANDATORY skill that activates whenever code is written to implement an OpenSpec change task. Triggers: openspec-plus-apply is active, /opsx-apply is running, the user is implementing tasks from an OpenSpec change, an implementer subagent dispatched by openspec-plus-apply is starting work, or the user invokes phrases…

sudokar/openspec-plus · 190 tokens

openspec-plus-proposal

MANDATORY skill that activates whenever the OpenSpec proposal phase begins. Triggers: /opsx-new or /opsx-continue runs; openspec-new-change, openspec-continue-change, or openspec-explore is active; openspec instructions proposal is invoked; or the user wants to create, update, review, refine, or discuss an OpenSpec…

sudokar/openspec-plus · 82 tokens

openspec-plus-tasks

MANDATORY skill that activates whenever the OpenSpec tasks phase begins. Triggers: /opsx-new or /opsx-continue runs; openspec-new-change, openspec-continue-change, or openspec-explore is active; openspec instructions tasks is invoked; or the user wants to create, update, review, refine, or discuss an OpenSpec tasks.md…

sudokar/openspec-plus · 84 tokens