agentleFS
zircotezircote/git-notes-memory/.github/copilot-instructions.md

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:

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
  1. Distinctive:

    Use Python 3.12+ features and syntax

    line 11
  2. Very specific:

    Use uv for package management (NOT pip)

    line 13
  3. Distinctive:

    Follow ruff formatting and linting rules

    line 14
  4. Distinctive:

    Use mypy for static type checking (strict mode preferred)

    line 15
  5. Distinctive:

    Use pytest for testing with high coverage (80% minimum)

    line 16
  6. Distinctive:

    Use bandit for security scanning

    line 17
  7. Distinctive:

    Write clean, readable, maintainable code

    line 21
  8. Distinctive:

    Prefer explicit over implicit

    line 22
  9. Distinctive:

    Keep functions small and focused

    line 23
  10. Distinctive:

    Add comments only when necessary (code should be self-documenting)

    line 24
  11. Distinctive:

    Use descriptive names for variables and functions

    line 25
  12. Distinctive:

    Follow PEP 8 naming conventions:

    line 26
  13. Distinctive:

    Write tests for new functionality

    line 46
  14. Distinctive:

    Test edge cases and error conditions

    line 48
  15. Distinctive:

    Use meaningful test names that describe the expected behavior

    line 49
  16. Distinctive:

    Use pytest fixtures for common setup

    line 50
  17. Distinctive:

    Prefer parametrized tests for testing multiple inputs

    line 51
  18. Very specific:

    Use uv add <package> to add dependencies

    line 75
  19. Very specific:

    Use uv add --dev <package> for dev dependencies

    line 76
  20. Distinctive:

    Keep dependencies minimal and well-justified

    line 77
  21. Very specific:

    Use conventional commits: feat:, fix:, docs:, test:, refactor:, chore:

    line 81
  22. Distinctive:

    Keep commits atomic and focused

    line 82
  23. Distinctive:

    Write clear commit messages

    line 83
  24. Distinctive:

    Keep documentation up to date with code changes

    line 87
  25. Distinctive:

    Document public APIs thoroughly with docstrings

    line 88

≈ “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

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 uv for 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.py

Testing 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.
    """

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.