git-notes-memory
Copilot instructions4 starsChanged 12 months agoMITArchived repositoryView on GitHub
This file provides context to GitHub Copilot for better code suggestions. git-notes-memory-manager is a Python project for managing memory and context using git notes. Example test structure:
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- memory-assistantSkill
- memory-recallSkill
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
25 rules. About 0 are common, 21 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use Python 3.12+ features and syntax
- Very specific: line 13
Use uv for package management (NOT pip)
- Distinctive: line 14
Follow ruff formatting and linting rules
- Distinctive: line 15
Use mypy for static type checking (strict mode preferred)
- Distinctive: line 16
Use pytest for testing with high coverage (80% minimum)
- Distinctive: line 17
Use bandit for security scanning
- Distinctive: line 21
Write clean, readable, maintainable code
- Distinctive: line 22
Prefer explicit over implicit
- Distinctive: line 23
Keep functions small and focused
- Distinctive: line 24
Add comments only when necessary (code should be self-documenting)
- Distinctive: line 25
Use descriptive names for variables and functions
- Distinctive: line 26
Follow PEP 8 naming conventions:
- Distinctive: line 46
Write tests for new functionality
- Distinctive: line 48
Test edge cases and error conditions
- Distinctive: line 49
Use meaningful test names that describe the expected behavior
- Distinctive: line 50
Use pytest fixtures for common setup
- Distinctive: line 51
Prefer parametrized tests for testing multiple inputs
- Very specific: line 75
Use uv add <package> to add dependencies
- Very specific: line 76
Use uv add --dev <package> for dev dependencies
- Distinctive: line 77
Keep dependencies minimal and well-justified
- Very specific: line 81
Use conventional commits: feat:, fix:, docs:, test:, refactor:, chore:
- Distinctive: line 82
Keep commits atomic and focused
- Distinctive: line 83
Write clear commit messages
- Distinctive: line 87
Keep documentation up to date with code changes
- Distinctive: line 88
Document public APIs thoroughly with docstrings
≈ “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
git-notes-memory-manager - Copilot Instructions
This file provides context to GitHub Copilot for better code suggestions.
Project Overview
git-notes-memory-manager is a Python project for managing memory and context using git notes.
Python Guidelines
- Use Python 3.12+ features and syntax
- Type hints are required for all functions and methods
- Use
uvfor package management (NOT pip) - Follow ruff formatting and linting rules
- Use mypy for static type checking (strict mode preferred)
- Use pytest for testing with high coverage (80% minimum)
- Use bandit for security scanning
Code Style
- Write clean, readable, maintainable code
- Prefer explicit over implicit
- Keep functions small and focused
- Add comments only when necessary (code should be self-documenting)
- Use descriptive names for variables and functions
- Follow PEP 8 naming conventions:
- snake_case for functions and variables
- PascalCase for classes
- UPPER_CASE for constants
Project Structure
src/
git_notes_memory_manager/
__init__.py
...
tests/
__init__.py
test_*.py
conftest.pyTesting Patterns
- Write tests for new functionality
- Aim for high test coverage (80% minimum)
- Test edge cases and error conditions
- Use meaningful test names that describe the expected behavior
- Use pytest fixtures for common setup
- Prefer parametrized tests for testing multiple inputs
- Mock external dependencies appropriately
Example test structure:
import pytest
from git_notes_memory_manager import SomeClass
class TestSomeClass:
def test_method_returns_expected_value(self):
"""Test that method returns expected value for valid input."""
obj = SomeClass()
result = obj.method("input")
assert result == "expected"
def test_method_raises_on_invalid_input(self):
"""Test that method raises ValueError for invalid input."""
obj = SomeClass()
with pytest.raises(ValueError):
obj.method(None)Dependencies
- Use
uv add <package>to add dependencies - Use
uv add --dev <package>for dev dependencies - Keep dependencies minimal and well-justified
Git Workflow
- Use conventional commits:
feat:,fix:,docs:,test:,refactor:,chore: - Keep commits atomic and focused
- Write clear commit messages
Documentation
- Keep documentation up to date with code changes
- Document public APIs thoroughly with docstrings
- Include examples in documentation when helpful
- Use Google-style docstrings:
def function(arg1: str, arg2: int) -> bool:
"""Short description of function.
Longer description if needed.
Args:
arg1: Description of arg1.
arg2: Description of arg2.
Returns:
Description of return value.
Raises:
ValueError: Description of when this is raised.
"""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.

