Generate instructions

From devclarityai/environment-setup · View interactive version

Generate instructions is an AI agent skill from the GitHub repository devclarityai/environment-setup. Analyze a directory and generate consolidated Cursor rules.

How to use this skill

Skill file

Generate Directory Instructions

Analyze a specific directory in the monorepo and create a consolidated rule file for Cursor.

Inputs

  1. Target Directory (required) - The directory path to analyze (e.g., packages/api, apps/web)

Output

Create a single file at .cursor/rules/{DIR_NAME}.mdc with:

Steps

  1. Analyze the Directory - Examine code structure, patterns, and conventions
  2. Generate Instructions File - Create the consolidated file with all sections
  3. Validate Content - Ensure all mentioned code/patterns actually exist
  4. Review Formatting - Follow the guidelines below

Sections to Include

1. Overview

2. Architecture & Patterns

3. Stack Best Practices

4. Anti-Patterns

5. Data Models

6. Security & Configuration

7. Commands & Scripts

Guidelines

Output Format

---
globs: "{DIR_PATH}/**"
---

# {DIR_NAME} Instructions

## Overview
- [specific bullet points]

## Architecture & Patterns
- [specific bullet points]

## Stack Best Practices
- [specific bullet points]

## Anti-Patterns
- [specific bullet points]

## Data Models
- [specific bullet points]

## Security & Configuration
- [specific bullet points]

## Commands & Scripts
- [specific bullet points]
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.