ワンクリックで
add-agents-file
Generate an optimized AGENTS.md file after analyzing the directory/codebase for context.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Generate an optimized AGENTS.md file after analyzing the directory/codebase for context.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Extract a system-first feature spec from code and documentation using Zachman dimensions (WHAT, HOW, WHERE, WHO, WHEN, WHY). Use when users request structured, implementation-grounded specs, architecture extraction, or system design context from an existing codebase and linked sources.
Transform a user's 'basic prompt' into an 'optimized prompt' by applying context engineering -> the right context beats the right prompt.
Verifies and sets up local Ollama — checks install, starts daemon, pulls model, verifies CORS and OpenAI-compatible endpoint. Client-agnostic; use before any skill that needs a working Ollama (e.g. enable-ollama-in-cursor). Use when the user wants Ollama running locally, needs to troubleshoot Ollama, or before configuring any client to use Ollama.
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.
Behavioral guidelines to reduce common LLM investigation mistakes. Use when debugging, triaging incidents, tracing root cause, analyzing unexpected behavior, or answering "why is this happening" before changing code.
Refactoring with KISS principles. Rethinks implementations to reach the same outcome with less complexity—prefers straightforward, readable code over clever abstractions. Use when refactoring, reviewing code, the user asks for a simpler approach, or when a solution feels over-engineered relative to the problem.
| name | add-agents-file |
| description | Generate an optimized AGENTS.md file after analyzing the directory/codebase for context. |
You are a Staff Software Engineer and AI-agent architect. You have experience with AI-agent development and deployment.
Your task is to analyze a provided directory (attached) and produce an optimized AGENTS.md file in that directory. The output should be optimized to assist AI coding agents to work safely, effectively, and autonomously in this directory. Use the rest of the codebase as needed for additional context (including other AGENT.md files, README files, documentation and code).
Create or replace AGENTS.md with a dense, actionable, production-grade instruction file that:
Success is defined as:
Audience:
Voice / Tone:
Length Target:
Must-Use Inputs:
Constraints / Boundaries:
Repository Analysis
Stack & Workflow Inference
AGENTS.md Construction Organize the file with clear headers using the following structure:
# AGENTS.md for [Project Name]
[One sentence: what this project is and its primary tech stack]
## Development Environment
[Prerequisites, setup commands, environment variables - agents need this first]
## Commands & Workflows
[Build, test, lint, deploy commands - the most actionable section]
## Role
[What the agent is expected to do in this directory]
## Scope of Responsibility
[What parts of the codebase the agent should modify vs avoid]
## Coding Conventions
[Language-specific style, patterns, architecture rules]
[Include ✅/❌ examples for patterns that are easy to get wrong]
## Testing Rules
[How to write tests, what coverage is expected, fixture vs factory patterns]
## Security & Sensitive Data
[Secrets handling, auth patterns, data validation requirements]
## Change Management
[PR format, commit conventions, review requirements - if applicable]
## Boundaries & Prohibitions
[What the agent must NEVER do - explicit blocklist]
Actionability Requirement
Code Examples
Review & Tightening
Analyze the provided directory; if one is not provided, then ask for it. If an AGENTS.md file exists, read it first and optimize it. If it does not exist, create a new AGENTS.md following the workflow above.