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:
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- helm/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
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
- Distinctive: line 3
When generating code for this repository, follow these formatting rules:
- Distinctive: line 7
Formatting: Use Ruff formatter defaults (88 char line length, Black-compatible)
- Distinctive: line 8
Style: Follow PEP 8 with Ruff's opinionated style
- Distinctive: line 10
Type Hints: Add type hints for all function parameters and returns
- Distinctive: line 11
Docstrings: Use Google-style docstrings for all public functions and classes
- Distinctive: line 12
Quotes: Prefer double quotes for strings (Black/Ruff default)
- Distinctive: line 16
Line Endings: Always end files with a newline character
- Distinctive: line 17
Whitespace: Never include trailing whitespace
- Distinctive: line 18
Indentation: Use 4 spaces for Python, 2 for YAML/JSON, consistent throughout
- Distinctive: line 27
trailing-whitespace: No trailing spaces
- Distinctive: line 34
F401: Don't import unused modules
- Distinctive: line 35
E402: Keep all imports at the top of files
- Distinctive: line 36
F841: Don't create unused variables
- Very specific: line 37
B007: Use _ prefix for unused loop variables
- Very specific: line 38
E722: Don't use bare except: clauses
- Very specific: line 39
B904: Use raise ... from in exception handlers
- Distinctive: line 43
Keep line lengths under 88 characters for code, 80 for documentation
- Distinctive: line 44
Use f-strings for string formatting (except in logging)
- Very specific: line 45
Prefer specific exception types over general Exception
- Very specific: line 46
Use Optional[Type] for nullable parameters
- Distinctive: line 47
Add meaningful error messages to exceptions
≈ “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.
Files
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 ... fromin 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 eDoes 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.

