agentleFS
docdyhrdocdyhr/simplenote-mcp-server/.github/copilot-instructions.md

simplenote-mcp-server

Copilot instructions19 starsChanged 13 months agoMITView on GitHub

When generating code for this repository, follow these formatting rules: Generated code must pass these checks:

The file

Show its rules and text

We split this copilot-instructions.md into the rules it gives an agent

21 rules. About 0 are common, 16 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When generating code for this repository, follow these formatting rules:

    line 3
  2. Distinctive:

    Formatting: Use Ruff formatter defaults (88 char line length, Black-compatible)

    line 7
  3. Distinctive:

    Style: Follow PEP 8 with Ruff's opinionated style

    line 8
  4. Distinctive:

    Type Hints: Add type hints for all function parameters and returns

    line 10
  5. Distinctive:

    Docstrings: Use Google-style docstrings for all public functions and classes

    line 11
  6. Distinctive:

    Quotes: Prefer double quotes for strings (Black/Ruff default)

    line 12
  7. Distinctive:

    Line Endings: Always end files with a newline character

    line 16
  8. Distinctive:

    Whitespace: Never include trailing whitespace

    line 17
  9. Distinctive:

    Indentation: Use 4 spaces for Python, 2 for YAML/JSON, consistent throughout

    line 18
  10. Distinctive:

    trailing-whitespace: No trailing spaces

    line 27
  11. Distinctive:

    F401: Don't import unused modules

    line 34
  12. Distinctive:

    E402: Keep all imports at the top of files

    line 35
  13. Distinctive:

    F841: Don't create unused variables

    line 36
  14. Very specific:

    B007: Use _ prefix for unused loop variables

    line 37
  15. Very specific:

    E722: Don't use bare except: clauses

    line 38
  16. Very specific:

    B904: Use raise ... from in exception handlers

    line 39
  17. Distinctive:

    Keep line lengths under 88 characters for code, 80 for documentation

    line 43
  18. Distinctive:

    Use f-strings for string formatting (except in logging)

    line 44
  19. Very specific:

    Prefer specific exception types over general Exception

    line 45
  20. Very specific:

    Use Optional[Type] for nullable parameters

    line 46
  21. Distinctive:

    Add meaningful error messages to exceptions

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
copilot-instructions.md

GitHub Copilot Code Generation Instructions

When generating code for this repository, follow these formatting rules:

Python Standards

  • Formatting: Use Ruff formatter defaults (88 char line length, Black-compatible)
  • Style: Follow PEP 8 with Ruff's opinionated style
  • Imports: Sort imports with standard → third-party → local order
  • Type Hints: Add type hints for all function parameters and returns
  • Docstrings: Use Google-style docstrings for all public functions and classes
  • Quotes: Prefer double quotes for strings (Black/Ruff default)

File Standards

  • Line Endings: Always end files with a newline character
  • Whitespace: Never include trailing whitespace
  • Indentation: Use 4 spaces for Python, 2 for YAML/JSON, consistent throughout

Pre-commit Compliance

Generated code must pass these checks:

  • ruff: Python linting and auto-fixes
  • ruff-format: Code formatting (Black-compatible)
  • mypy: Type checking (when type hints are used)
  • trailing-whitespace: No trailing spaces
  • end-of-file-fixer: Files end with newline
  • check-yaml: Valid YAML syntax
  • check-toml: Valid TOML syntax

Common Anti-patterns to Avoid

  • F401: Don't import unused modules
  • E402: Keep all imports at the top of files
  • F841: Don't create unused variables
  • B007: Use _ prefix for unused loop variables
  • E722: Don't use bare except: clauses
  • B904: Use raise ... from in exception handlers

Specific Rules

  • Keep line lengths under 88 characters for code, 80 for documentation
  • Use f-strings for string formatting (except in logging)
  • Prefer specific exception types over general Exception
  • Use Optional[Type] for nullable parameters
  • Add meaningful error messages to exceptions
  • Include contextual information in log messages

Example Good Code

from typing import Optional
import logging


def process_note(note_id: str, content: Optional[str] = None) -> bool:
    """Process a note with optional content update.

    Args:
        note_id: The unique identifier for the note
        content: Optional new content for the note

    Returns:
        True if processing succeeded, False otherwise

    Raises:
        ValueError: If note_id is empty or invalid
    """
    if not note_id.strip():
        raise ValueError("Note ID cannot be empty")

    try:
        # Process the note
        return True
    except Exception as e:
        logging.error("Failed to process note %s: %s", note_id, e)
        raise ProcessingError("Note processing failed") from e

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.