Generate or update CLAUDE.md/AGENTS.md files for AI coding agents through auto-scanning project files combined with interactive Q&A. Supports multiple tech stacks, development environments, and preserves customizations when updating.
/plugin marketplace add thienanblog/awesome-ai-agent-skills/plugin install documentation-skills@awesome-ai-agent-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
assets/templates/generic.mdassets/templates/laravel-backend.mdassets/templates/laravel-fullstack.mdassets/templates/node-backend.mdassets/templates/python-backend.mdassets/templates/react-frontend.mdassets/templates/vue-frontend.mdreferences/merge-strategy.mdreferences/section-templates.mdreferences/tech-stack-detection.mdThis skill helps you generate comprehensive instruction files (CLAUDE.md or AGENTS.md) that teach AI coding agents how to work effectively in your project. It combines automatic project scanning with interactive questions to create tailored guidelines.
When to use this skill:
To generate a new CLAUDE.md file:
Interactive Mode (Default):
Quick Mode:
Check for existing files:
CLAUDE.md or AGENTS.md in the project rootDetermine primary file:
CLAUDE.md as primary, AGENTS.md as symlinkAsk the user:
What scan depth should I use to analyze your project?
1. Quick (approximately 30 seconds)
Scans: package.json, composer.json, docker-compose.yml, pyproject.toml,
Gemfile, go.mod, Cargo.toml, and other root config files
Best for: When you know your stack well and want fast generation
2. Medium (approximately 1-2 minutes) [RECOMMENDED]
Scans: Root configs + src/, app/, lib/, config/, routes/, components/,
pages/, views/, controllers/, models/, services/
Best for: Most projects - good balance of accuracy and speed
3. Deep (approximately 3-5 minutes)
Scans: Entire project tree including tests/, docs/, scripts/, all
subdirectories, hidden configs, and build artifacts
Best for: Complex projects, monorepos, or unfamiliar codebases
Scan actions per depth:
| Depth | Files Scanned | Directories Explored |
|---|---|---|
| Quick | Root configs only | None (root level) |
| Medium | Configs + source headers | src/, app/, lib/, config/, routes/ |
| Deep | All files | Full tree traversal |
Ask the user:
What development environment does this project use?
1. Docker Compose
- Commands run via: docker compose exec <service> <command>
- Example: docker compose exec app php artisan migrate
2. Laravel Sail
- Commands run via: ./vendor/bin/sail <command>
- Example: ./vendor/bin/sail artisan migrate
3. Native/Host Machine
- Commands run directly on your machine
- Example: php artisan migrate
4. Dev Containers / Codespaces
- Commands run inside the container environment
5. Other (please describe)
- Specify your custom environment setup
Follow-up questions based on selection:
Scan the project based on selected depth and detect:
Backend Framework:
Frontend Framework:
Package Manager:
Testing Framework:
Code Style/Linting:
Database:
Present findings to user:
I detected the following tech stack:
Backend:
- Laravel 11 (high confidence)
- PHP 8.3 (from composer.json)
Frontend:
- Vue.js 3 with Composition API (high confidence)
- TailwindCSS v3 (from package.json)
Testing:
- Pest PHP (from composer.json)
- Vitest (from package.json)
Code Style:
- Laravel Pint (pint.json found)
- ESLint + Prettier (configs found)
Environment:
- Docker Compose detected (docker-compose.yml)
- Services: app, mysql, redis
Is this correct? Would you like to add or modify anything?
Ask the user about optional sections:
Would you like to include any of these optional sections?
1. CI/CD Configuration
- Detect: GitHub Actions, GitLab CI, CircleCI, Jenkins
- Include: Pipeline commands, deployment notes
2. Git Workflow Guidelines
- Include: Branch naming, commit message format, PR guidelines
- Detect: .github/PULL_REQUEST_TEMPLATE.md, commitlint config
3. Security Guidelines
- Include: Env file handling, secrets management, input validation
- Best practices for the detected stack
4. API Documentation
- Detect: OpenAPI/Swagger specs, Postman collections
- Include: Documentation conventions and tooling
5. Mobile App Guidelines (if detected)
- React Native / Flutter specific patterns
- Platform-specific considerations
6. Monorepo Guidelines (if detected)
- Nx / Turborepo / Lerna workspace patterns
- Package management and dependencies
Select the sections you need (comma-separated numbers, or 'none' to skip):
Note: In Quick Mode, these optional sections are skipped unless auto-detected with high confidence.
Generate the following sections based on detected stack and user input:
# AI Agent Guidelines & Repository Manual
**Role:** You are an expert Senior [DETECTED_ROLE] and Technical Lead.
You are responsible for the entire lifecycle of a task: understanding,
planning, [STACK_SPECIFIC_RESPONSIBILITIES].
Role detection rules:
Generate the 6-step workflow cycle:
Each step includes stack-specific instructions from templates.
List paths to important documentation:
## Documentation & Knowledge Base
You are expected to read and adhere to these single sources of truth:
* **[Doc Type]**: `[path/to/doc.md]` ([Brief description])
Auto-detect common paths:
docs/, documentation/README.md, CONTRIBUTING.mddocs/api/, docs/architecture/Map the folder structure with purposes:
## Project Structure & Architecture
* **`[folder/]`**: [Purpose description]
Common patterns to detect:
Based on Phase 3 selection:
## Development Environment
### Container Commands (if Docker)
* App container: `docker compose exec [service] <command>`
### Host Commands
* Git, file operations, IDE commands
### Key Commands
* Format: `[detected formatter command]`
* Test: `[detected test command]`
* Build: `[detected build command]`
Based on detected stack:
## Coding Standards (The "Gold Standard")
* **Language**: [Language] [Version]
* **Framework**: [Framework] [Version]
* **Code Style**: [Style guide/tool]
* **Strictness**: [Type hints, strict mode, etc.]
Include anti-patterns section if applicable:
### Critical Anti-Patterns
- [Stack-specific anti-patterns to avoid]
If the project has specific domain rules detected:
## Domain Specifics & Non-Negotiables
* **[Rule Category]**: [Rule description]
Common domain patterns:
If user selected or auto-detected:
## CI/CD & Deployment
### Detected Pipelines
* **GitHub Actions**: `.github/workflows/`
* **GitLab CI**: `.gitlab-ci.yml`
### Pipeline Commands
* Run tests: `[detected command]`
* Build: `[detected command]`
* Deploy: `[detected command]`
### Deployment Notes
* [Environment-specific notes]
If user selected:
## Git Workflow
### Branch Naming
* Feature: `feature/<ticket>-<description>`
* Bugfix: `fix/<ticket>-<description>`
* Hotfix: `hotfix/<description>`
### Commit Message Format
type(scope): description
[optional body]
Types: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`
### Pull Request Guidelines
* Reference ticket/issue in description
* Ensure tests pass before requesting review
* Keep PRs focused and reasonably sized
If user selected:
## Security Guidelines
### Environment Variables
* Never commit `.env` files (only `.env.example`)
* Use secrets management for production
* Rotate credentials regularly
### Input Validation
* Validate all user input at boundaries
* Sanitize data before database queries
* Use parameterized queries (ORM handles this)
### Authentication & Authorization
* [Stack-specific auth patterns]
* Always verify permissions before actions
If detected or user selected:
## API Documentation
### Documentation Location
* OpenAPI Spec: `[path/to/openapi.yaml]`
* Postman Collection: `[path/to/collection.json]`
### Documentation Standards
* Keep API docs in sync with implementation
* Document all endpoints, request/response schemas
* Include example requests and responses
If React Native or Flutter detected:
## Mobile Development
### Platform Considerations
* Test on both iOS and Android
* Handle platform-specific UI patterns
* Consider offline functionality
### Build Commands
* iOS: `[build command]`
* Android: `[build command]`
If monorepo detected:
## Monorepo Structure
### Workspace Management
* Package manager: [pnpm/yarn/npm workspaces]
* Build tool: [Nx/Turborepo/Lerna]
### Package Dependencies
* Use workspace protocol for internal packages
* Keep shared dependencies at root level
### Commands
* Build all: `[command]`
* Build affected: `[command]`
* Test affected: `[command]`
For new files:
CLAUDE.md with generated contentAGENTS.md as symlink:
ln -s CLAUDE.md AGENTS.md
<!-- This file mirrors CLAUDE.md. Edit CLAUDE.md as the primary source. -->
For updates (merge mode):
## headers)See references/tech-stack-detection.md for complete detection patterns.
See references/section-templates.md for complete section templates per stack.
See references/merge-strategy.md for detailed merge logic.
Primary file: CLAUDE.md
Secondary file: AGENTS.md
Why this approach:
This skill is part of the awesome-ai-agent-skills community library.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.