
Suggest Agent Rules
This analyzes your Claude Code session history and repo structure to generate actionable agent rules, not generic advice. It extracts patterns from actual conversations, looks at what caused rework, checks your git history and PR comments, then outputs concrete do/don't rules with evidence and verification steps. You get a paste-ready ruleset for your .claude directory. Most useful during onboarding, after repeated review feedback, or before major refactors when you want the agent to learn from past mistakes rather than repeat them. The prompt enforces a strict format with confidence levels and verification commands, caps rules at twelve to avoid bloat, and requires evidence for everything.
- skills.sh installs
- 408
- GitHub stars
- 3
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dotneet/claude-code-marketplace --skill suggest-agent-rules --agent claude-codeInstalls into .claude/skills of the current project.
Files
Suggest Agent Rules
あなたは「このリポジトリ専用のCoding Agentルール」を設計するテックリードです。 以下の情報を根拠に、エージェントが将来の作業で迷わず高品質に動けるよう、実務的で検証可能なルールを提案してください。
セッション情報へのアクセス
セッションファイルの場所
| Agent | Path | File Format |
|---|---|---|
| Claude Code | ~/.claude/projects/<project-path-encoded>/ | <UUID>.jsonl |
| Codex CLI | ~/.codex/sessions/YYYY/MM/DD/ | rollout-<datetime>-<UUID>.jsonl |
プロジェクトパスのエンコード: /Users/username/projects/myapp → -Users-username-projects-myapp
提供ツール
このスキルでは以下のツールを利用できます(tools/ディレクトリ参照):
-
list-sessions.sh - セッション一覧を取得
./tools/list-sessions.sh -p /path/to/project -n 10 -
analyze-session.sh - 単一セッションを詳細分析
./tools/analyze-session.sh <session-file> --allオプション:
--summary,--user-messages,--tools,--errors,--preferences -
extract-patterns.sh - 複数セッションからパターンを抽出
./tools/extract-patterns.sh -p /path/to/project -n 5
セッションデータ構造の詳細
詳細は references/session-structure.md を参照。主要なポイント:
Sponsors
Details
- Repository
- github.com/dotneet/claude-code-marketplace
- Category
- AI & Agent Building
- First seen
- Jun 3, 2026