know-your-harness

know-your-harness is a skill for Claude Code, Codex from SpaceZephyr/build-your-harness. It costs 155 tokens per session (1,668 once invoked), scanned A, original, MIT.

A data-based profile builder for an agent’s operator. It first checks available tools, then collects the operator’s own public content and local writing, measures which items perform best and worst, and records evidence for its conclusions.

In plain words
What is it for?
Use it to build or update an about-me profile, compare content performance, identify patterns in published work, and document available tools.
Why use it?
It replaces unsupported self-descriptions with a profile based on collected data and clearly traced calculations. It also keeps secrets out of the process and does not publish anything for the operator.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to build or update an about-me profile, compare content performance, identify patterns in published work, and document available tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spacezephyr/build-your-harness/know-your-harness
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 SpaceZephyr/build-your-harness --skill know-your-harness
Clone the repo
git clone --depth 1 https://github.com/SpaceZephyr/build-your-harness

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 know-your-harness

README.md
[![agentmods](https://agentmods.dev/badge/skills/spacezephyr/build-your-harness/know-your-harness/github.svg)](https://agentmods.dev/skills/spacezephyr/build-your-harness/know-your-harness)
Your own site
<a href="https://agentmods.dev/skills/spacezephyr/build-your-harness/know-your-harness"><img src="https://agentmods.dev/badge/skills/spacezephyr/build-your-harness/know-your-harness/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 know-your-harness

Your own site · 80×15
<a href="https://agentmods.dev/skills/spacezephyr/build-your-harness/know-your-harness"><img src="https://agentmods.dev/badge/skills/spacezephyr/build-your-harness/know-your-harness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 155 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,668 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.00155 $0.01668
Opus 5.5 $0.00062 $0.00667
Sonnet 5.5 $0.00031 $0.00334
Haiku 4.5 $0.00015 $0.00167

Measured 23d ago against content hash 13bf85a854d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

know-your-harness 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 23d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/collect.py, scripts/probe.py, scripts/rank.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

know-your-harness/SKILL.md · 132 lines

How it starts

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

know-your-harness

让 harness 认识它的主人。跟 star-your-harness 是前后手:star 搭出空的 about-me/,这个把它填上,而且用的是数据,不靠用户自己写自我介绍。

铁律

1. 数字只能来自脚本。 画像里出现的每一个数字(粉丝、浏览、篇数、倍数)都必须能在 rank.py 或 collect.py 的输出里找到。算不出来的量不写。

2. 每条结论都要带依据。 「你的教程类内容表现好」这种话不许单独出现。必须写成「表现最好的 10 条里有 6 条是教程(第 1、2、4、5、7、9 条)」。数据撑不住的结论删掉。

3. 密钥只碰名字,不碰值。 probe.py 只列环境变量名。不要去读 .env 或 shell 配置里等号右边的内容,不要把值写进任何文件或回复。

4. 只读用户自己的账号和公开数据。花钱的调用先报价。 按量计费的接口,调用前告诉用户预计几次、多少钱,等他点头。

5. 不替用户发任何东西。 这个 Skill 全程只读。

流程

第一步:探测

python3 ~/.claude/skills/know-your-harness/scripts/probe.py -o probe.json

输出三样:哪些工具可用、哪些装了但要重新登录、环境里有哪些像密钥的变量名。内置清单只有最常见的几个,用户有别的工具时写一个 JSON 用 --tools 追加(格式见脚本开头)。

把结果讲给用户听,然后问一个问题:「你主要在哪几个平台发内容?给我主页链接或账号名。」 脚本认不出的工具(各种平台的数据 API、自己写的脚本)让他补充调用方式。

第二步:采集

零成本的两类直接跑:

python3 ~/.claude/skills/know-your-harness/scripts/collect.py <harness目录> -o <harness>/<数据目录>
  • github:自己的仓库和 star
  • local:harness 里写过多少文本,按目录和月份分布

其他平台由你按用户给的工具去拉,每个平台存一个原始 JSON 到同一个数据目录,文件名 MMDD-平台-posts.json。常见做法:

平台 怎么拉
有命令行工具的平台(X、GitHub、YouTube 等) 用户装了对应 CLI 就直接调,输出存成 JSON
只有后台的平台(公众号、小红书、Newsletter、博客等) 后台导出的 CSV 或 Excel 转成 JSON,或者用户自己有的数据 API
都没有 跳过,在画像里写「未接通」

每个人的平台组合不一样,这里不预设。用户说了哪几个就拉哪几个。

拉不到的不要硬凑。画像里如实写哪些接通了、哪些没有。

数据目录建议放在复盘层(50-protocols/data/ 或类似位置)。原始数据通常不该推到 GitHub,提醒用户在 .gitignore 里排除,或者用 sync-your-harness 处理。

第三步:排名

每个平台的 JSON 跑一次:

python3 ~/.claude/skills/know-your-harness/scripts/rank.py <数据目录>/1111-x-posts.json -o <数据目录>/1111-x-rank.json

脚本不认平台,只认结构:自动找到内容数组、标题字段、指标字段、时间字段,认得「1.2万」这种写法,默认剔除转发。识别错了用 --metric 和 --title 指定。

输出:合计、平均、中位数、最高是中位数的几倍、前 10% 内容拿走了多少比例、每月条数、最好和最差各 N 条。

第四步:写画像

读完所有 rank 输出之后,在 about-me/ 下写 动态画像.md。结构固定:

# 动态画像
> 生成日期:YYYY-MM-DD。数据来源和时间范围见各节。下次刷新建议在一个月后。

## 一句话
(从数据里看,这个人是谁。不超过两句)

## 各平台现状
| 平台 | 账号 | 条数 | 主指标合计 | 中位数 | 最高 | 状态 |

## 什么内容表现好
(3 到 5 条规律。每条后面括号注明依据的是哪几条内容)

## 什么内容表现差
(同上)

## 写作和表达习惯
(从表现最好的内容里读出来的:长度、开头方式、有没有第一人称)

## 数据没接通的部分
(哪些平台没拉到,缺什么)

Read the full file on GitHub · 132 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 23d ago First seen · 132 lines · 155 tokens per session scan A 13bf85a854d5

Subscribe to this mod's changes

know-your-harness is a skill published in the GitHub repository SpaceZephyr/build-your-harness (80 stars, last pushed 5d ago), licensed MIT. It adds 155 tokens to every session and 1,668 once invoked, about $0.0006 per session on Opus 5.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-11-12.

Related

know-your-harness compared with skills from other repositories

know-your-harness next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
know-your-harnessSpaceZephyr/build-your-harnessSkill805d agoMITA155Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill333k7d agoMITA21Claude Code