Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Rule Authoring

ASecurity

このリポジトリにルール(ガイドライン本文・配布スキル)を追加・変更するときの分類と執筆を補助する。「このルールを追加したい」「チェックリストを取り込みたい」「この知見はどこに書くべきか」という相談で必ず使う。

20 stars
0 votes
0 copies
1 views
Added 9/20/2026
ai-agentsgitfrontend

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add d-zero-dev/frontend-guidelines --skill rule-authoring --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rule Authoring?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Rule Authoring
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/d-zero-dev-rule-authoring/badge)](https://www.skillsdirectory.com/skills/d-zero-dev-rule-authoring)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: rule-authoring
description: このリポジトリにルール(ガイドライン本文・配布スキル)を追加・変更するときの分類と執筆を補助する。「このルールを追加したい」「チェックリストを取り込みたい」「この知見はどこに書くべきか」という相談で必ず使う。
---

# ルール追加補助

新しいルール案(レビュー指摘の知見、チェックリスト、注意点など)を受け取ったら、**執筆する前に**以下のトリアージを順に通し、判定結果と根拠をユーザーに提示して合意を取る。

## ステップ 1: 一次原理の問い

置き場所を考える前に、次の 4 つを必ず問う。

1. **そもそもルール化すべきか**
   - [linters](https://github.com/d-zero-dev/linters) の共通設定(stylelint / eslint / markuplint 等)で**既に強制されていないか** → 強制済みなら不採用。強制ハーネスが担保するものを原則に書く必要はない(重複はトークンと保守の無駄)
   - 既存スキル・別ドキュメントで担保されていないか → 担保済みなら不採用
   - 一過性の事象ではないか、ルール化のコストに見合うか → 見合わなければ不採用を提案
2. **本質の抽象度は何か**
   - ツール名・時代性を剥がして原則に言い換えられるか
   - 例: 「Figma の数値を固定値で書いてしまう」→ 本質は「デザインデータの数値は結果であって仕様ではない」(Figma 固有ではなく、あらゆるデザインカンプに当てはまる)
   - 固有名詞は原則に据えず、具体例・起動トリガー(description の語彙)としてのみ使う
3. **恒常的原則か、一時的補正か**
   - 現時点の AI・ツールの欠陥への補正(モデル改善や環境整備で不要になるもの)なら、**解消条件と削除メモを付けて**登録する
   - 例: 「lint ルール○○が linters に導入されたらこの項目は削除する」
4. **宛先は誰か**
   - 実装エージェント / レビュアー / デザイナー / lint(機械) / 人間の運用ルール
   - 実装エージェント以外が宛先の知見はスキルに混ぜず、該当先(デザイナー向けガイドライン、linters リポ、運用ドキュメント等)への提案として分離する

## ステップ 2: 置き場所の分類

ステップ 1 を通過したルールを、次の基準で分類する。

| 特徴                                                                      | 行き先                                                                                                                                        |
| ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| linters で既に強制されている                                              | 書かない(ステップ 1 で不採用)                                                                                                               |
| 機械的に検出可能だが linters に未導入(値の形式、プロパティ、セレクタ等) | スキル化せず [linters](https://github.com/d-zero-dev/linters) への追加を提案。lint 導入までの暫定記載は明示合意がある場合のみ(削除メモ必須) |
| 実装レイヤー(HTML/CSS/JS)の選定に関わる                                 | `skills/dzero-tech-selection`                                                                                                                 |
| デザインカンプの解釈・デザインとの突き合わせに関わる                      | `skills/dzero-design-to-code`                                                                                                                 |
| 技術軸の設計判断・文脈依存の規範(lint で拾えない)                       | `skills/dzero-css` / `dzero-js` / `dzero-a11y` / `dzero-html` の「実装規範」(レビュー観点は独立して書かない。規範がレビューの基準を兼ねる)  |
| レビューの進め方そのもの                                                  | `skills/dzero-review`                                                                                                                         |
| ビルダー(kamado)や scaffold 構成に固有                                  | frontend-env リポジトリ(scaffold テンプレートの AGENTS.md / commands)へ提案                                                                 |
| 常時ロードが必要な短い原則                                                | scaffold テンプレートの AGENTS.md へ提案                                                                                                      |
| 案件固有・非公開情報を含む                                                | 汎化して採用。汎化できなければ不採用(このリポジトリは公開)                                                                                  |

## ステップ 3: 執筆

- `skills/README.md` の執筆規約(frontmatter の制約、内容ポリシー、構成)に従う
- **根拠のない一般論を書かない**。書けるだけの根拠がなければ空のセクション + TODO のまま残す
- **精神論・心構えは書かない**。エージェントの行動を変えない宣言(「理解して書く」等)は、ガイドライン本文(`src/`)にあってもスキルには載せない。実用核が埋まっている場合は「X の場合は Y する」という実行・検証可能な判断規則に変換して載せる
- ルールがガイドライン本文(`src/`)にも関わる場合は、同じ PR で `src/` とスキルの両方を更新する
- 判定に迷った項目は勝手に採用せず、判定表(採用/変換/不採用と理由)にしてユーザーに確認する

Attribution

d-zero-devd-zero-dev
View sourceMore from d-zero-dev →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

693621 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →