agentleFS
DXHeroesDXHeroes/mcp-devtools/.cursor/rules/repository-structure.mdc

mcp-devtools / rules

Cursor rule13 starsChanged 21 months agoMITArchived repositoryView on GitHub

Repository Structure Guidelines

The file

We split this repository-structure.mdc into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All packages should be named with the @mcp-devtools/ prefix

    line 56
  2. Very specific:

    Use kebab-case for package names (e.g., @mcp-devtools/github-actions)

    line 58
  3. Distinctive:

    Use exact versions for dependencies to ensure consistency

    line 64
  4. Distinctive:

    Use peerDependencies for framework dependencies

    line 65
  5. Distinctive:

    Use relative links between documentation files when appropriate

    line 77
  6. Distinctive:

    Use feature branches for development

    line 81
  7. Distinctive:

    Keep commits focused and atomic

    line 82
  8. Distinctive:

    Use pull requests for code review before merging

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
repository-structure.mdc
---
description: Repository Structure Guidelines
globs: **/*
alwaysApply: false
---

# Repository Structure Guidelines

The MCP DevTools repository follows a monorepo structure with clear organization of packages and shared resources.

@file package.json
@file packages/jira/package.json
@file .cursor/rules/core-libraries-usage.mdc

## Top-Level Directory Structure

```
mcp-devtools/
├── .github/            # GitHub workflows and templates
├── .cursor/            # Cursor IDE configuration
│   └── rules/          # Project coding rules and guidelines
├── packages/           # Individual MCP packages
│   ├── core/           # Core shared libraries
│   ├── jira/           # Jira integration package
│   ├── github/         # GitHub integration package
│   └── ...             # Other integration packages
├── examples/           # Example usage of MCP DevTools
├── scripts/            # Build and maintenance scripts
├── docs/               # Documentation files
├── package.json        # Root package.json
└── README.md           # Root README
```

## Package Structure

Each package in the `packages/` directory should follow this structure:

```
packages/[package-name]/
├── src/                # Source code
│   ├── index.ts        # Package entry point
│   ├── tools/          # MCP tool implementations
│   │   ├── tool1.ts    # Individual tool implementation
│   │   └── index.ts    # Tools export file
│   ├── api/            # API client code
│   └── types/          # TypeScript type definitions
├── test/               # Test files
├── dist/               # Compiled output (not in git)
├── package.json        # Package manifest
├── tsconfig.json       # TypeScript configuration
└── README.md           # Package documentation
```

## Package Naming Conventions

- All packages should be named with the `@mcp-devtools/` prefix
- Package names should be simple and descriptive (e.g., `@mcp-devtools/jira`)
- Use kebab-case for package names (e.g., `@mcp-devtools/github-actions`)

## Dependency Management

- Core dependencies should be defined in the root `package.json`
- Package-specific dependencies should be in each package's `package.json`
- Use exact versions for dependencies to ensure consistency
- Use peerDependencies for framework dependencies

## Build Configuration

- TypeScript configuration should extend from a base configuration when possible
- Package-specific build settings should be in each package's configuration files
- Build outputs should be consistent across packages

## Documentation Structure

- Each package should have its own comprehensive README.md
- Root README.md should provide an overview of all packages
- Use relative links between documentation files when appropriate

## Version Control

- Use feature branches for development
- Keep commits focused and atomic
- Reference issue numbers in commit messages when applicable
- Use pull requests for code review before merging

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.