dev-standards
Skill0 starsChanged 4 months agoMITView on GitHub
i-Willink 共通開発標準。スタック非依存の汎用層(TypeScript strict / Conventional Commits / OWASP / アクセシビリティ / テスト方針 / コミット粒度)。各 agent が起動時に preload する。プロジェクト固有の規約は `project-standards` skill 側に書く。
- Reads credentials
6 other projects use a version of this.
Adopted by
Most recently taken up by
- CT-masato-hino/claude-code-project-packtheir own version, first seen Nov 15, 2026
- ai-enhanced-engineer/aiee-skillstheir own version, first seen Nov 1, 2026
- icefrag/nbltheir own version, first seen Sep 18, 2026
- icefrag/nbl-superpowerstheir own version, first seen Sep 18, 2026
- petekofod/claude-skillstheir own version, first seen Jun 1, 2026
- elliot35/deterministic-agent-control-protocoltheir own version, first seen Feb 7, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- elliot35/deterministic-agent-control-protocol★ 88same name
- icefrag/nbl★ 17same name
- icefrag/nbl-superpowers★ 17same name
- ai-enhanced-engineer/aiee-skills★ 4same name
- CT-masato-hino/claude-code-project-pack★ 1same name
- petekofod/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11y-standardsSkill
- a11y-static-gateSkill
- adversarial-refute-voteSkill
- antigravity-buildSkill
- architecture-parity-gateSkill
- ci-required-check-installerSkill
- codex-buildSkill
- codex-imagegenSkill
- codex-spark-delegateSkill
- commit-convention-gateSkill
- commit-msg-quality-scoreSkill
- consumer-finding-ledgerSkill
- context-bloat-trackerSkill
- coverage-floor-lockSkill
- destructive-env-guardSkill
- eval-dataset-buildSkill
- eval-regression-guardSkill
- fanout-verify-synthSkill
- gate-forgeSkill
- hallucination-rate-meterSkill
- harness-kpi-ledgerSkill
- judge-rubric-voteSkill
- knowledge-citation-coverageSkill
- knowledge-dedup-scanSkill
- knowledge-index-guardSkill
- live-state-verify-guardSkill
- maker-checker-relaySkill
- memory-distillSkill
- mistake-rule-distillSkill
- oneshotSkill
- prompt-ab-evalSkill
- report-shapeSkill
- retry-failure-classifierSkill
- review-finding-reproSkill
- rule-dedup-scanSkill
- rule-promote-auditSkill
- rule-promotion-extractSkill
- secret-scan-hardeningSkill
- self-heal-ciSkill
- session-length-compact-auditSkill
- startSkill
- subagent-usage-analyzerSkill
- task-success-rate-trackSkill
- token-codegen-gateSkill
- trigger-vocab-dedupSkill
The file
Files
i-Willink Dev Standards (stack-agnostic)
このスキルは i-Willink 全プロジェクトに共通する開発標準。スタック特化のルールは含まない — それは各プロジェクトの project-standards skill が担う。
1. コード品質
言語横断
- 意図が読める命名: 短さより明瞭さ。
dではなくdueDateUtc - コメントは「WHY」が非自明な時のみ: 制約・不変条件・回避策・読み手が驚く挙動。WHAT を書かない(コード自体が説明する)
- 早期 return で nest を浅く: ガード節で例外条件を最初に処理
- YAGNI: 仮想の将来要件のための抽象化禁止。3 行類似は重複ではなく「まだ重複じゃない」
TypeScript(採用プロジェクトのみ適用)
strict: true必須。any禁止、unknownを使い narrowing するnoUncheckedIndexedAccess: true推奨- 型の export は
typeキーワード明示
Flutter / Dart(採用プロジェクトのみ)
analysis_options.yamlのstrict-casts/strict-inference/strict-raw-typesを有効化- null safety を抜けない(
!の使用は局所化して justify コメント)
PHP / WordPress(採用プロジェクトのみ)
- PHPCS WordPress-Extra 準拠
wp_unslash()/sanitize_*()/esc_*()は 境界で必ず実施
2. テスト方針
- 境界では検証、内部では信頼: 外部入力・API・DB 境界を厚く、純粋関数の internals は薄く
- happy path だけでは不十分: edge case と failure path を必ず 1 本ずつ
- モックは外部境界のみ: 内部関数のモックは設計が壊れているサイン
- テストの命名:
test_<対象>_<条件>_<期待結果>形式(言語慣習に従って adapt) - 新規コード: カバレッジ 80% 以上目安(hard rule ではない・behavior coverage を優先)
3. アクセシビリティ(UI に触る全変更に適用)
後付け禁止。UI を追加/変更するときに設計事項として決める。後から監査で足すと「操作要素が全部無名」のような構造的欠陥になり、修正が全画面に散る。
最低ライン(これを満たすまで実装完了としない):
- name / role / state — 操作要素はすべて accessible name を持ち、役割(button 等)と状態(無効/選択/トグル)を公開する(WCAG 2.2 SC 4.1.2)
- 記号をラベルにしない —
<×…は記号名で読み上げられる(<は「小なり」) - 文字拡大 200%(iOS 最大 ≒ 3.12x)でレイアウトが壊れない — 固定高さに文字を詰めない
- コントラスト 本文 4.5:1 / 大きい文字・UI 部品 3:1、ターゲットサイズ 最小 24×24 CSS px(モバイルは 48)
- 主要導線 1 本は読み上げだけで通せる — ここが受入条件。静的ゲートが緑でも、これは人手で確認する
→ スタック別の書き方・検証手段(決定論ゲート / 自動テスト / 実機)は a11y-standards skill。
機械検査は a11y-static-gate(scripts/a11y-static-check.py・exit code で判定)。
4. セキュリティ
OWASP Top 10 を常に意識
- Injection: prepared statements / parameterized queries 必須
- Broken Access Control: 認可は API 層で必ず(フロントだけはダメ)
- Cryptographic Failures: 自前 crypto 禁止、ライブラリ標準を使う
- SSRF / XSS / CSRF: フレームワークの保護機構を無効化しない
秘密情報
.envをコミットしない(.env.exampleのみ管理)- API キー・トークンをコードに hardcode 禁止
- ログに secrets を出さない(マスキング必須)
5. コミット規約
Conventional Commits 必須:
<type>(<scope>): <subject>
[body — WHY を書く]
[footer]type
feat: 新機能fix: バグ修正docs: ドキュメントのみrefactor: 振る舞いを変えない構造変更test: テストのみchore: ビルド・依存・設定perf: パフォーマンス改善style: フォーマットのみ
コミット粒度
- 1 commit = 1 論理変更。レビューしやすさ最優先
- 大きな変更は分割(feat 1 件で 800 行超えたら分割を検討)
- WIP commit を main に混ぜない(feature branch 上では OK・squash で消す)
6. PR 運用
- 小さく、レビューしやすく: 500 行超は分割を真剣に検討
- PR description で WHY を語る: WHAT は diff で読める
- Self-review してから request review: 自分で 1 周読む
- CI green で初めて merge 可能
7. AI 開発(Claude Code / Codex 使用時)
- Generator-Verifier 分離: 実装はメイン agent(Claude Code は main Claude、Codex は main Codex)、レビューは Verifier role(dev-reviewer 相当)
- Telephone game 回避: 順序的同一作業を subagent 連鎖に分割しない
- Early victory 警戒: テスト 1-2 本で「成功」を信じない(dev-tester プロトコルに従う)
- 同一ファイル並列編集禁止: subagent 並列起動時は read-only に限定
- Codex subagent は明示許可時のみ: Codex ではユーザーが subagent / delegation / parallel agent work を明示した場合だけ起動する
- project knowledge は共有: Codex でも
.claude/skills/project-standards/SKILL.mdと.claude/agent-memory/dev-reviewer/MEMORY.mdを読む(Codex 専用 copy は作らない)
8. このスキルの境界
含む: 全プロジェクト共通の最低ライン 含まない: スタック特化規約・プロジェクト固有のドメイン知識・チーム慣習
→ プロジェクト固有のものは .claude/skills/project-standards/SKILL.md に書く(雛形は kit の examples/project-standards-template/ 参照)。このパスは Claude Code と Codex で共有する。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

