Create directory list

From devclarityai/environment-setup · View interactive version

Create directory list is an AI agent skill from the GitHub repository devclarityai/environment-setup. Discover directories and create the tracking JSON for instruction generation.

How to use this skill

Skill file

Create Directory List for Instructions

Interactively discover directories in the monorepo that should have Cursor rules files generated.

Steps

1. Scan the Monorepo Structure

Examine the codebase to identify directories that would benefit from instruction files. Look for:

2. Propose Directories

Present a list of discovered directories with brief descriptions:

Proposed directories for instruction files:

1. packages/api - REST API client library
2. packages/ui - Shared UI components
3. apps/web - Main web application
4. apps/mobile - React Native mobile app
5. services/auth - Authentication service
...

3. Iterate with User

Ask the user:

Continue iterating until the user confirms the list is complete.

4. Generate JSON File

Once confirmed, create directory-instructions.json in the working directory with this structure:

{
  "items": [
    {
      "id": "1",
      "directory": "packages/api",
      "output_file": "api.mdc",
      "status": "pending",
      "analyzed_at": null
    },
    {
      "id": "2",
      "directory": "packages/ui",
      "output_file": "ui.mdc",
      "status": "pending",
      "analyzed_at": null
    }
  ]
}

Output File Naming Convention

Guidelines

Questions to Ask

  1. "I found X directories. Should I include all of them or would you like to review the list first?"
  2. "Are there any directories you'd like to exclude?"
  3. "Are there any directories I missed that you'd like to add?"
  4. "The output file names will be: [list]. Do these look correct?"
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.