mcp-devtools / rules
Cursor rule13 starsChanged 21 months agoMITArchived repositoryView on GitHub
Repository Structure Guidelines
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository9 other files it gives its agents.
- .cursor/rules/ai-assisted-development.mdcCursor rule
- .cursor/rules/core-libraries-usage.mdcCursor rule
- .cursor/rules/mcp-server-implementation.mdcCursor rule
- .cursor/rules/mcp-tool-implementation.mdcCursor rule
- .cursor/rules/new-package-creation.mdcCursor rule
- .cursor/rules/package-documentation.mdcCursor rule
- .cursor/rules/rules-for-cursor.mdcCursor rule
- .cursor/rules/testing-standards.mdcCursor rule
- .cursor/rules/typescript-style.mdcCursor rule
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
- Very specific: line 56
All packages should be named with the @mcp-devtools/ prefix
- Very specific: line 58
Use kebab-case for package names (e.g., @mcp-devtools/github-actions)
- Distinctive: line 64
Use exact versions for dependencies to ensure consistency
- Distinctive: line 65
Use peerDependencies for framework dependencies
- Distinctive: line 77
Use relative links between documentation files when appropriate
- Distinctive: line 81
Use feature branches for development
- Distinctive: line 82
Keep commits focused and atomic
- Distinctive: line 84
Use pull requests for code review before merging
≈ “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.
Files
--- 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
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
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.

