honor-code skill
✓ 検証済み過去のエラーパターンに基づき、アーキテクチャ、型、またはリンターによるガードレールを実装することで、エージェントによる同じミスの繰り返しを防ぎます。
- GitHubスター
- 113
- ファイル
- 1
- 最終コミット
- 2026年11月1日
- ライセンス
- MIT
- 許可されたツール
- —
honor-code skillは何をしますか
honor-codeはAgent Skillsです。 過去のエラーパターンに基づき、アーキテクチャ、型、またはリンターによるガードレールを実装することで、エージェントによる同じミスの繰り返しを防ぎます。.
skillのSKILL.mdから生成された要約。
honor-code skill について
AIエージェントによる同じコーディングエラーの繰り返しを止めたい開発者は、このSKILLを使用して、過去のミスを恒久的な構造的ガードレールへと変換できます。繰り返しの手動修正に頼るのではなく、このツールは最近のコミット、リバート、レビューコメント、および AGENTS.md や CLAUDE.md といったエージェントの指示ファイルを分析し、繰り返し発生するミス・クラスを特定します。パターンが特定されると、開発スタックの可能な限り高いレベルで修正を実装します。
プロセスでは、エラーを排除するためのアーキテクチャ変更を最優先し、次に型システムの強制、カスタムリンターのルール、またはCIチェックへと続きます。また、リグレッションを検知できない脆弱なテストにも対処します。実効性を確保するため、このSKILLは、新しいガードレールが過去の実際のミスを正しくフラグを立てることを実証することで、各ガードレールの有効性を証明します。最終的な出力には、特定のルールとその技術的な強制メカニズム(特定の型やリンターのパスなど)を紐付けた構造化テーブルが、エージェントの指示ファイル内に含まれます。
エージェントができること
- 1手動修正をコードに変換繰り返されるオペレーターの修正を、恒久的なアーキテクチャまたは型ベースの制約へと変換します。
- 2履歴を用いた新しいガードレールの検証過去のエラーを再現することで、新しいリンターや型チェックが実際に機能するかを確認します。
- 3強制レジストリの維持ルールとその技術的な実装を紐付ける中央集権的なテーブルを、エージェントの指示内に作成します。
skill の SKILL.md から作成されています。すべてのユースケースは、その引用と照合されています。
honor-code skillのインストール方法
各コマンドはskillフォルダをクライアントのskillsディレクトリにコピーします。読み込むには、クライアントを再起動するか新しいセッションを開始してください。プラグインにhonor-code skillをインストールする
/plugin marketplace add tmcfarlane/team-avatar /plugin install team-avatar@team-avatar
Claude Codeにhonor-code skillをインストールする
~/.claude/skills/honor-code/SKILL.md
$ npx degit tmcfarlane/team-avatar/plugins/team-avatar/skills/honor-code ~/.claude/skills/honor-codeClaude Code (project)にhonor-code skillをインストールする
.claude/skills/honor-code/SKILL.md
$ npx degit tmcfarlane/team-avatar/plugins/team-avatar/skills/honor-code .claude/skills/honor-codeCodexにhonor-code skillをインストールする
~/.agents/skills/honor-code/SKILL.md
$ npx degit tmcfarlane/team-avatar/plugins/team-avatar/skills/honor-code ~/.agents/skills/honor-codeGemini CLIにhonor-code skillをインストールする
~/.gemini/skills/honor-code/SKILL.md
$ npx degit tmcfarlane/team-avatar/plugins/team-avatar/skills/honor-code ~/.gemini/skills/honor-codeClaude.aiにhonor-code skillをインストールする
npx degit tmcfarlane/team-avatar/plugins/team-avatar/skills/honor-code honor-code && zip -r honor-code.zip honor-code # claude.ai → Customize → Skills → + → Create skill → Upload a skill → honor-code.zip
自動チェック
実行日 2026年11月14日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。エージェントに実行させる前にスクリプトを読んでください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能tmcfarlane/team-avatar/plugins/team-avatar/skills/honor-code is public and reachablegithub.com/tmcfarlane/team-avatar/tree/HEAD/plugins/team-ava ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit 2026-11-01github.com/tmcfarlane/team-avatar/commits ↗合格
- スクリプトにダウンロード実行や認証情報の窃取がないNo scripts in the skill folder合格
- SKILL.md に隠れた指示がないNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/tmcfarlane/team-avatar/blob/HEAD/plugins/team-ava ↗合格
- 事前許可ツールが限定されているNo pre-approved tools; the agent asks before using onegithub.com/tmcfarlane/team-avatar/blob/HEAD/plugins/team-ava ↗合格
- SKILL.md が Agent Skills の形式に従っているValid name and description; says when to use it; 40 linesgithub.com/tmcfarlane/team-avatar/blob/HEAD/plugins/team-ava ↗合格
SKILL.md
GitHubで表示Zuko's honor code
Zuko's uncle never let him forget a mistake, and he never let him dwell on one either. Each failure became a line in the code Zuko lived by, so the same mistake could not catch him twice. A repo can live by a code too. When the operator keeps correcting agents for the same thing, the fix is not another reminder. It is a change that makes the mistake impossible.
Assume every contributor is an agent that sees only the files it opened, copies the nearest example, and takes the shortest path that compiles. Shape the repo so a change that looks right from one file is right for the whole repo.
Find the mistake classes
Read recent commits, reverts, review comments, agent instruction files (AGENTS.md, CLAUDE.md, and the like), and comments that explain workarounds. Group the mistakes into classes. A class counts once it has happened twice. Cite the evidence for each occurrence.
Fix each class at the highest level that works
- Eliminate it with architecture. Give each piece of state one owner and each task one supported way. Hide internals so the wrong import fails. Replace hand-synced lists with one source of truth. Delete old ways and dead code an agent would copy.
- Enforce it with types, so the bad state cannot be written (Type System Discipline, Earth in
four-elements). If bad code still compiles, add a lint or a CI check whose error names the file, type, or function to use instead. If the pattern is already common, fail only when a change adds more of it. - Test the behavior. Fix or delete any test that still passes when the behavior it checks breaks, or that fails when only the internals change (Test Behavior, Not Implementation, Earth in
four-elements). - Write docs or agent rules last, and only for judgment calls. Nothing fails when an agent skips them.
Fix and prove
Fix the most frequent classes now, one commit each. Prove each new check fails on a real past mistake by reapplying that mistake and showing the check's error. Run the same command locally and in CI. An exception goes on the offending line with a reason, an expiry date, and a human's approval.
Keep the code
Keep a table in the agent instruction file that pairs each rule with what enforces it.
| Rule | Enforced by |
|---|---|
| <the mistake, stated as a rule> | <the type, lint, check, or test, with its path> |
When the operator corrects you, fix the mistake and add the rule. If the rule was already there and nothing enforces it, that is a repeat, so fix it at the highest level in the same change (Encode Lessons in Structure, Fire in four-elements). Drop a rule once its mistake cannot happen.
Reply
Each class with its evidence, the level you picked, and why a higher level did not work.
このスキルのファイル
1honor-code skillに関する質問
Claude Codeにhonor-code skillをインストールするには
npx degit tmcfarlane/team-avatar/plugins/team-avatar/skills/honor-code ~/.claude/skills/honor-codeを実行してください。Claude Codeは~/.claude/skills(すべてのプロジェクト)または.claude/skills(単一プロジェクト)からskillsを読み込み、説明がタスクに一致する場合にskillを使用します。
honor-code skillはどのクライアントで使用できますか
Agent Skills形式を読み込むすべてのクライアントで使用できます: Claude Code、Codex、Gemini CLI、claude.ai(ZIPとしてアップロード)。skill内のスクリプトは、クライアントがコード実行を許可した場合にのみ実行されます。
オナーコード(honor code)はどのようにミスを修正するのですか?
アーキテクチャを最優先とし、次に型、リンター、テスト、そしてドキュメントへと、可能な限り高いレイヤーから順にミスを修正します。
ミス・クラス(mistake class)はどのように特定しますか?
最近のコミット、リバート、レビューコメント、およびエージェントの指示ファイルをグループ化して特定します。2回発生した時点で正式にカウントされます。
新しいチェックが実際に機能することをどのように証明しますか?
過去に実際に発生したミスを再現し、新しいチェックが正しくエラーを検知することを示すことで証明します。