rules-generator
プロジェクトのソースコード・依存関係・ディレクトリ構造を解析し、AGENTS.md を生成する。新規プロジェクトのセットアップ時、または既存の AGENTS.md の品質チェック・更新時に使用する。
Skill by gon9a
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/gon9-rules-generator
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/rules-generator
What's inside
- Skill name
rules-generator- Description
- プロジェクトのソースコード・依存関係・ディレクトリ構造を解析し、AGENTS.md を生成する。新規プロジェクトのセットアップ時、または既存の AGENTS.md の品質チェック・更新時に使用する。
- License
- MIT
- Compatibility
- Requires Python 3.14+
- Metadata
- author: gon9a · version: 2.0
- Instructions
- 92 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (11)
- README.md
- SKILL.md
- pyproject.toml
- detection-rules.md · references/
- template.md · references/
- __init__.py · src/rules_generator/
- generator.py · src/rules_generator/
- main.py · src/rules_generator/
- scanner.py · src/rules_generator/
- test_generator.py · tests/
- test_scanner.py · tests/
SKILL.md (first lines)
# Rules Generator Skill
プロジェクト解析 → AGENTS.md 生成・品質チェックを行うスキル。
## 重要な原則
AGENTS.md は [agents.md](https://agents.md) 仕様 (Linux Foundation / Agentic AI Foundation 管轄) に準拠するオープン標準。
Cursor, Windsurf, GitHub Copilot, Gemini CLI, Claude Code, VS Code, JetBrains Junie がネイティブ対応。
**IDE固有のコピーファイル (.windsurfrules, .cursorrules 等) は生成しない。**
AGENTS.md 1ファイルで全IDEに効く。
## ワークフロー
### 1. プロジェクト解析
[references/detection-rules.md](references/detection-rules.md) に従い、技術スタックを検出する。
### 2. AGENTS.md 生成
[references/template.md](references/template.md) のテンプレートに従って生成する。
#### 品質基準
- **150行以内** — 長いとエージェントの精度が下がる
- **ツールで強制できるルールは書かない** — eslint/ruff があるならそちらで
- **エージェントが発見できる情報は書かない** — package.json を読めばわかることは不要
- **コード例 > 文章** — 1つのコードスニペットは3段落の説明に勝る
- **命令形で書く** — 「使用すること」(「使っています」ではない)
#### 必須セクション
1. **プロジェクト概要** — 1-3行で「何をするか」
2. **コマンド** — build/test/lint の実行可能コマンド(コードブロックで記述)
3. **境界 (Boundaries)** — 3段階モデル:
- **Always** — 必ずやること
- **Ask First** — 確認してからやること
- **Never** — 絶対やらないこと
#### 推奨セクション
- ディレクトリ構造
- コーディング規約(コード例付き)
- テスト
- Git ワークフロー
### 3. 品質チェック
既存の AGENTS.md に対して以下を検証:
- [ ] 150行以内か
- [ ] コマンドセクションがあるか
- [ ] 境界 (Boundaries) セクションがあるか
- [ ] 不要なコピーファイル (.windsurfrules, .cursorrules) が存在しないか
- [ ] CLAUDE.md がある場合、AGENTS.md を参照しているか
- [ ] 命令形で書かれているか
- [ ] プロジェクトの実態と矛盾がないか
### 4. CLAUDE.md との関係
CLAUDE.md は Claude Code 固有の設定(サブエージェント、hooks、MCP等)のみに使う。
共通ルールは AGENTS.md に書き、CLAUDE.md の先頭に以下を記載:
```markdown
共通ルールは [AGENTS.md](AGENTS.md) を参照すること。
```
### 5. Progressive Disclosure
AGENTS.md が 150行を超える場合は分割する:
```
project/
├── AGENTS.md # 概要 + コマンド + 境界
└── docs/agents/
├── architecture.md # アーキテクチャ詳細
└── testing.md # テスト戦略詳細
```
## ワークスペースメタルール
`~/workspace/AGENTS.md` にメタルール(AGENTS.md の書き方ルール自体)を配置している。
新しいプロジェクトの AGENTS.md を生成する際は、このメタルールの品質基準に従うこと。
## 注意事項
- 既存のルールファイルがある場合は上書きせず差分を提案する
- プロジェクト固有のドメイン知識はユーザーに確認してから追記する
- API キーや秘密情報をルールファイルに含めないこと
- 失敗パターン: AIが同じミスを2回したら AGENTS.md に追加するよう提案するFrom gon9/ore-skills, MIT.
More from gon9/ore-skills
- 0.570score
spec
gon9
Validates specification documents to ensure they contain required sections (概要, 要件, 構成).
SkillAFreshness: AClaude Code +9 - 0.570score
diary
gon9a
Interactive diary writing assistant that guides users through journal entries using interview-style questions.
SkillAFreshness: AClaude Code +9 - 0.570score
media
gon9
Fetches and processes YouTube video transcripts for analysis, summarization, and content extraction.
SkillAFreshness: AClaude Code +9 - 0.570score
pptx
gon9a
Generate PowerPoint presentations (.pptx) using Node.js and PptxGenJS.
SkillAFreshness: AClaude Code +9 - 0.564score
ocr-local
gon9
ローカル Tesseract OCR でスクリーンショット画像群を Markdown に文字起こしする。Playwright による自動スクショ取得も可能。社外秘ドキュメントを外部 API に出さずに処理したいときに使う。
SkillAFreshness: AClaude Code +9 - 0.561score
obsidian-utils
gon9
Manage and update personal indexes in an Obsidian Vault.
SkillAFreshness: AClaude Code +9 - 0.524score
setup-agent-notifications
gon9
Configure and diagnose reliable macOS notifications for Claude Code and Codex CLI.
SkillBFreshness: BClaude Code +9 - 0.474score
task-splitter
gon9a
Use this skill to decompose large features, epics, or complex requirements into small atomic tasks (10-15 minutes each).
SkillCFreshness: CClaude Code +9 - 0.474score
git-workflow
gon9a
Use this skill when creating git commit messages, branch names, or pull request descriptions.
SkillCFreshness: CClaude Code +9 - 0.474score
obsidian-triage
gon9a
Use this skill to organize, sort, or triage notes in an Obsidian vault inbox.
SkillCFreshness: CClaude Code +9 - 0.474score
prompt-linter
gon9a
Use this skill to review, diagnose, or improve AI prompts.
SkillCFreshness: CClaude Code +9 - 0.470score
context-optimizer
gon9a
Use this skill to compress long conversation threads into a compact checkpoint summary.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 27, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 2.0
- License
- MIT
- Repository
- github.com/gon9/ore-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from gon9a
- 0.570score
pptx
gon9a
Generate PowerPoint presentations (.pptx) using Node.js and PptxGenJS.
SkillAFreshness: AClaude Code +9 - 0.570score
diary
gon9a
Interactive diary writing assistant that guides users through journal entries using interview-style questions.
SkillAFreshness: AClaude Code +9 - 0.474score
obsidian-triage
gon9a
Use this skill to organize, sort, or triage notes in an Obsidian vault inbox.
SkillCFreshness: CClaude Code +9 - 0.474score
task-splitter
gon9a
Use this skill to decompose large features, epics, or complex requirements into small atomic tasks (10-15 minutes each).
SkillCFreshness: CClaude Code +9 - 0.474score
prompt-linter
gon9a
Use this skill to review, diagnose, or improve AI prompts.
SkillCFreshness: CClaude Code +9 - 0.474score
git-workflow
gon9a
Use this skill when creating git commit messages, branch names, or pull request descriptions.
SkillCFreshness: CClaude Code +9
Cite this page
rules-generator skill. Agent Mart. https://agentmart.dev/skills/gon9-rules-generator (last updated 2026-10-24)