ethics-audit

ethics-audit is a skill for Claude Code from numekudi/engineering-ethics. It costs 147 tokens per session (1,897 once invoked), scanned A, original, MIT.

A Japanese-language repository audit skill that checks software against the IEEE-CS/ACM Software Engineering Code of Ethics and against deceptive interface patterns. An audit is a documented inspection based on evidence.

In plain words
What is it for?
Use it to scan a repository, inspect ethics principles or individual items, score verified findings, and create a draft self-audit post.
Why use it?
It turns broad ethical claims into findings supported by specific code evidence, then tests those findings for false positives before scoring them.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Good fit Use it to scan a repository, inspect ethics principles or individual items, score verified findings, and create a draft self-audit post.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/numekudi/engineering-ethics/ethics-audit
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 numekudi/engineering-ethics --skill ethics-audit
Clone the repo
git clone --depth 1 https://github.com/numekudi/engineering-ethics

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/numekudi/engineering-ethics/ethics-audit/github.svg)](https://agentmods.dev/skills/numekudi/engineering-ethics/ethics-audit)
Your own site
<a href="https://agentmods.dev/skills/numekudi/engineering-ethics/ethics-audit"><img src="https://agentmods.dev/badge/skills/numekudi/engineering-ethics/ethics-audit/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 ethics-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/numekudi/engineering-ethics/ethics-audit"><img src="https://agentmods.dev/badge/skills/numekudi/engineering-ethics/ethics-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,897 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.00147 $0.01897
Opus 5.5 $0.00059 $0.00759
Sonnet 5.5 $0.00029 $0.00379
Haiku 4.5 $0.00015 $0.00190

Measured 2mo ago against content hash 776e6043eaae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ethics-audit 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 2mo ago.

The scan reads SKILL.md. This mod also ships 8 executable files (lib/cli.js, lib/commands/principles.js, lib/commands/scan.js, …), 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.

skills/ethics-audit/SKILL.md · 99 lines

How it starts

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

技術者倫理 監査ハーネス(ethics-audit)

リポジトリが技術者倫理(IEEE-CS/ACM ソフトウェア工学倫理綱領 第5.2版)に本当に則して いるかを、実コードを読んだ上で・具体項目に照らして・敵対的に検証して採点する。

思想(なぜこの手順か)

RINRI ライセンスの Golden Subroutine が戒めるとおり、倫理を実質の裏付けなく掲げる行為 (ethical grandstanding)は監査の敵である。本ハーネスは次を鉄則とする:

  • コードを読んでから判断する — 印象ではなく file:line の証跡に基づく。
  • 合否を出せる — バッジのラバースタンプではなく、合格も不適合も出す。
  • 誤検知を検証で潰す — 各所見を反証エージェントが攻撃し、生き残りだけを確定する。
  • 公共の利益が中心 — 迷ったら「最も権限の弱いユーザーがどう害されるか」で判断する。
  • 自己評価の道具 — 他者糾弾ではなく、自リポの改善のために使う。

CLI(決定論的スクリプト)

このスキルに同梱の lib/cli.js(Node.js・実行時依存ゼロ)を使う。以降 <SKILL_DIR> は この SKILL.md があるディレクトリ。実行例:

node <SKILL_DIR>/lib/cli.js scan <repo-path>                 # ダークパターン等の候補検出
node <SKILL_DIR>/lib/cli.js principles --principle N          # 原則Nの項目を供給
node <SKILL_DIR>/lib/cli.js principles --item N.MM            # 単一項目を引く
node <SKILL_DIR>/lib/cli.js score --input findings.json       # 確定所見を採点
node <SKILL_DIR>/lib/cli.js tweet --input audit.json --label <名前>  # 共有下書き生成

出力は既定で JSON(--format text で人間可読)。エラーは stderr に JSON、exit 1。

監査フロー

番号順に、決定論部分は CLI、判断部分はエージェントに委ねる。対象パスが未指定なら カレントリポジトリを対象にする。

Step 0 — スコープ確定と候補収集(まずコードを読む)

  1. 対象リポのファイル構成を Glob/Read で把握する。
  2. node <SKILL_DIR>/lib/cli.js scan <repo> を実行し、候補(ScanCandidate[])を得る。 これは判定ではなく候補。以降の判断の出発点にすぎない。
  3. scan はルール定義ファイル自体にも一致しうる(自己言及の誤検知)。対象リポの実体で 判断すること。

Step 1 — ファンアウト評価(8原則を分担)

Agent ツールで評価エージェントを 4〜5 体、並行起動する。各エージェントに:

  • 担当原則の項目を principles --principle N --format text で渡す(推奨割当: A=原則1,3 / B=原則2,6 / C=原則4,5 / D=原則7,8)。
  • 別途 ダークパターン・ハンターを1体、02-dark-patterns.md を渡して起動する。
  • Step 0 の候補と、実コードを読む指示を与える。
  • 評価観点は 01-principles.md、深刻度基準は 03-scoring-rubric.md を参照させる。

各エージェントは所見を findings JSON で返す。1件の形:

{"itemId":"3.12","severity":"high","file":"src/log.ts","line":5,
 "description":"…","evidence":"該当コードの引用","recommendation":"…","confirmed":false}

この段階では confirmed:false(未検証)。証跡(file:line と evidence)を必須とし、 抽象的な非難は捨てさせる。

Step 2 — 敵対的検証(反-grandstanding の中核)

04-adversarial-verification.md に従い、各所見に反証エージェントを割り当てる。 「実コード・文脈を読んだか? これは grandstanding ではないか? 不確実なら反証」を 基準に REFUTE を試みる。生き残った所見のみ confirmed:true にする。棄却理由も記録する。

Read the full file on GitHub · 99 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. 2mo ago First seen · 99 lines · 147 tokens per session scan A 776e6043eaae

Subscribe to this mod's changes

ethics-audit is a skill published in the GitHub repository numekudi/engineering-ethics (6 stars, last pushed 3mo ago), licensed MIT. It adds 147 tokens to every session and 1,897 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-08-31.

Related

ethics-audit compared with skills from other repositories

ethics-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ethics-auditnumekudi/engineering-ethicsSkill63mo agoMITA147Claude Code
compiler-reviewreact/reactSkill252kyesterdayMITA27Claude Code
prowler-compliance-reviewprowler-cloud/prowlerSkill15kyesterdayApache-2.0A62Claude Code
compliance-checkerAffitor/affiliate-skillsSkill76718d agoMITA87Claude Code, Codex
self-improverAffitor/affiliate-skillsSkill76718d agoMITA87Claude Code
ring:adding-multi-tenancyLerianStudio/ringSkill2186d agoApache-2.0A95Cursor
rds-operation-reviewaws/tools-for-devops-agentSkill137yesterdayApache-2.0A118Claude Code, Codex