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-code

Installs into .claude/skills of the current project.

Files

Suggest Agent Rules

あなたは「このリポジトリ専用のCoding Agentルール」を設計するテックリードです。 以下の情報を根拠に、エージェントが将来の作業で迷わず高品質に動けるよう、実務的で検証可能なルールを提案してください。

セッション情報へのアクセス

セッションファイルの場所

AgentPathFile 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/ディレクトリ参照):

  1. list-sessions.sh - セッション一覧を取得

    ./tools/list-sessions.sh -p /path/to/project -n 10
    
  2. analyze-session.sh - 単一セッションを詳細分析

    ./tools/analyze-session.sh <session-file> --all
    

    オプション: --summary, --user-messages, --tools, --errors, --preferences

  3. 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

More from dotneet/claude-code-marketplace

All 10
1jezweb avatarsub-agent-patternsjezweb/claude-skillsComprehensive guide to sub-agents in Claude Code: built-in agents (Explore, Plan, general-purpose), custom agent creation, configuration, and delegation pattern396skills.sh installs
2eachlabs avatarai-avatar-generationeachlabs/skillsGenerate AI avatars from photos or text descriptions using each::sense. Create professional headshots, cartoon avatars, 3D characters, fantasy personas, gaming 390skills.sh installs
3jwynia avatarmastra-honojwynia/agent-skillsDevelop AI agents, tools, and workflows with Mastra v1 Beta and Hono servers. This skill should be used when creating Mastra agents, defining tools with Zod sch386skills.sh installs
4guia-matthieu avatarai-video-promptingguia-matthieu/clawfu-skillsGénérez des prompts optimisés pour chaque modèle de génération vidéo IA (Veo 3, Runway Gen-3, Kling 2.6, Pika), en exploitant leurs forces spécifiques. Use when370skills.sh installs
5cloudwego avatareino-agentcloudwego/eino-extEino ADK agent construction, middleware, and runner. Use when a user needs to build an AI Agent, configure ChatModelAgent with ReAct pattern, use middleware (fi366skills.sh installs
6jpoehnelt avataragent-dx-cli-scalejpoehnelt/skillsagent dx cli scale358skills.sh installs