agentleFS
claude-office-skillsclaude-office-skills/skills/.cursor/rules/project-rules.mdc

skills / rules

Cursor rule497 starsChanged 10 months agoMITView on GitHub

Claude Office Skills project coding standards and conventions

The file

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

11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All project artifacts MUST be written in English:

    line 13
  2. Very specific:

    SKILL.md files: - All skill names, descriptions, instructions, and examples must be in English

    line 15
  3. Distinctive:

    Code comments: - All comments in TypeScript, JavaScript, Python must be in English

    line 16
  4. Distinctive:

    Variable/function names: - Use descriptive English names (camelCase for JS/TS, snake_case for Python)

    line 17
  5. Distinctive:

    README and documentation: - All markdown documentation in English

    line 18
  6. Distinctive:

    Git commit messages: - Write commits in English

    line 19
  7. Distinctive:

    JSON/YAML keys: - Use English keys and values

    line 20
  8. Very specific:

    Every SKILL.md must include:

    line 49
  9. Very specific:

    Use snake_case for tool names: extract_text_from_pdf, create_docx

    line 118
  10. Distinctive:

    Write clear English descriptions

    line 123
  11. Distinctive:

    Commit messages: Use conventional commits in English

    line 130

≈ “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
project-rules.mdc
---
description: Claude Office Skills project coding standards and conventions
globs: ["**/*.md", "**/*.ts", "**/*.js", "**/*.json", "**/*.py"]
alwaysApply: true
---

# Claude Office Skills - Project Rules

## Language Requirements

### Code and Documentation Language: English Only

All project artifacts MUST be written in **English**:

1. **SKILL.md files** - All skill names, descriptions, instructions, and examples must be in English
2. **Code comments** - All comments in TypeScript, JavaScript, Python must be in English
3. **Variable/function names** - Use descriptive English names (camelCase for JS/TS, snake_case for Python)
4. **README and documentation** - All markdown documentation in English
5. **Git commit messages** - Write commits in English
6. **JSON/YAML keys** - Use English keys and values

### Example - Correct SKILL.md Header

```yaml
---
name: contract-review
description: "Analyze contracts for risks, check completeness, and provide recommendations."
category: legal
tags:
  - contract
  - review
  - risk-analysis
---
```

### Example - Incorrect (Do NOT do this)

```yaml
---
name: 合同审查  # ❌ Chinese name
description: "分析合同风险"  # ❌ Chinese description
---
```

## Skill Design Standards

### Frontmatter Structure (YAML)

Every SKILL.md must include:

```yaml
---
# Basic Information (Required)
name: skill-name-in-kebab-case
description: "Clear English description of what this skill does"
version: "1.0.0"
author: claude-office-skills
license: MIT

# Categorization (Required)
category: legal|hr|finance|sales|marketing|productivity|pdf|document|spreadsheet|presentation|workflow|research|visualization
tags:
  - relevant
  - english
  - tags
department: Target Department

# AI Model Compatibility
models:
  recommended:
    - claude-sonnet-4
    - claude-opus-4
  compatible:
    - claude-3-5-sonnet
    - gpt-4

# MCP Tools Integration (if applicable)
mcp:
  server: office-mcp
  tools:
    - tool_name_1
    - tool_name_2

# Capabilities
capabilities:
  - capability_1
  - capability_2

# Language Support
languages:
  - en
  - zh
---
```

### Content Structure

Skills should follow this structure:

1. **Overview** - What the skill does, capabilities and limitations
2. **How to Use** - Step-by-step instructions
3. **Domain Knowledge** - Embedded expertise, patterns, best practices
4. **Output Format** - Expected output structure
5. **Examples** - Real-world usage examples
6. **Tips** - Best practices for better results
7. **Limitations** - Clear boundaries

## File Naming Conventions

- Skill directories: `kebab-case` (e.g., `contract-review`, `stock-analysis`)
- TypeScript/JavaScript files: `camelCase.ts` or `kebab-case.ts`
- Python files: `snake_case.py`

## MCP Server Standards

### Tool Naming

- Use `snake_case` for tool names: `extract_text_from_pdf`, `create_docx`
- Be descriptive: `analyze_spreadsheet` not `analyze`

### Tool Description

- Write clear English descriptions
- Include parameter types and examples
- Document return values

## Git Workflow

- Branch naming: `feature/skill-name` or `fix/issue-description`
- Commit messages: Use conventional commits in English
  - `feat: add stock-analysis skill`
  - `fix: correct calculation in dcf-valuation`
  - `docs: update README with new skills`

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.